DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T g

⟦0cac6f651⟧ TextFile

    Length: 2165 (0x875)
    Types: TextFile
    Names: »gxdevmem.h«

Derivation

└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
    └─⟦ff23ba0e6⟧ »./ghostscript-1.3.tar.Z« 
        └─⟦a24a58cd3⟧ 
            └─⟦this⟧ »gxdevmem.h« 

TextFile

/* Copyright (C) 1989 Aladdin Enterprises.  All rights reserved.
   Distributed by Free Software Foundation, Inc.

This file is part of Ghostscript.

Ghostscript is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
to anyone for the consequences of using it or for whether it serves any
particular purpose or works at all, unless he says so in writing.  Refer
to the Ghostscript General Public License for full details.

Everyone is granted permission to copy, modify and redistribute
Ghostscript, but only under the conditions described in the Ghostscript
General Public License.  A copy of this license is supposed to have been
given to you along with Ghostscript so you can know your rights and
responsibilities.  It should be in a file named COPYING.  Among other
things, the copyright notice and this notice must be preserved on all
copies.  */

/* gxdevmem.h */
/* "Memory" device structure for GhostScript library */
/* Requires gxdevice.h */

/* A 'memory' device -- a stored bitmap. */
/* There are three different kinds: monochrome, 8-bit mapped color, */
/* and 32-bit true color.  All use the same structure, however, */
/* since it's so awkward to get the effect of subclasses in C. */
typedef struct gx_device_memory_s gx_device_memory;
struct gx_device_memory_s {
	gx_device_common;		/* (see gxdevice.h) */
	int raster;			/* bytes per scan line, */
					/* filled in by '...bitmap_size' */
	byte *base;
	byte **line_ptrs;		/* scan line pointers */
	/* Following is only needed for monochrome */
	int invert;			/* 0 if 1=white, -1 if 1=black */
	/* Following are only needed for mapped color */
	int palette_size;		/* # of entries */
	byte *palette;			/* RGB triples */
};
extern gx_device_memory
	mem_mono_device,
	mem_mapped_color_device,
	mem_true_color_device;
/* Memory devices may have special setup requirements. */
/* In particular, it may not be obvious how much space to allocate */
/* for the bitmap.  Here is the routine that computes this */
/* from the width and height in the device structure. */
extern uint gx_device_memory_bitmap_size(P1(gx_device_memory *));