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 "DeviceReadBuffer.h"
9 #include "dtvrecorder.h"
10 #include "mpeg/mpegstreamdata.h"
11 #include "mpeg/tspacket.h"
12 
13 struct AVFormatContext;
14 struct AVPacket;
15 class MythCommFlagPlayer;
16 
24 {
25  public:
26  explicit ImportRecorder(TVRec*rec) : DTVRecorder(rec) {}
27  ~ImportRecorder() override = 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 */*r*/) const override // DTVRecorder
44  {return nullptr;}
45  void UpdateRecSize();
46 
47  private:
48  int m_importFd {-1};
50  long long m_nfc {0};
51 };
52 
53 #endif // IMPORT_RECORDER_H
ImportRecorder::m_cfp
MythCommFlagPlayer * m_cfp
Definition: importrecorder.h:49
dtvrecorder.h
ImportRecorder::Open
bool Open(void)
Definition: importrecorder.cpp:151
RecordingInfo
Holds information on a TV Program one might wish to record.
Definition: recordinginfo.h:35
ImportRecorder::~ImportRecorder
~ImportRecorder() override=default
ImportRecorder::GetRecordingQuality
RecordingQuality * GetRecordingQuality(const RecordingInfo *) const override
Returns a report about the current recordings quality.
Definition: importrecorder.h:43
ImportRecorder::run
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
Definition: importrecorder.cpp:89
hardwareprofile.scan.profile
profile
Definition: scan.py:97
ImportRecorder::GetFramesWritten
long long GetFramesWritten(void) override
Returns number of frames written to disk.
Definition: importrecorder.cpp:84
ImportRecorder::SetOptionsFromProfile
void SetOptionsFromProfile(RecordingProfile *profile, const QString &videodev, const QString &audiodev, const QString &vbidev) override
Sets basic recorder options.
Definition: importrecorder.cpp:49
MythCommFlagPlayer
Definition: mythcommflagplayer.h:25
tspacket.h
ImportRecorder::m_importFd
int m_importFd
Definition: importrecorder.h:48
RecordingQuality
Definition: recordingquality.h:34
DTVRecorder
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:26
ImportRecorder::Close
void Close(void)
Definition: importrecorder.cpp:230
ImportRecorder::UpdateRecSize
void UpdateRecSize()
Definition: importrecorder.cpp:76
mpegstreamdata.h
ImportRecorder::ImportRecorder
ImportRecorder(TVRec *rec)
Definition: importrecorder.h:26
ImportRecorder::m_nfc
long long m_nfc
Definition: importrecorder.h:50
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:142
ImportRecorder
ImportRecorder imports files, creating a seek map and other stuff that MythTV likes to have for recor...
Definition: importrecorder.h:23
ImportRecorder::InitStreamData
void InitStreamData(void) override
Definition: importrecorder.h:40
RecordingProfile
Definition: recordingprofile.h:41
DeviceReadBuffer.h