mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
7b8e396f77
Modified Files: HISTORY remux/ts2pes.c remux/ts2pes.h remux/tsremux.h server/livestreamer.c server/livestreamer.h
30 lines
716 B
C++
30 lines
716 B
C++
#ifndef VDR_STREAMDEV_TSREMUX_H
|
|
#define VDR_STREAMDEV_TSREMUX_H
|
|
|
|
#include "libdvbmpeg/transform.h"
|
|
#include <vdr/remux.h>
|
|
|
|
// Picture types:
|
|
#define NO_PICTURE 0
|
|
#define I_FRAME 1
|
|
#define P_FRAME 2
|
|
#define B_FRAME 3
|
|
|
|
namespace Streamdev {
|
|
|
|
class cTSRemux {
|
|
public:
|
|
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
|