QGstUtils Namespace

    函数

    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 )

    函数文档编制

    QAudioFormat QGstUtils:: audioFormatForBuffer ( int * buffer )

    Returns audio format for a buffer. If the buffer doesn't have a valid audio format, an empty QAudioFormat 被返回。

    QAudioFormat QGstUtils:: audioFormatForCaps (const int * caps )

    Returns audio format for caps. If caps doesn't have a valid audio format, an empty QAudioFormat 被返回。

    QSize QGstUtils:: capsCorrectedResolution (const int * caps )

    Returns aspect ratio corrected resolution of caps . If caps doesn't have a valid size, an empty QSize 被返回。

    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 被返回。

    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.