mfxExtCodingOptionSPSPPS

Definition

 

 

struct {

      mfxExtBuffer      Header;

      mfxU8             *SPSBuffer;

      mfxU8             *PPSBuffer;

      mfxU16            SPSBufSize;

      mfxU16            PPSBufSize;

      mfxU16            SPSId;

      mfxU16            PPSId;

} mfxExtCodingOptionSPSPPS;

 

Description

 

 

Attach this structure as part of the mfxVideoParam extended buffers to configure the SDK encoder during MFXVideoENCODE_Init. The sequence or picture parameters specified by this structure overwrite any such parameters specified by the mfxVideoParam structure or any other extended buffers attached therein.

For H.264, SPSBuffer and PPSBuffer must point to valid bitstreams that contain the sequence parameter set and picture parameter set, respectively. For MPEG-2, SPSBuffer must point to valid bitstreams that contain the sequence header followed by any sequence header extension. The PPSBuffer pointer is ignored. The SDK encoder imports parameters from these buffers. If the encoder does not support the specified parameters, the encoder does not initialize and returns the status code MFX_ERR_INCOMPATIBLE_VIDEO_PARAM.

Check with the MFXVideoENCODE_Query function for the support of this multiple segemnt encoding feature. If this feature is not supported, the query returns MFX_ERR_UNSUPPORTED.

 

Members

 

 

Header.BufferId

Must be MFX_EXTBUFF_CODING_OPTION_SPSPPS.

 

 

SPSBuffer

Pointer to a valid bitstream that contains the SPS (sequence parameter set for H.264 or sequence header followed by any sequence header extension for MPEG-2) buffer; can be NULL to skip specifying the SPS.

 

 

PPSBuffer

Pointer to a valid bitstream that contains the PPS (picture parameter set for H.264 or picture header followed by any picture header extension for MPEG-2) buffer; can be NULL to skip specifying the PPS.

 

 

SPSBufSize

Size of the SPS in bytes

 

 

PPSBufSize

Size of the PPS in bytes

 

 

SPSId

SPS identifier; the value is reserved and must be zero.

 

 

PPSId

PPS identifier; the value is reserved and must be zero.

 

Change History

 

This structure is available since SDK API 1.0.

 

 

 

 

 

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