X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Frfxswf.h;h=6fd2f3f99c30204d5c3d9988f38fe05c2d3dc086;hb=a0c23e11cb8ea79e4fabd9d491d1716412746df4;hp=31050dd41fab6b4dcc76ecdc02575bb6a0c486f7;hpb=92639540a5db28c4e5cbb87bad85fa4abb886308;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 31050dd..6fd2f3f 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -723,6 +723,8 @@ int swf_SetJPEGBits3(TAG * tag,U16 width,U16 height,RGBA* bitmap, int quality); RGBA* swf_JPEG2TagToImage(TAG*tag, int*width, int*height); void swf_RemoveJPEGTables(SWF*swf); +void swf_SaveJPEG(char*filename, RGBA*pixels, int width, int height, int quality); + #define BYTES_PER_SCANLINE(width) ((width+3)&0xfffffffc) #define BMF_8BIT 3 // Bitmap formats @@ -754,6 +756,8 @@ U8 swf_isPseudoDefiningTag(TAG * t); U8 swf_isAllowedSpriteTag(TAG * t); U8 swf_isImageTag(TAG*tag); U8 swf_isShapeTag(TAG*tag); +U8 swf_isTextTag(TAG*tag); +U8 swf_isFontTag(TAG*tag); U8 swf_isPlaceTag(TAG*tag); U16 swf_GetDefineID(TAG * t); @@ -976,7 +980,7 @@ typedef struct RENDERBUF void*internal; } RENDERBUF; -void swf_Render_Init(RENDERBUF*buf, int posx, int posy, int width, int height, char antialize, int scale); +void swf_Render_Init(RENDERBUF*buf, int posx, int posy, int width, int height, int antialize, int multiply); void swf_Render_SetBackground(RENDERBUF*buf, RGBA*img, int width, int height); void swf_Render_SetBackgroundColor(RENDERBUF*buf, RGBA color); RGBA* swf_Render(RENDERBUF*dest);