MythTV
master
|
Holds information on a recording file and it's video and audio streams. More...
#include <libmythtv/recordingfile.h>
Public Member Functions | |
RecordingFile ()=default | |
~RecordingFile ()=default | |
bool | Load () |
bool | Save () |
Static Public Member Functions | |
static QString | AVContainerToString (AVContainer format) |
static AVContainer | AVContainerFromString (const QString &formatStr) |
Public Attributes | |
uint | m_recordingId {0} |
QString | m_storageDeviceID |
QString | m_storageGroup |
uint | m_fileId {0} |
QString | m_fileName |
uint64_t | m_fileSize {0} |
AVContainer | m_containerFormat {formatUnknown} |
QString | m_videoCodec |
QSize | m_videoResolution |
double | m_videoAspectRatio {0.0} |
double | m_videoFrameRate {0.0} |
QString | m_audioCodec |
int | m_audioChannels {0} |
double | m_audioSampleRate {0.0} |
int | m_audioBitrate {0} |
Holds information on a recording file and it's video and audio streams.
In constrast to RecordingInfo that contains metadata pertaining to a recorded program this class stores information on the physical file. In future it may be that each 'recording' is represented by multiple files, for example as the result of transcoding for streaming or a multi-part recording created because a recording was interupted or split by the broadcaster around a news bulletin
Definition at line 29 of file recordingfile.h.
|
default |
|
default |
bool RecordingFile::Load | ( | ) |
Definition at line 7 of file recordingfile.cpp.
Referenced by RecordingInfo::LoadRecordingFile().
bool RecordingFile::Save | ( | ) |
Definition at line 55 of file recordingfile.cpp.
Referenced by RecorderBase::AspectChange(), RecorderBase::AudioCodecChange(), doUpgradeTVDatabaseSchema(), RecorderBase::FinishRecording(), RecorderBase::FrameRateChange(), RecordingInfo::InsertFile(), main(), RecorderBase::ResolutionChange(), RecordingInfo::SaveFilesize(), RecorderBase::SetRecording(), and RecorderBase::VideoCodecChange().
|
static |
Definition at line 144 of file recordingfile.cpp.
Referenced by RecorderBase::FinishRecording(), and Save().
|
static |
Definition at line 133 of file recordingfile.cpp.
Referenced by Load().
uint RecordingFile::m_recordingId {0} |
Definition at line 38 of file recordingfile.h.
Referenced by Load(), RecordingInfo::LoadRecordingFile(), and Save().
QString RecordingFile::m_storageDeviceID |
Definition at line 40 of file recordingfile.h.
Referenced by doUpgradeTVDatabaseSchema(), RecordingInfo::InsertFile(), Load(), and Save().
QString RecordingFile::m_storageGroup |
Definition at line 41 of file recordingfile.h.
Referenced by doUpgradeTVDatabaseSchema(), RecordingInfo::InsertFile(), Load(), and Save().
uint RecordingFile::m_fileId {0} |
Definition at line 43 of file recordingfile.h.
QString RecordingFile::m_fileName |
Definition at line 44 of file recordingfile.h.
Referenced by doUpgradeTVDatabaseSchema(), RecordingInfo::InsertFile(), Load(), and Save().
uint64_t RecordingFile::m_fileSize {0} |
Definition at line 45 of file recordingfile.h.
Referenced by doUpgradeTVDatabaseSchema(), RecordingInfo::GetFilesize(), Load(), Save(), RecordingInfo::SaveFilesize(), and RecordingInfo::SetFilesize().
AVContainer RecordingFile::m_containerFormat {formatUnknown} |
Definition at line 47 of file recordingfile.h.
Referenced by RecorderBase::FinishRecording(), Load(), main(), Save(), and RecorderBase::SetRecording().
QString RecordingFile::m_videoCodec |
Definition at line 49 of file recordingfile.h.
Referenced by RecorderBase::FinishRecording(), Load(), Save(), and RecorderBase::VideoCodecChange().
QSize RecordingFile::m_videoResolution |
Definition at line 50 of file recordingfile.h.
Referenced by doUpgradeTVDatabaseSchema(), RecorderBase::FinishRecording(), Load(), RecorderBase::ResolutionChange(), and Save().
double RecordingFile::m_videoAspectRatio {0.0} |
Definition at line 51 of file recordingfile.h.
Referenced by RecorderBase::AspectChange(), doUpgradeTVDatabaseSchema(), RecorderBase::FinishRecording(), Load(), and Save().
double RecordingFile::m_videoFrameRate {0.0} |
Definition at line 52 of file recordingfile.h.
Referenced by doUpgradeTVDatabaseSchema(), RecorderBase::FinishRecording(), RecorderBase::FrameRateChange(), Load(), and Save().
QString RecordingFile::m_audioCodec |
Definition at line 54 of file recordingfile.h.
Referenced by RecorderBase::AudioCodecChange(), RecorderBase::FinishRecording(), Load(), and Save().
int RecordingFile::m_audioChannels {0} |
Definition at line 55 of file recordingfile.h.
double RecordingFile::m_audioSampleRate {0.0} |
Definition at line 56 of file recordingfile.h.
int RecordingFile::m_audioBitrate {0} |
Definition at line 57 of file recordingfile.h.