summaryrefslogtreecommitdiff
path: root/ttxtsubsrecorder.h
blob: bb9182a80669af0fb167cdb9ba3ece924f2a808f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

class cDevice;
class cChannel;
class cTtxtSubsReceiver;
struct ttxtinfo;

class cTtxtSubsRecorder : public cTtxtSubsRecorderBase {
 public:
  cTtxtSubsRecorder(cDevice *dev, const cChannel *ch, char *lang, int HI);
  virtual ~cTtxtSubsRecorder();

  // returns a PES packet if there is data to add to the recording
  virtual uint8_t *GetPacket(uint8_t **buf, size_t *len);
  virtual void DeviceAttach(void);

 private:
  cDevice *mDev;
  int mSid;
  int mVid;
  ttxtinfo *mTtxtinfo;
  cTtxtSubsReceiver *mReceiver;
  uint8_t *mPacketBuffer;
};