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() 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:156
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:92
hardwareprofile.scan.profile
profile
Definition: scan.py:99
ImportRecorder::GetFramesWritten
long long GetFramesWritten(void) override
Returns number of frames written to disk.
Definition: importrecorder.cpp:87
ImportRecorder::SetOptionsFromProfile
void SetOptionsFromProfile(RecordingProfile *profile, const QString &videodev, const QString &audiodev, const QString &vbidev) override
Sets basic recorder options.
Definition: importrecorder.cpp:48
MythCommFlagPlayer
Definition: mythcommflagplayer.h:7
tspacket.h
ImportRecorder::m_importFd
int m_importFd
Definition: importrecorder.h:48
RecordingQuality
Definition: recordingquality.h:35
DTVRecorder
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:36
ImportRecorder::Close
void Close(void)
Definition: importrecorder.cpp:235
ImportRecorder::UpdateRecSize
void UpdateRecSize()
Definition: importrecorder.cpp:79
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:143
ImportRecorder
ImportRecorder imports files, creating a seek map and other stuff that MythTV likes to have for recor...
Definition: importrecorder.h:24
ImportRecorder::InitStreamData
void InitStreamData(void) override
Definition: importrecorder.h:40
RecordingProfile
Definition: recordingprofile.h:40
DeviceReadBuffer.h