summaryrefslogtreecommitdiff
path: root/basebmp
AgeCommit message (Collapse)AuthorFilesLines
2015-04-27More loplugin:simplifyboolStephan Bergmann1-1/+1
Change-Id: Ibf09e039fe3947ce68fa2a784ca81b6ff7b13d82
2015-04-22Various #include <sal/log.hxx> fixupsStephan Bergmann1-0/+1
rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. Cleaned up some, but something like grep -FwL sal/log.hxx $(git grep -Elw \ 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx) shows lots more files that potentially need fixing before the include can be removed from rtl/string.hxx and rtl/ustring.hxx. Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann1-1/+1
Change-Id: I88949a300ebff7c0c37ec147ca50f08695db7775
2015-03-29Clean up template-parameter-dependent C-style castsStephan Bergmann1-1/+1
Change-Id: Ia1ab134a0afbeeb3ae40264bd4233a47df26b734
2015-03-27loplugin:staticfunctionNoel Grandin1-2/+2
Change-Id: I982ba552579019e4902ae59fddf14a6b34ba5954
2015-03-24loplugin:constantfunction: variousNoel Grandin1-5/+0
Change-Id: I6eddda9f4b31c7ce413c328b6a857a81bd222eed
2015-03-23drawing a vertical/horizontal line does not really damage 0 width/height areasCaolán McNamara1-2/+18
so follow the same logic as drawPixel which equally does not damage a 0 width and height point Change-Id: Ie2c400caf1ad2e3a874f92c6f90f5f071f9c95e3
2015-02-25rename BGRU to BGRXCaolán McNamara2-8/+8
Change-Id: I0f28b986542b4d30c0a2cb75e15fb258af98e9cd
2015-02-25rename BGRX32 etc to BGRA32Caolán McNamara1-4/+4
Change-Id: I60e1951fe56e4b00ee0caa142eb0e19dcb6d12b7
2015-02-25give basebmp a cairo compatible 24 bit surfaceCaolán McNamara2-3/+8
where each unit is actually 32bit with unused upper 8bit. Change-Id: I5c406cebe406d2db6fda73d744dfd22a99b80ba3
2015-02-24make ScanlineStride an argument to createBitmapDeviceCaolán McNamara9-46/+91
so we could create bitmap devices that have the same stride that cairo expects, provide getBitmapDeviceStrideForWidth to get a default value Change-Id: I7ecc6f54a734b3f6bed59c699ac3b482c4ad7c47
2015-01-20Some more loplugin:cstylecast: basebmpStephan Bergmann1-1/+1
Change-Id: I7e1e37110b9bd53a5eae543c854cc2c434a6b678
2015-01-13basebmap: 5e4a7a95027d979b3bdd729d7ebe950da1129b2b missed COM checkMichael Stahl1-0/+2
Change-Id: I6850d69089c4d0db06a22e14888f089406980c2c
2015-01-13Fix number of sections exceeded object file format limitDavid Ostrovsky1-0/+13
Change-Id: If81ebef14696c856374967e984138fbd25218a8c Reviewed-on: https://gerrit.libreoffice.org/13879 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-10-14basebmp: accelerated method to create a clipping device.Michael Meeks1-4/+23
This was some staggering proportion of tiled rendering documents with complex clipping; it seems 'clear' is not what memset is for 1bit clip masks. Change-Id: I9142ffb7d7016603feb7782d6f03b9992b9494e3
2014-08-28Fixed some CppunitTest namesStephan Bergmann1-6/+6
Change-Id: I57b039c7114c03944e8eaba9ca1bb81da563640a
2014-08-28keep nScanlineStride number saneCaolán McNamara1-5/+8
bff + valgrind Change-Id: I255a052251a6a0f1e4005b9cfb3b6ce00c6653ee
2014-07-03Remove empty gb_Module_add_targets,basebmp,Matúš Kukan1-3/+0
Change-Id: I2e05aeb16707f8e8e17e5379f4cfa01a0c431e14
2014-06-02fdo#68849: Add header guards to all include filesJens Carl1-0/+5
added header guards for directories basebmp/, chart2/, cppuhelper/, include/test/, io/test/, sax/test, shell/, writerfilter/, and xmlhelp/ Change-Id: I0e29a9b75c26d71f58aa98986b52f6d3b46015a6 Reviewed-on: https://gerrit.libreoffice.org/9615 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-04-19fixincludeguards.sh: basebmpThomas Arnhold1-3/+3
2014-04-19Remove gcc3 workaround for bug long since fixed in gccChris Sherlock1-4/+2
Change-Id: Ieb1c41481a79ab8713663caee3d5373640ff0ec8 Reviewed-on: https://gerrit.libreoffice.org/9102 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-04-09Missing includeStephan Bergmann1-0/+2
Change-Id: I7c3631fc8154daffa4236a16c761df85eba34de8
2014-03-29typo: optimisation -> optimizationThomas Arnhold1-1/+1
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann8-29/+29
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-02-27Drop deserted bmpdemoTakeshi Abe1-1230/+0
since 2007; https://issues.apache.org/ooo/show_bug.cgi?id=79031 Change-Id: Ie12d88a343591dee4c8c7411b356be2ca3311f29
2014-02-23Remove unneccessary commentsAlexander Wilms2-20/+20
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-27coverity#1078535 Division or modulo by zeroCaolán McNamara1-2/+10
Change-Id: Iab9bb56ce7646955d2592d7e9abdaf829ee1ec78
2013-11-11basebmp: include <> for external includesNorbert Thiebaud12-50/+50
Change-Id: I6f1f573662d5e759694c401598408df9fbb20be8
2013-10-31Resolves: #i123433# Detect pseudo-vertices at svg import...Armin Le Grand7-16/+22
unify svg:d handling, correct svg:d import for relative sub-polygons in svg import; changed default for moveto writes for svg:d in ODF to absolute (cherry picked from commit f15874d8f976f3874bdbcb53429eeefa65c28841) Conflicts: basegfx/inc/basegfx/polygon/b2dpolygontools.hxx basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx basegfx/source/polygon/b2dpolypolygontools.cxx basegfx/source/polygon/b2dsvgpolypolygon.cxx basegfx/source/polygon/b3dpolypolygontools.cxx basegfx/source/tools/makefile.mk basegfx/test/boxclipper.cxx basegfx/test/clipstate.cxx basegfx/test/genericclipper.cxx canvas/source/tools/surfaceproxy.cxx sdext/source/pdfimport/tree/drawtreevisiting.cxx sdext/source/pdfimport/tree/writertreevisiting.cxx xmloff/inc/xexptran.hxx xmloff/source/draw/XMLImageMapContext.cxx xmloff/source/draw/XMLImageMapExport.cxx xmloff/source/draw/shapeexport2.cxx xmloff/source/draw/shapeexport3.cxx xmloff/source/draw/xexptran.cxx xmloff/source/draw/ximp3dobject.cxx xmloff/source/draw/ximpshap.cxx xmloff/source/style/MarkerStyle.cxx xmloff/source/text/XMLTextFrameContext.cxx xmloff/source/text/txtparae.cxx Change-Id: I5171b4a3559ea116bea45152e1f2685666463635
2013-10-08Hanlde TopDown -> BottomUp conversion in basebmp DirectCopy logictsahi glik1-4/+18
Change-Id: Ic6b94e8f01c0151741626f8b50d69597cc401852 Reviewed-on: https://gerrit.libreoffice.org/6155 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2013-09-27Off-by-one errorStephan Bergmann1-2/+2
Change-Id: I84749158fb8dee3fec10869e0955177bbd917d59
2013-09-27Improve performance of copyArea(), especially relevant for mobile devices.tsahi glik1-21/+66
vigra::copyImage89 does not handle copy areas in the same image so the code checks whether the src and dst are same buffer and directs it to scaleImage() which is very slow. The whole concept of pixel accessors is a huge overhead in the case of direct pixel copy (vigra::copyImage is also using pixel accessors). The idea here is to identify when direct memory copy is applicable (when the format is an integral number of bytes per pixel, src.size==dst.size, and src.format==dst.format) and use direct memory block copy and not pixel-wise copy. The result is 100x faster than the vigra implementation. This direct copy is also handling the case when the src and dst are same buffer by copy it from bottom to top when needed and using memmove() instead of memcpy(). Change-Id: I8ec589463d6386db82777a916371a5ebbf9e2d50 Reviewed-on: https://gerrit.libreoffice.org/5707 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2013-07-18fdo#62475 removed pointless commentsJelle van der Waa3-9/+0
Change-Id: I85bee68e89c41642b2da72e11b695588b3dfe346
2013-07-18WaE: assuming signed overflow does not occur when assuming...Caolán McNamara1-2/+9
that (X + c) < X is always false [-Wstrict-overflow] Change-Id: I63880bf27ab7e34eb9e0be682b39b80b71d65103
2013-07-12Turn basebmp::Format into a proper enumStephan Bergmann11-112/+115
Change-Id: I4067c5039c7b5c74a1c144721dd7260de54dd2bf
2013-07-12THIRTYTWO_BIT_TC_MASK is the same as THIRTYTWO_BIT_TC_MASK_BGRAStephan Bergmann9-11/+11
Change-Id: I917c4136614664a1816769300707f170312c885d
2013-06-04Add test for basebmp memory clobber.Thorsten Behrens2-1/+17
Cloned bitmap devices may share the same chunk of memory, thus risking overwriting our own data when we copy stuff around. Now caught from unit tests. Change-Id: I33b1a0b5d17550cbc6eced8bae01ae5ab9ebce9d
2013-06-04Detect copyArea trying to operate on overlapping memory.Tsahi Glik1-4/+9
Equality test also needs to check if disjunct BitmapDevice instances might not actually share the same memory buffer. Change-Id: I09a93cb092a0039353be211ed053e991e7fe66f0
2013-04-24Don't point to inc directories that don't exist any longerTor Lillqvist2-10/+0
Change-Id: If783897a60a545baf3968c5eeccf80a1e186bc51
2013-04-24Don't point to inc directories that don't exist any longerTor Lillqvist1-5/+0
Change-Id: Ia160f0ee3e9480c60056d38bf11a6b139b53424f
2013-04-24gbuild: drop uses of removed packagesDavid Tardon2-4/+0
Change-Id: I400fad08c0ae7b6b34bad63693f54856867e4dac Reviewed-on: https://gerrit.libreoffice.org/3502 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-23execute move of global headersBjoern Michaelsen35-6429/+0
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
2013-04-15No need for Android, iOS or CROSS_COMPILING conditionals for unit testsTor Lillqvist1-6/+0
We don't run unit tests when cross-compiling anyway and since d4ea8c6b7ee32dfbe1525cae45ad44d411052c33 the corresponding .mk files aren't even read by Make. Change-Id: Icbee9ad51841d515a551e67708d9594358ce7e71
2013-04-12Nah, I don't need a getOffset(), but I do need a getBufferSize()Tor Lillqvist2-29/+49
To properly handle subsetted BitmapDevices in the iOS vcl backend I seem to need to know what the size of the full BitmapDevice is. I wasted at least one day on desperate hacking and debugging, trying to wrap my head around a misunderstanding of what a subsetted BitmapDevice is. I thought it involved coordinate offsetting... Change-Id: I83bf1a7d75ce192aaf21f1e408008e362fd6c6e6
2013-04-11Fix documentationTor Lillqvist1-2/+1
The value returned by getScanlineStride() is always positive even if internally the scanline stride is negative in the bottom-up case. Change-Id: Iaf394639d1e5a27d64b83f75c1d715a9860e492e
2013-04-11Add an accessor to get the offset of a subsetted BitmapDeviceTor Lillqvist2-0/+12
Change-Id: I8a4a588287a90c6953b367bb02e075ea58f13a96
2013-04-11Add debugging printout of subsetting informationTor Lillqvist1-1/+9
Change-Id: I6c37885823f14dcfbe750691dad27e094f46e66e
2013-03-27_USE_MATH_DEFINES is already taken care of by sal/config.hStephan Bergmann1-3/+2
Change-Id: Ib0dab05534c34eb407f3acee3b4a3638a36bdddc
2013-03-26Log also corresponding destructions of BitmapDeviceTor Lillqvist1-1/+2
Change-Id: Ic74032b430691215482172c3c5f834374d47873d
2013-03-25Add some debugging printoutTor Lillqvist3-15/+46
Change-Id: Iea0decde41be8b9325b19651433f1b3b79f851a9