Lines Matching refs:ps_codec
217 IHEVCD_ERROR_T ihevcd_parse_slice_header(codec_t *ps_codec, in ihevcd_parse_slice_header() argument
229 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; in ihevcd_parse_slice_header()
238 if(ps_codec->i4_slice_error == 1) in ihevcd_parse_slice_header()
255 ps_pps = ps_codec->s_parse.ps_pps_base + pps_id; in ihevcd_parse_slice_header()
258 pps_t *ps_pps_ref = ps_codec->ps_pps_base; in ihevcd_parse_slice_header()
262 if((ps_pps_ref - ps_codec->ps_pps_base >= MAX_PPS_CNT - 1)) in ihevcd_parse_slice_header()
265 ihevcd_copy_pps(ps_codec, pps_id, ps_pps_ref->i1_pps_id); in ihevcd_parse_slice_header()
272 ps_sps = ps_codec->s_parse.ps_sps_base + sps_id; in ihevcd_parse_slice_header()
278 if((0 != ps_codec->u4_pic_cnt || ps_codec->i4_pic_present) && in ihevcd_parse_slice_header()
281 if(ps_codec->i4_pic_present) in ihevcd_parse_slice_header()
284 ps_codec->i4_slice_error = 1; in ihevcd_parse_slice_header()
285 ps_codec->s_parse.i4_cur_slice_idx--; in ihevcd_parse_slice_header()
286 if(ps_codec->s_parse.i4_cur_slice_idx < 0) in ihevcd_parse_slice_header()
287 ps_codec->s_parse.i4_cur_slice_idx = 0; in ihevcd_parse_slice_header()
289 …ps_slice_hdr_next = ps_codec->s_parse.ps_slice_hdr_base + ((ps_codec->s_parse.i4_cur_slice_idx + 1… in ihevcd_parse_slice_header()
291 ps_slice_hdr_next->i2_ctb_y = ps_codec->s_parse.ps_sps->i2_pic_ht_in_ctb; in ihevcd_parse_slice_header()
296 ps_codec->i4_slice_error = 0; in ihevcd_parse_slice_header()
302 ps_codec->s_parse.i4_cur_slice_idx = 0; in ihevcd_parse_slice_header()
310 if(0 == ps_codec->i4_pic_present) in ihevcd_parse_slice_header()
311 ps_codec->s_parse.i4_cur_slice_idx = 1; in ihevcd_parse_slice_header()
314 …ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr_base + (ps_codec->s_parse.i4_cur_slice_idx & (MAX_SL… in ihevcd_parse_slice_header()
323 if(value && (ps_codec->s_parse.i4_cur_slice_idx > 0)) in ihevcd_parse_slice_header()
325 ihevcd_copy_slice_hdr(ps_codec, in ihevcd_parse_slice_header()
326 (ps_codec->s_parse.i4_cur_slice_idx & (MAX_SLICE_HDR_CNT - 1)), in ihevcd_parse_slice_header()
327 … ((ps_codec->s_parse.i4_cur_slice_idx - 1) & (MAX_SLICE_HDR_CNT - 1))); in ihevcd_parse_slice_header()
690 (ps_codec->i4_pic_present)) in ihevcd_parse_slice_header()
692 slice_header_t *ps_slice_hdr_base = ps_codec->ps_slice_hdr_base; in ihevcd_parse_slice_header()
706 if(0 == ps_codec->i4_pic_present) in ihevcd_parse_slice_header()
708 …ps_slice_hdr->i4_abs_pic_order_cnt = ihevcd_calc_poc(ps_codec, ps_nal, ps_sps->i1_log2_max_pic_ord… in ihevcd_parse_slice_header()
712 ps_slice_hdr->i4_abs_pic_order_cnt = ps_codec->s_parse.i4_abs_pic_order_cnt; in ihevcd_parse_slice_header()
719 if(ps_codec->s_parse.i4_abs_pic_order_cnt == ps_slice_hdr->i4_abs_pic_order_cnt) in ihevcd_parse_slice_header()
725 if(slice_address > ps_codec->s_parse.i4_next_ctb_indx) in ihevcd_parse_slice_header()
727 if(ps_codec->i4_pic_present) in ihevcd_parse_slice_header()
729 ps_codec->i4_slice_error = 1; in ihevcd_parse_slice_header()
730 ps_codec->s_parse.i4_cur_slice_idx--; in ihevcd_parse_slice_header()
731 if(ps_codec->s_parse.i4_cur_slice_idx < 0) in ihevcd_parse_slice_header()
732 ps_codec->s_parse.i4_cur_slice_idx = 0; in ihevcd_parse_slice_header()
744 else if(slice_address < ps_codec->s_parse.i4_next_ctb_indx) in ihevcd_parse_slice_header()
750 ps_codec->i4_slice_error = 0; in ihevcd_parse_slice_header()
759 if(ps_codec->i4_pic_present) in ihevcd_parse_slice_header()
762 ps_codec->i4_slice_error = 1; in ihevcd_parse_slice_header()
763 ps_codec->s_parse.i4_cur_slice_idx--; in ihevcd_parse_slice_header()
764 if(ps_codec->s_parse.i4_cur_slice_idx < 0) in ihevcd_parse_slice_header()
765 ps_codec->s_parse.i4_cur_slice_idx = 0; in ihevcd_parse_slice_header()
767 …ps_slice_hdr_next = ps_codec->s_parse.ps_slice_hdr_base + ((ps_codec->s_parse.i4_cur_slice_idx + 1… in ihevcd_parse_slice_header()
769 ps_slice_hdr_next->i2_ctb_y = ps_codec->s_parse.ps_sps->i2_pic_ht_in_ctb; in ihevcd_parse_slice_header()
781 ps_codec->s_parse.i4_abs_pic_order_cnt = ps_slice_hdr->i4_abs_pic_order_cnt; in ihevcd_parse_slice_header()
792 if(ps_codec->s_parse.i4_abs_pic_order_cnt == ps_slice_hdr->i4_abs_pic_order_cnt) in ihevcd_parse_slice_header()
795 ps_codec->s_parse.i4_abs_pic_order_cnt = ps_slice_hdr->i4_abs_pic_order_cnt; in ihevcd_parse_slice_header()
859 dpb_mgr_t *ps_dpb_mgr = (dpb_mgr_t *)ps_codec->pv_dpb_mgr; in ihevcd_parse_slice_header()
867 (0 == ps_codec->u4_pic_cnt)) in ihevcd_parse_slice_header()
877 …ihevc_dpb_mgr_del_ref((dpb_mgr_t *)ps_codec->pv_dpb_mgr, (buf_mgr_t *)ps_codec->pv_pic_buf_mgr, ps… in ihevcd_parse_slice_header()
879 ps_mv_buf = (mv_buf_t *)ps_codec->ps_mv_buf; in ihevcd_parse_slice_header()
884 … ihevc_buf_mgr_release((buf_mgr_t *)ps_codec->pv_mv_buf_mgr, i, BUF_MGR_REF); in ihevcd_parse_slice_header()
910 ihevcd_ref_list(ps_codec, ps_pps, ps_sps, ps_slice_hdr); in ihevcd_parse_slice_header()
918 if(ps_codec->i4_pic_present) in ihevcd_parse_slice_header()
923 dpb_mgr_t *ps_dpb_mgr = (dpb_mgr_t *)ps_codec->pv_dpb_mgr; in ihevcd_parse_slice_header()
924 buf_mgr_t *ps_mv_buf_mgr = (buf_mgr_t *)ps_codec->pv_mv_buf_mgr; in ihevcd_parse_slice_header()
929 ps_pic_buf_ref = ps_codec->as_process[0].ps_cur_pic; in ihevcd_parse_slice_header()
930 ps_mv_buf_ref = ps_codec->s_parse.ps_cur_mv_buf; in ihevcd_parse_slice_header()
992 (0 == ps_codec->i4_pic_present)) in ihevcd_parse_slice_header()
994 slice_header_t *ps_slice_hdr_prev = ps_codec->s_parse.ps_slice_hdr_base; in ihevcd_parse_slice_header()
995 …ihevcd_copy_slice_hdr(ps_codec, 0, (ps_codec->s_parse.i4_cur_slice_idx & (MAX_SLICE_HDR_CNT - 1))); in ihevcd_parse_slice_header()
997 ps_codec->i4_slice_error = 1; in ihevcd_parse_slice_header()
1002 ps_codec->s_parse.i4_ctb_x = 0; in ihevcd_parse_slice_header()
1003 ps_codec->s_parse.i4_ctb_y = 0; in ihevcd_parse_slice_header()
1005 ps_codec->s_parse.i4_cur_slice_idx = 0; in ihevcd_parse_slice_header()
1023 if(IVD_SKIP_B == ps_codec->e_pic_skip_mode) in ihevcd_parse_slice_header()
1029 if((IVD_SKIP_PB == ps_codec->e_pic_skip_mode) && in ihevcd_parse_slice_header()