• Home
  • Raw
  • Download

Lines Matching refs:ps_dec_state

158     dec_state_t *ps_dec_state;  in impeg2d_api_rel_display_frame()  local
167 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_rel_display_frame()
171 if(0 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_rel_display_frame()
174 if(NULL == ps_dec_state->pv_pic_buf_mg) in impeg2d_api_rel_display_frame()
178 …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()
212 dec_state_t *ps_dec_state; in impeg2d_api_set_display_frame() local
228 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_set_display_frame()
232 if(ps_dec_state->u4_share_disp_buf) in impeg2d_api_set_display_frame()
235 ps_pic_buf = (pic_buf_t *)ps_dec_state->pv_pic_buf_base; in impeg2d_api_set_display_frame()
267 if(IV_YUV_420P == ps_dec_state->i4_chromaFormat) in impeg2d_api_set_display_frame()
274 ps_pic_buf->pu1_u = ps_dec_state->pu1_chroma_ref_buf[i]; in impeg2d_api_set_display_frame()
275 ps_pic_buf->pu1_v = ps_dec_state->pu1_chroma_ref_buf[i] + in impeg2d_api_set_display_frame()
276 … ((ps_dec_state->u2_create_max_width * ps_dec_state->u2_create_max_height) >> 2); in impeg2d_api_set_display_frame()
285 impeg2_buf_mgr_add(ps_dec_state->pv_pic_buf_mg, ps_pic_buf, i); in impeg2d_api_set_display_frame()
286 impeg2_buf_mgr_set_status(ps_dec_state->pv_pic_buf_mg, i, BUF_MGR_DISP); in impeg2d_api_set_display_frame()
291 memcpy(&(ps_dec_state->as_disp_buffers[0]), in impeg2d_api_set_display_frame()
305 dec_state_t *ps_dec_state; in impeg2d_api_set_num_cores() local
312 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_set_num_cores()
320 ps_dec_state_multi_core->ps_dec_state[i]->i4_num_cores = ps_ip->u4_num_cores; in impeg2d_api_set_num_cores()
324 ps_dec_state->i4_num_cores = 1; in impeg2d_api_set_num_cores()
344 ps_codec = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_get_seq_info()
416 ps_codec = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_set_processor()
788 dec_state_t *ps_dec_state; in impeg2d_api_get_buf_info() local
799 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_get_buf_info()
820 if (0 == ps_dec_state->u4_frm_buf_stride) in impeg2d_api_get_buf_info()
822 if (1 == ps_dec_state->u2_header_done) in impeg2d_api_get_buf_info()
824 u4_stride = ps_dec_state->u2_horizontal_size; in impeg2d_api_get_buf_info()
828 u4_stride = ps_dec_state->u2_create_max_width; in impeg2d_api_get_buf_info()
833 u4_stride = ps_dec_state->u4_frm_buf_stride; in impeg2d_api_get_buf_info()
836 u4_height = ALIGN32(ps_dec_state->u2_frame_height) + 9; in impeg2d_api_get_buf_info()
842 ps_dec_state->i4_chromaFormat, in impeg2d_api_get_buf_info()
855 if(ps_dec_state->u4_share_disp_buf) in impeg2d_api_get_buf_info()
888 dec_state_t *ps_dec_state; in impeg2d_api_set_flush_mode() local
897 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_set_flush_mode()
899 ps_dec_state->u1_flushfrm = 1; in impeg2d_api_set_flush_mode()
931 dec_state_t *ps_dec_state; in impeg2d_api_set_default() local
944 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_set_default()
946 ps_dec_state->u1_flushfrm = 0; in impeg2d_api_set_default()
947 ps_dec_state->u2_decode_header = 1; in impeg2d_api_set_default()
949 if (1 == ps_dec_state->u2_header_done) in impeg2d_api_set_default()
951 ps_dec_state->u4_frm_buf_stride = ps_dec_state->u2_frame_width; in impeg2d_api_set_default()
983 dec_state_t *ps_dec_state; in impeg2d_api_reset() local
991 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_reset()
995 impeg2_buf_mgr_reset(ps_dec_state->pv_pic_buf_mg); in impeg2d_api_reset()
999 impeg2_disp_mgr_init(&ps_dec_state->s_disp_mgr); in impeg2d_api_reset()
1003 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[i4_num_threads]; in impeg2d_api_reset()
1009 ps_dec_state->u2_header_done = 0; /* Header decoding not done */ in impeg2d_api_reset()
1010 ps_dec_state->u4_frm_buf_stride = 0; in impeg2d_api_reset()
1011 ps_dec_state->i4_pic_count = 0; in impeg2d_api_reset()
1012 ps_dec_state->u2_is_mpeg2 = 0; in impeg2d_api_reset()
1013 ps_dec_state->aps_ref_pics[0] = NULL; in impeg2d_api_reset()
1014 ps_dec_state->aps_ref_pics[1] = NULL; in impeg2d_api_reset()
1015 ps_dec_state->ps_deint_pic = NULL; in impeg2d_api_reset()
1048 dec_state_t *ps_dec_state; in impeg2d_api_set_params() local
1054 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_set_params()
1074 if(ps_dec_state->u2_header_done == 1) in impeg2d_api_set_params()
1077 …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()
1086ps_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()
1090 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()
1095 if(ps_dec_state->u2_header_done == 1) in impeg2d_api_set_params()
1097 ps_dec_state->u4_frm_buf_stride = ps_dec_state->u2_frame_width; in impeg2d_api_set_params()
1101 ps_dec_state->u4_frm_buf_stride = 0; in impeg2d_api_set_params()
1108 ps_dec_state->u1_flushfrm = 0; in impeg2d_api_set_params()
1140 dec_state_t *ps_dec_state; in impeg2d_api_get_status() local
1148 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_get_status()
1152 ps_ctl_dec_op->s_ivd_ctl_getstatus_op_t.u4_pic_ht = ps_dec_state->u2_frame_height; in impeg2d_api_get_status()
1153 ps_ctl_dec_op->s_ivd_ctl_getstatus_op_t.u4_pic_wd = ps_dec_state->u2_frame_width; in impeg2d_api_get_status()
1154 ps_ctl_dec_op->s_ivd_ctl_getstatus_op_t.u4_frame_rate = ps_dec_state->u2_framePeriod; in impeg2d_api_get_status()
1157 if(ps_dec_state->u2_progressive_sequence == 1) in impeg2d_api_get_status()
1163 …s_ivd_ctl_getstatus_op_t.e_output_chroma_format = (IV_COLOR_FORMAT_T)ps_dec_state->i4_chromaForma… in impeg2d_api_get_status()
1168 if(ps_dec_state->i4_chromaFormat == IV_YUV_420P) in impeg2d_api_get_status()
1172 else if(ps_dec_state->i4_chromaFormat == IV_YUV_422ILE) in impeg2d_api_get_status()
1176 else if(ps_dec_state->i4_chromaFormat == IV_RGB_565) in impeg2d_api_get_status()
1195 u4_stride = ps_dec_state->u4_frm_buf_stride; in impeg2d_api_get_status()
1196 u4_height = ((ps_dec_state->u2_frame_height + 15) >> 4) << 4; in impeg2d_api_get_status()
1198 if(ps_dec_state->i4_chromaFormat == IV_YUV_420P) in impeg2d_api_get_status()
1204 …else if((ps_dec_state->i4_chromaFormat == IV_YUV_420SP_UV) || (ps_dec_state->i4_chromaFormat == IV… in impeg2d_api_get_status()
1210 else if(ps_dec_state->i4_chromaFormat == IV_YUV_422ILE) in impeg2d_api_get_status()
1259 ps_codec = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_get_frame_dimensions()
1611 dec_state_t *ps_dec_state; in impeg2d_api_init() local
1714 ps_dec_state = ps_mem_rec->pv_base; in impeg2d_api_init()
1716 ps_dec_state_multi_core->ps_dec_state[i4_num_threads] = ps_dec_state; in impeg2d_api_init()
1718 ps_dec_state->ps_dec_state_multi_core = ps_dec_state_multi_core; in impeg2d_api_init()
1720 ps_dec_state->i4_num_cores = 1; in impeg2d_api_init()
1726 ps_dec_state->pv_codec_thread_handle = ps_mem_rec->pv_base; in impeg2d_api_init()
1737 ps_dec_state->s_mc_fw_buf.pu1_y = pv; in impeg2d_api_init()
1743 ps_dec_state->s_mc_fw_buf.pu1_u = pv; in impeg2d_api_init()
1750 ps_dec_state->s_mc_fw_buf.pu1_v = pv; in impeg2d_api_init()
1757 ps_dec_state->s_mc_bk_buf.pu1_y = pv; in impeg2d_api_init()
1764 ps_dec_state->s_mc_bk_buf.pu1_u = pv; in impeg2d_api_init()
1771 ps_dec_state->s_mc_bk_buf.pu1_v = pv; in impeg2d_api_init()
1778 ps_dec_state->s_mc_buf.pu1_y = pv; in impeg2d_api_init()
1785 ps_dec_state->s_mc_buf.pu1_u = pv; in impeg2d_api_init()
1792 ps_dec_state->s_mc_buf.pu1_v = pv; in impeg2d_api_init()
1801 ps_dec_state->pv_pic_buf_mg = 0; in impeg2d_api_init()
1806 ps_dec_state->pv_stack_cntxt = ps_mem_rec->pv_base; in impeg2d_api_init()
1819 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_init()
1821 ps_dec_state->pv_pic_buf_mg = ps_mem_rec->pv_base; in impeg2d_api_init()
1822 ps_dec_state->pv_pic_buf_base = (UWORD8 *)ps_mem_rec->pv_base + sizeof(buf_mgr_t); in impeg2d_api_init()
1832 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[i4_num_threads]; in impeg2d_api_init()
1838 ps_dec_state->u2_header_done = 0; /* Header decoding not done */ in impeg2d_api_init()
1847 ps_dec_state->u2_create_max_width = u4_max_frm_width; in impeg2d_api_init()
1848 ps_dec_state->u2_create_max_height = u4_max_frm_height; in impeg2d_api_init()
1850 ps_dec_state->i4_chromaFormat = ps_dec_init_ip->s_ivd_init_ip_t.e_output_format; in impeg2d_api_init()
1851 ps_dec_state->u4_frm_buf_stride = 0 ; in impeg2d_api_init()
1852 ps_dec_state->u2_frame_width = u4_max_frm_width; in impeg2d_api_init()
1853 ps_dec_state->u2_picture_width = u4_max_frm_width; in impeg2d_api_init()
1854 ps_dec_state->u2_horizontal_size = u4_max_frm_width; in impeg2d_api_init()
1856 ps_dec_state->u2_frame_height = u4_max_frm_height; in impeg2d_api_init()
1857 ps_dec_state->u2_vertical_size = u4_max_frm_height; in impeg2d_api_init()
1858 ps_dec_state->u4_share_disp_buf = u4_share_disp_buf; in impeg2d_api_init()
1859 ps_dec_state->u4_deinterlace = u4_deinterlace; in impeg2d_api_init()
1860 ps_dec_state->ps_deint_pic = NULL; in impeg2d_api_init()
1864 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_init()
1866 if((ps_dec_state->i4_chromaFormat == IV_YUV_422ILE) in impeg2d_api_init()
1867 &&((ps_dec_state->u2_vertical_size & 0x1) != 0)) in impeg2d_api_init()
1881 impeg2_disp_mgr_init(&ps_dec_state->s_disp_mgr); in impeg2d_api_init()
1882 impeg2_buf_mgr_init((buf_mgr_t *)ps_dec_state->pv_pic_buf_mg); in impeg2d_api_init()
1896 if(0 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_init()
1899 ps_pic_buf = (pic_buf_t *)ps_dec_state->pv_pic_buf_base; in impeg2d_api_init()
1920 impeg2_buf_mgr_add(ps_dec_state->pv_pic_buf_mg, ps_pic_buf, i); in impeg2d_api_init()
1926 else if (ps_dec_state->i4_chromaFormat != IV_YUV_420P) in impeg2d_api_init()
1930 ps_dec_state->pu1_chroma_ref_buf[i] = ps_mem_rec->pv_base; in impeg2d_api_init()
1943 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_init()
1945 ps_dec_state->pu1_input_buffer = ps_mem_rec->pv_base; in impeg2d_api_init()
1949 ps_dec_state->pv_jobq_buf = ps_mem_rec->pv_base; in impeg2d_api_init()
1950 ps_dec_state->i4_jobq_buf_size = ps_mem_rec->u4_mem_size; in impeg2d_api_init()
1961 ps_dec_state->u1_flushfrm = 0; in impeg2d_api_init()
1962 ps_dec_state->u1_flushcnt = 0; in impeg2d_api_init()
1963ps_dec_state->pv_jobq = impeg2_jobq_init(ps_dec_state->pv_jobq_buf, ps_dec_state->i4_jobq_buf_size… in impeg2d_api_init()
1966 ps_dec_state->pv_deinterlacer_ctxt = ps_mem_rec->pv_base; in impeg2d_api_init()
1970 ps_dec_state->pu1_deint_fmt_buf = ps_mem_rec->pv_base; in impeg2d_api_init()
1978 ps_dec_state->pv_memTab = (void *)ps_mem_rec->pv_base; in impeg2d_api_init()
1983 ps_dec_state->u4_num_mem_records = u4_num_mem_rec; in impeg2d_api_init()
1986 ps_dec_state->u4_num_frames_decoded = 0; in impeg2d_api_init()
1987 ps_dec_state->aps_ref_pics[0] = NULL; in impeg2d_api_init()
1988 ps_dec_state->aps_ref_pics[1] = NULL; in impeg2d_api_init()
1992 impeg2d_init_arch(ps_dec_state); in impeg2d_api_init()
1994 impeg2d_init_function_ptr(ps_dec_state); in impeg2d_api_init()
2023 dec_state_t *ps_dec_state; in impeg2d_api_retrieve_mem_rec() local
2038 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_retrieve_mem_rec()
2039 ps_temp_rec = ps_dec_state->pv_memTab; in impeg2d_api_retrieve_mem_rec()
2041 for(u4_i = 0; u4_i < (ps_dec_state->u4_num_mem_records);u4_i++) in impeg2d_api_retrieve_mem_rec()
2050 …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()
2052 impeg2_jobq_deinit(ps_dec_state->pv_jobq); in impeg2d_api_retrieve_mem_rec()
3147 dec_state_t *ps_dec_state; in impeg2d_api_entity() local
3177 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0]; in impeg2d_api_entity()
3179 ps_dec_state->ps_disp_frm_buf = &(ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf); in impeg2d_api_entity()
3180 if(0 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_entity()
3182ps_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()
3183ps_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()
3184ps_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()
3187 ps_dec_state->ps_disp_pic = NULL; in impeg2d_api_entity()
3188 ps_dec_state->i4_frame_decoded = 0; in impeg2d_api_entity()
3194 … if((ps_dec_ip->s_ivd_video_decode_ip_t.pv_stream_buffer == NULL)&&(ps_dec_state->u1_flushfrm==0)) in impeg2d_api_entity()
3202 if (ps_dec_state->u4_num_frames_decoded > NUM_FRAMES_LIMIT) in impeg2d_api_entity()
3208 …if(((0 == ps_dec_state->u2_header_done) || (ps_dec_state->u2_decode_header == 1)) && (ps_dec_state in impeg2d_api_entity()
3210 impeg2d_dec_hdr(ps_dec_state,ps_dec_ip ,ps_dec_op); in impeg2d_api_entity()
3214 if((1 != ps_dec_state->u2_decode_header) && in impeg2d_api_entity()
3215 … (((bytes_remaining > 0) && (1 == ps_dec_state->u2_header_done)) || ps_dec_state->u1_flushfrm)) in impeg2d_api_entity()
3217 if(ps_dec_state->u1_flushfrm) in impeg2d_api_entity()
3219 if(ps_dec_state->aps_ref_pics[1] != NULL) in impeg2d_api_entity()
3221 …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()
3222 …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()
3223 …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()
3225 ps_dec_state->aps_ref_pics[1] = NULL; in impeg2d_api_entity()
3226 ps_dec_state->aps_ref_pics[0] = NULL; in impeg2d_api_entity()
3229 else if(ps_dec_state->aps_ref_pics[0] != NULL) in impeg2d_api_entity()
3231 …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()
3232 …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()
3234 ps_dec_state->aps_ref_pics[0] = NULL; in impeg2d_api_entity()
3239 … ps_disp_pic = impeg2_disp_mgr_get(&ps_dec_state->s_disp_mgr, &ps_dec_state->i4_disp_buf_id); in impeg2d_api_entity()
3241 ps_dec_state->ps_disp_pic = ps_disp_pic; in impeg2d_api_entity()
3249 if(0 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_entity()
3259 if(IV_YUV_420P == ps_dec_state->i4_chromaFormat) in impeg2d_api_entity()
3269 pu1_buf = ps_dec_state->as_disp_buffers[ps_disp_pic->i4_buf_id].pu1_bufs[1]; in impeg2d_api_entity()
3272 pu1_buf = ps_dec_state->as_disp_buffers[ps_disp_pic->i4_buf_id].pu1_bufs[2]; in impeg2d_api_entity()
3284 if(ps_dec_state->u4_deinterlace && (0 == ps_dec_state->u2_progressive_frame)) in impeg2d_api_entity()
3286 impeg2d_deinterlace(ps_dec_state, in impeg2d_api_entity()
3290 ps_dec_state->u2_vertical_size); in impeg2d_api_entity()
3295 impeg2d_format_convert(ps_dec_state, in impeg2d_api_entity()
3299 ps_dec_state->u2_vertical_size); in impeg2d_api_entity()
3303 if(ps_dec_state->u4_deinterlace) in impeg2d_api_entity()
3305 if(ps_dec_state->ps_deint_pic) in impeg2d_api_entity()
3307 impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, in impeg2d_api_entity()
3308 ps_dec_state->ps_deint_pic->i4_buf_id, in impeg2d_api_entity()
3311 ps_dec_state->ps_deint_pic = ps_disp_pic; in impeg2d_api_entity()
3313 if(0 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_entity()
3314 … impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_disp_pic->i4_buf_id, BUF_MGR_DISP); in impeg2d_api_entity()
3316 ps_dec_op->s_ivd_video_decode_op_t.u4_pic_ht = ps_dec_state->u2_vertical_size; in impeg2d_api_entity()
3317 ps_dec_op->s_ivd_video_decode_op_t.u4_pic_wd = ps_dec_state->u2_horizontal_size; in impeg2d_api_entity()
3323 …_dec_op->s_ivd_video_decode_op_t.e_output_format = (IV_COLOR_FORMAT_T)ps_dec_state->i4_chromaForma… in impeg2d_api_entity()
3325 … 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()
3329 … 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()
3330 … 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()
3331 … 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()
3333 … 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()
3334 …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()
3335 … 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()
3337 … 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()
3338 …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()
3339 … 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()
3342 switch(ps_dec_state->i4_chromaFormat) in impeg2d_api_entity()
3346 … 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()
3347 … 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()
3368 ps_dec_state->u4_frm_buf_stride, in impeg2d_api_entity()
3369 ps_dec_state->u2_horizontal_size, in impeg2d_api_entity()
3370 ps_dec_state->u2_vertical_size, in impeg2d_api_entity()
3371 ps_dec_state->i4_chromaFormat, in impeg2d_api_entity()
3372 ps_dec_state->u2_horizontal_size, in impeg2d_api_entity()
3373 ps_dec_state->u2_vertical_size); in impeg2d_api_entity()
3379 ps_dec_state->u1_flushfrm = 0; in impeg2d_api_entity()
3385 else if(ps_dec_state->u1_flushfrm==0) in impeg2d_api_entity()
3395 if(1 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_entity()
3397 if(0 == impeg2_buf_mgr_check_free(ps_dec_state->pv_pic_buf_mg)) in impeg2d_api_entity()
3406 …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()
3408 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()
3412 if (0 == ps_dec_state->u4_frm_buf_stride) in impeg2d_api_entity()
3414 ps_dec_state->u4_frm_buf_stride = (ps_dec_state->u2_horizontal_size); in impeg2d_api_entity()
3417 … 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()
3418 … 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()
3419 … 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()
3421 … 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()
3422 …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()
3423 … 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()
3425 … 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()
3426 …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()
3427 … 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()
3430 switch(ps_dec_state->i4_chromaFormat) in impeg2d_api_entity()
3434 … 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()
3435 … 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()
3447 if( ps_dec_state->u1_flushfrm == 0) in impeg2d_api_entity()
3449 ps_dec_state->u1_flushcnt = 0; in impeg2d_api_entity()
3451 ps_dec_state->ps_out_buf = &ps_dec_ip->s_ivd_video_decode_ip_t.s_out_buffer; in impeg2d_api_entity()
3452 if (IV_SUCCESS != check_app_out_buf_size(ps_dec_state)) in impeg2d_api_entity()
3461 ps_dec_state->u4_inp_ts = ps_dec_ip->s_ivd_video_decode_ip_t.u4_ts; in impeg2d_api_entity()
3463 impeg2d_dec_frm(ps_dec_state,ps_dec_ip,ps_dec_op); in impeg2d_api_entity()
3468 if(ps_dec_state->u1_first_frame_done == 0) in impeg2d_api_entity()
3470 ps_dec_state->u1_first_frame_done = 1; in impeg2d_api_entity()
3473 if(ps_dec_state->ps_disp_pic) in impeg2d_api_entity()
3476 switch(ps_dec_state->ps_disp_pic->e_pic_type) in impeg2d_api_entity()
3505 ps_dec_state->u4_num_frames_decoded++; in impeg2d_api_entity()
3510 ps_dec_state->u1_flushcnt++; in impeg2d_api_entity()
3513 if(ps_dec_state->ps_disp_pic) in impeg2d_api_entity()
3515 … 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()
3516 ps_dec_op->s_ivd_video_decode_op_t.u4_ts = ps_dec_state->ps_disp_pic->u4_ts; in impeg2d_api_entity()
3518 if(0 == ps_dec_state->u4_share_disp_buf) in impeg2d_api_entity()
3520 …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()
3524 if(ps_dec_state->u4_deinterlace) in impeg2d_api_entity()
3526 if(ps_dec_state->ps_deint_pic) in impeg2d_api_entity()
3528 impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, in impeg2d_api_entity()
3529 ps_dec_state->ps_deint_pic->i4_buf_id, in impeg2d_api_entity()
3532 ps_dec_state->ps_deint_pic = ps_dec_state->ps_disp_pic; in impeg2d_api_entity()
3540 ps_dec_state->u4_frm_buf_stride, in impeg2d_api_entity()
3541 ps_dec_state->u2_horizontal_size, in impeg2d_api_entity()
3542 ps_dec_state->u2_vertical_size, in impeg2d_api_entity()
3543 ps_dec_state->i4_chromaFormat, in impeg2d_api_entity()
3544 ps_dec_state->u2_horizontal_size, in impeg2d_api_entity()
3545 ps_dec_state->u2_vertical_size); in impeg2d_api_entity()
3551 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()