summaryrefslogtreecommitdiff
path: root/gs
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>2011-01-03 18:58:00 +0000
committerHenry Stiles <henry.stiles@artifex.com>2011-01-03 18:58:00 +0000
commita7f41a58b8324ecf699d73b886bcacc8eeb091ff (patch)
treef0c05f84b72bb2e1e3356ca7368e17e72dbe558b /gs
parent507081863f96196646c6f3de2b9eca82e1812b3f (diff)
The optimization in gdevdgbr to detect a device with a "plain" cmyk 1
bit to rgb mapping was broken because the procedure cmyk_1bit_map_color_rgb() is obsolete. The hack here is to detect output formats compatible with gx_get_bits_copy_cmyk_1bit() which is significantly faster since it does not have to call the device color decode procedure. The device API should have a member that indicates the most frequently encountered pixel organizations. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11991 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs')
-rw-r--r--gs/base/gdevdgbr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gs/base/gdevdgbr.c b/gs/base/gdevdgbr.c
index 7e7d79b20..151ece960 100644
--- a/gs/base/gdevdgbr.c
+++ b/gs/base/gdevdgbr.c
@@ -546,7 +546,7 @@ gx_get_bits_native_to_std(gx_device * dev, int x, int w, int h,
/* Check for the one special case we care about. */
if (((options & (GB_COLORS_RGB | GB_ALPHA_FIRST | GB_ALPHA_LAST))
== GB_COLORS_RGB) &&
- dev_proc(dev, map_color_rgb) == cmyk_1bit_map_color_rgb) {
+ dev_proc(dev, map_cmyk_color) == cmyk_1bit_map_cmyk_color) {
gx_get_bits_copy_cmyk_1bit(dest_line, raster,
src_line, dev_raster,
src_bit_offset & 7, w, h);