X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Frfxswf.h;h=4b6e3b362886f15db6914cb710801859590cbcb0;hp=cce154cf4491677d27ed8bb985e692d0776794c9;hb=0ad2a63ba1438e043e1fb8d4fdfbc7e6f5ce001e;hpb=c8aba9393055c72384c0712be74b12ce01c8d186 diff --git a/lib/rfxswf.h b/lib/rfxswf.h index cce154c..4b6e3b3 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -80,6 +80,11 @@ typedef struct _RGBA U8 b; } RGBA, * LPRGBA; +typedef struct _YUV +{ + U8 y,u,v; +} YUV; + typedef struct _SRECT { SCOORD xmin; SCOORD ymin; @@ -838,6 +843,31 @@ void swf_SetPlaceObject(TAG * t,SWFPLACEOBJECT* obj); void swf_GetPlaceObject(TAG * t,SWFPLACEOBJECT* obj); void swf_PlaceObjectFree(SWFPLACEOBJECT* obj); +// swfvideo.c + +typedef struct _VIDEOSTREAM +{ + int width; + int height; + int frame; + int linex; + int olinex; + YUV*oldpic; + YUV*current; + int bbx,bby; + int*mvdx; + int*mvdy; + + /* modifyable: */ + int do_motion; //enable motion compensation (slow!) + +} VIDEOSTREAM; + +void swf_SetVideoStreamDefine(TAG*tag, VIDEOSTREAM*stream, U16 frames, U16 width, U16 height); +void swf_SetVideoStreamIFrame(TAG*tag, VIDEOSTREAM*s, RGBA*pic, int quant/* 1-31, 1=best quality, 31=best compression*/); +void swf_SetVideoStreamPFrame(TAG*tag, VIDEOSTREAM*s, RGBA*pic, int quant/* 1-31, 1=best quality, 31=best compression*/); +void swf_VideoStreamClear(VIDEOSTREAM*stream); + #ifdef __cplusplus } #endif