MythTV  master
Public Member Functions | Protected Attributes | List of all members
Encoder Class Referenceabstract

#include <encoder.h>

Inheritance diagram for Encoder:
Inheritance graph
[legend]
Collaboration diagram for Encoder:
Collaboration graph
[legend]

Public Member Functions

 Encoder (QString outfile, int qualitylevel, MusicMetadata *metadata)
 
virtual ~Encoder ()
 
virtual int addSamples (int16_t *bytes, unsigned int len)=0
 
virtual bool isValid ()
 

Protected Attributes

const QString m_outfile
 
FILE * m_out {nullptr}
 
int m_quality
 
MusicMetadatam_metadata {nullptr}
 

Detailed Description

Definition at line 13 of file mythplugins/mythmusic/mythmusic/encoder.h.

Constructor & Destructor Documentation

◆ Encoder()

Encoder::Encoder ( QString  outfile,
int  qualitylevel,
MusicMetadata metadata 
)

Definition at line 11 of file encoder.cpp.

◆ ~Encoder()

Encoder::~Encoder ( )
virtual

Definition at line 27 of file encoder.cpp.

Member Function Documentation

◆ addSamples()

virtual int Encoder::addSamples ( int16_t *  bytes,
unsigned int  len 
)
pure virtual

Implemented in FlacEncoder, LameEncoder, and VorbisEncoder.

Referenced by CDRipperThread::ripTrack().

◆ isValid()

virtual bool Encoder::isValid ( void  )
inlinevirtual

Definition at line 20 of file mythplugins/mythmusic/mythmusic/encoder.h.

Member Data Documentation

◆ m_outfile

const QString Encoder::m_outfile
protected

◆ m_out

FILE* Encoder::m_out {nullptr}
protected

◆ m_quality

int Encoder::m_quality
protected

Definition at line 25 of file mythplugins/mythmusic/mythmusic/encoder.h.

◆ m_metadata

MusicMetadata* Encoder::m_metadata {nullptr}
protected

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