summaryrefslogtreecommitdiff
path: root/src/eTransCodingDevice.h
blob: 845939c047c533c58230a0cd12302378c3f8d4fb (plain)
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
/*
 * eTransCodingDevice.h
 *
 *  Created on: 2013. 11. 3.
 *      Author: kos
 */

#ifndef ETRANSCODINGDEVICE_H_
#define ETRANSCODINGDEVICE_H_

class eTransCodingDevice
{
private:
	int mDeviceFd;
public:
	eTransCodingDevice();
	~eTransCodingDevice();

	bool Open();
	void Close();

	int GetDeviceFd();

	bool SetStreamPid(int aVideoPid, int aAudioPid);
	bool SetStreamPid(int aVideoPid, int aAudioPid, int aPmtPid);

	bool StartTranscoding();
	void StopTranscoding();

	static int GetMaxDeviceCount();
};
//-------------------------------------------------------------------------------

#endif /* ETRANSCODINGDEVICE_H_ */