diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-11-17 16:45:04 +0000 |
---|---|---|
committer | Michael Vrhel <michael.vrhel@artifex.com> | 2016-11-21 08:29:23 -0800 |
commit | c9d8618934ebf682f72dd9b3ebef48b2be535a8d (patch) | |
tree | 89ef2c7bd7f34b6240022d5b344287ad70ac7446 /devices/gdevbit.c | |
parent | b33ffc0e958b613cd6ba114d42720694b11219ff (diff) | |
download | ghostpdl-c9d8618934ebf682f72dd9b3ebef48b2be535a8d.tar.gz |
Change API for put_image
Diffstat (limited to 'devices/gdevbit.c')
-rw-r--r-- | devices/gdevbit.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/devices/gdevbit.c b/devices/gdevbit.c index 5a4b17546..ecf1a596f 100644 --- a/devices/gdevbit.c +++ b/devices/gdevbit.c @@ -777,9 +777,9 @@ bittags_print_page(gx_device_printer * pdev, FILE * prn_stream) } static int -bit_put_image(gx_device *pdev, const byte *buffer, int num_chan, int xstart, +bit_put_image(gx_device *pdev, const byte **buffers, int num_chan, int xstart, int ystart, int width, int height, int row_stride, - int plane_stride, int alpha_plane_index, int tag_plane_index) + int alpha_plane_index, int tag_plane_index) { gx_device_memory *pmemdev = (gx_device_memory *)pdev; byte *buffer_prn; @@ -791,9 +791,6 @@ bit_put_image(gx_device *pdev, const byte *buffer, int num_chan, int xstart, if (alpha_plane_index != 0) return 0; /* we don't want alpha, return 0 to ask for the */ /* pdf14 device to do the alpha composition */ - /* Eventually, the pdf14 device might be chunky pixels, punt for now */ - if (plane_stride == 0) - return 0; if (num_chan != 3 || tag_plane_index <= 0) return_error(gs_error_unknownerror); /* can't handle these cases */ /* Drill down to get the appropriate memory buffer pointer */ @@ -805,11 +802,11 @@ bit_put_image(gx_device *pdev, const byte *buffer, int num_chan, int xstart, for ( x = xstart; x < xend; x++ ) { /* Tag data first, then RGB */ buffer_prn[des_position] = - buffer[src_position + tag_plane_index * plane_stride]; + buffers[tag_plane_index][src_position]; des_position += 1; for ( k = 0; k < 3; k++) { buffer_prn[des_position] = - buffer[src_position + k * plane_stride]; + buffers[k][src_position]; des_position += 1; } src_position += 1; |