Lines Matching refs:ps_dec
57 void impeg2d_dec_i_mb_params(dec_state_t *ps_dec) in impeg2d_dec_i_mb_params() argument
62 stream_t *ps_stream = &ps_dec->s_bit_stream; in impeg2d_dec_i_mb_params()
76 else if(ps_dec->u2_first_mb && ps_dec->u2_mb_x) in impeg2d_dec_i_mb_params()
91 ps_dec->u2_mb_x = i4_mb_add_inc - 1; in impeg2d_dec_i_mb_params()
92 ps_dec->u2_mb_x = MIN(ps_dec->u2_mb_x, (ps_dec->u2_num_horiz_mb - 1)); in impeg2d_dec_i_mb_params()
107 if(ps_dec->u2_read_dct_type) in impeg2d_dec_i_mb_params()
110 ps_dec->u2_field_dct = BIT(u2_next_bits,6); in impeg2d_dec_i_mb_params()
119 if(ps_dec->u2_read_dct_type) in impeg2d_dec_i_mb_params()
122 ps_dec->u2_field_dct = BIT(u2_next_bits,5); in impeg2d_dec_i_mb_params()
135 ps_dec->u1_quant_scale = (ps_dec->u2_q_scale_type) ? in impeg2d_dec_i_mb_params()
144 if(ps_dec->u2_concealment_motion_vectors) in impeg2d_dec_i_mb_params()
146 if(ps_dec->u2_picture_structure != FRAME_PICTURE) in impeg2d_dec_i_mb_params()
148 impeg2d_dec_mv(ps_stream,ps_dec->ai2_pred_mv[FORW][FIRST],ps_dec->ai2_mv[FORW][FIRST], in impeg2d_dec_i_mb_params()
149 ps_dec->au2_f_code[FORW],0,0); in impeg2d_dec_i_mb_params()
158 ps_dec->u2_first_mb = 0; in impeg2d_dec_i_mb_params()
171 IMPEG2D_ERROR_CODES_T impeg2d_dec_i_slice(dec_state_t *ps_dec) in impeg2d_dec_i_slice() argument
175 yuv_buf_t *ps_cur_frm_buf = &ps_dec->s_cur_frm_buf; in impeg2d_dec_i_slice()
177 UWORD32 u4_frame_width = ps_dec->u2_frame_width; in impeg2d_dec_i_slice()
183 pi2_vld_out = ps_dec->ai2_vld_buf; in impeg2d_dec_i_slice()
186 if(ps_dec->u2_picture_structure != FRAME_PICTURE) in impeg2d_dec_i_slice()
189 if(ps_dec->u2_picture_structure == BOTTOM_FIELD) in impeg2d_dec_i_slice()
191 u4_frm_offset = ps_dec->u2_frame_width; in impeg2d_dec_i_slice()
203 IMPEG2D_TRACE_MB_START(ps_dec->u2_mb_x, ps_dec->u2_mb_y); in impeg2d_dec_i_slice()
205 impeg2d_dec_i_mb_params(ps_dec); in impeg2d_dec_i_slice()
207 u4_x_dst_offset = u4_frm_offset + (ps_dec->u2_mb_x << 4); in impeg2d_dec_i_slice()
208 u4_y_dst_offset = (ps_dec->u2_mb_y << 4) * u4_frame_width; in impeg2d_dec_i_slice()
214 e_error = ps_dec->pf_vld_inv_quant(ps_dec, pi2_vld_out, in impeg2d_dec_i_slice()
215 ps_dec->pu1_inv_scan_matrix, 1, Y_LUMA, 0); in impeg2d_dec_i_slice()
223 if(ps_dec->u2_field_dct == 0) in impeg2d_dec_i_slice()
229 … IMPEG2D_IDCT_INP_STATISTICS(pi2_vld_out, ps_dec->u4_non_zero_cols, ps_dec->u4_non_zero_rows); in impeg2d_dec_i_slice()
235 if(1 == (ps_dec->u4_non_zero_cols | ps_dec->u4_non_zero_rows)) in impeg2d_dec_i_slice()
238 ps_dec->pf_idct_recon[i4_idx * 2 + ps_dec->i4_last_value_one](pi2_vld_out, in impeg2d_dec_i_slice()
239 ps_dec->ai2_idct_stg1, in impeg2d_dec_i_slice()
244 u4_frame_width << ps_dec->u2_field_dct, in impeg2d_dec_i_slice()
245 … ~ps_dec->u4_non_zero_cols, ~ps_dec->u4_non_zero_rows); in impeg2d_dec_i_slice()
258 e_error = ps_dec->pf_vld_inv_quant(ps_dec, pi2_vld_out, in impeg2d_dec_i_slice()
259 ps_dec->pu1_inv_scan_matrix, 1, U_CHROMA, 0); in impeg2d_dec_i_slice()
266 … IMPEG2D_IDCT_INP_STATISTICS(pi2_vld_out, ps_dec->u4_non_zero_cols, ps_dec->u4_non_zero_rows); in impeg2d_dec_i_slice()
271 if(1 == (ps_dec->u4_non_zero_cols | ps_dec->u4_non_zero_rows)) in impeg2d_dec_i_slice()
274 ps_dec->pf_idct_recon[i4_idx * 2 + ps_dec->i4_last_value_one](pi2_vld_out, in impeg2d_dec_i_slice()
275 ps_dec->ai2_idct_stg1, in impeg2d_dec_i_slice()
281 … ~ps_dec->u4_non_zero_cols, ~ps_dec->u4_non_zero_rows); in impeg2d_dec_i_slice()
286 e_error = ps_dec->pf_vld_inv_quant(ps_dec, pi2_vld_out, in impeg2d_dec_i_slice()
287 ps_dec->pu1_inv_scan_matrix, 1, V_CHROMA, 0); in impeg2d_dec_i_slice()
294 … IMPEG2D_IDCT_INP_STATISTICS(pi2_vld_out, ps_dec->u4_non_zero_cols, ps_dec->u4_non_zero_rows); in impeg2d_dec_i_slice()
299 if(1 == (ps_dec->u4_non_zero_cols | ps_dec->u4_non_zero_rows)) in impeg2d_dec_i_slice()
301 ps_dec->pf_idct_recon[i4_idx * 2 + ps_dec->i4_last_value_one](pi2_vld_out, in impeg2d_dec_i_slice()
302 ps_dec->ai2_idct_stg1, in impeg2d_dec_i_slice()
308 … ~ps_dec->u4_non_zero_cols, ~ps_dec->u4_non_zero_rows); in impeg2d_dec_i_slice()
310 ps_dec->u2_num_mbs_left--; in impeg2d_dec_i_slice()
313 ps_dec->u2_mb_x++; in impeg2d_dec_i_slice()
315 if(ps_dec->s_bit_stream.u4_offset > ps_dec->s_bit_stream.u4_max_offset) in impeg2d_dec_i_slice()
319 else if (ps_dec->u2_mb_x == ps_dec->u2_num_horiz_mb) in impeg2d_dec_i_slice()
321 ps_dec->u2_mb_x = 0; in impeg2d_dec_i_slice()
322 ps_dec->u2_mb_y++; in impeg2d_dec_i_slice()
326 while(ps_dec->u2_num_mbs_left != 0 && impeg2d_bit_stream_nxt(&ps_dec->s_bit_stream,23) != 0x0); in impeg2d_dec_i_slice()