Commit graph

62 commits

Author SHA1 Message Date
Stephan Bergmann
38747916d6 Make LineTest::testCornerCases succeed again after last basebmp fix.
Though it looks wrong that rtl_allocateMemory(0) == 0.
2011-12-13 17:08:33 +01:00
Michael Meeks
cefb414b37 handle failed bitmap storage allocation gracefully 2011-12-13 15:54:28 +00:00
Thorsten Behrens
a6a391da8d Put BitmapDevice::getPixelData() back.
Slight tweak of d0d62edf3f - getPixel()
and getPixelData() are complementary functions, similar in spirit
to const and non-const getters. Added unit test for it to avoid
flagging it for removal again.
2011-11-04 10:40:08 +01:00
Joseph Powers
d0d62edf3f Cleanup basebmp a little
I removed 2 unused headers.

I also stopped delivering a lot of headers that no one outside of basebmp
cared about.

I also removed the unused methods:
  basebmp::BitmapDevice::getPaletteEntryCount() const
  basebmp::BitmapDevice::getPixelData(basegfx::B2IPoint const&)
2011-11-03 20:46:00 -07:00
Thorsten Behrens
f7975d2335 Fix one more subtlety around B2IBox / B2IRange changes.
The Cohen/Sutherland clip flag routine was not aware of B2IBox,
thusly yielding incorrect line clipping for BitmapDevice software
rendering. Cleaned that up, added some more unit tests around the
problem, and removed the now-extraneous maLineClip member from the
bitmap device.
2011-11-03 15:02:00 +01:00
Thorsten Behrens
1e297aef53 Move BitmapDevice to use B2IBox instead of B2IRange.
Semantically, B2IBox represents a pixel rect much better than
B2IRange - replaced all occurences in and around the software
renderer, and client code.
2011-11-02 23:58:28 +01:00
Thorsten Behrens
3c1b4b6ef7 Keep basebmp free of naked ptrs.
Moved the implementation detail that SalFrames lifetime is handled
manually in vcl out of basebmp & into vcl. Added lightweight wrapper
class to decouple damagetracker lifetime from GtkFrame lifetime.
2011-11-02 23:58:27 +01:00
Thorsten Behrens
207bcfc5b9 Revert "basebmp: B2IRange::isEmpty is surprisingly, unhelpfully lame - workaround"
This reverts commit 69e4dd1206.
2011-11-02 23:58:27 +01:00
Michael Meeks
69e4dd1206 basebmp: B2IRange::isEmpty is surprisingly, unhelpfully lame - workaround 2011-10-25 13:41:54 +01:00
Matúš Kukan
e21822008d export debugDump used for debugging 2011-09-01 15:46:11 +02:00
Bjoern Michaelsen
a233dac065 resyncing to master 2011-07-21 18:56:16 +02:00
Michael Meeks
a206e2afb0 initial cut at damage tracking support 2011-07-12 20:34:22 +01:00
Bjoern Michaelsen
941020379b Merge branch 'master' into feature/gnumake4
Conflicts:
	basebmp/prj/d.lst
	basebmp/test/basictest.cxx
	basebmp/test/makefile.mk
	basegfx/inc/basegfx/basegfxdllapi.h
	basegfx/inc/basegfx/tools/debugplotter.hxx
	basegfx/inc/basegfx/tuple/b2ituple.hxx
	basegfx/prj/d.lst
	basegfx/source/numeric/makefile.mk
	basegfx/source/polygon/makefile.mk
	basegfx/source/range/makefile.mk
	basegfx/source/raster/makefile.mk
	basegfx/source/tuple/makefile.mk
	basegfx/source/vector/makefile.mk
	basegfx/test/basegfx1d.cxx
	basegfx/test/makefile.mk
	basegfx/util/makefile.mk
	canvas/Library_canvasfactory.mk
	canvas/Module_canvas.mk
	canvas/prj/build.lst
	canvas/prj/d.lst
	canvas/source/cairo/cairo_canvashelper_texturefill.cxx
	canvas/source/cairo/makefile.mk
	canvas/source/tools/makefile.mk
	comphelper/qa/string/makefile.mk
	cppcanvas/Module_cppcanvas.mk
	cppcanvas/inc/cppcanvas/cppcanvasdllapi.h
	cppcanvas/prj/build.lst
	cppcanvas/prj/d.lst
	cppcanvas/source/mtfrenderer/makefile.mk
	cppcanvas/util/makefile.mk
	i18npool/source/search/makefile.mk
	regexp/Library_regexp.mk
	regexp/prj/d.lst
	sax/CppunitTest_sax.mk
	sax/Library_sax.mk
	sax/prj/d.lst
	sax/qa/cppunit/test_converter.cxx
	sax/source/expatwrap/attrlistimpl.hxx
	sax/util/makefile.mk
	svtools/Library_svt.mk
	tools/Executable_sspretty.mk
	ucbhelper/prj/d.lst
	ucbhelper/source/provider/configureucb.cxx
	ucbhelper/source/provider/provconf.cxx
	ucbhelper/util/makefile.mk
	unotools/Library_utl.mk
	unotools/Module_unotools.mk
	unotools/Package_inc.mk
	unotools/prj/build.lst
	vcl/Library_desktop_detector.mk
	vcl/Library_vcl.mk
	vcl/Library_vclplug_gtk.mk
	vcl/aqua/source/gdi/salprn.cxx
	vcl/inc/aqua/saldata.hxx
	vcl/unx/generic/gdi/salgdi3.cxx
2011-06-19 12:47:44 +02:00
Mathias Bauer
4265f28d82 CWS gnumake4: convert basebmp to new build system [hg:a0f3dc4a5f5a] 2011-06-16 13:02:37 +02:00
Caolán McNamara
43bc8a784e make possible to build with c++0x 2010-11-23 15:47:19 +00:00
Povilas Kanapickas
c300e27f5c Cleanse non-compiled code
Removed if-deffed code from LibO libs, enabled if-deffed code again
in test/playground files
2010-10-19 01:59:03 +02:00
Sebastian Spaeth
4905a19032 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-14 17:02:15 +02:00
Jens-Heiner Rechtien
8764506704 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Rüdiger Timm
7f5f6b548d CWS-TOOLING: integrate CWS cmcfixes50
2008-11-10 13:31:50 +0100 cmc  r263517 : gio doesn't do anything useful for remote stuff wrt info
2008-11-06 00:11:47 +0100 cmc  r263359 : #i93436# pile of other 64bit new gcc warnings
2008-11-05 00:39:03 +0100 cmc  r263340 : i95856 let a ppc64 vanilla build succeed
2008-11-04 14:00:25 +0100 cmc  r263320 : #i93436# useless const
2008-11-04 11:53:10 +0100 cmc  r263314 : #i93436# ambiguous
2008-11-04 11:48:05 +0100 cmc  r263313 : #i93436# add some braces
2008-11-04 11:29:24 +0100 cmc  r263312 : #i93436# ambiguous
2008-11-04 10:53:46 +0100 cmc  r263311 :
2008-11-10 15:06:12 +00:00
Rüdiger Timm
03be7f057a #i10000# Do not use '-xalias_level=compatible' for old Sun Studio 8 compiler. 2008-10-30 14:29:40 +00:00
Rüdiger Timm
0b3f346d17 CWS-TOOLING: integrate CWS basebmpunittestfix 2008-10-28 16:38:38 +00:00
Oliver Bolte
3735d9d387 CWS-TOOLING: integrate CWS cmcfixes49 2008-10-10 13:02:43 +00:00
Kurt Zenker
1ad617fd17 INTEGRATION: CWS canvas05 (1.30.4); FILE MERGED
2008/04/21 07:51:13 thb 1.30.4.2: RESYNC: (1.30-1.31); FILE MERGED
2007/10/01 12:21:25 thb 1.30.4.1: #i80285# Merged nonzero winding rule feature from picom
2008-06-24 10:53:31 +00:00
Rüdiger Timm
be19dc5e54 INTEGRATION: CWS hr51 (1.7.8); FILE MERGED
2008/06/06 14:36:04 hr 1.7.8.1: #i88947#: Solaris 64 bit support
2008-06-16 13:14:13 +00:00
Rüdiger Timm
d5f9123c30 INTEGRATION: CWS hr51 (1.31.6); FILE MERGED
2008/06/06 14:36:04 hr 1.31.6.1: #i88947#: Solaris 64 bit support
2008-06-16 13:13:48 +00:00
Rüdiger Timm
2a194571d5 INTEGRATION: CWS changefileheader (1.1.46); FILE MERGED
2008/03/31 13:07:57 rt 1.1.46.1: #i87441# Change license header to LPGL v3.
2008-04-11 07:34:25 +00:00
Rüdiger Timm
06566ee77a INTEGRATION: CWS changefileheader (1.2.46); FILE MERGED
2008/03/31 13:07:57 rt 1.2.46.1: #i87441# Change license header to LPGL v3.
2008-04-11 07:33:30 +00:00
Rüdiger Timm
07f7de0c55 INTEGRATION: CWS changefileheader (1.6.42); FILE MERGED
2008/03/31 13:07:57 rt 1.6.42.1: #i87441# Change license header to LPGL v3.
2008-04-11 07:31:22 +00:00
Rüdiger Timm
039178868b INTEGRATION: CWS changefileheader (1.7.42); FILE MERGED
2008/03/31 13:07:57 rt 1.7.42.1: #i87441# Change license header to LPGL v3.
2008-04-11 07:30:50 +00:00
Rüdiger Timm
18490cb4ac INTEGRATION: CWS changefileheader (1.30.16); FILE MERGED
2008/03/31 13:07:57 rt 1.30.16.1: #i87441# Change license header to LPGL v3.
2008-04-11 07:30:29 +00:00
Jens-Heiner Rechtien
1315f21903 INTEGRATION: CWS pj83 (1.27.2); FILE MERGED
2007/07/31 20:02:34 thb 1.27.2.2: RESYNC: (1.27-1.29); FILE MERGED
2007/07/31 15:40:29 thb 1.27.2.1: #i80150# Applied er's patch to make this build for gcc3.3 again
2007-08-03 11:27:01 +00:00
Oliver Bolte
a974e55a3f INTEGRATION: CWS aw051 (1.26.18); FILE MERGED
2007/06/07 11:44:20 aw 1.26.18.1: #i77162# adaptions to changed B2DPolygon bezier handling
2007-07-18 10:00:18 +00:00
Rüdiger Timm
be9e63de9c INTEGRATION: CWS aquavcl01 (1.26.22); FILE MERGED
2007/06/22 19:06:25 thb 1.26.22.3: #i78704# Unified the two 32bpp formats
2007/06/22 15:41:58 pl 1.26.22.2: #i78704# thb: fix xor clipping
2007/06/21 09:00:07 pl 1.26.22.1: #i78704# add a new pixelformat, minor cosmetics
2007-07-05 07:55:38 +00:00
Jens-Heiner Rechtien
0f8f7ae16e INTEGRATION: CWS basebmp01 (1.26.20); FILE MERGED
2007/05/22 09:59:18 thb 1.26.20.1: #147378# Added support for foreign formats (via GenericColorImageAccessor); fixed typos in CompositeIterator and StridedArrayIterator; fixed comparisons for (Packed)PixelIterator and StridedArrayIterator (which got negative strides wrong); avoiding unnecessary copying in scale_image() now; cleaned up bitmapdevice.cxx from cruft/ad hoc debug code; made unit tests run again
2007-06-27 11:42:01 +00:00
Oliver Bolte
bcd8527462 INTEGRATION: CWS sb59 (1.5.4); FILE MERGED
2006/09/01 08:34:02 sb 1.5.4.3: #i67535# Made code warning-free (GCC 4.0.3).
2006/08/31 11:08:52 thb 1.5.4.2: #i69122# msvc has no working llabs
2006/08/30 22:52:04 thb 1.5.4.1: #i69122# Made basebmp compile warning-free
2006-10-12 12:47:55 +00:00
Oliver Bolte
a2eff6fb3c INTEGRATION: CWS sb59 (1.6.4); FILE MERGED
2006/09/04 09:44:46 thb 1.6.4.1: #i69182# Removed SISSL license header
2006-10-12 12:47:41 +00:00
Thorsten Behrens
faa4280d0a #i65904# Made code compile warning-free for MSVC; removed inline statement from the longer functions 2006-07-28 11:43:20 +00:00
Thorsten Behrens
8ce0bf508e #i10000# Minor build fixes (forgot the SunCC-only templates) 2006-07-28 08:47:53 +00:00
Thorsten Behrens
8c044545bb #i65904# Dumped basegfx polygon raster converter in favor of a specialized solution; constructing all accessors with passed parameter now for the BitmapRenderer; significantly improved test coverage for polygon rasterizing 2006-07-27 10:35:32 +00:00
Thorsten Behrens
9e67e628d6 #i65904# Compiler compatibility changes: made the BOOST_NO_MEMBER_TEMPLATE_FRIENDS path actually work; added SunCC kludge for nested template as function template parameter problem; corrected blend_functor specialization to make msvc happy 2006-07-21 19:57:06 +00:00
Thorsten Behrens
631f64a394 #i65904# Replaced vigra::resizeImageNoInterpolation() with own scaleImage() - the case size <2 does happen sometimes 2006-07-14 13:22:58 +00:00
Thorsten Behrens
0177db3f91 #i65904# Swapped mask polarity - now, a zero in the mask denotes opacity; minor code tidying; made drawMaskedBitmap() handle a few more generic cases; switched 24bpp to BGR; adapted tests to modified mask polarity 2006-07-13 11:03:26 +00:00
Thorsten Behrens
053fdb6c0d #i65904# Fixed operator+=/-= on PackedPixelRowIterator (wrong overflow handling & forgot to handle negated cases); fixed typo for paletteformats (ignoring bit gravity); made drawMaskedBitmap() work for more cases; improved tests 2006-07-12 21:47:21 +00:00
Thorsten Behrens
41aac5e01a #i65904# Finished drawMaskedBitmap(); reorganized accessor functors; added test case for drawMaskedBitmap() 2006-07-12 14:09:45 +00:00
Thorsten Behrens
b97886a193 #i65904# Finished drawMaskedColor() support; simplified iterator/accessor/range setup for vigra algorithms; sanitized typedefs for BitmapRenderer 2006-07-11 14:33:05 +00:00
Thorsten Behrens
01878a9bdd #i65904# Consistently named constants; added rectangular device subsetting to BitmapDevice; moved spreaded pixel format configuration points into a single traits template (per format); slightly improved cross-format support 2006-07-11 10:39:41 +00:00
Thorsten Behrens
8b7ded16f1 #i65904# Reworked accessor framework, is now a hierarchy of nested functionality; added traits for color, iterator and accessor behaviour; finished missing bitmap formats, slightly changed set of predefined formats; swapped order of xor/palette accessor application for the BitmapDevice, which should yield much more sensible results; added a few tests for the new formats 2006-07-06 09:02:07 +00:00
Thorsten Behrens
35320797f8 #i65904# Moved vigra/template-depending parts out of color.hxx into colormisc.hxx 2006-06-30 12:36:14 +00:00
Thorsten Behrens
6928d01f7a #i65904# Fixed ugly typos in clippedLine clipping; improved docs; added testcases for fixed bugs; corrected clip bounds for line and polyline rendering 2006-06-30 10:05:21 +00:00
Thorsten Behrens
0535516a2f #i65904# Added more docs; made clip masks for all cases (except masked bitmap); removed hardcoded unsigned int in favor of a metafunction; added tests for clips; fixed Color channel modification methods 2006-06-28 15:50:20 +00:00