Correct an invalid jpeg quality parameter.
With our new libjpeg_turbo library, a quality of 150 doesn't seem to be valid, so I'm changing this to 95. I chose 95 over 100 because the libjpeg_turbo project uses a quality of 95 for all testing and benchmarking shown in their documentation, and notes that a quality of 95 "has been determined to be perceptually lossless under most viewing conditions".
This commit is contained in:
@@ -117,7 +117,7 @@ bool RageSurfaceUtils::SaveJPEG( RageSurface *surface, RageFile &f, bool bHighQu
|
|||||||
jpeg::jpeg_set_defaults(&cinfo);
|
jpeg::jpeg_set_defaults(&cinfo);
|
||||||
|
|
||||||
if( bHighQual )
|
if( bHighQual )
|
||||||
jpeg::jpeg_set_quality( &cinfo, 150, TRUE );
|
jpeg::jpeg_set_quality( &cinfo, 95, TRUE );
|
||||||
else
|
else
|
||||||
jpeg::jpeg_set_quality( &cinfo, 70, TRUE );
|
jpeg::jpeg_set_quality( &cinfo, 70, TRUE );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user