Lines Matching refs:slot_idx

349         p->slot_idx = -1;  in reset_one_save()
379 if (p && p->slot_idx >= 0) { in set_frame_unref()
380 mpp_buf_slot_clr_flag(pdec->frame_slots, p->slot_idx, SLOT_CODEC_USE); in set_frame_unref()
390 if (p && p->slot_idx >= 0 && !p->had_display) { in set_frame_output()
391 mpp_buf_slot_set_flag(p_dec->frame_slots, p->slot_idx, SLOT_QUEUE_USE); in set_frame_output()
392 mpp_buf_slot_enqueue(p_dec->frame_slots, p->slot_idx, QUEUE_DISPLAY); in set_frame_output()
427 frm->slot_idx = -1; in avsd_reset_parameters()
442 RK_S32 slot_idx = -1; in avsd_set_dpb() local
446 mpp_buf_slot_get_unused(p_dec->frame_slots, &slot_idx); in avsd_set_dpb()
447 if (slot_idx < 0) { in avsd_set_dpb()
452 p_cur->slot_idx = slot_idx; in avsd_set_dpb()
484 mpp_buf_slot_set_prop(p_dec->frame_slots, slot_idx, SLOT_FRAME, mframe); in avsd_set_dpb()
487 mpp_buf_slot_set_flag(p_dec->frame_slots, p_cur->slot_idx, SLOT_CODEC_USE); in avsd_set_dpb()
488 mpp_buf_slot_set_flag(p_dec->frame_slots, p_cur->slot_idx, SLOT_HAL_OUTPUT); in avsd_set_dpb()
491 task->output = p_dec->cur->slot_idx; in avsd_set_dpb()
493 if (p_dec->dpb[0] && p_dec->dpb[0]->slot_idx >= 0 && in avsd_set_dpb()
494 (p_dec->dpb[0]->slot_idx != p_dec->cur->slot_idx)) { in avsd_set_dpb()
495 mpp_buf_slot_set_flag(p_dec->frame_slots, p_dec->dpb[0]->slot_idx, SLOT_HAL_INPUT); in avsd_set_dpb()
497 task->refer[1] = p_dec->dpb[0]->slot_idx; in avsd_set_dpb()
499 task->refer[0] = p_dec->dpb[0]->slot_idx; in avsd_set_dpb()
502 if (p_dec->dpb[1] && p_dec->dpb[1]->slot_idx >= 0 && in avsd_set_dpb()
503 (p_dec->dpb[1]->slot_idx != p_dec->cur->slot_idx)) { in avsd_set_dpb()
504 mpp_buf_slot_set_flag(p_dec->frame_slots, p_dec->dpb[1]->slot_idx, SLOT_HAL_INPUT); in avsd_set_dpb()
506 task->refer[0] = p_dec->dpb[1]->slot_idx; in avsd_set_dpb()
508 task->refer[1] = p_dec->dpb[1]->slot_idx; in avsd_set_dpb()