X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=673429a46be63a61b087250a5c96421a156c50b4;hb=ccdef17af6b95031cf3b2c093f1594b635adbfdb;hp=cce154cf4491677d27ed8bb985e692d0776794c9;hpb=a5ae531b2bfcf1a6d02ee8057a2716b77301e6b0;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index cce154c..673429a 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; @@ -333,10 +338,11 @@ typedef struct _LINESTYLE } LINESTYLE, * LPLINESTYLE; typedef struct _FILLSTYLE -{ U8 type; - RGBA color; - MATRIX m; - U16 id_bitmap; +{ U8 type; + RGBA color; + MATRIX m; + U16 id_bitmap; + GRADIENT* gradient; } FILLSTYLE, * LPFILLSTYLE; typedef struct _SHAPE // NEVER access a Shape-Struct directly ! @@ -414,9 +420,9 @@ void swf_ShapeSetBitmapRect(TAG * t, U16 gfxid, int width, int height); SHAPELINE* swf_ParseShapeData(U8*data, int bits, int fillbits, int linebits); SHAPE2* swf_ShapeToShape2(SHAPE*shape); -SHAPE* swf_Shape2ToShape(SHAPE2*shape); -SRECT swf_GetShapeBoundingBox(SHAPELINE*shape); -int swf_SetShape2(TAG*tag, SHAPE2*shape); +void swf_Shape2ToShape(SHAPE2*shape2, SHAPE*shape); +SRECT swf_GetShapeBoundingBox(SHAPE2*shape); +void swf_SetShape2(TAG*tag, SHAPE2*shape); void swf_Shape2Free(SHAPE2 * s); // swffont.c @@ -838,6 +844,33 @@ 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 owidth; + int oheight; + 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