Skip to content

Commit

Permalink
[AV1e] Enable HB info to fix linux repak rate issue (#2452)
Browse files Browse the repository at this point in the history
Co-authored-by: RachelChengRJ <[email protected]>
  • Loading branch information
2 people authored and Oleg Nabiullin committed Mar 22, 2022
1 parent ecc662f commit 9144632
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ void InitSPS(
sps.seq_fields.bits.enable_superres = bs_sh.enable_superres;
sps.seq_fields.bits.enable_cdef = bs_sh.enable_cdef;
sps.seq_fields.bits.enable_restoration = bs_sh.enable_restoration;

const mfxExtCodingOption2& CO2 = ExtBuffer::Get(par);
sps.reserved8b = CO2.BRefType == MFX_B_REF_PYRAMID;
}

void InitPPS(
Expand Down Expand Up @@ -434,6 +437,7 @@ void UpdatePPS(
pps.qmatrix_flags.bits.qm_u = bs_fh.quantization_params.qm_u;
pps.qmatrix_flags.bits.qm_v = bs_fh.quantization_params.qm_v;

pps.reserved8bits0 = static_cast<mfxU8>(task.PyramidLevel + 1);
}

inline void AddVaMiscHRD(
Expand Down

0 comments on commit 9144632

Please sign in to comment.