Lines Matching refs:ps_codec
129 * @param[in] ps_codec
206 * @param[in] ps_codec
217 IHEVCD_ERROR_T ihevcd_parse_slice_header(codec_t *ps_codec,
229 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm;
238 if(ps_codec->i4_slice_error == 1)
255 ps_pps = ps_codec->s_parse.ps_pps_base + pps_id;
258 pps_t *ps_pps_ref = ps_codec->ps_pps_base;
262 if((ps_pps_ref - ps_codec->ps_pps_base >= MAX_PPS_CNT - 1))
265 ihevcd_copy_pps(ps_codec, pps_id, ps_pps_ref->i1_pps_id);
272 ps_sps = ps_codec->s_parse.ps_sps_base + sps_id;
278 if((0 != ps_codec->u4_pic_cnt || ps_codec->i4_pic_present) &&
281 if(ps_codec->i4_pic_present)
284 ps_codec->i4_slice_error = 1;
285 ps_codec->s_parse.i4_cur_slice_idx--;
286 if(ps_codec->s_parse.i4_cur_slice_idx < 0)
287 ps_codec->s_parse.i4_cur_slice_idx = 0;
289 ps_slice_hdr_next = ps_codec->s_parse.ps_slice_hdr_base + ((ps_codec->s_parse.i4_cur_slice_idx + 1) & (MAX_SLICE_HDR_CNT - 1));
291 ps_slice_hdr_next->i2_ctb_y = ps_codec->s_parse.ps_sps->i2_pic_ht_in_ctb;
296 ps_codec->i4_slice_error = 0;
302 ps_codec->s_parse.i4_cur_slice_idx = 0;
310 if(0 == ps_codec->i4_pic_present)
311 ps_codec->s_parse.i4_cur_slice_idx = 1;
314 ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr_base + (ps_codec->s_parse.i4_cur_slice_idx & (MAX_SLICE_HDR_CNT - 1));
323 if(value && (ps_codec->s_parse.i4_cur_slice_idx > 0))
325 ihevcd_copy_slice_hdr(ps_codec,
326 (ps_codec->s_parse.i4_cur_slice_idx & (MAX_SLICE_HDR_CNT - 1)),
327 ((ps_codec->s_parse.i4_cur_slice_idx - 1) & (MAX_SLICE_HDR_CNT - 1)));
690 (ps_codec->i4_pic_present))
692 slice_header_t *ps_slice_hdr_base = ps_codec->ps_slice_hdr_base;
706 if(0 == ps_codec->i4_pic_present)
708 ps_slice_hdr->i4_abs_pic_order_cnt = ihevcd_calc_poc(ps_codec, ps_nal, ps_sps->i1_log2_max_pic_order_cnt_lsb, ps_slice_hdr->i4_pic_order_cnt_lsb);
712 ps_slice_hdr->i4_abs_pic_order_cnt = ps_codec->s_parse.i4_abs_pic_order_cnt;
719 if(ps_codec->s_parse.i4_abs_pic_order_cnt == ps_slice_hdr->i4_abs_pic_order_cnt)
725 if(slice_address > ps_codec->s_parse.i4_next_ctb_indx)
727 if(ps_codec->i4_pic_present)
729 ps_codec->i4_slice_error = 1;
730 ps_codec->s_parse.i4_cur_slice_idx--;
731 if(ps_codec->s_parse.i4_cur_slice_idx < 0)
732 ps_codec->s_parse.i4_cur_slice_idx = 0;
744 else if(slice_address < ps_codec->s_parse.i4_next_ctb_indx)
750 ps_codec->i4_slice_error = 0;
759 if(ps_codec->i4_pic_present)
762 ps_codec->i4_slice_error = 1;
763 ps_codec->s_parse.i4_cur_slice_idx--;
764 if(ps_codec->s_parse.i4_cur_slice_idx < 0)
765 ps_codec->s_parse.i4_cur_slice_idx = 0;
767 ps_slice_hdr_next = ps_codec->s_parse.ps_slice_hdr_base + ((ps_codec->s_parse.i4_cur_slice_idx + 1) & (MAX_SLICE_HDR_CNT - 1));
769 ps_slice_hdr_next->i2_ctb_y = ps_codec->s_parse.ps_sps->i2_pic_ht_in_ctb;
781 ps_codec->s_parse.i4_abs_pic_order_cnt = ps_slice_hdr->i4_abs_pic_order_cnt;
792 if(ps_codec->s_parse.i4_abs_pic_order_cnt == ps_slice_hdr->i4_abs_pic_order_cnt)
795 ps_codec->s_parse.i4_abs_pic_order_cnt = ps_slice_hdr->i4_abs_pic_order_cnt;
859 dpb_mgr_t *ps_dpb_mgr = (dpb_mgr_t *)ps_codec->pv_dpb_mgr;
867 (0 == ps_codec->u4_pic_cnt))
877 ps_codec->pv_dpb_mgr, (buf_mgr_t *)ps_codec->pv_pic_buf_mgr, ps_pic_buf->i4_abs_poc);
879 ps_mv_buf = (mv_buf_t *)ps_codec->ps_mv_buf;
884 ihevc_buf_mgr_release((buf_mgr_t *)ps_codec->pv_mv_buf_mgr, i, BUF_MGR_REF);
911 ret = ihevcd_ref_list(ps_codec, ps_pps, ps_sps, ps_slice_hdr);
921 if(ps_codec->i4_pic_present)
926 dpb_mgr_t *ps_dpb_mgr = (dpb_mgr_t *)ps_codec->pv_dpb_mgr;
927 buf_mgr_t *ps_mv_buf_mgr = (buf_mgr_t *)ps_codec->pv_mv_buf_mgr;
932 ps_pic_buf_ref = ps_codec->as_process[0].ps_cur_pic;
933 ps_mv_buf_ref = ps_codec->s_parse.ps_cur_mv_buf;
995 (0 == ps_codec->i4_pic_present))
997 slice_header_t *ps_slice_hdr_prev = ps_codec->s_parse.ps_slice_hdr_base;
998 ihevcd_copy_slice_hdr(ps_codec, 0, (ps_codec->s_parse.i4_cur_slice_idx & (MAX_SLICE_HDR_CNT - 1)));
1000 ps_codec->i4_slice_error = 1;
1005 ps_codec->s_parse.i4_ctb_x = 0;
1006 ps_codec->s_parse.i4_ctb_y = 0;
1008 ps_codec->s_parse.i4_cur_slice_idx = 0;
1026 if(IVD_SKIP_B == ps_codec->e_pic_skip_mode)
1032 if((IVD_SKIP_PB == ps_codec->e_pic_skip_mode) &&