|
From: Steve A. <al...@ne...> - 2002-08-18 20:44:49
|
Hi developer, I've just implement the Macromedia Flash MX compression in the current cvs tree. I hope it works correctly, but please _test_ this new feature! I have only made a part implementation with the normal api (add SWFMovie_outputC) and with php-4.2.0 and php-4.3.dev extensions. Perl, Pyton, Ruby and Java are not affected! It's currently only implement in php $movie->save() and in $movie->output(). To test the new feature try the follow way: use: $movie->output(int compression_level[0..9]); $movie->save(string filename, int compression_level[0..9]); The compression level is optionally and if no present, the old format is writting. The compression level must be between 0 (no compression) and 9 (max compression, but slow). Macromedia use 5 or 6 as default. The version number is automatic changed to 6 instead of 5. Temporary i've add a copy of SWFMovie_output() called SWFMovie_outputC(). If all test succeed, i'll remove the old SWFMovie_output() function and replace it with SWFMovie_outputC(). zlib.h is now required for the swf compression feature. Any comments are welcome. Regards, Steve |