mirror of
https://github.com/nyanmisaka/mpp.git
synced 2026-01-24 03:20:38 +01:00
fix[av1_vdpu383]: Fix the CDF issue between GOPs
Platform: rk3575/vdpu383 Error case: The idr frame (frm0) does not update the cdf, and then frm1, when using the cdf, mistakenly uses the cdf of the previous gop instead of the default cdf Solution: At the beginning of GOP, reset all validity flags Reported-by: Detlev Casanova <detlev.casanova@collabora.com> Source: av1.video.es Change-Id: I72152664d1c4275cb39f657c94ed4ba89a076465 Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
This commit is contained in:
parent
7954ee2324
commit
45b28c7a32
1 changed files with 3 additions and 0 deletions
|
|
@ -2088,6 +2088,9 @@ static void vdpu383_av1d_set_cdf(Av1dHalCtx *p_hal, DXVA_PicParams_AV1 *dxva)
|
|||
sprintf(dump_cur_fname_path, "%s/%s", dump_cur_dir, cur_fname);
|
||||
}
|
||||
#endif
|
||||
if (dxva->format.frame_type == AV1_FRAME_KEY)
|
||||
for (i = 0; i < NUM_REF_FRAMES; i++)
|
||||
reg_ctx->ref_info_tbl[i].cdf_valid = 0;
|
||||
/* def coeff cdf idx */
|
||||
coeff_cdf_idx = dxva->quantization.base_qindex <= 20 ? 0 :
|
||||
dxva->quantization.base_qindex <= 60 ? 1 :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue