Skip to content

Commit

Permalink
[Encode] Set Log2WeightDenomLuma to 0 in MFX AVC SLICE STATE
Browse files Browse the repository at this point in the history
AVC VDEnc implicit mode weighted prediction requires Log2WeightDenomLuma = 0 in MFX AVC SLICE STATE.

Change-Id: I949a305d49e233ea27ea54663e2eba63ea3efedf
  • Loading branch information
Jabin_Wu authored and intel-mediadev committed Sep 5, 2019
1 parent a60a5e8 commit cbd2114
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions media_driver/agnostic/common/hw/vdbox/mhw_vdbox_mfx_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -763,9 +763,17 @@ class MhwVdboxMfxInterfaceGeneric : public MhwVdboxMfxInterface
cmd.DW3.WeightedPredictionIndicator = picParams->weighted_bipred_idc;
if (picParams->weighted_bipred_idc == IMPLICIT_WEIGHTED_INTER_PRED_MODE)
{
// SNB requirement
cmd.DW2.Log2WeightDenomLuma = 5;
cmd.DW2.Log2WeightDenomChroma = 5;
if (avcSliceState->bVdencInUse)
{
cmd.DW2.Log2WeightDenomLuma = 0;
cmd.DW2.Log2WeightDenomChroma = 0;
}
else
{
// SNB requirement
cmd.DW2.Log2WeightDenomLuma = 5;
cmd.DW2.Log2WeightDenomChroma = 5;
}
}

cmd.DW9.Roundinterenable = avcSliceState->bRoundingInterEnable;
Expand Down

0 comments on commit cbd2114

Please sign in to comment.