This file is indexed.

/usr/include/tesseract/imgs.h is in libtesseract-dev 3.02.01-6.

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
/**********************************************************************
 * File:        imgs.h  (Formerly images.h)
 * Description: Header file for IMAGE member functions.
 * Author:      Ray Smith
 * Created:     Mon Jun 11 15:32:53 BST 1990
 *
 * (C) Copyright 1990, Hewlett-Packard Ltd.
 ** Licensed under the Apache License, Version 2.0 (the "License");
 ** you may not use this file except in compliance with the License.
 ** You may obtain a copy of the License at
 ** http://www.apache.org/licenses/LICENSE-2.0
 ** Unless required by applicable law or agreed to in writing, software
 ** distributed under the License is distributed on an "AS IS" BASIS,
 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 ** See the License for the specific language governing permissions and
 ** limitations under the License.
 *
 **********************************************************************/

#ifndef           IMGS_H
#define           IMGS_H

#include          "img.h"
#include          "params.h"

extern INT_VAR_H (image_default_resolution, 300, "Image resolution dpi");

inT32 check_legal_image_size(                     //get rest of image
                             inT32 x,             //x size required
                             inT32 y,             //ysize required
                             inT8 bits_per_pixel  //bpp required
                            );
                                 //copy rectangle
extern DLLSYM void copy_sub_image(IMAGE *source,     //source image
                                  inT32 xstart,      //start coords
                                  inT32 ystart,
                                  inT32 xext,        //extent to copy
                                  inT32 yext,
                                  IMAGE *dest,       //destination image
                                  inT32 xdest,       //destination coords
                                  inT32 ydest,
                                  BOOL8 adjust_grey  //shift to new bpp
                                 );
                                 //enlarge rectangle
extern DLLSYM void enlarge_sub_image(IMAGE *source,     //source image
                                     inT32 xstart,      //scaled start coords
                                     inT32 ystart,
                                     IMAGE *dest,       //destination image
                                     inT32 xdest,       //dest coords
                                     inT32 ydest,
                                     inT32 xext,        //destination extent
                                     inT32 yext,
                                     inT32 scale,       //scale factor
                                     BOOL8 adjust_grey  //shift to new bpp
                                    );
                                 //reduce rectangle
extern DLLSYM void fast_reduce_sub_image(IMAGE *source,     //source image
                                         inT32 xstart,      //start coords
                                         inT32 ystart,
                                         inT32 xext,        //extent to copy
                                         inT32 yext,
                                         IMAGE *dest,       //destination image
                                         inT32 xdest,       //destination coords
                                         inT32 ydest,
                                         inT32 scale,       //reduction factor
                                         BOOL8 adjust_grey  //shift to new bpp
                                        );
                                 //reduce rectangle
extern DLLSYM void reduce_sub_image(IMAGE *source,     //source image
                                    inT32 xstart,      //start coords
                                    inT32 ystart,
                                    inT32 xext,        //extent to copy
                                    inT32 yext,
                                    IMAGE *dest,       //destination image
                                    inT32 xdest,       //destination coords
                                    inT32 ydest,
                                    inT32 scale,       //reduction factor
                                    BOOL8 adjust_grey  //shift to new bpp
                                   );
extern DLLSYM void invert_image(              /*invert the image */
                                IMAGE *image  /*image ot invert */
                               );
                                 //bias rectangle
extern DLLSYM void bias_sub_image(IMAGE *source,  //source image
                                  inT32 xstart,   //start coords
                                  inT32 ystart,
                                  inT32 xext,     //extent to copy
                                  inT32 yext,
                                  uinT8 bias      //number to add
                                 );
                                 //copy rectangle
extern DLLSYM void starbase_to_normal(IMAGE *source,       //source image
                                      inT32 xstart,        //start coords
                                      inT32 ystart,
                                      inT32 xext,          //extent to copy
                                      inT32 yext,
                                      IMAGE *dest,         //destination image
                                      inT32 xdest,         //destination coords
                                      inT32 ydest,
                                      BOOL8 preserve_grey  //shift to new bpp
                                     );
#endif