Definition

 

typedef struct {

    mfxExtBuffer    Header;

    mfxU32  reserved[5];

    mfxU16  SkipFrame;

 

    mfxU16  QP;

 

    mfxU16  FrameType;

    mfxU16  NumExtParam;

    mfxU16  NumPayload;

    mfxU16  reserved2;

 

    mfxExtBuffer    **ExtParam;

    mfxPayload      **Payload;

} mfxEncodeCtrl;

Description

      The mfxEncodeCtrl structure contains parameters for per-frame based encoding control.

Members

 

SkipFrame

Indicates that current frame should be skipped or number of missed frames before the current frame. See the mfxExtCodingOption2::SkipFrame for details.

 

QP

If nonzero, this value overwrites the global QP value for the current frame in the constant QP mode.

 

FrameType

Encoding frame type; see the FrameType enumerator for details. If the encoder works in the encoded order, the application must specify the frame type. If the encoder works in the display order, only key frames are enforceable.

 

NumExtParam

Number of extra control buffers.

 

NumPayload

Number of payload records to insert into the bitstream.

 

ExtParam

Pointer to an array of pointers to external buffers that provide additional information or control to the encoder for this frame or field pair; a typical usage is to pass the VPP auxiliary data generated by the video processing pipeline to the encoder. See the ExtendedBufferID for the list of extended buffers.

 

Payload

Pointer to an array of pointers to user data (MPEG-2) or SEI messages (H.264) for insertion into the bitstream; for field pictures, odd payloads are associated with the first field and even payloads are associated with the second field. See the mfxPayload structure for payload definitions.

Change History

 

 

This structure is available since SDK API 1.0. SDK API 1.1 extended the QP field. Since SDK API 1.3 specification of QP in display order mode is allowed.

 

 

 

 

有关编译器优化的更完整信息,请参阅优化通知