Home | History | Annotate | Download | only in decoder

Lines Matching defs:ps_dec_state

157     dec_state_t *ps_dec_state;
166 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0];
170 if(0 == ps_dec_state->u4_share_disp_buf)
173 if(NULL == ps_dec_state->pv_pic_buf_mg)
177 impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, dec_rel_disp_ip->u4_disp_buf_id, BUF_MGR_DISP);
211 dec_state_t *ps_dec_state;
225 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0];
227 if(ps_dec_state->u4_share_disp_buf)
230 ps_pic_buf = (pic_buf_t *)ps_dec_state->pv_pic_buf_base;
235 if(IV_YUV_420P == ps_dec_state->i4_chromaFormat)
242 ps_pic_buf->pu1_u = ps_dec_state->pu1_chroma_ref_buf[i];
243 ps_pic_buf->pu1_v = ps_dec_state->pu1_chroma_ref_buf[i] +
244 ((ps_dec_state->u2_create_max_width * ps_dec_state->u2_create_max_height) >> 2);
253 impeg2_buf_mgr_add(ps_dec_state->pv_pic_buf_mg, ps_pic_buf, i);
254 impeg2_buf_mgr_set_status(ps_dec_state->pv_pic_buf_mg, i, BUF_MGR_DISP);
259 memcpy(&(ps_dec_state->as_disp_buffers[0]),
273 dec_state_t *ps_dec_state;
280 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0];
288 ps_dec_state_multi_core->ps_dec_state[i]->i4_num_cores = ps_ip->u4_num_cores;
292 ps_dec_state->i4_num_cores = 1;
312 ps_codec = ps_dec_state_multi_core->ps_dec_state[0];
384 ps_codec = ps_dec_state_multi_core->ps_dec_state[0];
747 dec_state_t *ps_dec_state;
758 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0];
763 if(ps_dec_state->i4_chromaFormat == IV_YUV_420P)
768 else if((ps_dec_state->i4_chromaFormat == IV_YUV_420SP_UV)
769 || (ps_dec_state->i4_chromaFormat == IV_YUV_420SP_VU))
774 else if(ps_dec_state->i4_chromaFormat == IV_YUV_422ILE)
779 else if(ps_dec_state->i4_chromaFormat == IV_RGB_565)
808 if (0 == ps_dec_state->u4_frm_buf_stride)
810 if (1 == ps_dec_state->u2_header_done)
812 u4_stride = ps_dec_state->u2_horizontal_size;
816 u4_stride = ps_dec_state->u2_create_max_width;
821 u4_stride = ps_dec_state->u4_frm_buf_stride;
823 u4_height = ((ps_dec_state->u2_frame_height + 15) >> 4) << 4;
825 if(ps_dec_state->i4_chromaFormat == IV_YUV_420P)
834 else if((ps_dec_state->i4_chromaFormat == IV_YUV_420SP_UV)
835 || (ps_dec_state->i4_chromaFormat == IV_YUV_420SP_VU))
843 else if(ps_dec_state->i4_chromaFormat == IV_YUV_422ILE)
854 if(ps_dec_state->u4_share_disp_buf)
887 dec_state_t *ps_dec_state;
896 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0];
898 ps_dec_state->u1_flushfrm = 1;
930 dec_state_t *ps_dec_state;
943 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0];
945 ps_dec_state->u1_flushfrm = 0;
946 ps_dec_state->u2_decode_header = 1;
948 if (1 == ps_dec_state->u2_header_done)
950 ps_dec_state->u4_frm_buf_stride = ps_dec_state->u2_frame_width;
982 dec_state_t *ps_dec_state;
990 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0];
994 if(ps_dec_state->aps_ref_pics[1] != NULL)
995 impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_dec_state->aps_ref_pics[1]->i4_buf_id, BUF_MGR_REF);
996 if(ps_dec_state->aps_ref_pics[0] != NULL)
997 impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_dec_state->aps_ref_pics[0]->i4_buf_id, BUF_MGR_REF);
1000 pic_buf_t *ps_disp_pic = impeg2_disp_mgr_get(&ps_dec_state->s_disp_mgr, &ps_dec_state->i4_disp_buf_id);
1003 if(0 == ps_dec_state->u4_share_disp_buf)
1004 impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_disp_pic->i4_buf_id, BUF_MGR_DISP);
1008 if((ps_dec_state->u4_deinterlace) && (NULL != ps_dec_state->ps_deint_pic))
1010 impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg,
1011 ps_dec_state->ps_deint_pic->i4_buf_id,
1017 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[i4_num_threads];
1023 ps_dec_state->u2_header_done = 0; /* Header decoding not done */
1024 ps_dec_state->u4_frm_buf_stride = 0;
1025 ps_dec_state->u2_is_mpeg2 = 0;
1026 ps_dec_state->aps_ref_pics[0] = NULL;
1027 ps_dec_state->aps_ref_pics[1] = NULL;
1028 ps_dec_state->ps_deint_pic = NULL;
1061 dec_state_t *ps_dec_state;
1067 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0];
1087 if(ps_dec_state->u2_header_done == 1)
1090 ((ps_ctl_dec_ip->s_ivd_ctl_set_config_ip_t.u4_disp_wd != 0) && (ps_ctl_dec_ip->s_ivd_ctl_set_config_ip_t.u4_disp_wd < ps_dec_state->u2_frame_width)))
1099 ps_dec_state->u2_decode_header = (UWORD8)ps_ctl_dec_ip->s_ivd_ctl_set_config_ip_t.e_vid_dec_mode;
1103 if(ps_dec_state->u2_header_done == 1)
1105 if (ps_ctl_dec_ip->s_ivd_ctl_set_config_ip_t.u4_disp_wd > ps_dec_state->u2_frame_width)
1107 ps_dec_state->u4_frm_buf_stride = ps_ctl_dec_ip->s_ivd_ctl_set_config_ip_t.u4_disp_wd;
1112 ps_dec_state->u4_frm_buf_stride = ps_ctl_dec_ip->s_ivd_ctl_set_config_ip_t.u4_disp_wd;
1119 if(ps_dec_state->u2_header_done == 1)
1121 ps_dec_state->u4_frm_buf_stride = ps_dec_state->u2_frame_width;
1125 ps_dec_state->u4_frm_buf_stride = 0;
1132 ps_dec_state->u1_flushfrm = 0;
1164 dec_state_t *ps_dec_state;
1172 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0];
1176 ps_ctl_dec_op->s_ivd_ctl_getstatus_op_t.u4_pic_ht = ps_dec_state->u2_frame_height;
1177 ps_ctl_dec_op->s_ivd_ctl_getstatus_op_t.u4_pic_wd = ps_dec_state->u2_frame_width;
1178 ps_ctl_dec_op->s_ivd_ctl_getstatus_op_t.u4_frame_rate = ps_dec_state->u2_framePeriod;
1181 if(ps_dec_state->u2_progressive_sequence == 1)
1187 ps_ctl_dec_op->s_ivd_ctl_getstatus_op_t.e_output_chroma_format = (IV_COLOR_FORMAT_T)ps_dec_state->i4_chromaFormat;
1192 if(ps_dec_state->i4_chromaFormat == IV_YUV_420P)
1196 else if(ps_dec_state->i4_chromaFormat == IV_YUV_422ILE)
1200 else if(ps_dec_state->i4_chromaFormat == IV_RGB_565)
1219 u4_stride = ps_dec_state->u4_frm_buf_stride;
1220 u4_height = ((ps_dec_state->u2_frame_height + 15) >> 4) << 4;
1222 if(ps_dec_state->i4_chromaFormat == IV_YUV_420P)
1228 else if((ps_dec_state->i4_chromaFormat == IV_YUV_420SP_UV) || (ps_dec_state->i4_chromaFormat == IV_YUV_420SP_VU))
1234 else if(ps_dec_state->i4_chromaFormat == IV_YUV_422ILE)
1283 ps_codec = ps_dec_state_multi_core->ps_dec_state[0];
1541 dec_state_t *ps_dec_state;
1644 ps_dec_state = ps_mem_rec->pv_base;
1646 ps_dec_state_multi_core->ps_dec_state[i4_num_threads] = ps_dec_state;
1648 ps_dec_state->ps_dec_state_multi_core = ps_dec_state_multi_core;
1650 ps_dec_state->i4_num_cores = 1;
1656 ps_dec_state->pv_codec_thread_handle = ps_mem_rec->pv_base;
1667 ps_dec_state->s_mc_fw_buf.pu1_y = pv;
1673 ps_dec_state->s_mc_fw_buf.pu1_u = pv;
1680 ps_dec_state->s_mc_fw_buf.pu1_v = pv;
1687 ps_dec_state->s_mc_bk_buf.pu1_y = pv;
1694 ps_dec_state->s_mc_bk_buf.pu1_u = pv;
1701 ps_dec_state->s_mc_bk_buf.pu1_v = pv;
1708 ps_dec_state->s_mc_buf.pu1_y = pv;
1715 ps_dec_state->s_mc_buf.pu1_u = pv;
1722 ps_dec_state->s_mc_buf.pu1_v = pv;
1731 ps_dec_state->pv_pic_buf_mg = 0;
1736 ps_dec_state->pv_stack_cntxt = ps_mem_rec->pv_base;
1749 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0];
1751 ps_dec_state->pv_pic_buf_mg = ps_mem_rec->pv_base;
1752 ps_dec_state->pv_pic_buf_base = (UWORD8 *)ps_mem_rec->pv_base + sizeof(buf_mgr_t);
1762 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[i4_num_threads];
1768 ps_dec_state->u2_header_done = 0; /* Header decoding not done */
1777 ps_dec_state->u2_create_max_width = u4_max_frm_width;
1778 ps_dec_state->u2_create_max_height = u4_max_frm_height;
1780 ps_dec_state->i4_chromaFormat = ps_dec_init_ip->s_ivd_init_ip_t.e_output_format;
1781 ps_dec_state->u4_frm_buf_stride = 0 ;
1782 ps_dec_state->u2_frame_width = u4_max_frm_width;
1783 ps_dec_state->u2_picture_width = u4_max_frm_width;
1784 ps_dec_state->u2_horizontal_size = u4_max_frm_width;
1786 ps_dec_state->u2_frame_height = u4_max_frm_height;
1787 ps_dec_state->u2_vertical_size = u4_max_frm_height;
1788 ps_dec_state->u4_share_disp_buf = u4_share_disp_buf;
1789 ps_dec_state->u4_deinterlace = u4_deinterlace;
1790 ps_dec_state->ps_deint_pic = NULL;
1795 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0];
1797 if((ps_dec_state->i4_chromaFormat == IV_YUV_422ILE)
1798 &&((ps_dec_state->u2_vertical_size & 0x1) != 0))
1812 impeg2_disp_mgr_init(&ps_dec_state->s_disp_mgr);
1813 impeg2_buf_mgr_init((buf_mgr_t *)ps_dec_state->pv_pic_buf_mg);
1827 if(0 == ps_dec_state->u4_share_disp_buf)
1830 ps_pic_buf = (pic_buf_t *)ps_dec_state->pv_pic_buf_base;
1851 impeg2_buf_mgr_add(ps_dec_state->pv_pic_buf_mg, ps_pic_buf, i);
1857 else if (ps_dec_state->i4_chromaFormat != IV_YUV_420P)
1861 ps_dec_state->pu1_chroma_ref_buf[i] = ps_mem_rec->pv_base;
1874 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0];
1877 ps_dec_state->pv_jobq_buf = ps_mem_rec->pv_base;
1878 ps_dec_state->i4_jobq_buf_size = ps_mem_rec->u4_mem_size;
1888 ps_dec_state->u1_flushfrm = 0;
1889 ps_dec_state->u1_flushcnt = 0;
1890 ps_dec_state->pv_jobq = impeg2_jobq_init(ps_dec_state->pv_jobq_buf, ps_dec_state->i4_jobq_buf_size);
1893 ps_dec_state->pv_deinterlacer_ctxt = ps_mem_rec->pv_base;
1896 ps_dec_state->pu1_deint_fmt_buf = ps_mem_rec->pv_base;
1903 ps_dec_state->pv_memTab = (void *)ps_mem_rec->pv_base;
1908 ps_dec_state->u4_num_mem_records = u4_num_mem_rec;
1911 ps_dec_state->u4_num_frames_decoded = 0;
1912 ps_dec_state->aps_ref_pics[0] = NULL;
1913 ps_dec_state->aps_ref_pics[1] = NULL;
1917 impeg2d_init_arch(ps_dec_state);
1919 impeg2d_init_function_ptr(ps_dec_state);
1948 dec_state_t *ps_dec_state;
1963 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0];
1964 ps_temp_rec = ps_dec_state->pv_memTab;
1966 for(u4_i = 0; u4_i < (ps_dec_state->u4_num_mem_records);u4_i++)
1975 ps_retr_mem_rec_op->s_ivd_retrieve_mem_rec_op_t.u4_num_mem_rec_filled = ps_dec_state->u4_num_mem_records;
1977 impeg2_jobq_deinit(ps_dec_state->pv_jobq);
3072 dec_state_t *ps_dec_state;
3102 ps_dec_state = ps_dec_state_multi_core->ps_dec_state[0];
3104 ps_dec_state->ps_disp_frm_buf = &(ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf);
3105 if(0 == ps_dec_state->u4_share_disp_buf)
3107 ps_dec_state->ps_disp_frm_buf->pv_y_buf = ps_dec_ip->s_ivd_video_decode_ip_t.s_out_buffer.pu1_bufs[0];
3108 ps_dec_state->ps_disp_frm_buf->pv_u_buf = ps_dec_ip->s_ivd_video_decode_ip_t.s_out_buffer.pu1_bufs[1];
3109 ps_dec_state->ps_disp_frm_buf->pv_v_buf = ps_dec_ip->s_ivd_video_decode_ip_t.s_out_buffer.pu1_bufs[2];
3112 ps_dec_state->ps_disp_pic = NULL;
3113 ps_dec_state->i4_frame_decoded = 0;
3119 if((ps_dec_ip->s_ivd_video_decode_ip_t.pv_stream_buffer == NULL)&&(ps_dec_state->u1_flushfrm==0))
3127 if (ps_dec_state->u4_num_frames_decoded > NUM_FRAMES_LIMIT)
3133 if(((0 == ps_dec_state->u2_header_done) || (ps_dec_state->u2_decode_header == 1)) && (ps_dec_state->u1_flushfrm == 0))
3135 impeg2d_dec_hdr(ps_dec_state,ps_dec_ip ,ps_dec_op);
3139 if((1 != ps_dec_state->u2_decode_header) && ((bytes_remaining > 0) || ps_dec_state->u1_flushfrm))
3141 if(ps_dec_state->u1_flushfrm)
3143 if(ps_dec_state->aps_ref_pics[1] != NULL)
3145 impeg2_disp_mgr_add(&ps_dec_state->s_disp_mgr, ps_dec_state->aps_ref_pics[1], ps_dec_state->aps_ref_pics[1]->i4_buf_id);
3146 impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_dec_state->aps_ref_pics[1]->i4_buf_id, BUF_MGR_REF);
3147 impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_dec_state->aps_ref_pics[0]->i4_buf_id, BUF_MGR_REF);
3149 ps_dec_state->aps_ref_pics[1] = NULL;
3150 ps_dec_state->aps_ref_pics[0] = NULL;
3153 else if(ps_dec_state->aps_ref_pics[0] != NULL)
3155 impeg2_disp_mgr_add(&ps_dec_state->s_disp_mgr, ps_dec_state->aps_ref_pics[0], ps_dec_state->aps_ref_pics[0]->i4_buf_id);
3156 impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_dec_state->aps_ref_pics[0]->i4_buf_id, BUF_MGR_REF);
3158 ps_dec_state->aps_ref_pics[0] = NULL;
3163 ps_disp_pic = impeg2_disp_mgr_get(&ps_dec_state->s_disp_mgr, &ps_dec_state->i4_disp_buf_id);
3165 ps_dec_state->ps_disp_pic = ps_disp_pic;
3173 if(0 == ps_dec_state->u4_share_disp_buf)
3183 if(IV_YUV_420P == ps_dec_state->i4_chromaFormat)
3193 pu1_buf = ps_dec_state->as_disp_buffers[ps_disp_pic->i4_buf_id].pu1_bufs[1];
3196 pu1_buf = ps_dec_state->as_disp_buffers[ps_disp_pic->i4_buf_id].pu1_bufs[2];
3208 if(ps_dec_state->u4_deinterlace && (0 == ps_dec_state->u2_progressive_frame))
3210 impeg2d_deinterlace(ps_dec_state,
3214 ps_dec_state->u2_vertical_size);
3219 impeg2d_format_convert(ps_dec_state,
3223 ps_dec_state->u2_vertical_size);
3227 if(ps_dec_state->u4_deinterlace)
3229 if(ps_dec_state->ps_deint_pic)
3231 impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg,
3232 ps_dec_state->ps_deint_pic->i4_buf_id,
3235 ps_dec_state->ps_deint_pic = ps_disp_pic;
3237 if(0 == ps_dec_state->u4_share_disp_buf)
3238 impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_disp_pic->i4_buf_id, BUF_MGR_DISP);
3240 ps_dec_op->s_ivd_video_decode_op_t.u4_pic_ht = ps_dec_state->u2_vertical_size;
3241 ps_dec_op->s_ivd_video_decode_op_t.u4_pic_wd = ps_dec_state->u2_horizontal_size;
3247 ps_dec_op->s_ivd_video_decode_op_t.e_output_format = (IV_COLOR_FORMAT_T)ps_dec_state->i4_chromaFormat;
3249 ps_dec_op->s_ivd_video_decode_op_t.u4_is_ref_flag = (B_PIC != ps_dec_state->e_pic_type);
3253 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_y_wd = ps_dec_state->u2_horizontal_size;
3254 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_y_strd = ps_dec_state->u4_frm_buf_stride;
3255 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_y_ht = ps_dec_state->u2_vertical_size;
3257 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_wd = ps_dec_state->u2_horizontal_size >> 1;
3258 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_strd = ps_dec_state->u4_frm_buf_stride >> 1;
3259 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_ht = ps_dec_state->u2_vertical_size >> 1;
3261 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_v_wd = ps_dec_state->u2_horizontal_size >> 1;
3262 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_v_strd = ps_dec_state->u4_frm_buf_stride >> 1;
3263 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_v_ht = ps_dec_state->u2_vertical_size >> 1;
3266 switch(ps_dec_state->i4_chromaFormat)
3270 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_wd = ps_dec_state->u2_horizontal_size;
3271 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_strd = ps_dec_state->u4_frm_buf_stride;
3292 ps_dec_state->u4_frm_buf_stride,
3293 ps_dec_state->u2_horizontal_size,
3294 ps_dec_state->u2_vertical_size,
3295 ps_dec_state->i4_chromaFormat,
3296 ps_dec_state->u2_horizontal_size,
3297 ps_dec_state->u2_vertical_size);
3303 ps_dec_state->u1_flushfrm = 0;
3309 else if(ps_dec_state->u1_flushfrm==0)
3319 if(1 == ps_dec_state->u4_share_disp_buf)
3321 if(0 == impeg2_buf_mgr_check_free(ps_dec_state->pv_pic_buf_mg))
3330 ps_dec_op->s_ivd_video_decode_op_t.e_output_format = (IV_COLOR_FORMAT_T)ps_dec_state->i4_chromaFormat;
3332 ps_dec_op->s_ivd_video_decode_op_t.u4_is_ref_flag = (B_PIC != ps_dec_state->e_pic_type);
3336 if (0 == ps_dec_state->u4_frm_buf_stride)
3338 ps_dec_state->u4_frm_buf_stride = (ps_dec_state->u2_horizontal_size);
3341 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_y_wd = ps_dec_state->u2_horizontal_size;
3342 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_y_strd = ps_dec_state->u4_frm_buf_stride;
3343 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_y_ht = ps_dec_state->u2_vertical_size;
3345 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_wd = ps_dec_state->u2_horizontal_size >> 1;
3346 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_strd = ps_dec_state->u4_frm_buf_stride >> 1;
3347 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_ht = ps_dec_state->u2_vertical_size >> 1;
3349 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_v_wd = ps_dec_state->u2_horizontal_size >> 1;
3350 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_v_strd = ps_dec_state->u4_frm_buf_stride >> 1;
3351 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_v_ht = ps_dec_state->u2_vertical_size >> 1;
3354 switch(ps_dec_state->i4_chromaFormat)
3358 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_wd = ps_dec_state->u2_horizontal_size;
3359 ps_dec_op->s_ivd_video_decode_op_t.s_disp_frm_buf.u4_u_strd = ps_dec_state->u4_frm_buf_stride;
3371 if( ps_dec_state->u1_flushfrm == 0)
3373 ps_dec_state->u1_flushcnt = 0;
3379 impeg2d_dec_frm(ps_dec_state,ps_dec_ip,ps_dec_op);
3384 if(ps_dec_state->u1_first_frame_done == 0)
3386 ps_dec_state->u1_first_frame_done = 1;
3389 if(ps_dec_state->ps_disp_pic)
3392 switch(ps_dec_state->ps_disp_pic->e_pic_type)
3421 ps_dec_state->u4_num_frames_decoded++;
3426 ps_dec_state->u1_flushcnt++;
3429 if(ps_dec_state->ps_disp_pic)
3431 ps_dec_op->s_ivd_video_decode_op_t.u4_disp_buf_id = ps_dec_state->ps_disp_pic->i4_buf_id;
3432 ps_dec_op->s_ivd_video_decode_op_t.u4_ts = ps_dec_state->ps_disp_pic->u4_ts;
3434 if(0 == ps_dec_state->u4_share_disp_buf)
3436 impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg, ps_dec_state->ps_disp_pic->i4_buf_id, BUF_MGR_DISP);
3440 if(ps_dec_state->u4_deinterlace)
3442 if(ps_dec_state->ps_deint_pic)
3444 impeg2_buf_mgr_release(ps_dec_state->pv_pic_buf_mg,
3445 ps_dec_state->ps_deint_pic->i4_buf_id,
3448 ps_dec_state->ps_deint_pic = ps_dec_state->ps_disp_pic;
3456 ps_dec_state->u4_frm_buf_stride,
3457 ps_dec_state->u2_horizontal_size,
3458 ps_dec_state->u2_vertical_size,
3459 ps_dec_state->i4_chromaFormat,
3460 ps_dec_state->u2_horizontal_size,
3461 ps_dec_state->u2_vertical_size);
3467 ps_dec_op->s_ivd_video_decode_op_t.e4_fld_type = ps_dec_state->s_disp_op.e4_fld_type;