Lines Matching defs:nb_refs
176 for (i = 0; i < s->sh.nb_refs[L0]; i++) {
184 for (i = 0; i < s->sh.nb_refs[L0]; i++)
187 for (i = 0; i < s->sh.nb_refs[L0]; i++)
190 for (i = 0; i < s->sh.nb_refs[L0]; i++) {
220 for (i = 0; i < s->sh.nb_refs[L1]; i++) {
228 for (i = 0; i < s->sh.nb_refs[L1]; i++)
231 for (i = 0; i < s->sh.nb_refs[L1]; i++)
234 for (i = 0; i < s->sh.nb_refs[L1]; i++) {
275 rps->nb_refs = 0;
288 rps->nb_refs = nb_sh + nb_sps;
290 for (i = 0; i < rps->nb_refs; i++) {
760 sh->nb_refs[L0] = sh->nb_refs[L1] = 0;
762 int nb_refs;
764 sh->nb_refs[L0] = s->ps.pps->num_ref_idx_l0_default_active;
766 sh->nb_refs[L1] = s->ps.pps->num_ref_idx_l1_default_active;
769 sh->nb_refs[L0] = get_ue_golomb_long(gb) + 1;
771 sh->nb_refs[L1] = get_ue_golomb_long(gb) + 1;
773 if (sh->nb_refs[L0] > HEVC_MAX_REFS || sh->nb_refs[L1] > HEVC_MAX_REFS) {
775 sh->nb_refs[L0], sh->nb_refs[L1]);
781 nb_refs = ff_hevc_frame_nb_refs(s);
782 if (!nb_refs) {
787 if (s->ps.pps->lists_modification_present_flag && nb_refs > 1) {
790 for (i = 0; i < sh->nb_refs[L0]; i++)
791 sh->list_entry_lx[0][i] = get_bits(gb, av_ceil_log2(nb_refs));
797 for (i = 0; i < sh->nb_refs[L1]; i++)
798 sh->list_entry_lx[1][i] = get_bits(gb, av_ceil_log2(nb_refs));
816 if (sh->nb_refs[sh->collocated_list] > 1) {
818 if (sh->collocated_ref_idx >= sh->nb_refs[sh->collocated_list]) {
1834 if (s->sh.nb_refs[L0])
1835 mv->ref_idx[0]= ff_hevc_ref_idx_lx_decode(s, s->sh.nb_refs[L0]);
1847 if (s->sh.nb_refs[L1])
1848 mv->ref_idx[1]= ff_hevc_ref_idx_lx_decode(s, s->sh.nb_refs[L1]);