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 <recordingfile.h>

Public Member Functions

 RecordingFile ()
 
 ~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
 
QString m_storageDeviceID
 
QString m_storageGroup
 
uint m_fileId
 
QString m_fileName
 
uint64_t m_fileSize
 
AVContainer m_containerFormat
 
QString m_videoCodec
 
QSize m_videoResolution
 
double m_videoAspectRatio
 
double m_videoFrameRate
 
QString m_audioCodec
 
int m_audioChannels
 
double m_audioSampleRate
 
int m_audioBitrate
 

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 ( )

Definition at line 7 of file recordingfile.cpp.

◆ ~RecordingFile()

RecordingFile::~RecordingFile ( )
default

Member Function Documentation

◆ Load()

bool RecordingFile::Load ( void  )

Definition at line 18 of file recordingfile.cpp.

Referenced by RecordingInfo::LoadRecordingFile().

◆ Save()

bool RecordingFile::Save ( void  )

◆ AVContainerToString()

QString RecordingFile::AVContainerToString ( AVContainer  format)
static

Definition at line 156 of file recordingfile.cpp.

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

◆ AVContainerFromString()

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

Definition at line 144 of file recordingfile.cpp.

Referenced by Load().

Member Data Documentation

◆ m_recordingId

uint RecordingFile::m_recordingId

Definition at line 38 of file recordingfile.h.

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

◆ m_storageDeviceID

QString RecordingFile::m_storageDeviceID

◆ m_storageGroup

QString RecordingFile::m_storageGroup

◆ m_fileId

uint RecordingFile::m_fileId

Definition at line 43 of file recordingfile.h.

Referenced by Load(), and Save().

◆ m_fileName

QString RecordingFile::m_fileName

◆ m_fileSize

uint64_t RecordingFile::m_fileSize

◆ m_containerFormat

AVContainer RecordingFile::m_containerFormat

◆ m_videoCodec

QString RecordingFile::m_videoCodec

◆ m_videoResolution

QSize RecordingFile::m_videoResolution

◆ m_videoAspectRatio

double RecordingFile::m_videoAspectRatio

◆ m_videoFrameRate

double RecordingFile::m_videoFrameRate

◆ m_audioCodec

QString RecordingFile::m_audioCodec

◆ m_audioChannels

int RecordingFile::m_audioChannels

Definition at line 56 of file recordingfile.h.

Referenced by Load(), and Save().

◆ m_audioSampleRate

double RecordingFile::m_audioSampleRate

Definition at line 57 of file recordingfile.h.

Referenced by Load(), and Save().

◆ m_audioBitrate

int RecordingFile::m_audioBitrate

Definition at line 58 of file recordingfile.h.

Referenced by Load(), and Save().


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