"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "base/gxdevmem.h" between
ghostscript-9.26.tar.xz and ghostscript-9.27.tar.xz

About: Ghostscript is an interpreter and rendering engine for the PostScript language and for PDF (GPL release).

gxdevmem.h  (ghostscript-9.26.tar.xz):gxdevmem.h  (ghostscript-9.27.tar.xz)
/* Copyright (C) 2001-2018 Artifex Software, Inc. /* Copyright (C) 2001-2019 Artifex Software, Inc.
All Rights Reserved. All Rights Reserved.
This software is provided AS-IS with no warranty, either express or This software is provided AS-IS with no warranty, either express or
implied. implied.
This software is distributed under license and may not be copied, This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms modified or distributed except as expressly authorized under the terms
of the license contained in the file LICENSE in this distribution. of the license contained in the file LICENSE in this distribution.
Refer to licensing information at http://www.artifex.com or contact Refer to licensing information at http://www.artifex.com or contact
Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato, Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
CA 94945, U.S.A., +1(415)492-9861, for further information. CA 94945, U.S.A., +1(415)492-9861, for further information.
*/ */
/* Structure and procedures for memory devices */ /* Structure and procedures for memory devices */
/* Requires gxdevice.h */ /* Requires gxdevice.h */
#ifndef gxdevmem_INCLUDED #ifndef gxdevmem_INCLUDED
# define gxdevmem_INCLUDED # define gxdevmem_INCLUDED
#include "gxdevcli.h"
#include "gxrplane.h" #include "gxrplane.h"
/* /*
* A 'memory' device is essentially a stored bitmap. * A 'memory' device is essentially a stored bitmap.
* There are several different kinds: 1-bit black and white, * There are several different kinds: 1-bit black and white,
* 2-, 4-, and 8-bit mapped color, 16- and 24-bit RGB color, * 2-, 4-, and 8-bit mapped color, 16- and 24-bit RGB color,
* and 32-bit CMYK color. (16-bit uses 5/6/5 bits per color.) * and 32-bit CMYK color. (16-bit uses 5/6/5 bits per color.)
* All use the same structure, since it's so awkward to get the effect of * All use the same structure, since it's so awkward to get the effect of
* subclasses in C. * subclasses in C.
* *
skipping to change at line 75 skipping to change at line 76
* *
* In cases (2) through (4), it is the client's responsibility to set * In cases (2) through (4), it is the client's responsibility to set
* foreign_bits (and foreign_line_pointers, if the line pointers are not * foreign_bits (and foreign_line_pointers, if the line pointers are not
* contiguous with the bits) to tell the GC whether to trace the pointers. * contiguous with the bits) to tell the GC whether to trace the pointers.
* By default, anything allocated by bitmap_memory or line_pointer_memory is * By default, anything allocated by bitmap_memory or line_pointer_memory is
* assumed GC'able (i.e., case (1) assumes that the bits + line pointers are * assumed GC'able (i.e., case (1) assumes that the bits + line pointers are
* GC'able, and cases (2) and (3) assume that the line pointers are GC'able, * GC'able, and cases (2) and (3) assume that the line pointers are GC'able,
* but not the bits), but the client can change the foreign_* flag(s) after * but not the bits), but the client can change the foreign_* flag(s) after
* opening the device if this is not the case. * opening the device if this is not the case.
*/ */
#ifndef gx_device_memory_DEFINED
# define gx_device_memory_DEFINED
typedef struct gx_device_memory_s gx_device_memory;
#endif
struct gx_device_memory_s { struct gx_device_memory_s {
gx_device_forward_common; /* (see gxdevice.h) */ gx_device_forward_common; /* (see gxdevice.h) */
/* /*
* The following may be set by the client before or just after * The following may be set by the client before or just after
* opening the device. See above. * opening the device. See above.
*/ */
uint raster; /* bytes per scan line */ uint raster; /* bytes per scan line */
byte *base; byte *base;
#define scan_line_base(dev,y) ((dev)->line_ptrs[y]) #define scan_line_base(dev,y) ((dev)->line_ptrs[y])
 End of changes. 3 change blocks. 
5 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)