This file is indexed.

/usr/include/teem/dye.h is in libteem-dev 1.11.0~svn5226-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
/*
  Teem: Tools to process and visualize scientific data and images              
  Copyright (C) 2008, 2007, 2006, 2005  Gordon Kindlmann
  Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998  University of Utah

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public License
  (LGPL) as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.
  The terms of redistributing and/or modifying this software also
  include exceptions to the LGPL that facilitate static linking.

  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public License
  along with this library; if not, write to Free Software Foundation, Inc.,
  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/

#ifndef DYE_HAS_BEEN_INCLUDED
#define DYE_HAS_BEEN_INCLUDED

#include <stdio.h>
#include <math.h>
#include <ctype.h>

#include <teem/air.h>
#include <teem/biff.h>
#include <teem/ell.h>

#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(TEEM_STATIC)
#  if defined(TEEM_BUILD) || defined(dye_EXPORTS) || defined(teem_EXPORTS)
#    define DYE_EXPORT extern __declspec(dllexport)
#  else
#    define DYE_EXPORT extern __declspec(dllimport)
#  endif
#else /* TEEM_STATIC || UNIX */
#  define DYE_EXPORT extern
#endif

#ifdef __cplusplus
extern "C" {
#endif

#define DYE dyeBiffKey

enum {
  dyeSpaceUnknown,        /* 0: nobody knows */
  dyeSpaceHSV,            /* 1: single hexcone */
  dyeSpaceHSL,            /* 2: double hexcone */
  dyeSpaceRGB,            /* 3: obscure, deprecated */
  dyeSpaceXYZ,            /* 4: perceptual primaries */
  dyeSpaceLAB,            /* 5: 1976 CIE (L*a*b*) (based on Munsell) */
  dyeSpaceLUV,            /* 6: 1976 CIE (L*u*v*) */
  dyeSpaceLast
};
#define DYE_MAX_SPACE 6

#define DYE_VALID_SPACE(spc) \
  (AIR_IN_OP(dyeSpaceUnknown, (spc), dyeSpaceLast))

typedef struct {
  float val[2][3];        /* room for two colors: two triples of floats */
  float xWhite, yWhite;   /* chromaticity for white point */
  signed char spc[2],     /* the spaces the two colors belong to */
    ii;                   /* which (0 or 1) of the two values is current */
} dyeColor;

/* methodsDye.c */
DYE_EXPORT const int dyePresent;
DYE_EXPORT const char *dyeBiffKey;
DYE_EXPORT char dyeSpaceToStr[][AIR_STRLEN_SMALL];
DYE_EXPORT int dyeStrToSpace(char *str);
DYE_EXPORT dyeColor *dyeColorInit(dyeColor *col);
DYE_EXPORT dyeColor *dyeColorSet(dyeColor *col, int space, 
                                 float v0, float v1, float v2);
DYE_EXPORT int dyeColorGet(float *v0P, float *v1P, float *v2P, dyeColor *col);
DYE_EXPORT int dyeColorGetAs(float *v0P, float *v1P, float *v2P, 
                             dyeColor *col, int space);
DYE_EXPORT dyeColor *dyeColorNew();
DYE_EXPORT dyeColor *dyeColorCopy(dyeColor *c1, dyeColor *c0);
DYE_EXPORT dyeColor *dyeColorNix(dyeColor *col);
DYE_EXPORT int dyeColorParse(dyeColor *col, char *str);
DYE_EXPORT char *dyeColorSprintf(char *str, dyeColor *col);

/* convertDye.c */
typedef void (*dyeConverter)(float*, float*, float*, float, float, float);
DYE_EXPORT void dyeRGBtoHSV(float *H, float *S, float *V,
                            float  R, float  G, float  B);
DYE_EXPORT void dyeHSVtoRGB(float *R, float *G, float *B,
                            float  H, float  S, float  V);
DYE_EXPORT void dyeRGBtoHSL(float *H, float *S, float *L,
                            float  R, float  G, float  B);
DYE_EXPORT void dyeHSLtoRGB(float *R, float *G, float *B,
                            float  H, float  S, float  L);
DYE_EXPORT void dyeRGBtoXYZ(float *X, float *Y, float *Z,
                            float  R, float  G, float  B);
DYE_EXPORT void dyeXYZtoRGB(float *R, float *G, float *B,
                            float  X, float  Y, float  Z);
DYE_EXPORT void dyeXYZtoLAB(float *L, float *A, float *B,
                            float  X, float  Y, float  Z);
DYE_EXPORT void dyeXYZtoLUV(float *L, float *U, float *V,
                            float  X, float  Y, float  Z);
DYE_EXPORT void dyeLABtoXYZ(float *X, float *Y, float *Z,
                            float  L, float  A, float  B);
DYE_EXPORT void dyeLUVtoXYZ(float *X, float *Y, float *Z,
                            float  L, float  U, float  V);
DYE_EXPORT dyeConverter dyeSimpleConvert[DYE_MAX_SPACE+1][DYE_MAX_SPACE+1];
DYE_EXPORT int dyeConvert(dyeColor *col, int space);

#ifdef __cplusplus
}
#endif

#endif /* DYE_HAS_BEEN_INCLUDED */