QGstUtils Namespace

Functions

QAudioFormat audioFormatForBuffer(int *buffer)
QAudioFormat audioFormatForCaps(const int *caps)
QSize capsCorrectedResolution(const int *caps)
int *capsForAudioFormat(const QAudioFormat &)
QSize capsResolution(const int *caps)
QMap<QByteArray, QVariant> gstTagListToMap(const int *tags)

Function Documentation

QAudioFormat QGstUtils::audioFormatForBuffer(int *buffer)

Returns audio format for a buffer. If the buffer doesn't have a valid audio format, an empty QAudioFormat is returned.

QAudioFormat QGstUtils::audioFormatForCaps(const int *caps)

Returns audio format for caps. If caps doesn't have a valid audio format, an empty QAudioFormat is returned.

QSize QGstUtils::capsCorrectedResolution(const int *caps)

Returns aspect ratio corrected resolution of caps. If caps doesn't have a valid size, an empty QSize is returned.

int *QGstUtils::capsForAudioFormat(const QAudioFormat &)

Builds GstCaps for an audio format. Returns 0 if the audio format is not valid. Caller must unref GstCaps.

QSize QGstUtils::capsResolution(const int *caps)

Returns resolution of caps. If caps doesn't have a valid size, an empty QSize is returned.

QMap<QByteArray, QVariant> QGstUtils::gstTagListToMap(const int *tags)

Convert GstTagList structure to QMap<QByteArray, QVariant>.

Mapping to int, bool, char, string, fractions and date are supported. Fraction values are converted to doubles.

© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.