![]() |
Miam-Player
0.8.0
A nice music player
|
#include <AudioFrame.h>
Public Member Functions | |
AudioFrame (const AudioFormat &format=AudioFormat(), const QByteArray &data=QByteArray()) | |
AudioFrame construct an audio frame from a given buffer and format. More... | |
AudioFrame (const AudioFrame &other) | |
virtual | ~AudioFrame () |
AudioFrame & | operator= (const AudioFrame &other) |
bool | isValid () const |
operator bool () const | |
QByteArray | data () |
data Audio data. More... | |
virtual int | channelCount () const |
channelCount for audio, channel count equals plane count for video, channels >= planes More... | |
AudioFrame | clone () const |
Deep copy. More... | |
AudioFormat | format () const |
void | setSamplesPerChannel (int samples) |
int | samplesPerChannel () const |
AudioFrame | to (const AudioFormat &fmt) const |
void | setAudioResampler (AudioResampler *conv) |
qint64 | duration () const |
Returns the number of microseconds represented by bytes in this format. More... | |
![]() | |
Frame (const Frame &other) | |
virtual | ~Frame ()=0 |
Frame & | operator= (const Frame &other) |
int | planeCount () const |
planeCount a decoded frame can be packed and planar. More... | |
int | bytesPerLine (int plane=0) const |
bytesPerLine For video, it's size of each picture line. More... | |
QByteArray | frameData () const |
QByteArray | data (int plane=0) const |
uchar * | bits (int plane=0) |
const uchar * | bits (int plane=0) const |
const uchar * | constBits (int plane=0) const |
void | setBits (uchar *b, int plane=0) |
setBits does nothing if plane is invalid. More... | |
void | setBits (const QVector< uchar *> &b) |
void | setBits (quint8 *slice[]) |
void | setBytesPerLine (int lineSize, int plane=0) |
setBytesPerLine does nothing if plane is invalid. More... | |
void | setBytesPerLine (const QVector< int > &lineSize) |
void | setBytesPerLine (int stride[]) |
QVariantMap | availableMetaData () const |
QVariant | metaData (const QString &key) const |
void | setMetaData (const QString &key, const QVariant &value) |
void | setTimestamp (qreal ts) |
qreal | timestamp () const |
void | swap (Frame &other) |
Additional Inherited Members | |
![]() | |
Frame (FramePrivate *d) | |
![]() | |
QExplicitlySharedDataPointer< FramePrivate > | d_ptr |
QtAV::AudioFrame::AudioFrame | ( | const AudioFormat & | format = AudioFormat() , |
const QByteArray & | data = QByteArray() |
||
) |
AudioFrame construct an audio frame from a given buffer and format.
QtAV::AudioFrame::AudioFrame | ( | const AudioFrame & | other | ) |
|
virtual |
|
virtual |
channelCount for audio, channel count equals plane count for video, channels >= planes
Reimplemented from QtAV::Frame.
AudioFrame QtAV::AudioFrame::clone | ( | ) | const |
Deep copy.
If you want to copy data from somewhere, knowing the format, width and height, then you can use clone().
QByteArray QtAV::AudioFrame::data | ( | ) |
data Audio data.
clone is called if frame is not constructed with a QByteArray.
qint64 QtAV::AudioFrame::duration | ( | ) | const |
Returns the number of microseconds represented by bytes in this format.
Returns 0 if this format is not valid. Note that some rounding may occur if bytes is not an exact multiple of the number of bytes per frame.
AudioFormat QtAV::AudioFrame::format | ( | ) | const |
bool QtAV::AudioFrame::isValid | ( | ) | const |
|
inline |
AudioFrame& QtAV::AudioFrame::operator= | ( | const AudioFrame & | other | ) |
int QtAV::AudioFrame::samplesPerChannel | ( | ) | const |
void QtAV::AudioFrame::setAudioResampler | ( | AudioResampler * | conv | ) |
void QtAV::AudioFrame::setSamplesPerChannel | ( | int | samples | ) |
AudioFrame QtAV::AudioFrame::to | ( | const AudioFormat & | fmt | ) | const |