1 /* Copyright (C) 1992, 2000 Aladdin Enterprises. All rights reserved. 2 3 This software is provided AS-IS with no warranty, either express or 4 implied. 5 6 This software is distributed under license and may not be copied, 7 modified or distributed except as expressly authorized under the terms 8 of the license contained in the file LICENSE in this distribution. 9 10 For more information about licensing, please refer to 11 http://www.ghostscript.com/licensing/. For information on 12 commercial licensing, go to http://www.artifex.com/licensing/ or 13 contact Artifex Software, Inc., 101 Lucas Valley Road #110, 14 San Rafael, CA 94903, U.S.A., +1(415)492-9861. 15 */ 16 17 /* $Id: gdevpccm.h,v 1.8 2004/09/20 22:14:59 dan Exp $ */ 18 /* PC color mapping support */ 19 /* Requires gxdevice.h */ 20 21 #ifndef gdevpccm_INCLUDED 22 # define gdevpccm_INCLUDED 23 24 /* Color mapping routines for EGA/VGA-style color. */ 25 dev_proc_map_rgb_color(pc_4bit_map_rgb_color); 26 dev_proc_map_color_rgb(pc_4bit_map_color_rgb); 27 #define dci_pc_4bit dci_values(3, 4, 1, 1, 2, 2) 28 29 /* Color mapping routines for 8-bit color (with a fixed palette). */ 30 dev_proc_map_rgb_color(pc_8bit_map_rgb_color); 31 dev_proc_map_color_rgb(pc_8bit_map_color_rgb); 32 #define dci_pc_8bit dci_values(3, 8, 5, 5, 6, 6) 33 34 /* Write the palette on a file. */ 35 int pc_write_palette(gx_device *, uint, FILE *); 36 37 #endif /* gdevpccm_INCLUDED */ 38