Lines Matching refs:nb_refs

337     for (i = 0; i < s->sh.nb_refs[L0]; i++) {  in pred_weight_table()
346 for (i = 0; i < s->sh.nb_refs[L0]; i++) { in pred_weight_table()
350 for (i = 0; i < s->sh.nb_refs[L0]; i++) in pred_weight_table()
354 for (i = 0; i < s->sh.nb_refs[L0]; i++) { in pred_weight_table()
380 for (i = 0; i < s->sh.nb_refs[L1]; i++) { in pred_weight_table()
388 for (i = 0; i < s->sh.nb_refs[L1]; i++) in pred_weight_table()
391 for (i = 0; i < s->sh.nb_refs[L1]; i++) in pred_weight_table()
394 for (i = 0; i < s->sh.nb_refs[L1]; i++) { in pred_weight_table()
436 rps->nb_refs = 0; in decode_lt_rps()
448 rps->nb_refs = nb_sh + nb_sps; in decode_lt_rps()
450 for (i = 0; i < rps->nb_refs; i++) { in decode_lt_rps()
592 if (openhevc_sh->nb_refs[0] != sh->nb_refs[0]) { in compare_sliceheader()
597 if (openhevc_sh->nb_refs[1] != sh->nb_refs[1]) { in compare_sliceheader()
921 sh->nb_refs[L0] = sh->nb_refs[L1] = 0; in hls_slice_header()
923 int nb_refs; in hls_slice_header() local
925 sh->nb_refs[L0] = s->pps->num_ref_idx_l0_default_active; in hls_slice_header()
927 sh->nb_refs[L1] = s->pps->num_ref_idx_l1_default_active; in hls_slice_header()
932 READ_UE(gb, &sh->nb_refs[L0]); in hls_slice_header()
933 sh->nb_refs[L0] += 1; in hls_slice_header()
935 READ_UE(gb, &sh->nb_refs[L1]); in hls_slice_header()
936 sh->nb_refs[L1] += 1; in hls_slice_header()
939 if (sh->nb_refs[L0] > MAX_REFS || sh->nb_refs[L1] > MAX_REFS) { in hls_slice_header()
941 sh->nb_refs[L0], sh->nb_refs[L1]); in hls_slice_header()
947 nb_refs = mpp_hevc_frame_nb_refs(s); in hls_slice_header()
948 if (!nb_refs) { in hls_slice_header()
953 if (s->pps->lists_modification_present_flag && nb_refs > 1) { in hls_slice_header()
956 for (i = 0; (RK_U32)i < sh->nb_refs[L0]; i++) in hls_slice_header()
957 READ_BITS(gb, mpp_ceil_log2(nb_refs), &sh->list_entry_lx[0][i]); in hls_slice_header()
963 for (i = 0; (RK_U32)i < sh->nb_refs[L1]; i++) in hls_slice_header()
964 READ_BITS(gb, mpp_ceil_log2(nb_refs), &sh->list_entry_lx[1][i]); in hls_slice_header()
984 if (sh->nb_refs[sh->collocated_list] > 1) { in hls_slice_header()
986 if (sh->collocated_ref_idx >= sh->nb_refs[sh->collocated_list]) { in hls_slice_header()