This file is indexed.

/usr/include/mjpegtools/mpeg2enc/quantize.hh is in libmjpegtools-dev 1:2.1.0+debian-5.

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
#ifndef _QUANTIZER_HH
#define _QUANTIZER_HH

/*  (C) 2003 Andrew Stevens */

/*  This Software is free software; you can redistribute it
 *  and/or modify it under the terms of the GNU General Public License
 *  as published by the Free Software Foundation; either version 2 of
 *  the License, or (at your option) any later version.
 *
 *  This program 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
 *  General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 *
 */

#include "mjpeg_types.h"
#include "quantize_ref.h"

class EncoderParams;
class Quantizer : public QuantizerCalls
{
public:
	Quantizer( EncoderParams &_encoder );
	void Init();
	~Quantizer();

	inline void
	QuantIntra( int16_t *src, int16_t *dst,
				int q_scale_type,
				int dcprec,
				int dctsatlim,
				int *nonsat_mquant)
		{
			quant_intra( workspace, src, dst, 
						 q_scale_type, dcprec, 
						 dctsatlim, nonsat_mquant );
		}

	inline
	int QuantInter( int16_t *src, int16_t *dst,
					int q_scale_type, 
					int dctsatlim,
					int *nonsat_mquant )
		{
			return (*pquant_non_intra)( workspace, src, dst, 
										q_scale_type, dctsatlim, 
										nonsat_mquant );
		}

	
    inline int 
	WeightCoeffIntra( int16_t *blk )
		{
			return 	(*pquant_weight_coeff_intra)(workspace, blk);
		}
	
	inline int
	WeightCoeffInter( int16_t *blk )
		{
			return (*pquant_weight_coeff_inter)(workspace, blk );
		}


	inline void IQuantIntra( int16_t *src, int16_t *dst, int dc_prec, int mquant )
		{
			(*piquant_intra)(workspace, src, dst, dc_prec, mquant );
		}


	inline void
	IQuantInter( int16_t *src, int16_t *dst, int mquant )
		{
			(*piquant_non_intra)(workspace, src, dst, mquant );
		}

private:
	QuantizerWorkSpace *workspace;
	EncoderParams &encparams;
	//int dctsatlim;
};


/* 
 * Local variables:
 *  c-file-style: "stroustrup"
 *  tab-width: 4
 *  indent-tabs-mode: nil
 * End:
 */
#endif