This file is indexed.

/usr/include/rtd/histeq.h is in skycat 3.1.2+starlink1~b-8+b2.

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
/*
 * histeq.h - saoimage header file for histogram equalization functions.
 * allan: added header, guard, includes, prototypes
 */
#ifndef _histeq_h_
#define _histeq_h_
#include <sys/types.h>

#ifndef lint
static char SccsHistEqId[] = "%W%  %G%";
#endif

/* Module:	HistEq.h
 * Purpose:	Define the structs for histogram equalization
 * Modified:	{0} Michael VanHilst	initial version		  30 May 1989
 *              {1} Peter W. Draper     converted to use unsigned 20 Jan 1999
 *                                      long for scalemap
 *		{n} <who> -- <does what> -- <when>
 */

#ifndef MAX
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#endif

/* link describes a section of the histogram to have levels allocated */
typedef struct histogramLink {
  int low;		/* index of lowest histogram entry */
  int high;			/* index of highest histogram entry */
  int range;			/* number of histogram entries covered */
  int nz_entries;		/* number of non-zero histogram entries */
  int pixel_area;		/* number of image pixels within range */
  int max_entry;		/* largest area for any single entry */
  int excess_pixels;		/* pixel area in excess of average */
  int color_levels;			/* number of color levels allocated */
  struct histogramLink *next;	/* link list pointer */
  int pad;
} SubrangeLink;

/* list describing details of color level allocation for a histogram range */
typedef struct histogramList {
  int pixel_area;	/* pixel area that is covered by this color level */
  int first, last;	/* first and last histogram entries cor this color */
  int pad;
  int shrink_area;	/* area covered by omitting last non-zero entry */
  int shrink_entry;	/* index for last to excude last non-zero entry */
  int stretch_area;	/* area covered by including next non-zero entry */
  int stretch_entry;	/* index for last to include next non-zero entry */
} SubrangeList;


/* allan: added prototype */
void histogram_equalize (
     unsigned long *scalemap,	/* i/o: scalemap (for signed indexing) */
     int *histogram,		/* i: histogram (for signed indexing) */
     int area,			/* i: area in pixels when histogram was made */
     int pmin, int pmax,	/* i: min and max values in histogram */
     int color_levels,		/* i: number of levels in color map */
     unsigned long *pixels);	/* i: map to hardware entries */

#endif /* _histeq_h_ */