MythTV  master
importrecorder.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 
3 #ifndef _IMPORT_RECORDER_H_
4 #define _IMPORT_RECORDER_H_
5 
6 #include <QMutex>
7 
8 #include "dtvrecorder.h"
9 #include "tspacket.h"
10 #include "mpegstreamdata.h"
11 #include "DeviceReadBuffer.h"
12 
13 struct AVFormatContext;
14 struct AVPacket;
15 class MythCommFlagPlayer;
16 
24 {
25  public:
26  explicit ImportRecorder(TVRec*rec) : DTVRecorder(rec) {}
27  ~ImportRecorder() = default;
28 
29  // RecorderBase
31  const QString &videodev,
32  const QString &audiodev,
33  const QString &vbidev) override; // DTVRecorder
34 
35  void run(void) override; // RecorderBase
36 
37  bool Open(void);
38  void Close(void);
39 
40  void InitStreamData(void) override {} // DTVRecorder
41 
42  long long GetFramesWritten(void) override; // DTVRecorder
43  RecordingQuality *GetRecordingQuality(const RecordingInfo*) const override // DTVRecorder
44  {return nullptr;}
45  void UpdateRecSize();
46 
47  private:
48  int m_import_fd {-1};
50  long long m_nfc {0};
51 };
52 
53 #endif // _IMPORT_RECORDER_H_
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:28
Holds information on a TV Program one might wish to record.
Definition: recordinginfo.h:34
RecordingQuality * GetRecordingQuality(const RecordingInfo *) const override
Returns a report about the current recordings quality.
ImportRecorder imports files, creating a seek map and other stuff that MythTV likes to have for recor...
void SetOptionsFromProfile(RecordingProfile *profile, const QString &videodev, const QString &audiodev, const QString &vbidev) override
Sets basic recorder options.
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:150
long long GetFramesWritten(void) override
Returns number of frames written to disk.
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
~ImportRecorder()=default
MythCommFlagPlayer * m_cfp
ImportRecorder(TVRec *rec)
void InitStreamData(void) override
long long m_nfc