This file is indexed.

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

    V4L2 Decode  

    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_DECODE_H
#define V4L2_DECODE_H

#include <stdio.h>
#include <stdlib.h>
#include <linux/videodev2.h>
#include "indidevapi.h"

#include <vector>

class V4L2_Decoder
{
public:
V4L2_Decoder();
virtual ~V4L2_Decoder();

virtual void init()=0;
virtual const char *getName();
virtual bool setcrop(struct v4l2_crop c)=0;
virtual void resetcrop()=0;
virtual void usesoftcrop(bool c)=0;
 virtual void setformat(struct v4l2_format f, bool use_ext_pix_format)=0;
virtual bool issupportedformat(unsigned int format)=0;
virtual const std::vector<unsigned int> &getsupportedformats()=0;
virtual void decode(unsigned char *frame, struct v4l2_buffer *buf)=0;
virtual unsigned char * getY()=0;
virtual unsigned char * getU()=0;
virtual unsigned char * getV()=0;
virtual unsigned char * getColorBuffer()=0;
 virtual unsigned char * getRGBBuffer()=0;
virtual float * getLinearY()=0;
virtual int getBpp()=0;
virtual void setQuantization(bool)=0;
virtual void setLinearization(bool)=0;

protected:
const char *name;

};



class V4L2_Decode
{
public:
V4L2_Decode();
~V4L2_Decode();
std::vector<V4L2_Decoder *> getDecoderList();
V4L2_Decoder *getDecoder();
V4L2_Decoder *getDefaultDecoder();
void setDecoder(V4L2_Decoder *decoder);

protected:
std::vector<V4L2_Decoder *> decoder_list;
V4L2_Decoder *current_decoder;
V4L2_Decoder *default_decoder;

};

#endif