Skip to content

Commit

Permalink
[Encode] AV1 Linux: remove WA for hierarchy flag (#237)
Browse files Browse the repository at this point in the history
Signed-off-by: RachelChengRJ <[email protected]>

Signed-off-by: RachelChengRJ <[email protected]>
  • Loading branch information
RachelChengRJ authored and Sherry-Lin committed Sep 30, 2022
1 parent d76f3a9 commit 4a8f62f
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ void InitSPS(
sps.seq_fields.bits.enable_restoration = bs_sh.enable_restoration;

const mfxExtCodingOption2& CO2 = ExtBuffer::Get(par);
#if VA_CHECK_VERSION(1, 16, 0)
sps.hierarchical_flag = CO2.BRefType == MFX_B_REF_PYRAMID;
#else
sps.reserved8b = CO2.BRefType == MFX_B_REF_PYRAMID;
#endif

}

void InitPPS(
Expand Down Expand Up @@ -451,7 +456,12 @@ 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;

#if VA_CHECK_VERSION(1, 16, 0)
pps.hierarchical_level_plus1 = static_cast<mfxU8>(task.PyramidLevel + 1);
#else
pps.reserved8bits0 = static_cast<mfxU8>(task.PyramidLevel + 1);
#endif

pps.skip_frames_reduced_size = static_cast<mfxI32>(task.PrevRepeatedFrameBytes);
}

Expand Down

0 comments on commit 4a8f62f

Please sign in to comment.