|
kwave
18.07.70
|
#include <VorbisEncoder.h>


Public Member Functions | |
| VorbisEncoder () | |
| virtual | ~VorbisEncoder () Q_DECL_OVERRIDE |
| virtual bool | open (QWidget *widget, const Kwave::FileInfo &info, Kwave::MultiTrackReader &src) Q_DECL_OVERRIDE |
| virtual bool | writeHeader (QIODevice &dst) Q_DECL_OVERRIDE |
| virtual bool | encode (Kwave::MultiTrackReader &src, QIODevice &dst) Q_DECL_OVERRIDE |
| virtual void | close () Q_DECL_OVERRIDE |
Public Member Functions inherited from Kwave::OggSubEncoder | |
| virtual | ~OggSubEncoder () |
Private Member Functions | |
| void | encodeProperties (const Kwave::FileInfo &info) |
Private Attributes | |
| Kwave::VorbisCommentMap | m_comments_map |
| Kwave::FileInfo | m_info |
| ogg_stream_state | m_os |
| ogg_page | m_og |
| ogg_packet | m_op |
| vorbis_info | m_vi |
| vorbis_comment | m_vc |
| vorbis_dsp_state | m_vd |
| vorbis_block | m_vb |
Definition at line 39 of file VorbisEncoder.h.
| Kwave::VorbisEncoder::VorbisEncoder | ( | ) |
Constructor
Definition at line 43 of file VorbisEncoder.cpp.
References m_og, m_op, m_os, m_vb, m_vc, m_vd, and m_vi.
|
virtual |
Destructor
Definition at line 57 of file VorbisEncoder.cpp.
References close().

|
virtual |
finished the encoding, clean up
Implements Kwave::OggSubEncoder.
Definition at line 310 of file VorbisEncoder.cpp.
References m_os, m_vb, m_vc, m_vd, and m_vi.
Referenced by ~VorbisEncoder().

|
virtual |
encode received ogg data
| src | MultiTrackReader used as source of the audio data |
| dst | a QIODevice that receives the raw data |
Implements Kwave::OggSubEncoder.
Definition at line 229 of file VorbisEncoder.cpp.
References BUFFER_SIZE, Kwave::SampleArray::constData(), Kwave::MultiTrackReader::eof(), Kwave::MultiTrackReader::isCanceled(), Kwave::FileInfo::length(), m_info, m_og, m_op, m_os, m_vb, m_vd, sample2float(), Kwave::toUint(), and Kwave::FileInfo::tracks().

|
private |
Encodes all file properties into a vorbis comment
Definition at line 63 of file VorbisEncoder.cpp.
References Kwave::FileInfo::contains(), Kwave::FileInfo::get(), m_comments_map, m_vc, and UTF8.
Referenced by open().


|
virtual |
parse the header of the stream and initialize the decoder
| widget | a QWidget to be used as parent for error messages |
| info | reference to a FileInfo to fill |
| src | MultiTrackReader used as source of the audio data |
Implements Kwave::OggSubEncoder.
Definition at line 78 of file VorbisEncoder.cpp.
References Kwave::FileInfo::contains(), DEFAULT_BITRATE, encodeProperties(), Kwave::FileInfo::get(), Kwave::INF_BITRATE_LOWER, Kwave::INF_BITRATE_NOMINAL, Kwave::INF_BITRATE_UPPER, Kwave::INF_VBR_QUALITY, m_info, m_os, m_vb, m_vc, m_vd, m_vi, Kwave::FileInfo::rate(), Kwave::MessageBox::sorry(), Kwave::toInt(), Kwave::FileInfo::tracks(), and Kwave::MessageBox::warningContinueCancel().

|
virtual |
write the header information
| dst | a QIODevice that receives the raw data |
Implements Kwave::OggSubEncoder.
Definition at line 197 of file VorbisEncoder.cpp.
References m_og, m_os, m_vc, and m_vd.
|
private |
map for translating Vorbis comments to Kwave FileInfo
Definition at line 91 of file VorbisEncoder.h.
Referenced by encodeProperties().
|
private |
file info, set in open(...)
Definition at line 94 of file VorbisEncoder.h.
|
private |
one Ogg bitstream page. Vorbis packets are inside
Definition at line 100 of file VorbisEncoder.h.
Referenced by encode(), VorbisEncoder(), and writeHeader().
|
private |
one raw packet of data for decode
Definition at line 103 of file VorbisEncoder.h.
Referenced by encode(), and VorbisEncoder().
|
private |
take physical pages, weld into a logical stream of packets
Definition at line 97 of file VorbisEncoder.h.
Referenced by close(), encode(), open(), VorbisEncoder(), and writeHeader().
|
private |
local working space for packet->PCM decode
Definition at line 115 of file VorbisEncoder.h.
Referenced by close(), encode(), open(), and VorbisEncoder().
|
private |
struct that stores all the user comments
Definition at line 109 of file VorbisEncoder.h.
Referenced by close(), encodeProperties(), open(), VorbisEncoder(), and writeHeader().
|
private |
central working state for the packet->PCM decoder
Definition at line 112 of file VorbisEncoder.h.
Referenced by close(), encode(), open(), VorbisEncoder(), and writeHeader().
|
private |
struct that stores all the static vorbis bitstream settings
Definition at line 106 of file VorbisEncoder.h.
Referenced by close(), open(), and VorbisEncoder().