Replace the vendored libjpeg with the submodule of libjpeg-turbo 3.1.0

Co-authored-by: phantom10111 <[email protected]>
This commit is contained in:
Rafał Florczak
2025-03-03 23:33:15 -08:00
committed by teejusb
co-authored by phantom10111
parent e1bf59458f
commit 3c0b480b93
202 changed files with 84 additions and 115800 deletions
+1 -1
View File
@@ -333,7 +333,7 @@ list(APPEND SMDATA_LINK_LIB "mad"
"glew"
"tomcrypt"
"tommath"
"jpeg"
"libjpeg-turbo"
"zlib"
"png"
"jsoncpp"
+4 -4
View File
@@ -48,7 +48,7 @@ static jpeg::boolean empty_output_buffer( jpeg::j_compress_ptr cinfo )
dest->pub.next_output_byte = dest->buffer;
dest->pub.free_in_buffer = OUTPUT_BUFFER_SIZE;
return jpeg::TRUE;
return TRUE;
}
@@ -117,14 +117,14 @@ bool RageSurfaceUtils::SaveJPEG( RageSurface *surface, RageFile &f, bool bHighQu
jpeg::jpeg_set_defaults(&cinfo);
if( bHighQual )
jpeg::jpeg_set_quality( &cinfo, 150, jpeg::TRUE );
jpeg::jpeg_set_quality( &cinfo, 150, TRUE );
else
jpeg::jpeg_set_quality( &cinfo, 70, jpeg::TRUE );
jpeg::jpeg_set_quality( &cinfo, 70, TRUE );
jpeg_RageFile_dest( &cinfo, f );
/* Start the compressor. */
jpeg::jpeg_start_compress( &cinfo, jpeg::TRUE );
jpeg::jpeg_start_compress( &cinfo, TRUE );
/* Here we use the library's state variable cinfo.next_scanline as the
* loop counter, so that we don't have to keep track ourselves.