summaryrefslogtreecommitdiff
path: root/ttxtsubsrecorder.h
blob: d3ef7ac541bbafbea42c908bbfa4d49d9ad62fc3 (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);
  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;
};