summaryrefslogtreecommitdiff
path: root/pcl/rtgmode.c
AgeCommit message (Collapse)AuthorFilesLines
2012-02-02Add 4 new raster decompression methods to PCL.Henry Stiles1-2/+3
HPGL/2 and RTL plotters support the following decompression methods: uncompressed block (#4), CCITT group 3 1 dimensional (#6), CCITT group 3 2 dimensional (#7), CCITT group 4 2 dimensional (#8). These have gotten little testing we only have a couple test files at the current time.
2012-01-09Presentation mode 3 and clipping when the cap is coincident with theHenry Stiles1-4/+11
logical page is not seen in the HPGL-2/RTL examples we have. There might be something more complicated going on here, it would be difficult to determine without a device to run experiments.
2011-11-10Squash warnings in pcl/pxl.Robin Watts1-5/+5
Mostly making type coercions explicit.
2011-04-19Indent with spaces and strip trailing whitespace.Tor Andersson1-54/+51
2010-11-15Fixes bug 689361 - The HP origin in raster presentation mode 3 is offHenry Stiles1-2/+20
by 1 device pixel. We now emulate this behavior and correctly print the test files in the bug at 600 dpi. Many regression files will shift by one pixel with this change. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11898 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-09-30Finishes up the reference counting fix for bug #690785. No expectedHenry Stiles1-2/+9
differences. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10103 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-09-28The last change to rtgmode.c, revision 10098, was incorrect. TheHenry Stiles1-1/+2
routine to end raster mode should not be called unless the pcl interpreter is in raster graphics mode. Surprising this did not result in regressions. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10100 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-09-28Fixes part of 690785. End graphics mode when pcl exits, no expectedHenry Stiles1-0/+4
differences. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10098 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-09-25Replace the 'private' define with the now standard C keyword 'static'.Ralph Giles1-14/+14
The compilers we support have supported static for some time now, so it makes sense to use it by default. This also makes the code less idiomatic, and removes one of the obstacles to compiling Ghostscript as C++. The patch also removes support for compilation with -dNOPRIVATE, which is not longer necessary with modern debuggers. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2923 06663e23-700e-0410-b217-a244a6096597
2007-03-13The raster width and height commands were incorrectly parsed asHenry Stiles1-2/+2
integers. Fixes pcl ATS file PM707122.prn. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2795 06663e23-700e-0410-b217-a244a6096597
2006-09-25Changes attempt to emulate HP's behavior with respect to rasterStefan Kemper1-33/+57
scaling when the destination width is set but the destination height is not, and a rotated page orientation and the raster origin is at the logical page boundary. This undocumented 1/6" margin shift affects the scale factors The emperical testing is incomplete as the actual HP algorithm has not been discovered yet. Progressions: CET 21-11 git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2592 06663e23-700e-0410-b217-a244a6096597
2006-09-12Raster resolution was allowing (600/7)dpi an illegal resolution for pcl.Stefan Kemper1-6/+6
pclcet 21.01 pg 12 git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2579 06663e23-700e-0410-b217-a244a6096597
2006-09-07Merge the gs853merge branch down into the trunk. This ports ghostpcl andRalph Giles1-4/+4
ghostxps to build against a branch of ghostscript close it its current mainline (around r7000) between Ghostscript 8.54 and 8.55. This mostly consists of removing the memory pointers from many calls as well as a few other api changes, as well as some makefile updates, which were skewed between the branches. Nevertheless this is a big merge and there are likely to be a few mistakes. The previous trunk is tagged as /tags/ghostpcl-pre855merge for comparision. Both pcl6 and pspcl6 build and run with the Artifex font scaler (the native gs one). pcl6 compiles but does not link with ufst. pspcl6 does not compile with ufst, but that's not too different from what was happening in the branch. Fixing this will of course come next. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2566 06663e23-700e-0410-b217-a244a6096597
2006-08-23Raster resolution without parameters defaults to 75dpi.Stefan Kemper1-1/+2
Raster height > raster sent and source transparency has a optimized path for drawing a white rectangle to "complete" the missing raster. There is still a bug where the right color is black or pen 0 has color and the rectangle should be color instead of white. Fixes: 21-01 page 8 21-10 page 11, 12 git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2531 06663e23-700e-0410-b217-a244a6096597
2006-07-31pctext.c: corrects comment.Henry Stiles1-1/+1
rtgmode.c: The unusual behavior that does not allow raster scaling if the palette is fixed (not writable) only applies to implicit raster entry on the HP Color Laserjet 4600. Progressions in the following cet files: 15-01.BIN 21-03.BIN 22-05.BIN 22-10.BIN 22-13.BIN 22-15.BIN 22-20.BIN git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2481 06663e23-700e-0410-b217-a244a6096597
2006-06-19pxink.c - type error resulted in many color problems in the pxl cet.Henry Stiles1-0/+1
pl.mak - version update. The remaining modified files address pcl problems that prevented complete testing of the pcl 5c cet. SI and SR commands now return a range error for 0 arguments. And yet another motion mode has been added to pcl (see comments in code). This prevents 17-01.BIN from annoyingly printing an extra ~500 blank pages. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2414 06663e23-700e-0410-b217-a244a6096597
2006-04-11more awkward fixes for pathological cases from the cet. Handle the case of ↵Henry Stiles1-0/+4
0 area src raster dimensions, and what to do for font height 0. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2354 06663e23-700e-0410-b217-a244a6096597
2005-03-02Fixed missing paren copiler error in last commit.Stefan Kemper1-1/+1
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2227 06663e23-700e-0410-b217-a244a6096597
2005-03-02Changed pcl raster height,width calculation to have a minimum size of 1 pixel.Stefan Kemper1-2/+3
Previous calculation could occasionally comute a zero width raster. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2226 06663e23-700e-0410-b217-a244a6096597
2004-12-30more warning cleanup.Henry Stiles1-1/+0
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2172 06663e23-700e-0410-b217-a244a6096597
2003-09-06Added pl_stdio under the gs_memory_t. This provides a singleStefan Kemper1-13/+13
interface to stdin stdout stderr that is passed to all consumers. Pulled similar functionality from gs_main_instance. Removed gsmemraw abstract base class, it's functionality is in gs_memory_t. This prevents inheritance below gs_memory_t which is the base memory class. Started removing globals. gs_next_id() is now instance scoped. Each instance gets its own library/memory space with ids starting a 1. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1942 06663e23-700e-0410-b217-a244a6096597
2002-08-01We no longer use the bounding box device. Page marked status is nowHenry Stiles1-19/+2
checked directly in pcl. Several open problems exist in this implementation and will be fixed shortly. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1693 06663e23-700e-0410-b217-a244a6096597
2002-02-06Pulled out incorrect performance optimization.Stefan Kemper1-0/+3
Setting mark == true is required by the graphics library for the combination of monochrome devices, non-marked destination, and xor destination rops. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1592 06663e23-700e-0410-b217-a244a6096597
2001-05-10make tranlation components in ctm integral after the flurry ofHenry Stiles1-0/+2
tranformation leading from page ctm to raster ctm. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1343 06663e23-700e-0410-b217-a244a6096597
2001-04-02warning fixes.Henry Stiles1-4/+0
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1293 06663e23-700e-0410-b217-a244a6096597
2001-03-23Added new copyrightStefan Kemper1-3/+12
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1283 06663e23-700e-0410-b217-a244a6096597
1999-11-10Not properly converting coordinates from raster space to device space,Henry Stiles1-10/+6
in some cases. Problem introduced with the last round of performance improvements. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1024 06663e23-700e-0410-b217-a244a6096597
1999-11-02Special speedup to handle an unusual class of pcl files that useHenry Stiles1-1/+30
opaque source and transparent pattern raster with no background, we use the pages bounding box to conservatively determine if the region of interest (the area the raster will cover) is blank, then we can use a simpler raster algorithm. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1014 06663e23-700e-0410-b217-a244a6096597
1999-10-25Raster state's graphics margin was not being reset when a pcl resetHenry Stiles1-0/+1
was issued, potentially resulting in an obscure bug. If the margin was set in raster mode and raster mode is subsequently entered implicitly, after a reset, the graphics margin was improperly retained. Running the fts test panels 2278-83 immediately followed by fts panel 2290 improperly retains the graphics margin which resulting indirectly in a misplaced vertical line. The probability of this occurring in any real pcl file is very low. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1001 06663e23-700e-0410-b217-a244a6096597
1999-05-17raster source width and source height were calculated incorrectly whenHenry Stiles1-3/+2
not given explicity. This caused the bounds of the image to be larger than the extant the of the clipping rectangle for the page, resulting in expensive and unnecessary calls to gx_default_fill_triangle from the bbox device. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@840 06663e23-700e-0410-b217-a244a6096597
1999-05-05Fixes 2 problems with polyline encoding: After PE is executed, theHenry Stiles1-10/+10
previous plotting mode (absolute or relative) is restored, but the pen up and down status is maintained. Simplification of RTL configurations - allows dynamic selection of commands in pcl or rtl mode. The rtl interpreter will now run without TrueType fonts being loaded, only stick and arc fonts are accessed through hpgl's LB instruction. Unnecessary path clearing removed when plot mode changes. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@831 06663e23-700e-0410-b217-a244a6096597
1999-04-13WARNING: changes pending - do not release. First stable pcl checkinHenry Stiles1-3/+4
with no statics and general code clean up. Modifications for pcl raster, parser, color, foreground, palette and hpgl/2 parser. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@806 06663e23-700e-0410-b217-a244a6096597
1999-04-02Static removal phase 2. Moves pcl cursor (cap) back into pcl's state,Henry Stiles1-4/+4
along with the cursor stack and stack size. Also, PCL was referencing the state using the names pcs or pcls, now we use pcs only. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@797 06663e23-700e-0410-b217-a244a6096597
1999-03-16Fix to properly clip rasters. A detailed explanation of this changeJan Stockenius1-2/+10
is in the header file pcl/rtrstst.h, item 4. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@772 06663e23-700e-0410-b217-a244a6096597
1999-02-25rtgmode.c was truncated at the last checkin (not analyzed).Henry Stiles1-0/+55
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@739 06663e23-700e-0410-b217-a244a6096597
1999-02-25Fixes ats file floating poing rounding and truncating error. For theJan Stockenius1-57/+2
particular transformation in effect, the initial horizontal position of 7008 centi-points would come back as 7007.9994... centi-points, which was converted to 7007 centipoints, which would come back as 7006.9994... centi-points, and so on. The process finally stopped at about 6600 centi-points, due to a change in the least significant bit of the tx field of transformation matrix. Now we round the calculated centipoint position before converting to an integer. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@738 06663e23-700e-0410-b217-a244a6096597
1998-11-24changes #inlclude to 8.3Henry Stiles1-1/+1
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@551 06663e23-700e-0410-b217-a244a6096597
1998-09-18Changes a variable name from fixed to pfixed to avoid a spuriousHenry Stiles1-20/+4
warning from the Solaris C compiles. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@435 06663e23-700e-0410-b217-a244a6096597
1998-09-04Modified gmode_do_reset to support overlay macros.Jan Stockenius1-1/+5
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@364 06663e23-700e-0410-b217-a244a6096597
1998-08-17pcl045 checkin.Henry Stiles1-28/+38
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@314 06663e23-700e-0410-b217-a244a6096597
1998-08-10This is the first archived release of jan's pcl5c code. There is noHenry Stiles1-0/+681
version number yet. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@289 06663e23-700e-0410-b217-a244a6096597