X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=a86943d2f27b63464998d41607a63f3cf746b3dd;hb=f72efb3e0b08321fe70a478bf939c312ed7564ce;hp=1266d487095f4dc7e08e96287d71207db92e80ef;hpb=1fc6433035d24984dd10458a1ff10d36fddc1cd3;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 1266d48..a86943d 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -450,7 +450,7 @@ int swf_ShapeSetEnd(TAG * t); void swf_ShapeSetBitmapRect(TAG * t, U16 gfxid, int width, int height); -SHAPELINE* swf_ParseShapeData(U8*data, int bits, int fillbits, int linebits); +//SHAPELINE* swf_ParseShapeData(U8*data, int bits, int fillbits, int linebits); SHAPE2* swf_ShapeToShape2(SHAPE*shape); void swf_Shape2ToShape(SHAPE2*shape2, SHAPE*shape); SRECT swf_GetShapeBoundingBox(SHAPE2*shape); @@ -460,7 +460,6 @@ 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); void swf_RecodeShapeData(U8*data, int bitlen, int in_bits_fill, int in_bits_line, @@ -739,6 +738,7 @@ RGBA* swf_DefineLosslessBitsTagToImage(TAG*tag, int*width, int*height); RGBA* swf_ExtractImage(TAG*tag, int*dwidth, int*dheight); RGBA* swf_ImageScale(RGBA*data, int width, int height, int newwidth, int newheight); +TAG* swf_AddImage(TAG*tag, int bitid, RGBA*mem, int width, int height, int quality); // swfsound.c void swf_SetSoundStreamHead(TAG*tag, int avgnumsamples); @@ -754,6 +754,9 @@ 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); SRECT swf_GetDefineBBox(TAG * t); @@ -773,6 +776,8 @@ void swf_RelocateDepth(SWF*swf, char*bitmap); // bitmap is 65536 bytes, bitmap[d TAG* swf_Concatenate (TAG*list1,TAG*list2); // warning: both list1 and list2 are invalid after this call. +RGBA swf_GetSWFBackgroundColor(SWF*swf); + // swfcgi.c void swf_uncgi(); // same behaviour as Steven Grimm's uncgi-library @@ -973,11 +978,12 @@ 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); void swf_RenderShape(RENDERBUF*dest, SHAPE2*shape, MATRIX*m, CXFORM*c, U16 depth,U16 clipdepth); +void swf_RenderSWF(RENDERBUF*buf, SWF*swf); void swf_Render_AddImage(RENDERBUF*buf, U16 id, RGBA*img, int width, int height); void swf_Render_ClearCanvas(RENDERBUF*dest); void swf_Render_Delete(RENDERBUF*dest);