This file is indexed.

/usr/include/libindi/v4l2_builtin_decoder.h is in libindi-dev 1.2.0-3.

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
/*
    Copyright (C) 2005 by Jasem Mutlaq <mutlaqja@ikarustech.com>
    Copyright (C) 2014 by geehalel <geehalel@gmail.com>

    V4L2 Builtin Decoder  

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    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 the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

*/ 

#ifndef V4L2_BUILTIN_DECODER_H
#define V4L2_BUILTIN_DECODER_H

#include "v4l2_decode.h"
#include <map>

class V4L2_Builtin_Decoder: public V4L2_Decoder 
{
  
  struct format {
    unsigned int fourcc; // V4L2 format
    unsigned char bpp; // bytes per pixel implementation
    bool softcrop; // softcropping available
  format(unsigned int f, unsigned char b=8, bool sc=false) : fourcc(f), bpp(b), softcrop(sc) {}
  };
  
 public:
  V4L2_Builtin_Decoder();
  virtual ~V4L2_Builtin_Decoder();
  virtual void init();
  virtual bool setcrop(struct v4l2_crop c);
  virtual void resetcrop();
  virtual void usesoftcrop(bool c);
  virtual void setformat(struct v4l2_format f, bool use_ext_pix_format);
  virtual bool issupportedformat(unsigned int format);
  virtual const std::vector<unsigned int> &getsupportedformats();
  virtual void decode(unsigned char *frame, struct v4l2_buffer *buf);
  virtual unsigned char * getY();
  virtual unsigned char * getU();
  virtual unsigned char * getV();
  virtual unsigned char * getColorBuffer();
  virtual unsigned char * getRGBBuffer();
  virtual float *getLinearY();
  virtual int getBpp();
  virtual void setQuantization(bool);
  virtual void setLinearization(bool);

 protected:
  void init_supported_formats();
  std::map <unsigned int, struct format *> supported_formats;
  std::vector<unsigned int> vsuppformats;
  void allocBuffers();
  void makeY();
  void makeLinearY();

  struct v4l2_crop crop;
  struct v4l2_format fmt;
  bool useSoftCrop; // uses software cropping
  bool doCrop; // do software cropping when decoding frames
  bool doQuantization;
  bool doLinearization;
  
  unsigned char *YBuf;
  unsigned char *UBuf;
  unsigned char *VBuf;
  unsigned char *yuvBuffer;
  unsigned char *yuyvBuffer;
  unsigned char *colorBuffer;
  unsigned char *rgb24_buffer;
  float *linearBuffer;
  //unsigned char *cropbuf;
  unsigned int bufwidth;
  unsigned int bufheight;
  char lut5[32];
  char lut6[64];
  unsigned char bpp;
};
#endif