TagLib::MPEG::XingHeader Class Reference
An implementation of the Xing VBR headers.
More...
#include <xingheader.h>
List of all members.
Detailed Description
An implementation of the Xing VBR headers.
This is a minimalistic implementation of the Xing VBR headers. Xing headers are often added to VBR (variable bit rate) MP3 streams to make it easy to compute the length and quality of a VBR stream. Our implementation is only concerned with the total size of the stream (so that we can calculate the total playing time and the average bitrate). It uses this text and the XMMS sources as references.
Definition at line 45 of file xingheader.h.
Constructor & Destructor Documentation
TagLib::MPEG::XingHeader::XingHeader |
( |
const ByteVector & |
data |
) |
|
|
|
Parses a Xing header based on data. The data must be at least 16 bytes long (anything longer than this is discarded). |
virtual TagLib::MPEG::XingHeader::~XingHeader |
( |
|
) |
[virtual] |
|
Member Function Documentation
bool TagLib::MPEG::XingHeader::isValid |
( |
|
) |
const |
|
|
Returns true if the data was parsed properly and if there is a vaild Xing header present. |
uint TagLib::MPEG::XingHeader::totalFrames |
( |
|
) |
const |
|
|
Returns the total number of frames. |
uint TagLib::MPEG::XingHeader::totalSize |
( |
|
) |
const |
|
|
Returns the total size of stream in bytes. |
|
Returns the offset for the start of this Xing header, given the version and channels of the frame |
The documentation for this class was generated from the following file:
This file is part of the documentation for TagLib Version 1.0.