This file is indexed.

/usr/include/ggi/gcp.h is in libggigcp1-dev 1.0.2+dfsg1-2.1.

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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
/* $Id: gcp.h,v 1.5 2005/07/30 16:31:59 cegger Exp $
*****************************************************************************
   LIBGCP: extension API header file

   Copyright (C) 2000-2001 Christoph Egger	[Christoph_Egger@t-online.de]

   Permission is hereby granted, free of charge, to any person obtaining a
   copy of this software and associated documentation files (the "Software"),
   to deal in the Software without restriction, including without limitation
   the rights to use, copy, modify, merge, publish, distribute, sublicense,
   and/or sell copies of the Software, and to permit persons to whom the
   Software is furnished to do so, subject to the following conditions:

   The above copyright notice and this permission notice shall be included in
   all copies or substantial portions of the Software.

   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
   THE AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
   IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


*****************************************************************************
*/


#ifndef _GGI_GCP_H
#define _GGI_GCP_H

#include <ggi/ggi.h>
#include <ggi/gcp-defs.h>

__BEGIN_DECLS

/* Get the master config dir
 */
GGIGCPAPIFUNC const char *gcpGetConfDir(void);

/* Extension management
 */
GGIGCPAPIFUNC int gcpInit(void);
GGIGCPAPIFUNC int gcpExit(void);

GGIGCPAPIFUNC int gcpAttach(ggi_visual_t vis);
GGIGCPAPIFUNC int gcpDetach(ggi_visual_t vis);




/* API functions
 */


typedef ggi_pixel gcp_pixel;

typedef ggi_color gcp_RGBAcolor;
typedef struct { ggi_float y,u,v; } gcp_YUVcolor;
typedef struct { uint16_t c,m,y,k; } gcp_CMYKcolor;
typedef struct { ggi_float h,s,v; } gcp_HSVcolor;
typedef struct { uint16_t y,c1,c2; } gcp_YCCcolor;


#define GCP_COLOR_PRECISION	GGI_COLOR_PRECISION


/* Color palette manipulation
 */

/* RGBA */
GGIGCPAPIFUNC gcp_pixel gcpMapRGBAColor(ggi_visual_t vis,
		gcp_RGBAcolor *col);
GGIGCPAPIFUNC int gcpUnmapRGBAPixel(ggi_visual_t vis,
		gcp_pixel pixel,gcp_RGBAcolor *col);

GGIGCPAPIFUNC int gcpPackRGBAColors(ggi_visual_t vis,
		void *buf,gcp_RGBAcolor *cols,int len);
GGIGCPAPIFUNC int gcpUnpackRGBAPixels(ggi_visual_t vis,
		void *buf,gcp_RGBAcolor *cols,int len);

GGIGCPAPIFUNC int gcpGetRGBAPalette(ggi_visual_t vis,
		int s,int len,gcp_RGBAcolor *cmap);
GGIGCPAPIFUNC int gcpSetRGBAPalette(ggi_visual_t vis,
		int s,int len,gcp_RGBAcolor *cmap);


/* YUV */
GGIGCPAPIFUNC gcp_pixel gcpMapYUVColor(ggi_visual_t vis,
		gcp_YUVcolor *col);
GGIGCPAPIFUNC int gcpUnmapYUVPixel(ggi_visual_t vis,
		gcp_pixel pixel, gcp_YUVcolor *col);

GGIGCPAPIFUNC int gcpPackYUVColors(ggi_visual_t vis,
		void *buf,gcp_YUVcolor *cols,int len);
GGIGCPAPIFUNC int gcpUnpackYUVPixels(ggi_visual_t vis,
		void *buf,gcp_YUVcolor *cols,int len);

GGIGCPAPIFUNC int gcpGetYUVPalette(ggi_visual_t vis,
		int s,int len,gcp_YUVcolor *cmap);
GGIGCPAPIFUNC int gcpSetYUVPalette(ggi_visual_t vis,
		int s,int len,gcp_YUVcolor *cmap);


/* CMYK */
GGIGCPAPIFUNC gcp_pixel gcpMapCMYKColor(ggi_visual_t vis,
		gcp_CMYKcolor *col);
GGIGCPAPIFUNC int gcpUnmapCMYKPixel(ggi_visual_t vis,
		gcp_pixel pixel, gcp_CMYKcolor *col);

GGIGCPAPIFUNC int gcpPackCMYKColors(ggi_visual_t vis,
		void *buf,gcp_CMYKcolor *cols,int len);
GGIGCPAPIFUNC int gcpUnpackCMYKPixels(ggi_visual_t vis,
		void *buf,gcp_CMYKcolor *cols,int len);

GGIGCPAPIFUNC int gcpGetCMYKPalette(ggi_visual_t vis,
		int s,int len,gcp_CMYKcolor *cmap);
GGIGCPAPIFUNC int gcpSetCMYKPalette(ggi_visual_t vis,
		int s,int len,gcp_CMYKcolor *cmap);


/* HSV */
GGIGCPAPIFUNC gcp_pixel gcpMapHSVColor(ggi_visual_t vis,
		gcp_HSVcolor *col);
GGIGCPAPIFUNC int gcpUnmapHSVPixel(ggi_visual_t vis,
		gcp_pixel pixel, gcp_HSVcolor *col);

GGIGCPAPIFUNC int gcpPackHSVColors(ggi_visual_t vis,
		void *buf,gcp_HSVcolor *cols,int len);
GGIGCPAPIFUNC int gcpUnpackHSVPixels(ggi_visual_t vis,
		void *buf,gcp_HSVcolor *cols,int len);

GGIGCPAPIFUNC int gcpGetHSVPalette(ggi_visual_t vis,
		int s,int len,gcp_HSVcolor *cmap);
GGIGCPAPIFUNC int gcpSetHSVPalette(ggi_visual_t vis,
		int s,int len,gcp_HSVcolor *cmap);


/* Kodak PhotoCD */
GGIGCPAPIFUNC gcp_pixel gcpMapYCCColor(ggi_visual_t vis,
		gcp_YCCcolor *col);
GGIGCPAPIFUNC int gcpUnmapYCCPixel(ggi_visual_t vis,
		gcp_pixel pixel, gcp_YCCcolor *col);

GGIGCPAPIFUNC int gcpPackYCCColors(ggi_visual_t vis,
		void *buf,gcp_YCCcolor *cols,int len);
GGIGCPAPIFUNC int gcpUnpackYCCPixels(ggi_visual_t vis,
		void *buf,gcp_YCCcolor *cols,int len);

GGIGCPAPIFUNC int gcpGetYCCPalette(ggi_visual_t vis,
		int s,int len,gcp_YCCcolor *cmap);
GGIGCPAPIFUNC int gcpSetYCCPalette(ggi_visual_t vis,
		int s,int len,gcp_YCCcolor *cmap);



GGIGCPAPIFUNC int gcpSetColorfulPalette(ggi_visual_t vis);

#define GCP_PALETTE_DONTCARE	GGI_PALETTE_DONTCARE



/* Gamma map manipulation
 */

/* RGBA */
GGIGCPAPIFUNC int gcpGetRGBAGamma(ggi_visual_t vis,
		ggi_float *r,ggi_float *g,ggi_float *b);
GGIGCPAPIFUNC int gcpSetRGBAGamma(ggi_visual_t vis,
		ggi_float r,ggi_float g,ggi_float b);

GGIGCPAPIFUNC int gcpGetRGBAGammaMap(ggi_visual_t vis,
		int s,int len,gcp_RGBAcolor *gammamap);
GGIGCPAPIFUNC int gcpSetRGBAGammaMap(ggi_visual_t vis,
		int s,int len,gcp_RGBAcolor *gammamap);


/* YUV */
GGIGCPAPIFUNC int gcpGetYUVGamma(ggi_visual_t vis,
		ggi_float *y,ggi_float *u,ggi_float *v);
GGIGCPAPIFUNC int gcpSetYUVGamma(ggi_visual_t vis,
		ggi_float y,ggi_float u,ggi_float v);

GGIGCPAPIFUNC int gcpGetYUVGammaMap(ggi_visual_t vis,
		int s,int len,gcp_YUVcolor *gammamap);
GGIGCPAPIFUNC int gcpSetYUVGammaMap(ggi_visual_t vis,
		int s,int len,gcp_YUVcolor *gammamap);


/* CMYK */
GGIGCPAPIFUNC int gcpGetCMYKGamma(ggi_visual_t vis,
		ggi_float *c,ggi_float *m,ggi_float *y,ggi_float *k);
GGIGCPAPIFUNC int gcpSetCMYKGamma(ggi_visual_t vis,
		ggi_float c,ggi_float m,ggi_float y,ggi_float k);

GGIGCPAPIFUNC int gcpGetCMYKGammaMap(ggi_visual_t vis,
		int s,int len,gcp_CMYKcolor *gammamap);
GGIGCPAPIFUNC int gcpSetCMYKGammaMap(ggi_visual_t vis,
		int s,int len,gcp_CMYKcolor *gammamap);


/* HSV */
GGIGCPAPIFUNC int gcpGetHSVGamma(ggi_visual_t vis,
		ggi_float *h,ggi_float *s,ggi_float *v);
GGIGCPAPIFUNC int gcpSetHSVGamma(ggi_visual_t vis,
		ggi_float h,ggi_float s,ggi_float v);

GGIGCPAPIFUNC int gcpGetHSVGammaMap(ggi_visual_t vis,
		int s,int len,gcp_HSVcolor *gammamap);
GGIGCPAPIFUNC int gcpSetHSVGammaMap(ggi_visual_t vis,
		int s,int len,gcp_HSVcolor *gammamap);


/* Kodak PhotoCD */
GGIGCPAPIFUNC int gcpGetYCCGamma(ggi_visual_t vis,
		ggi_float *y,ggi_float *c1,ggi_float *c2);
GGIGCPAPIFUNC int gcpSetYCCGamma(ggi_visual_t vis,
		ggi_float y,ggi_float c1,ggi_float c2);

GGIGCPAPIFUNC int gcpGetYCCGammaMap(ggi_visual_t vis,
		int s,int len,gcp_YCCcolor *gammamap);
GGIGCPAPIFUNC int gcpSetYCCGammaMap(ggi_visual_t vis,
		int s,int len,gcp_YCCcolor *gammamap);


/* Blending manipulation
 *   Note: You can also use this for transluency effects
 */

/* Color blending */
GGIGCPAPIFUNC gcp_pixel gcpBlendColor(ggi_visual_t vis,
		const gcp_pixel *pix1, const gcp_pixel *pix2, uint16_t alpha);



/* Luminance manipulation
 */

GGIGCPAPIFUNC ggi_float gcpGetLuminance(ggi_visual_t vis,
		const gcp_pixel pix);


/* Lightness manipulation
 */

GGIGCPAPIFUNC gcp_pixel gcpSetIntensity(ggi_visual_t vis,
		const gcp_pixel *pix1, const gcp_pixel *light_color);
GGIGCPAPIFUNC gcp_pixel gcpGetIntensity(ggi_visual_t vis,
		const gcp_pixel *pix1, const gcp_pixel *pix2);


__END_DECLS

#endif /* _GGI_GCP_H */