|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T g
Length: 2355 (0x933) Types: TextFile Names: »gximage.h«
└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89 └─⟦ff23ba0e6⟧ »./ghostscript-1.3.tar.Z« └─⟦a24a58cd3⟧ └─⟦this⟧ »gximage.h«
/* 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. */ /* gximage.h */ /* Internal definitions for image rendering */ /* Requires gzcolor.h */ /* Imaging state structure */ /* The Unix C compiler can't handle the following line: */ /* typedef int iprocess_proc(P3(gs_image_enum *, */ /* byte *, int)); */ /* # of samples */ /* so we have to do it with a macro instead: */ #define iprocess_proc_args\ P3(gs_image_enum *, byte *, int) struct gs_image_enum_s { /* Following are set at structure initialization */ int width; int height; int log2_bps; /* log2(bits per sample) */ fixed fxx, fxy, fyx, fyy, ftx, fty; /* fixed version of matrix */ gs_color *pcolor; /* &rcolor, pgs->color, or */ /* &colors[i] */ int (*process)(iprocess_proc_args); gs_state *pgs; byte *buffer; /* for expanding to 8 bits/pixel */ uint buffer_size; int never_clip; /* true if entire image fits */ int skewed; /* true if image is skewed */ /* or rotated */ int slow_loop; /* true if !never_clip, skewed, */ /* or imagemask with a halftone */ /* Entries 0 and 15 of the following are set at initialization, */ /* other entries are updated dynamically */ gs_color colors[16]; #define icolor0 colors[0].dev_color.color1 #define icolor1 colors[15].dev_color.color1 /* Following are updated dynamically */ gs_color rcolor; /* color for current sample */ fixed xrow, yrow; /* device x, y at start of row */ fixed xcur, ycur; /* current x, y */ int x; int y; };