1 /* Copyright (C) 2001-2019 Artifex Software, Inc. 2 All Rights Reserved. 3 4 This software is provided AS-IS with no warranty, either express or 5 implied. 6 7 This software is distributed under license and may not be copied, 8 modified or distributed except as expressly authorized under the terms 9 of the license contained in the file LICENSE in this distribution. 10 11 Refer to licensing information at http://www.artifex.com or contact 12 Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato, 13 CA 94945, U.S.A., +1(415)492-9861, for further information. 14 */ 15 16 17 /* Internal device color conversion interfaces */ 18 19 #ifndef gxdcconv_INCLUDED 20 # define gxdcconv_INCLUDED 21 22 #include "std.h" 23 #include "gxfrac.h" 24 #include "gsgstate.h" 25 26 /* Color space conversion routines */ 27 frac color_rgb_to_gray(frac r, frac g, frac b, 28 const gs_gstate * pgs); 29 void color_rgb_to_cmyk(frac r, frac g, frac b, 30 const gs_gstate * pgs, frac cmyk[4], 31 gs_memory_t * mem); 32 frac color_cmyk_to_gray(frac c, frac m, frac y, frac k, 33 const gs_gstate * pgs); 34 void color_cmyk_to_rgb(frac c, frac m, frac y, frac k, 35 const gs_gstate * pgs, frac rgb[3], 36 gs_memory_t * mem); 37 38 #endif /* gxdcconv_INCLUDED */ 39