mfxExtAVCEncodedFrameInfo

Definition

 

 

typedef struct {

    mfxExtBuffer    Header;

 

    mfxU32          FrameOrder;

    mfxU16          PicStruct;

    mfxU16          LongTermIdx;

    mfxU32          MAD;

    mfxU16          BRCPanicMode;

    mfxU16          QP;

    mfxU32          SecondFieldOffset;

    mfxU16          reserved[2];

 

    struct {

            mfxU32      FrameOrder;

            mfxU16      PicStruct;

            mfxU16      LongTermIdx;

            mfxU16      reserved[4];

    } UsedRefListL0[32], UsedRefListL1[32];

} mfxExtAVCEncodedFrameInfo;

 

Description

 

 

The mfxExtAVCEncodedFrameInfo is used by the SDK encoder to report additional information about encoded picture. The application can attach this buffer to the mfxBitstream structure before calling MFXVideoENCODE_EncodeFrameAsync function. For interlaced content the SDK encoder requires two such structures. They correspond to fields in encoded order.

Not all implementations of the SDK encoder support this extended buffer. The application has to use query mode 1 to determine if such functionality is supported. To do so, the application has to attach this extended buffer to mfxVideoParam structure and call MFXVideoENCODE_Query function.  If function returns MFX_ERR_NONE  then such functionality is supported.

 

Members

 

 

Header.BufferId

Must be MFX_EXTBUFF_ENCODED_FRAME_INFO

 

 

FrameOrder

Frame order of encoded picture.

 

 

PicStruct

Picture structure of encoded picture.

 

 

LongTermIdx

Long term index of encoded picture if applicable.

 

 

MAD

Mean Absolute Difference between original pixels of the frame and motion compensated (for inter macroblocks) or spatially predicted (for intra macroblocks) pixels. Only luma component, Y plane, is used in calculation. 

 

 

BRCPanicMode

Bitrate control was not able to allocate enough bits for this frame. Frame quality may be unacceptably low.

 

 

QP

Luma QP.

 

 

SecondFieldOffset

Offset to second field. Second field starts at

mfxBitstream::Data + mfxBitstream::DataOffset + mfxExtAVCEncodedFrameInfo::SecondFieldOffset

 

 

UsedRefListL0
UsedRefListL1

Reference lists that have been used to encode picture.

 

 

      FrameOrder

Frame order of reference picture.

 

 

      PicStruct

Picture structure of reference picture.

 

 

      LongTermIdx

Long term index of reference picture if applicable.

 

Change History

 

This structure is available since SDK API 1.7.

The SDK API 1.8 adds MAD and BRCPanicMode fields.

The SDK API 1.9 adds SecondFieldOffset fields.

 

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