Mercurial > mplayer.hg
changeset 8267:1ac2523775ad
patch from tonglijing <tong@intec.iscas.ac.cn>
author | pontscho |
---|---|
date | Sun, 24 Nov 2002 21:28:32 +0000 |
parents | 2de1fa441839 |
children | a85040e4b1a0 |
files | libvo/vo_jpeg.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_jpeg.c Sun Nov 24 21:25:00 2002 +0000 +++ b/libvo/vo_jpeg.c Sun Nov 24 21:28:32 2002 +0000 @@ -119,16 +119,17 @@ 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; + + jpeg_set_defaults( &cinfo ); + jpeg_set_quality( &cinfo,jpeg_quality,jpeg_baseline ); cinfo.optimize_coding=jpeg_optimize; cinfo.smoothing_factor=jpeg_smooth; - - jpeg_set_defaults( &cinfo ); + if ( jpeg_progressive_mode ) jpeg_simple_progression( &cinfo ); jpeg_start_compress( &cinfo,TRUE );