X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=e7b89a19132c1e1a068795841669a67c127c1754;hb=d0f35504a46c64a5fc5bd9eb128cfda870d37dfe;hp=a5e89917ec6e0953ee253352d2d0954492a504f4;hpb=ebf53a918174ecce8bf0ff64fa69e12677e52bae;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index a5e8991..e7b89a1 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -451,6 +451,10 @@ void swf_SetShape2(TAG*tag, SHAPE2*shape); void swf_Shape2Free(SHAPE2 * s); void swf_DumpShape(SHAPE2*shape2); +void swf_ParseDefineShape(TAG*tag, SHAPE2*shape); +void swf_Shape2ToShape(SHAPE2*shape2, SHAPE*shape); +void swf_SetShape2(TAG*tag, SHAPE2*shape2); + // swfdraw.c void swf_Shape10DrawerInit(drawer_t*draw, TAG*tag); @@ -553,7 +557,7 @@ int swf_FontSetID(SWFFONT * f,U16 id); int swf_FontReduce(SWFFONT * f,FONTUSAGE * use); int swf_FontInitUsage(SWFFONT * f,FONTUSAGE * use); -int swf_FontUse(FONTUSAGE * use,U8 * s); +int swf_FontUse(SWFFONT* f,FONTUSAGE * use,U8 * s); int swf_FontSetDefine(TAG * t,SWFFONT * f); int swf_FontSetDefine2(TAG * t,SWFFONT * f); @@ -562,8 +566,7 @@ int swf_FontSetInfo(TAG * t,SWFFONT * f); void swf_FontCreateLayout(SWFFONT*f); void swf_FontAddLayout(SWFFONT * f, int ascent, int descent, int leading); -int swf_FontExtract_DefineTextCallback(int id,SWFFONT * f,TAG * t,int jobs, - void(*callback)(int*chars, int nr, int id)); +int swf_ParseDefineText(TAG * t, void(*callback)(void*self, int*chars, int*xpos, int nr, int fontid, int fontsize, int xstart, int ystart, RGBA* color), void*self); void swf_WriteFont(SWFFONT* font, char* filename); SWFFONT* swf_ReadFont(char* filename); @@ -698,14 +701,6 @@ int swf_SetJPEGBits3(TAG * tag,U16 width,U16 height,RGBA* bitmap, int quality); #define BMF_16BIT 4 #define BMF_32BIT 5 -#define BM16_BLUE 0xf800 // Bitmasks for 16 Bit Color -#define BM16_RED 0x00f0 -#define BM16_GREEN 0x000f - -#define BM32_BLUE 0xff000000 // Bitmasks for 32 Bit Color -#define BM32_GREEN 0x00ff0000 -#define BM32_RED 0x0000ff00 - int swf_SetLosslessBits(TAG * t,U16 width,U16 height,void * bitmap,U8 bitmap_flags); int swf_SetLosslessBitsIndexed(TAG * t,U16 width,U16 height,U8 * bitmap,RGBA * palette,U16 ncolors); int swf_SetLosslessBitsGrayscale(TAG * t,U16 width,U16 height,U8 * bitmap); @@ -923,6 +918,7 @@ typedef struct _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_SetVideoStreamMover(TAG*tag, VIDEOSTREAM*s, signed char* movex, signed char* movey, int quant); void swf_VideoStreamClear(VIDEOSTREAM*stream); #ifdef __cplusplus