MythTV  master
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
RecordingFile Class Reference

Holds information on a recording file and it's video and audio streams. More...

#include <libmythtv/recordingfile.h>

Collaboration diagram for RecordingFile:
[legend]

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}
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RecordingFile()

RecordingFile::RecordingFile ( )
default

◆ ~RecordingFile()

RecordingFile::~RecordingFile ( )
default

Member Function Documentation

◆ Load()

bool RecordingFile::Load ( )

Definition at line 7 of file recordingfile.cpp.

Referenced by RecordingInfo::LoadRecordingFile().

◆ Save()

bool RecordingFile::Save ( )

◆ AVContainerToString()

QString RecordingFile::AVContainerToString ( AVContainer  format)
static

Definition at line 144 of file recordingfile.cpp.

Referenced by RecorderBase::FinishRecording(), and Save().

◆ AVContainerFromString()

AVContainer RecordingFile::AVContainerFromString ( const QString &  formatStr)
static

Definition at line 133 of file recordingfile.cpp.

Referenced by Load().

Member Data Documentation

◆ m_recordingId

uint RecordingFile::m_recordingId {0}

Definition at line 38 of file recordingfile.h.

Referenced by Load(), RecordingInfo::LoadRecordingFile(), and Save().

◆ m_storageDeviceID

QString RecordingFile::m_storageDeviceID

Definition at line 40 of file recordingfile.h.

Referenced by doUpgradeTVDatabaseSchema(), RecordingInfo::InsertFile(), Load(), and Save().

◆ m_storageGroup

QString RecordingFile::m_storageGroup

Definition at line 41 of file recordingfile.h.

Referenced by doUpgradeTVDatabaseSchema(), RecordingInfo::InsertFile(), Load(), and Save().

◆ m_fileId

uint RecordingFile::m_fileId {0}

Definition at line 43 of file recordingfile.h.

Referenced by Load(), and Save().

◆ m_fileName

QString RecordingFile::m_fileName

Definition at line 44 of file recordingfile.h.

Referenced by doUpgradeTVDatabaseSchema(), RecordingInfo::InsertFile(), Load(), and Save().

◆ m_fileSize

uint64_t RecordingFile::m_fileSize {0}

◆ m_containerFormat

AVContainer RecordingFile::m_containerFormat {formatUnknown}

◆ m_videoCodec

QString RecordingFile::m_videoCodec

◆ m_videoResolution

QSize RecordingFile::m_videoResolution

◆ m_videoAspectRatio

double RecordingFile::m_videoAspectRatio {0.0}

◆ m_videoFrameRate

double RecordingFile::m_videoFrameRate {0.0}

◆ m_audioCodec

QString RecordingFile::m_audioCodec

◆ m_audioChannels

int RecordingFile::m_audioChannels {0}

Definition at line 55 of file recordingfile.h.

Referenced by Load(), and Save().

◆ m_audioSampleRate

double RecordingFile::m_audioSampleRate {0.0}

Definition at line 56 of file recordingfile.h.

Referenced by Load(), and Save().

◆ m_audioBitrate

int RecordingFile::m_audioBitrate {0}

Definition at line 57 of file recordingfile.h.

Referenced by Load(), and Save().


The documentation for this class was generated from the following files: