Lines Matching refs:ph

177 static void recompute_cycle_order_index(Avs2dFrameMgr_t *mgr, Avs2dPicHeader_t *ph)  in recompute_cycle_order_index()  argument
183 if (ph->doi < (INT_MAX - 2 * AVS2_DOI_CYCLE)) { in recompute_cycle_order_index()
197 ph->doi -= wrap_oi; in recompute_cycle_order_index()
206 Avs2dPicHeader_t *ph = &p_dec->ph; in compute_frame_order_index() local
213 ph->doi != (mgr->prev_doi + 1) % AVS2_DOI_CYCLE) { in compute_frame_order_index()
214 …VS2D_DBG(AVS2D_DBG_WARNNING, "discontinuous DOI (prev: %d --> curr: %d).", mgr->prev_doi, ph->doi); in compute_frame_order_index()
221 if (MPP_ABS(ph->doi - (p->doi % AVS2_DOI_CYCLE)) > 1) { in compute_frame_order_index()
229 if (ph->doi < mgr->prev_doi) { in compute_frame_order_index()
233 mgr->prev_doi = ph->doi; in compute_frame_order_index()
234 ph->doi += mgr->tr_wrap_cnt * AVS2_DOI_CYCLE; in compute_frame_order_index()
235 recompute_cycle_order_index(mgr, ph); in compute_frame_order_index()
239 ph->poi = ph->doi + ph->picture_output_delay - vsh->picture_reorder_delay; in compute_frame_order_index()
241 ph->poi = ph->doi; in compute_frame_order_index()
244 mpp_assert(ph->doi >= 0 && ph->poi >= 0); in compute_frame_order_index()
246 if (mgr->output_poi == NO_VAL && ph->picture_type == I_PICTURE) { in compute_frame_order_index()
247 mgr->output_poi = ph->poi; in compute_frame_order_index()
250 …avs2d_dbg_dpb("picuture DOI %d, POI %d, out_delay %d, output_poi %d\n", ph->doi, ph->poi, ph->pict… in compute_frame_order_index()
386 Avs2dPicHeader_t *ph = &p_dec->ph; in dpb_remove_scene_frame() local
390 if (ph->picture_type == G_PICTURE || ph->picture_type == GB_PICTURE) { in dpb_remove_scene_frame()
421 if ((MPP_ABS(p->poi - p_dec->ph.poi) >= AVS2_MAX_POC_DISTANCE)) { in dpb_remove_unused_frame()
436 … Avs2dFrame_t *dpb_get_one_frame(Avs2dFrameMgr_t *mgr, Avs2dSeqHeader_t *vsh, Avs2dPicHeader_t *ph) in dpb_get_one_frame() argument
449 if (p->poi == ph->poi) { in dpb_get_one_frame()
472 Avs2dPicHeader_t *ph = &p_dec->ph; in dpb_alloc_frame() local
477 frm = dpb_get_one_frame(mgr, vsh, ph); in dpb_alloc_frame()
484 frm->doi = ph->doi; in dpb_alloc_frame()
485 frm->poi = ph->poi; in dpb_alloc_frame()
486 frm->out_delay = ph->picture_output_delay; in dpb_alloc_frame()
487 frm->picture_type = ph->picture_type; in dpb_alloc_frame()
557 if (ph->top_field_first) { in dpb_alloc_frame()
566 if (ph->top_field_first) { in dpb_alloc_frame()
725 p_dec->ph.background_reference_flag) { in dpb_set_frame_refs()