X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=88d33e4b702e5b304562b41dbec0a7108c3c69b9;hb=e3147ae362f22e9627c7eace0b33d01c09e30f25;hp=21a60682d04bf633b4c3dbf557eba8e190815ae8;hpb=c134f47d8a8d3437b14d2aed283821635d013e05;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 21a6068..88d33e4 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 @@ -744,6 +746,10 @@ TAG* swf_AddImage(TAG*tag, int bitid, RGBA*mem, int width, int height, int quali void swf_SetSoundStreamHead(TAG*tag, int avgnumsamples); void swf_SetSoundStreamBlock(TAG*tag, S16*samples, int seek, char first); /* expects 2304 samples */ void swf_SetSoundDefine(TAG*tag, S16*samples, int num); +void swf_SetSoundDefineMP3(TAG*tag, U8* data, unsigned length, + unsigned SampRate, + unsigned Channels, + unsigned NumFrames); void swf_SetSoundInfo(TAG*tag, SOUNDINFO*info); // swftools.c @@ -978,7 +984,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);