diff options
Diffstat (limited to 'vcl/source/filter/jpeg/jpegc.cxx')
-rw-r--r-- | vcl/source/filter/jpeg/jpegc.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/filter/jpeg/jpegc.cxx b/vcl/source/filter/jpeg/jpegc.cxx index 3f52a2f024b9..6cbb5899d855 100644 --- a/vcl/source/filter/jpeg/jpegc.cxx +++ b/vcl/source/filter/jpeg/jpegc.cxx @@ -217,8 +217,8 @@ void ReadJPEG( JPEGReader* pJPEGReader, void* pInputStream, long* pLines, jpeg_destroy_decompress( &cinfo ); } -long WriteJPEG( JPEGWriter* pJPEGWriter, void* pOutputStream, - long nWidth, long nHeight, long bGreys, +bool WriteJPEG( JPEGWriter* pJPEGWriter, void* pOutputStream, + long nWidth, long nHeight, bool bGreys, long nQualityPercent, long aChromaSubsampling, css::uno::Reference<css::task::XStatusIndicator> const & status ) { @@ -230,7 +230,7 @@ long WriteJPEG( JPEGWriter* pJPEGWriter, void* pOutputStream, if ( setjmp( jerr.setjmp_buffer ) ) { jpeg_destroy_compress( &cinfo ); - return 0; + return false; } cinfo.err = jpeg_std_error( &jerr.pub ); @@ -295,7 +295,7 @@ long WriteJPEG( JPEGWriter* pJPEGWriter, void* pOutputStream, jpeg_finish_compress(&cinfo); jpeg_destroy_compress( &cinfo ); - return 1; + return true; } long Transform(void* pInputStream, void* pOutputStream, long nAngle) |