mfxBitstream

Definition

 

typedef struct mfxBitStream {

    union {

        struct {

            mfxEncryptedData* EncryptedData;

            mfxExtBuffer **ExtParam;

            mfxU16  NumExtParam;

        };

        mfxU32  reserved[6];

    };    mfxI64  DecodeTimeStamp;

    mfxU64  TimeStamp;

    mfxU8*  Data;

    mfxU32  DataOffset;

    mfxU32  DataLength;

    mfxU32  MaxLength;

 

    mfxU16  PicStruct;

    mfxU16  FrameType;

    mfxU16  DataFlag;

    mfxU16  reserved2;

} mfxBitstream;

Description

 

The mfxBitstream structure defines the buffer that holds compressed video data.

Members

 

EncryptedData

Reserved and must be zero.

 

ExtParam

Array of extended buffers for additional bitstream configuration. See the ExtendedBufferID enumerator for a complete list of extended buffers.

 

NumExtParam

The number of extended buffers attached to this structure.

 

DecodeTimeStamp

Decode time stamp of the compressed bitstream in units of 90KHz. A value of MFX_TIMESTAMP_UNKNOWN indicates that there is no time stamp.

This value is calculated by the SDK encoder from presentation time stamp provided by the application in mfxFrameSurface1 structure and from frame rate provided by the application during the SDK encoder initialization.

 

TimeStamp

Time stamp of the compressed bitstream in units of 90KHz. A value of MFX_TIMESTAMP_UNKNOWN indicates that there is no time stamp.

 

Data

Bitstream buffer pointer—32-bytes aligned

 

DataOffset

Next reading or writing position in the bitstream buffer

 

DataLength

Size of the actual bitstream data in bytes

 

MaxLength

Allocated bitstream buffer size in bytes

 

PicStruct

Type of the picture in the bitstream; this is an output parameter.

 

FrameType

Frame type of the picture in the bitstream; this is an output parameter.

 

DataFlag

Indicates additional bitstream properties; see the BitstreamDataFlag enumerator for details.

Change History

 

 

This structure is available since SDK API 1.0.

SDK API 1.1 extended the DataFlag field definition.

SDK API 1.6 adds DecodeTimeStamp field.

SDK API 1.7 adds ExtParam and NumExtParam fields.

 

 

 

 

For more complete information about compiler optimizations, see our Optimization Notice.