This file is indexed.

/usr/include/vl/pgm.h is in libvlfeat-dev 0.9.20+dfsg0-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
/** @file pgm.h
 ** @brief Portable graymap format (PGM) parser
 ** @author Andrea Vedaldi
 **/

/*
Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
All rights reserved.

This file is part of the VLFeat library and is made available under
the terms of the BSD license (see the COPYING file).
*/

#ifndef VL_PGM_H
#define VL_PGM_H

#include "generic.h"
#include "mathop.h"
#include <stdio.h>

/** @name PGM parser error codes
 ** @{ */
#define VL_ERR_PGM_INV_HEAD  101 /**< Invalid PGM header section. */
#define VL_ERR_PGM_INV_META  102 /**< Invalid PGM meta section. */
#define VL_ERR_PGM_INV_DATA  103 /**< Invalid PGM data section.*/
#define VL_ERR_PGM_IO        104 /**< Generic I/O error. */
/** @} */

/** @brief PGM image meta data
 **
 ** A PGM image is a 2-D array of pixels of width #width and height
 ** #height. Each pixel is an integer one or two bytes wide, depending
 ** whether #max_value is smaller than 256.
 **/

typedef struct _VlPgmImage
{
  vl_size width ;      /**< image width.                     */
  vl_size height ;     /**< image height.                    */
  vl_size max_value ;  /**< pixel maximum value (<= 2^16-1). */
  vl_bool is_raw ;     /**< is RAW format?                   */
} VlPgmImage ;

/** @name Core operations
 ** @{ */
VL_EXPORT int vl_pgm_extract_head (FILE *f, VlPgmImage *im) ;
VL_EXPORT int vl_pgm_extract_data (FILE *f, VlPgmImage const *im, void *data) ;
VL_EXPORT int vl_pgm_insert (FILE *f,
                             VlPgmImage const *im,
                             void const*data ) ;
VL_EXPORT vl_size vl_pgm_get_npixels (VlPgmImage const *im) ;
VL_EXPORT vl_size vl_pgm_get_bpp (VlPgmImage const *im) ;
/** @} */

/** @name Helper functions
 ** @{ */
VL_EXPORT int vl_pgm_write (char const *name,
                            vl_uint8 const *data,
                            int width, int height) ;
VL_EXPORT int vl_pgm_write_f (char const *name,
                              float const *data,
                              int width, int height) ;
VL_EXPORT int vl_pgm_read_new (char const *name,
                               VlPgmImage *im,
                               vl_uint8 **data) ;
VL_EXPORT int vl_pgm_read_new_f (char const *name,
                                 VlPgmImage *im,
                                 float **data) ;

/** @} */

/* VL_PGM_H */
#endif