MythTV  0.28pre
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LameEncoder Class Reference

#include <lameencoder.h>

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

Public Member Functions

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

Private Member Functions

int init_encoder (lame_global_flags *gf, int quality, bool vbr)
 
void init_id3tags (lame_global_flags *gf)
 

Private Attributes

int bits
 
int channels
 
int samplerate
 
int bytes_per_sample
 
int samples_per_channel
 
int mp3buf_size
 
char * mp3buf
 
int mp3bytes
 
lame_global_flags * gf
 

Additional Inherited Members

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

Detailed Description

Definition at line 46 of file lameencoder.h.

Constructor & Destructor Documentation

§ LameEncoder()

LameEncoder::LameEncoder ( const QString &  outfile,
int  qualitylevel,
MusicMetadata metadata,
bool  vbr = false 
)

Definition at line 101 of file lameencoder.cpp.

§ ~LameEncoder()

LameEncoder::~LameEncoder ( )

Definition at line 126 of file lameencoder.cpp.

Member Function Documentation

§ addSamples()

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

Implements Encoder.

Definition at line 151 of file lameencoder.cpp.

Referenced by ~LameEncoder().

§ init_encoder()

int LameEncoder::init_encoder ( lame_global_flags *  gf,
int  quality,
bool  vbr 
)
private

Definition at line 62 of file lameencoder.cpp.

Referenced by LameEncoder().

§ init_id3tags()

void LameEncoder::init_id3tags ( lame_global_flags *  gf)
private

Definition at line 48 of file lameencoder.cpp.

Referenced by LameEncoder().

Member Data Documentation

§ bits

int LameEncoder::bits
private

Definition at line 58 of file lameencoder.h.

§ channels

int LameEncoder::channels
private

Definition at line 59 of file lameencoder.h.

§ samplerate

int LameEncoder::samplerate
private

Definition at line 60 of file lameencoder.h.

§ bytes_per_sample

int LameEncoder::bytes_per_sample
private

Definition at line 61 of file lameencoder.h.

Referenced by addSamples().

§ samples_per_channel

int LameEncoder::samples_per_channel
private

Definition at line 62 of file lameencoder.h.

Referenced by addSamples().

§ mp3buf_size

int LameEncoder::mp3buf_size
private

Definition at line 64 of file lameencoder.h.

Referenced by addSamples().

§ mp3buf

char* LameEncoder::mp3buf
private

Definition at line 65 of file lameencoder.h.

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

§ mp3bytes

int LameEncoder::mp3bytes
private

Definition at line 67 of file lameencoder.h.

§ gf

lame_global_flags* LameEncoder::gf
private

Definition at line 69 of file lameencoder.h.

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


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