File: tsremux.h

package info (click to toggle)
vdr-plugin-streamdev 0.6.1%2Bgit20170911-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,244 kB
  • sloc: ansic: 16,280; sh: 237; makefile: 178
file content (28 lines) | stat: -rw-r--r-- 679 bytes parent folder | download | duplicates (7)
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
#ifndef VDR_STREAMDEV_TSREMUX_H
#define VDR_STREAMDEV_TSREMUX_H

#include "libdvbmpeg/transform.h"
#include <vdr/remux.h>

// Picture types:
#define NO_PICTURE 0

namespace Streamdev {

class cTSRemux {
public:
	virtual ~cTSRemux() {};

	virtual int Put(const uchar *Data, int Count) = 0;
	virtual uchar *Get(int &Count) = 0;
	virtual void Del(int Count) = 0;

	static void SetBrokenLink(uchar *Data, int Length);
	static int GetPid(const uchar *Data);
	static int GetPacketLength(const uchar *Data, int Count, int Offset);
	static int ScanVideoPacket(const uchar *Data, int Count, int Offset, uchar &PictureType);
};

} // namespace Streamdev

#endif // VDR_STREAMDEV_TSREMUX_H