Data structures

The BlackBerry 10 implementation of OpenMAX AL uses the following data structures that are extensions of structures defined in OpenMAX AL.

XAVideoStreamInformation_QNX

Queries information about a video stream.

typedef struct XAVideoStreamInformation_QNX_ {
    XAuint32 codecId;
        One of XA_VIDEOCODEC_*.
    XAuint32 width;
    XAuint32 height;
    XAuint32 frameRate;
    XAuint32 bitRate;
    XAmillisecond duration;
    XAuint32 profileSetting;
    XAuint32 levelSetting;
    XAuint8  *codecConfig;
    XAuint32 codecConfigSize;
} XAVideoStreamInformation_QNX;

XAAudioStreamInformation_QNX

Queries information about an audio stream.

typedef struct XAAudioStreamInformation_QNX_ {
    XAuint32 codecId;
        One of XA_AUDIOCODEC_* or XA_AUDIOCODEC_QNX_*
    XAuint32 channels;
    XAmilliHertz sampleRate;
    XAuint32 bitRate;
    XAuint32 bitsPerSample;
    XAmillisecond duration;
    XAuint32 profileSetting;
        One of XA_AUDIOPROFILE_*
    XAuint32 modeSetting;
        One of XA_AUDIOMODE_* or XA_AUDIOMODE_QNX_OPUS_*
    XAuint32 streamFormat;
        One of XA_AUDIOSTREAMFORMAT_*
    XAuint8  *codecConfig;
    XAuint32 codecConfigSize;
} XAAudioStreamInformation_QNX;

XADataFormat_QNXEncoded

Queries information about the encoded data.

typedef struct XADataFormat_QNXEncoded_ {
    XAuint32 formatType;
        Must be XAQ_DATAFORMAT_ENCODED
    XAuint32 domainType; 
        One of XA_DOMAINTYPE_*, specifies whether it is audio or video.
    XAAudioStreamInformation_QNX   audio_info;
    XAVideoStreamInformation_QNX   video_info;
} XADataFormat_QNXEncoded;

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus