1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
This file is part of Aladdin Ghostscript.
Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
or distributor accepts any responsibility for the consequences of using it,
or for whether it serves any particular purpose or works at all, unless he
or she says so in writing. Refer to the Aladdin Ghostscript Free Public
License (the "License") for full details.
Every copy of Aladdin Ghostscript must include a copy of the License,
normally in a plain ASCII text file named PUBLIC. The License grants you
the right to copy, modify and redistribute Aladdin Ghostscript, but only
under certain conditions described in the License. Among other things, the
License requires that the copyright notice and this notice be preserved on
all copies.
*/
/*$Id$ */
/* LanguageLevel 3 (ImageType 3 & 4) image parameter definition */
#ifndef gsiparm3_INCLUDED
# define gsiparm3_INCLUDED
#include "gsiparam.h"
/*
* See Section 4.3 of the Adobe PostScript Version 3010 Supplement
* for a definition of ImageType 3 and 4 images.
*/
/*
* If InterleaveType is 3, the data source for the mask is provided as
* an additional data source *before* the data sources for the pixel data.
*/
typedef enum {
interleave_chunky = 1,
interleave_scan_lines = 2,
interleave_separate_source = 3
} gs_image3_interleave_type_t;
typedef struct gs_image3_s {
gs_pixel_image_common; /* DataDict */
int InterleaveType;
gs_data_image_t MaskDict;
} gs_image3_t;
/* We export the GC descriptor because ImageType 4 subclasses it. */
#define public_st_gs_image3() /* in gximage3.c */\
gs_public_st_suffix_add0(st_gs_image3, gs_image3_t, "gs_image3_t",\
image3_enum_ptrs, image3_reloc_ptrs, st_gs_pixel_image)
#define image3_type_data\
gx_begin_image3, gx_data_image_source_size, 3
#define image3_enum_procs_data\
gx_image3_plane_data, gx_image3_end_image
/*
* Initialize an ImageType 3 image.
*/
void gs_image3_t_init(P3(gs_image3_t * pim, const gs_color_space * color_space,
gs_image3_interleave_type_t interleave_type));
#endif /* gsiparm3_INCLUDED */
|