VIDEOSTREAM stream;
VIDEOSTREAM* s = &stream;
TAG*tag;
- RGBA*pic = rfx_alloc(256*256*sizeof(RGBA));
+ RGBA*pic = (RGBA*)rfx_alloc(256*256*sizeof(RGBA));
block_t fb;
int x,y;
int bx,by;
tag = swf_InsertTag(tag, ST_END);
int fi = open("black.swf", O_WRONLY|O_CREAT|O_TRUNC, 0644);
- if(swf_WriteSWC(fi,&swf)<0) {
+ if(swf_WriteSWF(fi,&swf)<0) {
fprintf(stderr,"WriteSWF() failed.\n");
}
close(fi);
TAG * tag;
RGBA* pic, *pic2, rgb;
SWFPLACEOBJECT obj;
- int width = 0;
- int height = 0;
+ unsigned width = 0;
+ unsigned height = 0;
int frames = 10;
int framerate = 29;
unsigned char*data;
memset(&stream, 0, sizeof(stream));
- getPNG(fname, &width, &height, &data);
+ png_load(fname, &width, &height, &data);
pic = (RGBA*)rfx_alloc(width*height*sizeof(RGBA));
pic2 = (RGBA*)rfx_alloc(width*height*sizeof(RGBA));
memcpy(pic, data, width*height*sizeof(RGBA));
tag = swf_InsertTag(tag, ST_END);
fi = open("video3.swf", O_WRONLY|O_CREAT|O_TRUNC, 0644);
- if(swf_WriteSWC(fi,&swf)<0) {
+ if(swf_WriteSWF(fi,&swf)<0) {
fprintf(stderr,"WriteSWF() failed.\n");
}
close(fi);