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
13struct AVFormatContext;
14struct AVPacket;
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
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:35
ImportRecorder imports files, creating a seek map and other stuff that MythTV likes to have for recor...
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
ImportRecorder(TVRec *rec)
RecordingQuality * GetRecordingQuality(const RecordingInfo *) const override
Returns a report about the current recordings quality.
void InitStreamData(void) override
void SetOptionsFromProfile(RecordingProfile *profile, const QString &videodev, const QString &audiodev, const QString &vbidev) override
Sets basic recorder options.
~ImportRecorder() override=default
long long GetFramesWritten(void) override
Returns number of frames written to disk.
long long m_nfc
MythCommFlagPlayer * m_cfp
Holds information on a TV Program one might wish to record.
Definition: recordinginfo.h:36
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:143