svnno****@sourc*****
svnno****@sourc*****
2011年 3月 23日 (水) 21:58:03 JST
Revision: 452 http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=452 Author: yoya Date: 2011-03-23 21:58:03 +0900 (Wed, 23 Mar 2011) Log Message: ----------- author: yoya zlib compress level を swf_object_t で管理する (2つ漏れてたので対応) Modified Paths: -------------- trunk/src/swf_tag_jpeg.c trunk/src/swf_tag_lossless.c -------------- next part -------------- Modified: trunk/src/swf_tag_jpeg.c =================================================================== --- trunk/src/swf_tag_jpeg.c 2011-03-23 12:43:41 UTC (rev 451) +++ trunk/src/swf_tag_jpeg.c 2011-03-23 12:58:03 UTC (rev 452) @@ -310,7 +310,7 @@ compsize = old_size * 1.001 + 12; // 稀に増える事もあるので new_buff = malloc(compsize); // result = compress2(new_buff, &compsize, swf_tag_jpeg->alpha_data, old_size, swf->compress_level); - result = compress(new_buff, &compsize, swf_tag_jpeg->alpha_data, old_size); + result = compress2(new_buff, &compsize, swf_tag_jpeg->alpha_data, old_size, swf->compress_level); if (result != Z_OK) { if (result == Z_MEM_ERROR) { fprintf(stderr, "swf_tag_jpeg_output_detail: compress Z_MEM_ERROR: can't malloc\n"); Modified: trunk/src/swf_tag_lossless.c =================================================================== --- trunk/src/swf_tag_lossless.c 2011-03-23 12:43:41 UTC (rev 451) +++ trunk/src/swf_tag_lossless.c 2011-03-23 12:58:03 UTC (rev 452) @@ -309,7 +309,7 @@ old_size = bitstream_length(bs2); compsize = old_size * 1.001 + 12; // 稀に増える事もあるので tmp_buff = malloc(compsize); - result = compress(tmp_buff, &compsize, old_buff_ref, old_size); + result = compress2(tmp_buff, &compsize, old_buff_ref, old_size, swf->compress_level); if (result != Z_OK) { if (result == Z_MEM_ERROR) { fprintf(stderr, "swf_tag_lossless_output_detail: compress Z_MEM_ERROR: can't malloc\n");