MythTV  master
Public Member Functions | Private Attributes | List of all members
VorbisEncoder Class Reference

#include <vorbisencoder.h>

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

Public Member Functions

 VorbisEncoder (const QString &outfile, int qualitylevel, MusicMetadata *metadata)
 
 ~VorbisEncoder () override
 
int addSamples (int16_t *bytes, unsigned int len) override
 
- Public Member Functions inherited from Encoder
 Encoder (QString outfile, int qualitylevel, MusicMetadata *metadata)
 
virtual ~Encoder ()
 
virtual bool isValid ()
 

Private Attributes

ogg_page m_og {}
 
ogg_packet m_op {}
 
long m_packetsDone {0}
 
long m_bytesWritten {0L}
 
vorbis_comment m_vc {}
 
ogg_stream_state m_os {}
 
vorbis_dsp_state m_vd {}
 
vorbis_block m_vb {}
 
vorbis_info m_vi {}
 

Additional Inherited Members

- Protected Attributes inherited from Encoder
const QString m_outfile
 
FILE * m_out {nullptr}
 
int m_quality
 
MusicMetadatam_metadata {nullptr}
 

Detailed Description

Definition at line 10 of file vorbisencoder.h.

Constructor & Destructor Documentation

◆ VorbisEncoder()

VorbisEncoder::VorbisEncoder ( const QString &  outfile,
int  qualitylevel,
MusicMetadata metadata 
)

Definition at line 33 of file vorbisencoder.cpp.

◆ ~VorbisEncoder()

VorbisEncoder::~VorbisEncoder ( )
override

Definition at line 90 of file vorbisencoder.cpp.

Member Function Documentation

◆ addSamples()

int VorbisEncoder::addSamples ( int16_t *  bytes,
unsigned int  len 
)
overridevirtual

Implements Encoder.

Definition at line 104 of file vorbisencoder.cpp.

Referenced by ~VorbisEncoder().

Member Data Documentation

◆ m_og

ogg_page VorbisEncoder::m_og {}
private

Definition at line 18 of file vorbisencoder.h.

Referenced by addSamples(), and VorbisEncoder().

◆ m_op

ogg_packet VorbisEncoder::m_op {}
private

Definition at line 19 of file vorbisencoder.h.

Referenced by addSamples(), and VorbisEncoder().

◆ m_packetsDone

long VorbisEncoder::m_packetsDone {0}
private

Definition at line 20 of file vorbisencoder.h.

Referenced by addSamples().

◆ m_bytesWritten

long VorbisEncoder::m_bytesWritten {0L}
private

Definition at line 21 of file vorbisencoder.h.

Referenced by addSamples().

◆ m_vc

vorbis_comment VorbisEncoder::m_vc {}
private

Definition at line 22 of file vorbisencoder.h.

Referenced by VorbisEncoder(), and ~VorbisEncoder().

◆ m_os

ogg_stream_state VorbisEncoder::m_os {}
private

Definition at line 23 of file vorbisencoder.h.

Referenced by addSamples(), VorbisEncoder(), and ~VorbisEncoder().

◆ m_vd

vorbis_dsp_state VorbisEncoder::m_vd {}
private

Definition at line 25 of file vorbisencoder.h.

Referenced by addSamples(), VorbisEncoder(), and ~VorbisEncoder().

◆ m_vb

vorbis_block VorbisEncoder::m_vb {}
private

Definition at line 26 of file vorbisencoder.h.

Referenced by addSamples(), VorbisEncoder(), and ~VorbisEncoder().

◆ m_vi

vorbis_info VorbisEncoder::m_vi {}
private

Definition at line 27 of file vorbisencoder.h.

Referenced by VorbisEncoder(), and ~VorbisEncoder().


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