Lines Matching refs:nb_refs
273 while ((RK_U32)rpl_tmp.nb_refs < sh->nb_refs[list_idx]) { in hal_h265d_slice_rpl()
276 RK_U32 nb_refs = 0; in hal_h265d_slice_rpl() local
279 nb_refs = bef_nb_refs; in hal_h265d_slice_rpl()
282 nb_refs = aft_nb_refs; in hal_h265d_slice_rpl()
285 nb_refs = lt_cur_nb_refs; in hal_h265d_slice_rpl()
287 for (j = 0; j < nb_refs && rpl_tmp.nb_refs < MAX_REFS; j++) { in hal_h265d_slice_rpl()
288 rpl_tmp.dpb_index[rpl_tmp.nb_refs] = rps[j]; in hal_h265d_slice_rpl()
289 rpl_tmp.nb_refs++; in hal_h265d_slice_rpl()
296 for (i = 0; i < sh->nb_refs[list_idx]; i++) { in hal_h265d_slice_rpl()
299 rpl->nb_refs++; in hal_h265d_slice_rpl()
303 rpl->nb_refs = MPP_MIN((RK_U32)rpl->nb_refs, sh->nb_refs[list_idx]); in hal_h265d_slice_rpl()
383 RK_U32 nb_refs = 0; in hal_h265d_slice_output_rps() local
525 nb_refs = nb_sh + nb_sps; in hal_h265d_slice_output_rps()
527 for (i = 0; i < nb_refs; i++) { in hal_h265d_slice_output_rps()
569 sh.nb_refs[L0] = sh.nb_refs[L1] = 0; in hal_h265d_slice_output_rps()
572 sh.nb_refs[L0] = dxva_cxt->pp.num_ref_idx_l0_default_active_minus1 + 1; in hal_h265d_slice_output_rps()
574 sh.nb_refs[L1] = dxva_cxt->pp.num_ref_idx_l1_default_active_minus1 + 1; in hal_h265d_slice_output_rps()
579 READ_UE(gb, &sh.nb_refs[L0]); in hal_h265d_slice_output_rps()
580 sh.nb_refs[L0] += 1; in hal_h265d_slice_output_rps()
582 READ_UE(gb, &sh.nb_refs[L1]); in hal_h265d_slice_output_rps()
583 sh.nb_refs[L1] += 1; in hal_h265d_slice_output_rps()
586 if (sh.nb_refs[L0] > MAX_REFS || sh.nb_refs[L1] > MAX_REFS) { in hal_h265d_slice_output_rps()
588 sh.nb_refs[L0], sh.nb_refs[L1]); in hal_h265d_slice_output_rps()
594 nb_refs = 0; in hal_h265d_slice_output_rps()
598 nb_refs++; in hal_h265d_slice_output_rps()
602 if (!nb_refs) { in hal_h265d_slice_output_rps()
607 if (dxva_cxt->pp.lists_modification_present_flag && nb_refs > 1) { in hal_h265d_slice_output_rps()
610 for (i = 0; (RK_U32)i < sh.nb_refs[L0]; i++) in hal_h265d_slice_output_rps()
611 READ_BITS(gb, mpp_ceil_log2(nb_refs), &sh.list_entry_lx[0][i]); in hal_h265d_slice_output_rps()
617 for (i = 0; (RK_U32)i < sh.nb_refs[L1]; i++) in hal_h265d_slice_output_rps()
618 READ_BITS(gb, mpp_ceil_log2(nb_refs), &sh.list_entry_lx[1][i]); in hal_h265d_slice_output_rps()
632 for (i = 0; i < ref.refPicList[j].nb_refs; i++) { in hal_h265d_slice_output_rps()
649 slice_nb_rps_poc[slice_idx] = nb_refs; in hal_h265d_slice_output_rps()