diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-08-09 14:54:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-08-09 18:30:36 +0200 |
commit | f394b313ad9eac459e4765a639410ebd9278351a (patch) | |
tree | 6f32d055c17baaef670652f545eb5d9fd65d61b1 /vcl/source/filter | |
parent | e845507bc22a166ec172a4b4d9da120a16f8a964 (diff) |
Resolves: tdf#99286 for jpeg dpi use apis that know about MapUnit::MapPixel
move the code which can do this from sw to vcl
Change-Id: I9940fb80ecdbfe8f70afc500c691288ed0993701
Reviewed-on: https://gerrit.libreoffice.org/40925
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/filter')
-rw-r--r-- | vcl/source/filter/jpeg/jpegc.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/filter/jpeg/jpegc.cxx b/vcl/source/filter/jpeg/jpegc.cxx index c674c667c788..4305f065ed54 100644 --- a/vcl/source/filter/jpeg/jpegc.cxx +++ b/vcl/source/filter/jpeg/jpegc.cxx @@ -279,7 +279,7 @@ void ReadJPEG( JPEGReader* pJPEGReader, void* pInputStream, long* pLines, } bool WriteJPEG( JPEGWriter* pJPEGWriter, void* pOutputStream, - long nWidth, long nHeight, basegfx::B2DSize const & aPPI, bool bGreys, + long nWidth, long nHeight, basegfx::B2DSize const & rPPI, bool bGreys, long nQualityPercent, long aChromaSubsampling, css::uno::Reference<css::task::XStatusIndicator> const & status ) { @@ -315,8 +315,8 @@ bool WriteJPEG( JPEGWriter* pJPEGWriter, void* pOutputStream, jpeg_set_quality( &cinfo, (int) nQualityPercent, FALSE ); cinfo.density_unit = 1; - cinfo.X_density = aPPI.getX(); - cinfo.Y_density = aPPI.getY(); + cinfo.X_density = rPPI.getX(); + cinfo.Y_density = rPPI.getY(); if ( ( nWidth > 128 ) || ( nHeight > 128 ) ) jpeg_simple_progression( &cinfo ); |