mfxExtEncodedSlicesInfo

Definition

 

 

typedef struct {

    mfxExtBuffer Header;

 

    mfxU16  SliceSizeOverflow;

    mfxU16  NumSliceNonCopliant;

    mfxU16  NumEncodedSlice;

    mfxU16  NumSliceSizeAlloc;

    union {

        mfxU16  *SliceSize;

        mfxU64  reserved1;

    };

 

    mfxU16 reserved[20];

} mfxExtEncodedSlicesInfo;

 

Description

 

 

The mfxExtEncodedSlicesInfo is used by the SDK encoder to report additional information about encoded slices. The application can attach this buffer to the mfxBitstream structure before calling MFXVideoENCODE_EncodeFrameAsync function.

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_SLICES_INFO

 

 

SliceSizeOverflow

When mfxExtCodingOption2::MaxSliceSize is used, indicates the requested slice size was not met for one or more generated slices

 

 

NumSliceNonCopliant

When mfxExtCodingOption2::MaxSliceSize is used, indicates the number of generated slices exceeds specification limits

 

 

NumEncodedSlice

Number of encoded slices.

 

 

NumSliceSizeAlloc

SliceSize array allocation size. Must be specified by application.

 

 

SliceSize

Slice size in bytes. Array must be allocated by application.

 

Change History

 

This structure is available since SDK API 1.19.

 

 

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