mirror of https://github.com/mpv-player/mpv
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:
parent
00637e4597
commit
57f77bb41a
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue