summaryrefslogtreecommitdiff
path: root/vcl/source/bitmap
AgeCommit message (Collapse)Author
2016-02-26loplugin:unuseddefaultparms in include/vcl (part2)Noel Grandin
including a fix for a rather glaring bug in BitmapTools.cxx Change-Id: Id9db990b993cfeea9039c5fbaaa91996adeae22a Reviewed-on: https://gerrit.libreoffice.org/22713 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-06vcl: bmpacc.hxx -> bitmapaccess.hxxChris Sherlock
Change-Id: I4bb19d6103c4a6a902d86b62a857e3478493924c
2016-01-11Remove BitmapFilterStackBlur, which is unused...Stephan Bergmann
...ever since it got introduced with 28c61871e876e6a2cac47439f768504b1a4c94a0 "vcl: stack blur implementation + basic test & performance test" Change-Id: I78672cf74c24930df92121baecb9886df4382036
2016-01-10Fix typosAndrea Gelmini
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-11vcl: extract scale convolution from bitmap to its own class/fileTomaž Vajngerl
Change-Id: Ibb10aa7450b78ca2709da38857f095ccbc679c54
2015-12-10tdf#96357 Switching icon theme doesn't update toolbar or statusbarMaxim Monastirsky
Regression of 6480b4d11a0cf2dd489d30b6290aa6d831704a45 Change-Id: I00141b3d9c5ea8dc813530a2ee095d61a35b3c04 Reviewed-on: https://gerrit.libreoffice.org/20591 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-12-02keep disable image at same depth as originalCaolán McNamara
that way the "preferred" image format for a platform for icons etc remains sticky Change-Id: Ia76af0b7c4f27650038cab214b6406b8ef1a5fc4
2015-11-23loplugin:loopvartoosmallNoel Grandin
Change-Id: I2aca12b994c2fd260803a8897b968ddac848f235
2015-11-23vcl: add colorizeImage to BitmapProcessorTomaž Vajngerl
Change-Id: Ic90368e83d7f9a187eb8404d8aaec4380ff5bcb1
2015-11-23vcl: Bitmap processor to create a disabled imageTomaž Vajngerl
Change-Id: Iba5d86988736fa28329e1ba2783dfb15e37815a8
2015-11-19move translating a command name to image name out of frameworkTomaž Vajngerl
This is the first step to decouple resolving of command names to image (icon) names. This is necessary to make allow additional processing of images before the image is passed on and better decision which image source to take. Change-Id: I129dc6a1ae812aaaca32696ef2a2749d5fa86a54
2015-11-08Leftover debug code? (causes -Werror,-Wformat)Stephan Bergmann
Change-Id: I8629481a454a668b3044eb6f56dbe43d4720e52a
2015-11-08support to load SVG images when loading from Image resourceTomaž Vajngerl
Change-Id: Ieda1c334d8d995c774381c52fa1d9aa11751c5ef
2015-10-27loplugin:unusedmethodsNoel Grandin
Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861 Reviewed-on: https://gerrit.libreoffice.org/19231 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12loplugin:loopvartoosmallStephan Bergmann
Change-Id: Ic3667c0daeeeb5b09eeaae66899affda65e2e9a5
2015-10-12vcl: recolor images (icons) to be more visible in a dark themeTomaž Vajngerl
This adds recoloring of images/icons (suited for breeze and sifr) so they are more visible when a dark theme is used (for example gtk3 can switch to a dark theme). LO must be started with environment variable VCL_ICONS_FOR_DARK_THEME set to 1. open issues - currently all images/icons are recolored but not all images should get recolored. Change-Id: Ibc42e30af79bb4c4f04c67b760019311b97b2cc6
2015-09-29Renamed wrongly prefixed boolean variablesStefan Heinemann
Fixed tdf#94269 Change-Id: I63109cc4e095bad680d7637a065080ea368860ae Reviewed-on: https://gerrit.libreoffice.org/18851 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-09-01Removed the crc table from the check-sum headerMarco Cecchetti
Now can be accessed through the vcl_get_crc64_table() function Change-Id: Ife85dde373a48652a0d67460184c1f325eb91702
2015-09-01moved chechsum.hxx in include/vclMarco Cecchetti
Change-Id: I70f82f16d5907ce0bbe2d838c4acee226886aab2
2015-09-01Added support for computing 64-bit checksum of bitmap in OpenGLMarco Cecchetti
Added a C++ and a GLSL implementation of a 64-bit CRC algorithm. Changed hardcoded checksum value in ooxmlimport unit test (testN777345). Change-Id: I16bb985a14866775efda49e21fe033ff64645896
2015-06-17Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe
This may reduce some degree of dependency on boost. Done by running a script like: git grep -l '#include *.boost/scoped_array.hpp.' \ | xargs sed -i -e 's@#include *.boost/scoped_array.hpp.@#include <memory>@' git grep -l '\(boost::\)\?scoped_array<\([^<>]*\)>' \ | xargs sed -i -e 's/\(boost::\)\?scoped_array<\([^<>]*\)>/std::unique_ptr<\2[]>/' ... and then killing duplicate or unnecessary includes, while changing manually m_xOutlineStylesCandidates in xmloff/source/text/txtimp.cxx, extensions/source/ole/unoconversionutilities.hxx, and extensions/source/ole/oleobjw.cxx. Change-Id: I3955ed3ad99b94499a7bd0e6e3a09078771f9bfd Reviewed-on: https://gerrit.libreoffice.org/16289 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-28new clang plugin: loopvartoosmallNoel Grandin
Idea from bubli - look for loops where the index variable is of such size that it cannot cover the range revealed by examining the length part of the condition. So far, I have only run the plugin up till the VCL module. Also the plugin deliberately excludes anything more complicated than a straightforward incrementing for loop. Change-Id: Ifced18b01c03ea537c64168465ce0b8287a42015
2015-05-25cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: I62076450ab77472bfd09b3fb9824f54b6ea1e0f7
2015-03-27more std::min and std::max fixesNoel Grandin
Change-Id: I4e654419221b39dfd64d85a18ae0919bbe2fab5a
2015-03-27fix std::min issueNoel Grandin
some tinderboxes are complaining with: could not deduce template argument for 'std::initializer_list<_Elem>' from 'int' Change-Id: Ib6bb1c9958a86fd7bb98d5ce855764f381d2ba43
2015-03-27fix tb56 buildNoel Grandin
Change-Id: I453d6e1840445a03c6918173dc93f32e3028ea74 error: no matching function for call to 'max(int, sal_Int32&)'
2015-03-27vcl: stack blur implementation + basic test & performance testTomaž Vajngerl
Change-Id: I793ed80a07d9488c5f75b3abdca6db344d80d3d8
2015-03-27vcl: tests for Bitmap, check for symmetry when scaling bitmapsTomaž Vajngerl
Change-Id: I53d6e70018477abb9f98140a52697c1de0f90934
2015-03-12Another "ancient compiler fix"Jan-Marek Glogowski
AKA fix Ubuntu Precise build... gcc 4.6 isn't able to copy a non-static reference, so convert the reference to a pointer. Change-Id: I222f32f59d44995eb45ccd6eb2dd5f65103b2ce8
2015-03-12loplugin:stringconcatStephan Bergmann
Change-Id: Idbc179459e574fa9bf2537cb215a012c105e0913
2015-03-12vcl: parallelize image scaling.Michael Meeks
(cherry picked from commit ffdf0ed4cd76188e780eceee4333f90a00217f9d) Change-Id: Ia452487c0c8c66a35c4b9fba225348bdef1a27f7
2015-01-01fdo#82870 scale "super" quality degradation bugTomaž Vajngerl
Change-Id: I132c046323e1c7805fc7ead6f247732c1843eb24
2014-10-14vcl: re-factor scaling to use a single fn. pointer based invocation.Michael Meeks
Change-Id: Ide61808dbfa82ce67794150f44b6bac4f3c8e302
2014-10-14vcl: Re-factor to use the ScaleContext to pass parameters.Michael Meeks
Change-Id: If4359a6b776b4a94a6934e9fd02ede475a0612a7
2014-10-14vcl: create a ScaleContext to share copy/paste Bitmap scaling code.Michael Meeks
Change-Id: I5a90b7c6065829d74c61b833f0551b8adc3f2711
2014-10-14vcl: hide bitmap helpers in an anonymous namespace.Michael Meeks
Change-Id: I96ad50f538cfb6ecd256c4268feb81796a135b2b
2014-06-26clang: Value stored to 'nSumG' is never readCaolán McNamara
yikes, well that was a worthwhile exercise Change-Id: I454c16ce8b307abfdd2db3d2e38f4d36fba429fa
2014-06-10coverity#1222225 Division or modulo by zeroCaolán McNamara
Change-Id: I9a60114833c22d498dbb6258fcb2ceac22c72751
2014-06-10coverity#1222226 Division or modulo by zeroCaolán McNamara
Change-Id: I45cbb8dbf2b9e7be6e8dda8603c2ef5f88507d04
2014-06-10coverity#1222227 Division or modulo by zeroCaolán McNamara
Change-Id: I96b74d164a582cac13c419267879619e6986d71f
2014-06-10coverity#1222228 Division or modulo by zeroCaolán McNamara
Change-Id: Icc2bc53a14503f723977dc62252f23327de2dc0d
2014-06-10coverity#1222229 Division or modulo by zeroCaolán McNamara
Change-Id: I97fd23d19a96665b91154ed260c677f0f76fee47
2014-06-10coverity#1222230 Division or modulo by zeroCaolán McNamara
Change-Id: I98ccd214be79f3d95c023fd5134d09c1cff3ee32
2014-06-10coverity#1222231 Division or modulo by zeroCaolán McNamara
Change-Id: Id914167a72782741e67ba97683445aec6151fdd6
2014-06-10coverity#1222232 Division or modulo by zeroCaolán McNamara
Change-Id: I4a3921df8e6510a37702ae8bd4856ba43c98213a
2014-06-10coverity#1222233 Division or modulo by zeroCaolán McNamara
Change-Id: I699dc60b67d9417a8ac3848c03d7352f9f8ff12d
2014-06-10coverity#1222234 Division or modulo by zeroCaolán McNamara
Change-Id: I2832f99c1b4117d1c6d4621f25339e5921d26cb1
2014-06-03vcl: Refactor scale "super" out of bitmap and make it independentTomaž Vajngerl
Introduce BitmapFilter as a general bitmap filtering class, and make scale "super" algorithem independent as BitmapScaleSuper which uses BitmapFilter as superclass. This is an ongoing work to make some bitmap algorithms structured and more independent from the big bitmap class This will make them easier to work with, test and optimize. Change-Id: I37d29709b2af95cab2f6da21129302f5be79318b