summaryrefslogtreecommitdiff
path: root/vcl/source/filter/jpeg/JpegWriter.cxx
AgeCommit message (Collapse)AuthorFilesLines
2017-08-17remove UL/L suffixes from integer constants on the RHS of expressionsNoel Grandin1-3/+3
Change-Id: I899a8126c9d971601fea6c77eca165718aea0ac5 Reviewed-on: https://gerrit.libreoffice.org/41237 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-07-28loplugin:constparams handle constructorsNoel Grandin1-1/+1
had to change the structure of the plugin considerably, was too messy to structure it to do the calculations on a per-function basis Change-Id: I4edee7735f726101105c607368124a08dba21086 Reviewed-on: https://gerrit.libreoffice.org/40516 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-07-13loplugin:oncevar: empty strings: vclStephan Bergmann1-2/+1
Change-Id: Ic9a3b72dbff3333cba45b9ad4b75e8de12bc4c06
2017-02-09convert BmpConversion to scoped enumNoel Grandin1-1/+1
and drop unused 4BIT_TRANS and 1BIT_MATRIX enumerators Also fix a bug in x11::convertBitmapDepth where we were incorrectly passing BmpConversion enumeratirs to ReduceColors Change-Id: I903c6866750e46ee752e10a17c05fcaaf6b11242 Reviewed-on: https://gerrit.libreoffice.org/34062 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-05Change Read/Write access to Scoped Read/Write accessMark Page1-4/+2
Change-Id: I4834d057e1997710f5ac9691d6c3eecb24e26881 Reviewed-on: https://gerrit.libreoffice.org/31550 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-06-06tools: rename SvStream::Read/Write to ReadBytes/WriteBytesMichael Stahl1-2/+2
Change-Id: Ib788a30d413436aa03f813aa2fddcbc4d6cd2f9a Reviewed-on: https://gerrit.libreoffice.org/25972 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-25Convert BMP_FORMAT to scoped enumNoel Grandin1-1/+1
Change-Id: I751ab762b6e6f961e9e73a8a2ca92a3f5a5eb1c8 Reviewed-on: https://gerrit.libreoffice.org/25189 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-14tdf#85761 vcl: JPEG export does not save PPI values correctlyChris Sherlock1-1/+5
JPEG values are currently hardcoded to 96PPI when we export JPEGs. The Graphic class doesn't have an easy way to get the PPI, but this can actually be calculated from the pref size and pref map mode (no idea why it is called "Pref"). Interestingly, you need to get a multiplier to work this out, relative to units of 100th mm. The EPS filter code had a function that does exactly this, but it's entirely based on MapMode units so it was really implemented in the wrong class IMO. I have thus moved it out of PSWriter and into MapMode. This also fixes tdf#65695, which was partially fixed, but had the JPEG PPI hardcoded to 96dpi. Also fixes tdf#97481. Change-Id: Iedb674141dd4e22fcbfb7be357dc777f732aa3aa Reviewed-on: https://gerrit.libreoffice.org/22339 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2016-02-06vcl: bmpacc.hxx -> bitmapaccess.hxxChris Sherlock1-1/+1
Change-Id: I4bb19d6103c4a6a902d86b62a857e3478493924c
2016-01-11tdf#94831: Check for null mpReadAccess before first useMatúš Kukan1-21/+18
There was erroneously added code before check in 45e8e0fbee40f9a8d91f4c559c8bbb16dd7b3f36. Change-Id: Ie2e84cfc061097c25e5d799e9c388abd9724bd93
2016-01-08Revert "vcl: move filter headers to vcl/inc/filter"Chris Sherlock1-2/+2
Discussed on IRC - overwhelming consensus is to keep the headers where they were before. The main reason to keep them in the same directory is to keep headers as local as possible to the source files, unless something else needs to access it. The only thing that uses the headers is vc/workben/fftester.cxx I will work out how to get Doxygen to pick up these headers another way. This reverts commit 5d7772fc0464c867c5ad2f1e10ccabd7331f7efa. Change-Id: I45ee970722e27748ab8af8909ac49579dc47ef56 Reviewed-on: https://gerrit.libreoffice.org/21250 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-08vcl: move filter headers to vcl/inc/filterChris Sherlock1-2/+2
Change-Id: I0b2b12d3f5cc6e35b2d87adb39ad44ba287c9a01
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann1-6/+6
Change-Id: I05e89f9896170d4df3d1377549ea074f06b884a0
2015-06-07Remove include stdio (part8)Julien Nabet1-1/+0
Change-Id: I4ad581158fa68f30d07101697b716dc9b8fab746 Reviewed-on: https://gerrit.libreoffice.org/16139 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-04-02loplugin:staticmethodsNoel Grandin1-1/+1
Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann1-5/+5
Change-Id: Iad602cece6e328c7f5d5f36adb294c97b152ade3
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann1-1/+1
Change-Id: I17c57a85bcda98ef36ddefd6562d4681d0c7d5fc
2015-01-20Some more loplugin:cstylecast: vclStephan Bergmann1-6/+6
Change-Id: I74d35630b9fcdaa97af0b1f1e6d1e5c72488964d
2014-05-11upgrade to jpeg-9aThomas Arnhold1-1/+1
Includes some type conversion fixes. Change-Id: I84f886e9f922acd780d46baea97f2d87c5ac700b Reviewed-on: https://gerrit.libreoffice.org/9306 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-04-08Clean up function declarations and some unused functionsStephan Bergmann1-5/+0
Change-Id: I382289c7188dfdc9839ff9e6362b6e039ffc5f9e
2014-02-28sal_Bool -> bool in mostly vcl moduleChris Sherlock1-1/+1
Conflicts: include/vcl/settings.hxx svtools/source/table/tablecontrol_impl.cxx sw/source/core/frmedt/fecopy.cxx vcl/inc/canvasbitmap.hxx vcl/inc/headless/svpframe.hxx vcl/inc/unx/salframe.h vcl/inc/win/salframe.h vcl/inc/win/salprn.h vcl/inc/win/salvd.h vcl/osx/DragSource.cxx vcl/osx/DragSource.hxx vcl/osx/DropTarget.cxx vcl/osx/DropTarget.hxx vcl/osx/OSXTransferable.cxx vcl/osx/OSXTransferable.hxx vcl/osx/clipboard.cxx vcl/osx/clipboard.hxx vcl/osx/salprn.cxx vcl/qa/cppunit/canvasbitmaptest.cxx vcl/source/components/fontident.cxx vcl/source/control/edit.cxx vcl/source/control/spinfld.cxx vcl/source/gdi/gdimtf.cxx vcl/source/gdi/virdev.cxx vcl/source/helper/canvasbitmap.cxx vcl/source/window/dockwin.cxx vcl/unx/generic/dtrans/X11_selection.hxx vcl/unx/kde/UnxFilePicker.cxx vcl/unx/kde/UnxFilePicker.hxx vcl/unx/kde4/KDE4FilePicker.cxx vcl/unx/kde4/KDE4FilePicker.hxx vcl/unx/kde4/KDESalFrame.hxx Change-Id: I9866d985da86dea2a56feff23f91c1467a1636b0 Reviewed-on: https://gerrit.libreoffice.org/8219 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26Removed unnecessary comment decorations from VCL sourcesChris Sherlock1-1/+0
Conflicts: vcl/headless/svpgdi.cxx vcl/source/app/dbggui.cxx vcl/source/app/help.cxx vcl/source/app/idlemgr.cxx vcl/source/app/settings.cxx vcl/source/app/stdtext.cxx vcl/source/app/svdata.cxx vcl/source/app/svmain.cxx vcl/source/control/fixed.cxx vcl/source/control/ilstbox.cxx vcl/source/control/spinbtn.cxx vcl/source/filter/sgfbram.cxx vcl/source/filter/sgvmain.cxx vcl/source/filter/sgvtext.cxx vcl/source/filter/wmf/emfwr.hxx vcl/source/filter/wmf/winmtf.hxx vcl/source/filter/wmf/wmfwr.hxx vcl/source/fontsubset/cff.cxx vcl/source/fontsubset/fontsubset.cxx vcl/source/fontsubset/xlat.cxx Change-Id: Ifc4fa21e552a8b031645eb883bdc23563eebb602 Reviewed-on: https://gerrit.libreoffice.org/8357 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-21vcl: sal_Bool -> boolStephan Bergmann1-4/+4
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-06Make vcl/source/filter/jpeg/jpegc.c be C++ codeStephan Bergmann1-38/+18
...simplify the corresponding jpeg.h now that it deals in C++, and fold SetJpegPreviewSizeHint into ReadJPEG to avoid global static data. Change-Id: Id3721bdb37be05e3e6bbbaef3b0aa0c0e1a9ff5a
2014-01-30fdo#63154 Removed unused solar.h ref. in vclAlexandre Vicenzi1-2/+1
Change-Id: Ibbc80b09a288494baae4e5ebee4428a6a80a904a Reviewed-on: https://gerrit.libreoffice.org/7738 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-27coverity#708315 Uninitialized scalar fieldCaolán McNamara1-0/+1
Change-Id: I1a93fcb6107bdce10b1f967337e75c525ab24640
2013-06-02sal_Bool to boolTakeshi Abe1-1/+1
Change-Id: Ic4407aa95193f6ed1f3f854f3fa9fb50131e7511
2013-05-09make conversions between BitmapColor and sal_uInt8 explicitHerbert Dürr1-2/+2
Implicit conversions are a dangerous cause of confusion as seen in http://markmail.org/thread/a4copx2di7cxeowg and require tricky rewrites to work around them, this change cleans them up and disables them. (cherry picked from commit 2d9d5c8d6beb7fb0a7dafa0c1c4d10a25d7200fd) Conflicts: filter/source/graphicfilter/egif/egif.cxx filter/source/graphicfilter/epbm/epbm.cxx filter/source/graphicfilter/epgm/epgm.cxx filter/source/graphicfilter/ipbm/ipbm.cxx filter/source/graphicfilter/ipsd/ipsd.cxx sd/source/ui/slidesorter/view/SlsButtonBar.cxx svtools/source/filter/igif/gifread.cxx svtools/source/filter/jpeg/jpeg.cxx svtools/source/filter/wmf/winwmf.cxx svtools/source/graphic/grfmgr2.cxx vcl/inc/vcl/bmpacc.hxx vcl/inc/vcl/salbtype.hxx vcl/source/gdi/bitmap.cxx vcl/source/gdi/bitmap3.cxx vcl/source/gdi/outdev2.cxx Change-Id: I1d163c66782c2750aeee00725dbb2b614507c0d4 (cherry picked from commit ff80c37b18b941712fb967a0c1d48813b47c0583)
2013-04-21Split JpegWriter and JpegReader out from jpeg.cxx/hxxTomaž Vajngerl1-0/+274
jpeg.cxx/hxx contains classes JpegWriter and JpegReader which are considered private. Split this two classes and other related functions into its own files. Change-Id: I41c1139b30a4dc19e03b2232dfe0986cc05d0c08