1
/* Copyright (C) 2001-2006 Artifex Software, Inc.
4
This software is provided AS-IS with no warranty, either express or
7
This software is distributed under license and may not be copied, modified
8
or distributed except as expressly authorized under the terms of that
9
license. Refer to licensing information at http://www.artifex.com/
10
or contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134,
11
San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information.
14
/* $Id: gsnorop.c 8022 2007-06-05 22:23:38Z giles $ */
15
/* Stubs for unimplemented RasterOp */
20
#include "gxdevice.h" /* for gx_default_*copy_rop prototypes */
21
#include "gxdevmem.h" /* for gdevmem.h */
22
#include "gdevmem.h" /* for mem_*_strip_copy_rop prototypes */
25
/* Stub accessors to logical operation in graphics state. */
27
gs_logical_operation_t
28
gs_current_logical_op(const gs_state * pgs)
34
gs_set_logical_op(gs_state * pgs, gs_logical_operation_t lop)
36
return (lop == lop_default ? 0 : gs_note_error(gs_error_rangecheck));
39
/* Stub RasterOp implementations for memory devices. */
42
mem_mono_strip_copy_rop(gx_device * dev,
43
const byte * sdata, int sourcex, uint sraster, gx_bitmap_id id,
44
const gx_color_index * scolors,
45
const gx_strip_bitmap * textures, const gx_color_index * tcolors,
46
int x, int y, int width, int height,
47
int phase_x, int phase_y, gs_logical_operation_t lop)
49
return_error(gs_error_rangecheck);
53
mem_gray_strip_copy_rop(gx_device * dev,
54
const byte * sdata, int sourcex, uint sraster, gx_bitmap_id id,
55
const gx_color_index * scolors,
56
const gx_strip_bitmap * textures, const gx_color_index * tcolors,
57
int x, int y, int width, int height,
58
int phase_x, int phase_y, gs_logical_operation_t lop)
60
return_error(gs_error_rangecheck);
64
mem_gray8_rgb24_strip_copy_rop(gx_device * dev,
65
const byte * sdata, int sourcex, uint sraster, gx_bitmap_id id,
66
const gx_color_index * scolors,
67
const gx_strip_bitmap * textures, const gx_color_index * tcolors,
68
int x, int y, int width, int height,
69
int phase_x, int phase_y, gs_logical_operation_t lop)
71
return_error(gs_error_rangecheck);
74
/* Stub default implementations of device procedures. */
77
gx_default_copy_rop(gx_device * dev,
78
const byte * sdata, int sourcex, uint sraster, gx_bitmap_id id,
79
const gx_color_index * scolors,
80
const gx_tile_bitmap * texture, const gx_color_index * tcolors,
81
int x, int y, int width, int height,
82
int phase_x, int phase_y, gs_logical_operation_t lop)
84
return_error(gs_error_unknownerror); /* not implemented */
88
gx_default_strip_copy_rop(gx_device * dev,
89
const byte * sdata, int sourcex, uint sraster, gx_bitmap_id id,
90
const gx_color_index * scolors,
91
const gx_strip_bitmap * textures, const gx_color_index * tcolors,
92
int x, int y, int width, int height,
93
int phase_x, int phase_y, gs_logical_operation_t lop)
95
return_error(gs_error_unknownerror); /* not implemented */
99
mem_default_strip_copy_rop(gx_device * dev,
100
const byte * sdata, int sourcex, uint sraster, gx_bitmap_id id,
101
const gx_color_index * scolors,
102
const gx_strip_bitmap * textures, const gx_color_index * tcolors,
103
int x, int y, int width, int height,
104
int phase_x, int phase_y, gs_logical_operation_t lop)
106
return_error(gs_error_unknownerror); /* not implemented */
109
/* Stub RasterOp source devices. */
112
gx_alloc_rop_texture_device(gx_device_rop_texture ** prsdev, gs_memory_t * mem,
115
return_error(gs_error_rangecheck);
119
gx_make_rop_texture_device(gx_device_rop_texture * dev, gx_device * target,
120
gs_logical_operation_t log_op, const gx_device_color * texture)
121
{ /* Never called. */