/usr/include/cupsfilters/image.h is in libcupsfilters-dev 1.8.3-2ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | /*
* Image library definitions for CUPS.
*
* Copyright 2007-2011 by Apple Inc.
* Copyright 1993-2006 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Apple Inc. and are protected by Federal copyright
* law. Distribution and use rights are outlined in the file "COPYING"
* which should have been included with this file.
*/
#ifndef _CUPS_FILTERS_IMAGE_H_
# define _CUPS_FILTERS_IMAGE_H_
/*
* Include necessary headers...
*/
# include <stdio.h>
# include <cups/raster.h>
# ifdef __cplusplus
extern "C" {
# endif /* __cplusplus */
/*
* Constants...
*/
typedef enum cups_icspace_e /**** Image colorspaces ****/
{
CUPS_IMAGE_CMYK = -4, /* Cyan, magenta, yellow, and black */
CUPS_IMAGE_CMY = -3, /* Cyan, magenta, and yellow */
CUPS_IMAGE_BLACK = -1, /* Black */
CUPS_IMAGE_WHITE = 1, /* White (luminance) */
CUPS_IMAGE_RGB = 3, /* Red, green, and blue */
CUPS_IMAGE_RGB_CMYK = 4 /* Use RGB or CMYK */
} cups_icspace_t;
/*
* Types and structures...
*/
typedef unsigned char cups_ib_t; /**** Image byte ****/
struct cups_image_s;
typedef struct cups_image_s cups_image_t;
/**** Image file data ****/
struct cups_izoom_s;
typedef struct cups_izoom_s cups_izoom_t;
/**** Image zoom data ****/
/*
* Prototypes...
*/
extern void cupsImageClose(cups_image_t *img) _CUPS_API_1_2;
extern void cupsImageCMYKToBlack(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
extern void cupsImageCMYKToCMY(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
extern void cupsImageCMYKToCMYK(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
extern void cupsImageCMYKToRGB(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
extern void cupsImageCMYKToWhite(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
extern int cupsImageGetCol(cups_image_t *img, int x, int y,
int height, cups_ib_t *pixels) _CUPS_API_1_2;
extern cups_icspace_t cupsImageGetColorSpace(cups_image_t *img) _CUPS_API_1_2;
extern int cupsImageGetDepth(cups_image_t *img) _CUPS_API_1_2;
extern unsigned cupsImageGetHeight(cups_image_t *img) _CUPS_API_1_2;
extern int cupsImageGetRow(cups_image_t *img, int x, int y,
int width, cups_ib_t *pixels) _CUPS_API_1_2;
extern unsigned cupsImageGetWidth(cups_image_t *img) _CUPS_API_1_2;
extern unsigned cupsImageGetXPPI(cups_image_t *img) _CUPS_API_1_2;
extern unsigned cupsImageGetYPPI(cups_image_t *img) _CUPS_API_1_2;
extern void cupsImageLut(cups_ib_t *pixels, int count,
const cups_ib_t *lut) _CUPS_API_1_2;
extern cups_image_t *cupsImageOpen(const char *filename,
cups_icspace_t primary,
cups_icspace_t secondary,
int saturation, int hue,
const cups_ib_t *lut) _CUPS_API_1_2;
extern void cupsImageRGBAdjust(cups_ib_t *pixels, int count,
int saturation, int hue) _CUPS_API_1_2;
extern void cupsImageRGBToBlack(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
extern void cupsImageRGBToCMY(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
extern void cupsImageRGBToCMYK(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
extern void cupsImageRGBToRGB(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
extern void cupsImageRGBToWhite(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
extern void cupsImageSetMaxTiles(cups_image_t *img, int max_tiles) _CUPS_API_1_2;
extern void cupsImageSetProfile(float d, float g,
float matrix[3][3]) _CUPS_API_1_2;
extern void cupsImageSetRasterColorSpace(cups_cspace_t cs) _CUPS_API_1_2;
extern void cupsImageWhiteToBlack(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
extern void cupsImageWhiteToCMY(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
extern void cupsImageWhiteToCMYK(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
extern void cupsImageWhiteToRGB(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
extern void cupsImageWhiteToWhite(const cups_ib_t *in,
cups_ib_t *out, int count) _CUPS_API_1_2;
# ifdef __cplusplus
}
# endif /* __cplusplus */
#endif /* !_CUPS_FILTERS_IMAGE_H_ */
|