Lines Matching refs:ps_dec_state

144     dec_state_t *ps_dec_state;  in impeg2d_api_rel_display_frame()  local
153 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_rel_display_frame()
157 if(0 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_rel_display_frame()
160 if(NULL == ps_dec_state->pv_pic_buf_mg) in impeg2d_api_rel_display_frame()
164 …impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, dec_rel_disp_ip->u4_disp_buf_id, BUF_MGR_DISP); in impeg2d_api_rel_display_frame()
198 dec_state_t *ps_dec_state; in impeg2d_api_set_display_frame() local
212 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_set_display_frame()
214 if(ps_dec_state->u4_share_disp_buf) in impeg2d_api_set_display_frame()
217 ps_pic_buf = (pic_buf_t *)ps_dec_state->pv_pic_buf_base; in impeg2d_api_set_display_frame()
222 if(IV_YUV_420P == ps_dec_state->i4_chromaFormat) in impeg2d_api_set_display_frame()
229 ps_pic_buf->pu1_u = ps_dec_state->pu1_chroma_ref_buf[i]; in impeg2d_api_set_display_frame()
230 ps_pic_buf->pu1_v = ps_dec_state->pu1_chroma_ref_buf[i] + in impeg2d_api_set_display_frame()
231 … ((ps_dec_state->u2_create_max_width * ps_dec_state->u2_create_max_height) >> 2); in impeg2d_api_set_display_frame()
240 impeg2_buf_mgr_add(ps_dec_state->pv_pic_buf_mg, ps_pic_buf, i); in impeg2d_api_set_display_frame()
241 impeg2_buf_mgr_set_status(ps_dec_state->pv_pic_buf_mg, i, BUF_MGR_DISP); in impeg2d_api_set_display_frame()
246 memcpy(&(ps_dec_state->as_disp_buffers[0]), in impeg2d_api_set_display_frame()
260 dec_state_t *ps_dec_state; in impeg2d_api_set_num_cores() local
267 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_set_num_cores()
275 ps_dec_state_multi_core->ps_dec_state[i]->i4_num_cores = ps_ip->u4_num_cores; in impeg2d_api_set_num_cores()
279 ps_dec_state->i4_num_cores = 1; in impeg2d_api_set_num_cores()
322 ps_codec = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_set_processor()
652 dec_state_t *ps_dec_state; in impeg2d_api_get_buf_info() local
663 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_get_buf_info()
668 if(ps_dec_state->i4_chromaFormat == IV_YUV_420P) in impeg2d_api_get_buf_info()
673 else if((ps_dec_state->i4_chromaFormat == IV_YUV_420SP_UV) in impeg2d_api_get_buf_info()
674 || (ps_dec_state->i4_chromaFormat == IV_YUV_420SP_VU)) in impeg2d_api_get_buf_info()
679 else if(ps_dec_state->i4_chromaFormat == IV_YUV_422ILE) in impeg2d_api_get_buf_info()
684 else if(ps_dec_state->i4_chromaFormat == IV_RGB_565) in impeg2d_api_get_buf_info()
713 if (0 == ps_dec_state->u4_frm_buf_stride) in impeg2d_api_get_buf_info()
715 if (1 == ps_dec_state->u2_header_done) in impeg2d_api_get_buf_info()
717 u4_stride = ps_dec_state->u2_horizontal_size; in impeg2d_api_get_buf_info()
721 u4_stride = ps_dec_state->u2_create_max_width; in impeg2d_api_get_buf_info()
726 u4_stride = ps_dec_state->u4_frm_buf_stride; in impeg2d_api_get_buf_info()
728 u4_height = ((ps_dec_state->u2_frame_height + 15) >> 4) << 4; in impeg2d_api_get_buf_info()
730 if(ps_dec_state->i4_chromaFormat == IV_YUV_420P) in impeg2d_api_get_buf_info()
739 else if((ps_dec_state->i4_chromaFormat == IV_YUV_420SP_UV) in impeg2d_api_get_buf_info()
740 || (ps_dec_state->i4_chromaFormat == IV_YUV_420SP_VU)) in impeg2d_api_get_buf_info()
748 else if(ps_dec_state->i4_chromaFormat == IV_YUV_422ILE) in impeg2d_api_get_buf_info()
759 if(ps_dec_state->u4_share_disp_buf) in impeg2d_api_get_buf_info()
792 dec_state_t *ps_dec_state; in impeg2d_api_set_flush_mode() local
801 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_set_flush_mode()
803 ps_dec_state->u1_flushfrm = 1; in impeg2d_api_set_flush_mode()
835 dec_state_t *ps_dec_state; in impeg2d_api_set_default() local
848 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_set_default()
850 ps_dec_state->u1_flushfrm = 0; in impeg2d_api_set_default()
851 ps_dec_state->u2_decode_header = 1; in impeg2d_api_set_default()
853 if (1 == ps_dec_state->u2_header_done) in impeg2d_api_set_default()
855 ps_dec_state->u4_frm_buf_stride = ps_dec_state->u2_frame_width; in impeg2d_api_set_default()
887 dec_state_t *ps_dec_state; in impeg2d_api_reset() local
895 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_reset()
899 if(ps_dec_state->aps_ref_pics[1] != NULL) in impeg2d_api_reset()
900 …impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_dec_state->aps_ref_pics[1]->i4_buf_id, BUF_… in impeg2d_api_reset()
901 if(ps_dec_state->aps_ref_pics[0] != NULL) in impeg2d_api_reset()
902 …impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_dec_state->aps_ref_pics[0]->i4_buf_id, BUF_… in impeg2d_api_reset()
905 …pic_buf_t *ps_disp_pic = impeg2_disp_mgr_get(&ps_dec_state->s_disp_mgr, &ps_dec_state->i4_disp_buf… in impeg2d_api_reset()
908 if(0 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_reset()
909 … impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_disp_pic->i4_buf_id, BUF_MGR_DISP); in impeg2d_api_reset()
916 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[i4_num_threads]; in impeg2d_api_reset()
922 ps_dec_state->u2_header_done = 0; /* Header decoding not done */ in impeg2d_api_reset()
923 ps_dec_state->u4_frm_buf_stride = 0; in impeg2d_api_reset()
924 ps_dec_state->u2_is_mpeg2 = 0; in impeg2d_api_reset()
925 ps_dec_state->aps_ref_pics[0] = NULL; in impeg2d_api_reset()
926 ps_dec_state->aps_ref_pics[1] = NULL; in impeg2d_api_reset()
959 dec_state_t *ps_dec_state; in impeg2d_api_set_params() local
965 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_set_params()
985 if(ps_dec_state->u2_header_done == 1) in impeg2d_api_set_params()
988 …sp_wd != 0) && (ps_ctl_dec_ip->s_ivd_ctl_set_config_ip_t.u4_disp_wd < ps_dec_state->u2_frame_width… in impeg2d_api_set_params()
998 …sp_wd != 0) && (ps_ctl_dec_ip->s_ivd_ctl_set_config_ip_t.u4_disp_wd < ps_dec_state->u2_horizontal_… in impeg2d_api_set_params()
1006ps_dec_state->u2_decode_header = (UWORD8)ps_ctl_dec_ip->s_ivd_ctl_set_config_ip_t.e_vid_dec_mod… in impeg2d_api_set_params()
1010 if(ps_dec_state->u2_header_done == 1) in impeg2d_api_set_params()
1012 if (ps_ctl_dec_ip->s_ivd_ctl_set_config_ip_t.u4_disp_wd > ps_dec_state->u2_frame_width) in impeg2d_api_set_params()
1014ps_dec_state->u4_frm_buf_stride = ps_ctl_dec_ip->s_ivd_ctl_set_config_ip_t.u4_disp_wd; in impeg2d_api_set_params()
1019 ps_dec_state->u4_frm_buf_stride = ps_ctl_dec_ip->s_ivd_ctl_set_config_ip_t.u4_disp_wd; in impeg2d_api_set_params()
1026 if(ps_dec_state->u2_header_done == 1) in impeg2d_api_set_params()
1028 ps_dec_state->u4_frm_buf_stride = ps_dec_state->u2_frame_width; in impeg2d_api_set_params()
1032 ps_dec_state->u4_frm_buf_stride = 0; in impeg2d_api_set_params()
1039 ps_dec_state->u1_flushfrm = 0; in impeg2d_api_set_params()
1071 dec_state_t *ps_dec_state; in impeg2d_api_get_status() local
1079 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_get_status()
1083 ps_ctl_dec_op->s_ivd_ctl_getstatus_op_t.u4_pic_ht = ps_dec_state->u2_frame_height; in impeg2d_api_get_status()
1084 ps_ctl_dec_op->s_ivd_ctl_getstatus_op_t.u4_pic_wd = ps_dec_state->u2_frame_width; in impeg2d_api_get_status()
1085 ps_ctl_dec_op->s_ivd_ctl_getstatus_op_t.u4_frame_rate = ps_dec_state->u2_framePeriod; in impeg2d_api_get_status()
1088 if(ps_dec_state->u2_progressive_sequence == 1) in impeg2d_api_get_status()
1094 …s_ivd_ctl_getstatus_op_t.e_output_chroma_format = (IV_COLOR_FORMAT_T)ps_dec_state->i4_chromaForma… in impeg2d_api_get_status()
1099 if(ps_dec_state->i4_chromaFormat == IV_YUV_420P) in impeg2d_api_get_status()
1103 else if(ps_dec_state->i4_chromaFormat == IV_YUV_422ILE) in impeg2d_api_get_status()
1107 else if(ps_dec_state->i4_chromaFormat == IV_RGB_565) in impeg2d_api_get_status()
1126 u4_stride = ps_dec_state->u4_frm_buf_stride; in impeg2d_api_get_status()
1127 u4_height = ((ps_dec_state->u2_frame_height + 15) >> 4) << 4; in impeg2d_api_get_status()
1129 if(ps_dec_state->i4_chromaFormat == IV_YUV_420P) in impeg2d_api_get_status()
1135 …else if((ps_dec_state->i4_chromaFormat == IV_YUV_420SP_UV) || (ps_dec_state->i4_chromaFormat == IV… in impeg2d_api_get_status()
1141 else if(ps_dec_state->i4_chromaFormat == IV_YUV_422ILE) in impeg2d_api_get_status()
1190 ps_codec = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_get_frame_dimensions()
1448 dec_state_t *ps_dec_state; in impeg2d_api_init() local
1539 ps_dec_state = ps_mem_rec->pv_base; in impeg2d_api_init()
1541 ps_dec_state_multi_core->ps_dec_state[i4_num_threads] = ps_dec_state; in impeg2d_api_init()
1543 ps_dec_state->ps_dec_state_multi_core = ps_dec_state_multi_core; in impeg2d_api_init()
1545 ps_dec_state->i4_num_cores = 1; in impeg2d_api_init()
1551 ps_dec_state->pv_codec_thread_handle = ps_mem_rec->pv_base; in impeg2d_api_init()
1562 ps_dec_state->s_mc_fw_buf.pu1_y = pv; in impeg2d_api_init()
1568 ps_dec_state->s_mc_fw_buf.pu1_u = pv; in impeg2d_api_init()
1575 ps_dec_state->s_mc_fw_buf.pu1_v = pv; in impeg2d_api_init()
1582 ps_dec_state->s_mc_bk_buf.pu1_y = pv; in impeg2d_api_init()
1589 ps_dec_state->s_mc_bk_buf.pu1_u = pv; in impeg2d_api_init()
1596 ps_dec_state->s_mc_bk_buf.pu1_v = pv; in impeg2d_api_init()
1603 ps_dec_state->s_mc_buf.pu1_y = pv; in impeg2d_api_init()
1610 ps_dec_state->s_mc_buf.pu1_u = pv; in impeg2d_api_init()
1617 ps_dec_state->s_mc_buf.pu1_v = pv; in impeg2d_api_init()
1626 ps_dec_state->pv_pic_buf_mg = 0; in impeg2d_api_init()
1631 ps_dec_state->pv_stack_cntxt = ps_mem_rec->pv_base; in impeg2d_api_init()
1644 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_init()
1646 ps_dec_state->pv_pic_buf_mg = ps_mem_rec->pv_base; in impeg2d_api_init()
1647 ps_dec_state->pv_pic_buf_base = (UWORD8 *)ps_mem_rec->pv_base + sizeof(buf_mgr_t); in impeg2d_api_init()
1657 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[i4_num_threads]; in impeg2d_api_init()
1663 ps_dec_state->u2_header_done = 0; /* Header decoding not done */ in impeg2d_api_init()
1672 ps_dec_state->u2_create_max_width = u4_max_frm_width; in impeg2d_api_init()
1673 ps_dec_state->u2_create_max_height = u4_max_frm_height; in impeg2d_api_init()
1675 ps_dec_state->i4_chromaFormat = ps_dec_init_ip->s_ivd_init_ip_t.e_output_format; in impeg2d_api_init()
1676 ps_dec_state->u4_frm_buf_stride = 0 ; in impeg2d_api_init()
1677 ps_dec_state->u2_frame_width = u4_max_frm_width; in impeg2d_api_init()
1678 ps_dec_state->u2_picture_width = u4_max_frm_width; in impeg2d_api_init()
1679 ps_dec_state->u2_horizontal_size = u4_max_frm_width; in impeg2d_api_init()
1681 ps_dec_state->u2_frame_height = u4_max_frm_height; in impeg2d_api_init()
1682 ps_dec_state->u2_vertical_size = u4_max_frm_height; in impeg2d_api_init()
1683 ps_dec_state->u4_share_disp_buf = u4_share_disp_buf; in impeg2d_api_init()
1688 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_init()
1690 if((ps_dec_state->i4_chromaFormat == IV_YUV_422ILE) in impeg2d_api_init()
1691 &&((ps_dec_state->u2_vertical_size & 0x1) != 0)) in impeg2d_api_init()
1705 impeg2_disp_mgr_init(&ps_dec_state->s_disp_mgr); in impeg2d_api_init()
1706 impeg2_buf_mgr_init((buf_mgr_t *)ps_dec_state->pv_pic_buf_mg); in impeg2d_api_init()
1720 if(0 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_init()
1723 ps_pic_buf = (pic_buf_t *)ps_dec_state->pv_pic_buf_base; in impeg2d_api_init()
1744 impeg2_buf_mgr_add(ps_dec_state->pv_pic_buf_mg, ps_pic_buf, i); in impeg2d_api_init()
1750 else if (ps_dec_state->i4_chromaFormat != IV_YUV_420P) in impeg2d_api_init()
1754 ps_dec_state->pu1_chroma_ref_buf[i] = ps_mem_rec->pv_base; in impeg2d_api_init()
1767 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_init()
1770 ps_dec_state->pv_jobq_buf = ps_mem_rec->pv_base; in impeg2d_api_init()
1771 ps_dec_state->i4_jobq_buf_size = ps_mem_rec->u4_mem_size; in impeg2d_api_init()
1781 ps_dec_state->u1_flushfrm = 0; in impeg2d_api_init()
1782 ps_dec_state->u1_flushcnt = 0; in impeg2d_api_init()
1783ps_dec_state->pv_jobq = impeg2_jobq_init(ps_dec_state->pv_jobq_buf, ps_dec_state->i4_jobq_buf_size… in impeg2d_api_init()
1789 ps_dec_state->pv_memTab = (void *)ps_mem_rec->pv_base; in impeg2d_api_init()
1794 ps_dec_state->u4_num_mem_records = u4_num_mem_rec; in impeg2d_api_init()
1797 ps_dec_state->u4_num_frames_decoded = 0; in impeg2d_api_init()
1798 ps_dec_state->aps_ref_pics[0] = NULL; in impeg2d_api_init()
1799 ps_dec_state->aps_ref_pics[1] = NULL; in impeg2d_api_init()
1802 impeg2d_init_arch(ps_dec_state); in impeg2d_api_init()
1804 impeg2d_init_function_ptr(ps_dec_state); in impeg2d_api_init()
1833 dec_state_t *ps_dec_state; in impeg2d_api_retrieve_mem_rec() local
1848 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_retrieve_mem_rec()
1849 ps_temp_rec = ps_dec_state->pv_memTab; in impeg2d_api_retrieve_mem_rec()
1851 for(u4_i = 0; u4_i < (ps_dec_state->u4_num_mem_records);u4_i++) in impeg2d_api_retrieve_mem_rec()
1860 …ps_retr_mem_rec_op->s_ivd_retrieve_mem_rec_op_t.u4_num_mem_rec_filled = ps_dec_state->u4_num_mem… in impeg2d_api_retrieve_mem_rec()
1862 impeg2_jobq_deinit(ps_dec_state->pv_jobq); in impeg2d_api_retrieve_mem_rec()
2922 dec_state_t *ps_dec_state; in impeg2d_api_entity() local
2952 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_entity()
2954 ps_dec_state->ps_disp_frm_buf = &(ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf); in impeg2d_api_entity()
2955 if(0 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_entity()
2957ps_dec_state->ps_disp_frm_buf->pv_y_buf = ps_dec_ip->s_ivd_video_decode_ip_t.s_out_buffer.pu1_buf… in impeg2d_api_entity()
2958ps_dec_state->ps_disp_frm_buf->pv_u_buf = ps_dec_ip->s_ivd_video_decode_ip_t.s_out_buffer.pu1_buf… in impeg2d_api_entity()
2959ps_dec_state->ps_disp_frm_buf->pv_v_buf = ps_dec_ip->s_ivd_video_decode_ip_t.s_out_buffer.pu1_buf… in impeg2d_api_entity()
2962 ps_dec_state->ps_disp_pic = NULL; in impeg2d_api_entity()
2963 ps_dec_state->i4_frame_decoded = 0; in impeg2d_api_entity()
2969 … if((ps_dec_ip->s_ivd_video_decode_ip_t.pv_stream_buffer == NULL)&&(ps_dec_state->u1_flushfrm==0)) in impeg2d_api_entity()
2977 if (ps_dec_state->u4_num_frames_decoded > NUM_FRAMES_LIMIT) in impeg2d_api_entity()
2983 …if(((0 == ps_dec_state->u2_header_done) || (ps_dec_state->u2_decode_header == 1)) && (ps_dec_state in impeg2d_api_entity()
2985 impeg2d_dec_hdr(ps_dec_state,ps_dec_ip ,ps_dec_op); in impeg2d_api_entity()
2989 … if((1 != ps_dec_state->u2_decode_header) && ((bytes_remaining > 0) || ps_dec_state->u1_flushfrm)) in impeg2d_api_entity()
2991 if(ps_dec_state->u1_flushfrm) in impeg2d_api_entity()
2993 if(ps_dec_state->aps_ref_pics[1] != NULL) in impeg2d_api_entity()
2995 …impeg2_disp_mgr_add(&ps_dec_state->s_disp_mgr, ps_dec_state->aps_ref_pics[1], ps_dec_state->aps_re… in impeg2d_api_entity()
2996 …impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_dec_state->aps_ref_pics[1]->i4_buf_id, BUF_… in impeg2d_api_entity()
2997 …impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_dec_state->aps_ref_pics[0]->i4_buf_id, BUF_… in impeg2d_api_entity()
2999 ps_dec_state->aps_ref_pics[1] = NULL; in impeg2d_api_entity()
3000 ps_dec_state->aps_ref_pics[0] = NULL; in impeg2d_api_entity()
3003 else if(ps_dec_state->aps_ref_pics[0] != NULL) in impeg2d_api_entity()
3005 …impeg2_disp_mgr_add(&ps_dec_state->s_disp_mgr, ps_dec_state->aps_ref_pics[0], ps_dec_state->aps_re… in impeg2d_api_entity()
3006 …impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_dec_state->aps_ref_pics[0]->i4_buf_id, BUF_… in impeg2d_api_entity()
3008 ps_dec_state->aps_ref_pics[0] = NULL; in impeg2d_api_entity()
3013 … ps_disp_pic = impeg2_disp_mgr_get(&ps_dec_state->s_disp_mgr, &ps_dec_state->i4_disp_buf_id); in impeg2d_api_entity()
3015 ps_dec_state->ps_disp_pic = ps_disp_pic; in impeg2d_api_entity()
3023 if(0 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_entity()
3033 if(IV_YUV_420P == ps_dec_state->i4_chromaFormat) in impeg2d_api_entity()
3043 pu1_buf = ps_dec_state->as_disp_buffers[ps_disp_pic->i4_buf_id].pu1_bufs[1]; in impeg2d_api_entity()
3046 pu1_buf = ps_dec_state->as_disp_buffers[ps_disp_pic->i4_buf_id].pu1_bufs[2]; in impeg2d_api_entity()
3054 impeg2d_format_convert(ps_dec_state, ps_disp_pic, in impeg2d_api_entity()
3056 0, ps_dec_state->u2_vertical_size); in impeg2d_api_entity()
3058 if(0 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_entity()
3059 … impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_disp_pic->i4_buf_id, BUF_MGR_DISP); in impeg2d_api_entity()
3061 ps_dec_op->s_ivd_video_decode_op_t.u4_pic_ht = ps_dec_state->u2_vertical_size; in impeg2d_api_entity()
3062 ps_dec_op->s_ivd_video_decode_op_t.u4_pic_wd = ps_dec_state->u2_horizontal_size; in impeg2d_api_entity()
3068 …_dec_op->s_ivd_video_decode_op_t.e_output_format = (IV_COLOR_FORMAT_T)ps_dec_state->i4_chromaForma… in impeg2d_api_entity()
3070 … ps_dec_op->s_ivd_video_decode_op_t.u4_is_ref_flag = (B_PIC != ps_dec_state->e_pic_type); in impeg2d_api_entity()
3074 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_y_wd = ps_dec_state->u2_horizontal_size; in impeg2d_api_entity()
3075 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_y_strd = ps_dec_state->u4_frm_buf_stride; in impeg2d_api_entity()
3076 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_y_ht = ps_dec_state->u2_vertical_size; in impeg2d_api_entity()
3078 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_wd = ps_dec_state->u2_horizontal_size >> 1; in impeg2d_api_entity()
3079 …ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_strd = ps_dec_state->u4_frm_buf_stride >> 1; in impeg2d_api_entity()
3080 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_ht = ps_dec_state->u2_vertical_size >> 1; in impeg2d_api_entity()
3082 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_v_wd = ps_dec_state->u2_horizontal_size >> 1; in impeg2d_api_entity()
3083 …ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_v_strd = ps_dec_state->u4_frm_buf_stride >> 1; in impeg2d_api_entity()
3084 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_v_ht = ps_dec_state->u2_vertical_size >> 1; in impeg2d_api_entity()
3087 switch(ps_dec_state->i4_chromaFormat) in impeg2d_api_entity()
3091 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_wd = ps_dec_state->u2_horizontal_size; in impeg2d_api_entity()
3092 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_strd = ps_dec_state->u4_frm_buf_stride; in impeg2d_api_entity()
3113 ps_dec_state->u4_frm_buf_stride, in impeg2d_api_entity()
3114 ps_dec_state->u2_horizontal_size, in impeg2d_api_entity()
3115 ps_dec_state->u2_vertical_size, in impeg2d_api_entity()
3116 ps_dec_state->i4_chromaFormat, in impeg2d_api_entity()
3117 ps_dec_state->u2_horizontal_size, in impeg2d_api_entity()
3118 ps_dec_state->u2_vertical_size); in impeg2d_api_entity()
3124 ps_dec_state->u1_flushfrm = 0; in impeg2d_api_entity()
3130 else if(ps_dec_state->u1_flushfrm==0) in impeg2d_api_entity()
3140 if(1 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_entity()
3142 if(0 == impeg2_buf_mgr_check_free(ps_dec_state->pv_pic_buf_mg)) in impeg2d_api_entity()
3151 …ps_dec_op->s_ivd_video_decode_op_t.e_output_format = (IV_COLOR_FORMAT_T)ps_dec_state->i4_chromaFor… in impeg2d_api_entity()
3153 ps_dec_op->s_ivd_video_decode_op_t.u4_is_ref_flag = (B_PIC != ps_dec_state->e_pic_type); in impeg2d_api_entity()
3157 if (0 == ps_dec_state->u4_frm_buf_stride) in impeg2d_api_entity()
3159 ps_dec_state->u4_frm_buf_stride = ALIGN16(ps_dec_state->u2_horizontal_size); in impeg2d_api_entity()
3162 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_y_wd = ps_dec_state->u2_horizontal_size; in impeg2d_api_entity()
3163 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_y_strd = ps_dec_state->u4_frm_buf_stride; in impeg2d_api_entity()
3164 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_y_ht = ps_dec_state->u2_vertical_size; in impeg2d_api_entity()
3166 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_wd = ps_dec_state->u2_horizontal_size >> 1; in impeg2d_api_entity()
3167 …ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_strd = ps_dec_state->u4_frm_buf_stride >> 1; in impeg2d_api_entity()
3168 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_ht = ps_dec_state->u2_vertical_size >> 1; in impeg2d_api_entity()
3170 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_v_wd = ps_dec_state->u2_horizontal_size >> 1; in impeg2d_api_entity()
3171 …ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_v_strd = ps_dec_state->u4_frm_buf_stride >> 1; in impeg2d_api_entity()
3172 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_v_ht = ps_dec_state->u2_vertical_size >> 1; in impeg2d_api_entity()
3175 switch(ps_dec_state->i4_chromaFormat) in impeg2d_api_entity()
3179 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_wd = ps_dec_state->u2_horizontal_size; in impeg2d_api_entity()
3180 … ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_strd = ps_dec_state->u4_frm_buf_stride; in impeg2d_api_entity()
3192 if( ps_dec_state->u1_flushfrm == 0) in impeg2d_api_entity()
3194 ps_dec_state->u1_flushcnt = 0; in impeg2d_api_entity()
3200 impeg2d_dec_frm(ps_dec_state,ps_dec_ip,ps_dec_op); in impeg2d_api_entity()
3205 if(ps_dec_state->u1_first_frame_done == 0) in impeg2d_api_entity()
3207 ps_dec_state->u1_first_frame_done = 1; in impeg2d_api_entity()
3210 if(ps_dec_state->ps_disp_pic) in impeg2d_api_entity()
3213 switch(ps_dec_state->ps_disp_pic->e_pic_type) in impeg2d_api_entity()
3242 ps_dec_state->u4_num_frames_decoded++; in impeg2d_api_entity()
3247 ps_dec_state->u1_flushcnt++; in impeg2d_api_entity()
3250 if(ps_dec_state->ps_disp_pic) in impeg2d_api_entity()
3252 … ps_dec_op->s_ivd_video_decode_op_t.u4_disp_buf_id = ps_dec_state->ps_disp_pic->i4_buf_id; in impeg2d_api_entity()
3253 ps_dec_op->s_ivd_video_decode_op_t.u4_ts = ps_dec_state->ps_disp_pic->u4_ts; in impeg2d_api_entity()
3255 if(0 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_entity()
3257 …impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_dec_state->ps_disp_pic->i4_buf_id, BUF_MGR_… in impeg2d_api_entity()
3266 ps_dec_state->u4_frm_buf_stride, in impeg2d_api_entity()
3267 ps_dec_state->u2_horizontal_size, in impeg2d_api_entity()
3268 ps_dec_state->u2_vertical_size, in impeg2d_api_entity()
3269 ps_dec_state->i4_chromaFormat, in impeg2d_api_entity()
3270 ps_dec_state->u2_horizontal_size, in impeg2d_api_entity()
3271 ps_dec_state->u2_vertical_size); in impeg2d_api_entity()
3277 ps_dec_op->s_ivd_video_decode_op_t.e4_fld_type = ps_dec_state->s_disp_op.e4_fld_type; in impeg2d_api_entity()