mfxExtPredWeightTable

Definition

 

 

typedef struct {

    mfxExtBuffer Header;

 

    mfxU16       LumaLog2WeightDenom;       // 0..7

    mfxU16       ChromaLog2WeightDenom;     // 0..7

    mfxU16       LumaWeightFlag[2][32];     // [list] 0,1

    mfxU16       ChromaWeightFlag[2][32];   // [list] 0,1

    mfxI16       Weights[2][32][3][2];      // [list][list entry][Y, Cb, Cr][weight, offset]

    mfxU16       reserved[58];

} mfxExtPredWeightTable;

 

Description

 

 

When mfxExtCodingOption3::WeightedPred was set to explicit during encoder Init or Reset and the current frame is P-frame or mfxExtCodingOption3::WeightedBiPred was set to explicit during encoder Init or Reset and the current frame is B-frame, attached to mfxEncodeCtrl, this structure specifies weighted prediction table for current frame.

 

Members

 

 

Header.BufferId

Must be MFX_EXTBUFF_HEVC_PRED_WEIGHT_TABLE.

 

 

LumaLog2WeightDenom

Base 2 logarithm of the denominator for all luma weighting factors. Value shall be in the range of 0 to 7, inclusive.

 

 

ChromaLog2WeightDenom

Base 2 logarithm of the denominator for all chroma weighting factors. Value shall be in the range of 0 to 7, inclusive.

 

 

LumaWeightFlag

LumaWeightFlag[L][R] equal to 1 specifies that the weighting factors for the luma component are specified for R’s entry of RefPicList L.

 

 

ChromaWeightFlag

LumaWeightFlag[L][R] equal to 1 specifies that the weighting factors for the chroma component are specified for R’s entry of RefPicList L.

 

 

Weights

The values of the weights and offsets used in the encoding processing. The value of Weights[i][j][k][m] is interpreted as: i refers to reference picture list 0 or 1; j refers to reference list entry 0-31; k refers to data for the luma component when it is 0, the Cb chroma component when it is 1 and the Cr chroma component when it is 2; m refers to weight when it is 0 and offset when it is 1

 

Change History

 

This structure is available since SDK API 1.16.

 

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