X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=avi2swf%2Fv2swf.h;h=56f2c97a3cc6329adb2afcf344c7e23cdda395a7;hb=8d594217e92517a626bb5b06f23a3034df1c4453;hp=94a952670b2cc2b0eabea850850ea2866bc45b7b;hpb=2426d04359ede90a92f33740c7086cafa789ff9f;p=swftools.git diff --git a/avi2swf/v2swf.h b/avi2swf/v2swf.h index 94a9526..56f2c97 100644 --- a/avi2swf/v2swf.h +++ b/avi2swf/v2swf.h @@ -1,4 +1,4 @@ -/* v2swf.c +/* v2swf.h header file for v2swf.h - part of SWFTools Copyright (C) 2003 Matthias Kramm @@ -16,6 +16,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #ifndef __video_h__ #define __video_h__ @@ -25,35 +26,7 @@ extern "C" { typedef unsigned char bool; #endif -typedef struct _videoreader_t -{ - void*internal; - - /* video */ - int width; - int height; - double fps; - - /* audio */ - int channels; - int rate; - - int (*getsamples) (struct _videoreader_t*, void*buffer, int num); - /* buffer must be big enough to hold width*height*4 bytes: */ - int (*getimage) (struct _videoreader_t*, void*buffer); - bool (*eof) (struct _videoreader_t*); - /* multi purpose functions */ - void (*setparameter) (struct _videoreader_t*, char*name, char*value); - void* (*getinfo) (struct _videoreader_t*, char*name); - void (*close) (struct _videoreader_t*); -} videoreader_t; - -#define videoreader_getsamples(v, buffer, num) ((v)->getsamples((v),(buffer),(num))) -#define videoreader_getimage(v, buffer) ((v)->getimage((v),(buffer))) -#define videoreader_eof(v) ((v)->eof(v)) -#define videoreader_setparameter(v,name,value) ((v)->setparameter((v),(name),(value))) -#define videoreader_getinfo(v,name) ((v)->getinfo((v),(name))) -#define videoreader_close(v) ((v)->close(v)) +#include "videoreader.h" typedef struct _v2swf_t {