patch from tonglijing <tong@intec.iscas.ac.cn>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8268 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2002-11-24 21:28:32 +00:00
parent 00637e4597
commit 57f77bb41a
1 changed files with 4 additions and 3 deletions

View File

@ -119,16 +119,17 @@ static uint32_t jpeg_write( uint8_t * name,uint8_t * buffer )
jpeg_create_compress(&cinfo);
jpeg_stdio_dest( &cinfo,o );
jpeg_set_quality( &cinfo,jpeg_quality,jpeg_baseline );
cinfo.image_width=image_width;
cinfo.image_height=image_height;
cinfo.input_components=bpp / 8;
cinfo.in_color_space=JCS_RGB;
cinfo.optimize_coding=jpeg_optimize;
cinfo.smoothing_factor=jpeg_smooth;
jpeg_set_defaults( &cinfo );
jpeg_set_quality( &cinfo,jpeg_quality,jpeg_baseline );
cinfo.optimize_coding=jpeg_optimize;
cinfo.smoothing_factor=jpeg_smooth;
if ( jpeg_progressive_mode ) jpeg_simple_progression( &cinfo );
jpeg_start_compress( &cinfo,TRUE );