This file is indexed.

/usr/include/libtgvoip/OpusEncoder.h is in libtgvoip-dev 1.0.3-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
//
// libtgvoip is free and unencumbered public domain software.
// For more information, see http://unlicense.org or the UNLICENSE file
// you should have received with this source code distribution.
//

#ifndef LIBTGVOIP_OPUSENCODER_H
#define LIBTGVOIP_OPUSENCODER_H


#include "MediaStreamItf.h"
#include "opus.h"
#include "threading.h"
#include "BlockingQueue.h"
#include "BufferPool.h"
#include "EchoCanceller.h"

#include <stdint.h>

namespace tgvoip{
class OpusEncoder : public MediaStreamItf{
public:
	OpusEncoder(MediaStreamItf* source);
	virtual ~OpusEncoder();
	virtual void Start();
	virtual void Stop();
	void SetBitrate(uint32_t bitrate);
	void SetEchoCanceller(EchoCanceller* aec);
	void SetOutputFrameDuration(uint32_t duration);
	void SetPacketLoss(int percent);
	int GetPacketLoss();
	uint32_t GetBitrate();

private:
	static size_t Callback(unsigned char* data, size_t len, void* param);
	static void* StartThread(void* arg);
	void RunThread();
	void Encode(unsigned char* data, size_t len);
	MediaStreamItf* source;
	::OpusEncoder* enc;
	unsigned char buffer[4096];
	uint32_t requestedBitrate;
	uint32_t currentBitrate;
	tgvoip_thread_t thread;
	BlockingQueue<unsigned char*> queue;
	BufferPool bufferPool;
	EchoCanceller* echoCanceller;
	int complexity;
	bool running;
	uint32_t frameDuration;
	int packetLossPercent;
	uint32_t mediumCorrectionBitrate;
	uint32_t strongCorrectionBitrate;
	double mediumCorrectionMultiplier;
	double strongCorrectionMultiplier;
};
}

#endif //LIBTGVOIP_OPUSENCODER_H