QGstUtils Namespace | Qt Multimedia 5.12.7

Qt 5.12 | Qt Multimedia | QGstUtils Namespace

Qt 5.12.7 Reference Documentation

# 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.