/external/libmpeg2/decoder/ |
D | impeg2d_pic_proc.c | 48 void impeg2d_format_convert(dec_state_t *ps_dec, in impeg2d_format_convert() argument 61 pu1_src_y = ps_src_pic->pu1_y + (u4_start_row * ps_dec->u2_frame_width); in impeg2d_format_convert() 62 pu1_src_u = ps_src_pic->pu1_u + ((u4_start_row >> 1) * (ps_dec->u2_frame_width >> 1)); in impeg2d_format_convert() 63 pu1_src_v = ps_src_pic->pu1_v + ((u4_start_row >> 1) *(ps_dec->u2_frame_width >> 1)); in impeg2d_format_convert() 65 pu1_dst_y = (UWORD8 *)ps_disp_frm_buf->pv_y_buf + (u4_start_row * ps_dec->u4_frm_buf_stride); in impeg2d_format_convert() 66 …pu1_dst_u = (UWORD8 *)ps_disp_frm_buf->pv_u_buf +((u4_start_row >> 1)*(ps_dec->u4_frm_buf_stride… in impeg2d_format_convert() 67 …pu1_dst_v = (UWORD8 *)ps_disp_frm_buf->pv_v_buf +((u4_start_row >> 1)*(ps_dec->u4_frm_buf_stride… in impeg2d_format_convert() 69 if (IV_YUV_420P == ps_dec->i4_chromaFormat) in impeg2d_format_convert() 71 ps_dec->pf_copy_yuv420p_buf(pu1_src_y, pu1_src_u, pu1_src_v, pu1_dst_y, in impeg2d_format_convert() 73 ps_dec->u2_frame_width, in impeg2d_format_convert() [all …]
|
D | impeg2d_pnb_pic.c | 63 void impeg2d_dec_p_mb_params(dec_state_t *ps_dec) in impeg2d_dec_p_mb_params() argument 65 stream_t *ps_stream = &ps_dec->s_bit_stream; in impeg2d_dec_p_mb_params() 80 if(0 == ps_dec->u2_first_mb) in impeg2d_dec_p_mb_params() 104 … if(ps_dec->u2_is_mpeg2 && ((ps_dec->u2_mb_x + u2_mb_addr_incr) > ps_dec->u2_num_horiz_mb) ) in impeg2d_dec_p_mb_params() 106 u2_mb_addr_incr = ps_dec->u2_num_horiz_mb - ps_dec->u2_mb_x; in impeg2d_dec_p_mb_params() 109 impeg2d_dec_skip_mbs(ps_dec, (UWORD16)(u2_mb_addr_incr - 1)); in impeg2d_dec_p_mb_params() 118 u2_mb_type = ps_dec->pu2_mb_type[BITS((UWORD16)u4_next_word,15,10)]; in impeg2d_dec_p_mb_params() 127 if((u2_mb_type & MB_FORW_OR_BACK) && ps_dec->u2_read_motion_type) in impeg2d_dec_p_mb_params() 130 ps_dec->u2_motion_type = BITS((UWORD16)u4_next_word,15,14); in impeg2d_dec_p_mb_params() 133 i4_motion_type = ps_dec->u2_motion_type; in impeg2d_dec_p_mb_params() [all …]
|
D | impeg2d_dec_hdr.c | 56 void impeg2d_next_start_code(dec_state_t *ps_dec) in impeg2d_next_start_code() argument 59 ps_stream = &ps_dec->s_bit_stream; in impeg2d_next_start_code() 63 && (ps_dec->s_bit_stream.u4_offset < ps_dec->s_bit_stream.u4_max_offset)) in impeg2d_next_start_code() 79 void impeg2d_next_code(dec_state_t *ps_dec, UWORD32 u4_start_code_val) in impeg2d_next_code() argument 82 ps_stream = &ps_dec->s_bit_stream; in impeg2d_next_code() 86 && (ps_dec->s_bit_stream.u4_offset <= ps_dec->s_bit_stream.u4_max_offset)) in impeg2d_next_code() 107 void impeg2d_peek_next_start_code(dec_state_t *ps_dec) in impeg2d_peek_next_start_code() argument 110 ps_stream = &ps_dec->s_bit_stream; in impeg2d_peek_next_start_code() 114 && (ps_dec->s_bit_stream.u4_offset <= ps_dec->s_bit_stream.u4_max_offset)) in impeg2d_peek_next_start_code() 131 IMPEG2D_ERROR_CODES_T impeg2d_dec_seq_hdr(dec_state_t *ps_dec) in impeg2d_dec_seq_hdr() argument [all …]
|
D | impeg2d_i_pic.c | 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() [all …]
|
D | impeg2d_mc.c | 108 void impeg2d_motion_comp(dec_state_t *ps_dec, mb_mc_params_t *ps_params,yuv_buf_t *ps_buf) in impeg2d_motion_comp() argument 114 …ps_dec->pf_mc[ps_params->s_luma.u4_mode]((void *)ps_dec, ps_params->s_ref.pu1_y + ps_params->s_lum… in impeg2d_motion_comp() 121 …ps_dec->pf_mc[ps_params->s_chroma.u4_mode]((void *)ps_dec, ps_params->s_ref.pu1_u + ps_params->s_c… in impeg2d_motion_comp() 129 …ps_dec->pf_mc[ps_params->s_chroma.u4_mode]((void *)ps_dec, ps_params->s_ref.pu1_v + ps_params->s_c… in impeg2d_motion_comp() 165 void impeg2d_motion_comp_recon_buf(dec_state_t *ps_dec, in impeg2d_motion_comp_recon_buf() argument 173 …ps_dec->pf_mc[ps_params->s_luma.u4_mode](ps_dec, ps_params->s_ref.pu1_y + ps_params->s_luma.u4_src… in impeg2d_motion_comp_recon_buf() 182 …ps_dec->pf_mc[ps_params->s_chroma.u4_mode](ps_dec, ps_params->s_ref.pu1_u + ps_params->s_chroma.u4… in impeg2d_motion_comp_recon_buf() 190 …ps_dec->pf_mc[ps_params->s_chroma.u4_mode](ps_dec, ps_params->s_ref.pu1_v + ps_params->s_chroma.u4… in impeg2d_motion_comp_recon_buf() 226 void impeg2d_mc_1mv(dec_state_t *ps_dec) in impeg2d_mc_1mv() argument 229 …impeg2d_motion_comp_recon_buf(ps_dec, &ps_dec->as_mb_mc_params[ps_dec->e_mb_pred][FIRST], &ps_dec-… in impeg2d_mc_1mv() [all …]
|
D | impeg2d_mv_dec.c | 205 void impeg2d_dec_1mv_mb(dec_state_t *ps_dec) in impeg2d_dec_1mv_mb() argument 214 ps_stream = &ps_dec->s_bit_stream; in impeg2d_dec_1mv_mb() 215 e_ref_pic = ps_dec->e_mb_pred; in impeg2d_dec_1mv_mb() 219 pi2_mv = (WORD16 *)&ps_dec->ai2_mv[FORW][FIRST]; in impeg2d_dec_1mv_mb() 220 e_fld = impeg2d_dec_mv(ps_stream,ps_dec->ai2_pred_mv[e_ref_pic][FIRST],pi2_mv, in impeg2d_dec_1mv_mb() 221 ps_dec->au2_f_code[e_ref_pic],0, ps_dec->u2_fld_pic); in impeg2d_dec_1mv_mb() 223 ps_dec->ai2_pred_mv[e_ref_pic][SECOND][MV_X] = ps_dec->ai2_pred_mv[e_ref_pic][FIRST][MV_X]; in impeg2d_dec_1mv_mb() 224 ps_dec->ai2_pred_mv[e_ref_pic][SECOND][MV_Y] = ps_dec->ai2_pred_mv[e_ref_pic][FIRST][MV_Y]; in impeg2d_dec_1mv_mb() 228 ps_mc = &ps_dec->as_mb_mc_params[e_ref_pic][FIRST]; in impeg2d_dec_1mv_mb() 229 ps_mc->s_ref = ps_dec->as_ref_buf[e_ref_pic][e_fld]; in impeg2d_dec_1mv_mb() [all …]
|
D | impeg2d_function_selector_generic.c | 76 dec_state_t *ps_dec = (dec_state_t *)pv_codec; in impeg2d_init_function_ptr_generic() local 78 ps_dec->pf_idct_recon[0] = &impeg2_idct_recon_dc; in impeg2d_init_function_ptr_generic() 79 ps_dec->pf_idct_recon[1] = &impeg2_idct_recon_dc_mismatch; in impeg2d_init_function_ptr_generic() 80 ps_dec->pf_idct_recon[2] = &impeg2_idct_recon; in impeg2d_init_function_ptr_generic() 81 ps_dec->pf_idct_recon[3] = &impeg2_idct_recon; in impeg2d_init_function_ptr_generic() 83 ps_dec->pf_mc[0] = &impeg2d_mc_fullx_fully; in impeg2d_init_function_ptr_generic() 84 ps_dec->pf_mc[1] = &impeg2d_mc_fullx_halfy; in impeg2d_init_function_ptr_generic() 85 ps_dec->pf_mc[2] = &impeg2d_mc_halfx_fully; in impeg2d_init_function_ptr_generic() 86 ps_dec->pf_mc[3] = &impeg2d_mc_halfx_halfy; in impeg2d_init_function_ptr_generic() 88 ps_dec->pf_interpolate = &impeg2_interpolate; in impeg2d_init_function_ptr_generic() [all …]
|
D | impeg2d_decoder.c | 73 void impeg2d_next_start_code(dec_state_t *ps_dec); 74 void impeg2d_next_code(dec_state_t *ps_dec, UWORD32 u4_start_code_val); 100 dec_state_t *ps_dec; in impeg2d_dec_hdr() local 102 ps_dec = (dec_state_t *)pv_dec; in impeg2d_dec_hdr() 105 impeg2d_bit_stream_init(&(ps_dec->s_bit_stream),ps_ip->s_ivd_video_decode_ip_t.pv_stream_buffer, in impeg2d_dec_hdr() 111 e_error = impeg2d_process_video_header(ps_dec); in impeg2d_dec_hdr() 116 u4_bits_read = impeg2d_bit_stream_num_bits_read(&ps_dec->s_bit_stream); in impeg2d_dec_hdr() 127 impeg2d_next_code(ps_dec, SEQUENCE_HEADER_CODE); in impeg2d_dec_hdr() 131 ps_op->s_ivd_video_decode_op_t.u4_pic_ht = ps_dec->u2_vertical_size; in impeg2d_dec_hdr() 132 ps_op->s_ivd_video_decode_op_t.u4_pic_wd = ps_dec->u2_horizontal_size; in impeg2d_dec_hdr() [all …]
|
D | impeg2d_d_pic.c | 141 IMPEG2D_ERROR_CODES_T impeg2d_dec_d_slice(dec_state_t *ps_dec) in impeg2d_dec_d_slice() argument 144 yuv_buf_t *ps_cur_frm_buf = &ps_dec->s_cur_frm_buf; in impeg2d_dec_d_slice() 146 stream_t *ps_stream = &ps_dec->s_bit_stream; in impeg2d_dec_d_slice() 150 UWORD32 u4_frame_width = ps_dec->u2_frame_width; in impeg2d_dec_d_slice() 152 if(ps_dec->u2_picture_structure != FRAME_PICTURE) in impeg2d_dec_d_slice() 155 if(ps_dec->u2_picture_structure == BOTTOM_FIELD) in impeg2d_dec_d_slice() 157 u4_frm_offset = ps_dec->u2_frame_width; in impeg2d_dec_d_slice() 168 UWORD32 u4_dst_x_offset = u4_frm_offset + (ps_dec->u2_mb_x << 4); in impeg2d_dec_d_slice() 169 UWORD32 u4_dst_y_offset = (ps_dec->u2_mb_y << 4) * u4_frame_width; in impeg2d_dec_d_slice() 198 i2_dc_val = ps_dec->u2_def_dc_pred[Y_LUMA] + i2_dc_diff; in impeg2d_dec_d_slice() [all …]
|
/external/libavc/decoder/ |
D | ih264d_parse_slice.c | 88 void ih264d_form_pred_weight_matrix(dec_struct_t *ps_dec) in ih264d_form_pred_weight_matrix() argument 98 ps_cur_slice = ps_dec->ps_cur_slice; in ih264d_form_pred_weight_matrix() 102 pu4_mat_iwt_ofst = ps_dec->pu4_wts_ofsts_mat; in ih264d_form_pred_weight_matrix() 161 WORD32 ih264d_start_of_pic(dec_struct_t *ps_dec, in ih264d_start_of_pic() argument 167 pocstruct_t *ps_prev_poc = &ps_dec->s_cur_pic_poc; in ih264d_start_of_pic() 173 (ivd_video_decode_op_t *)ps_dec->pv_dec_out; in ih264d_start_of_pic() 174 dec_slice_params_t *ps_cur_slice = ps_dec->ps_cur_slice; in ih264d_start_of_pic() 182 H264_MUTEX_LOCK(&ps_dec->process_disp_mutex); in ih264d_start_of_pic() 192 ps_prev_poc->u1_bot_field = ps_dec->ps_cur_slice->u1_bottom_field_flag; in ih264d_start_of_pic() 195 ps_dec->i1_prev_mb_qp_delta = 0; in ih264d_start_of_pic() [all …]
|
D | ih264d_thread_parse_decode.c | 54 void ih264d_deblock_mb_level(dec_struct_t *ps_dec, 58 void ih264d_copy_intra_pred_line(dec_struct_t *ps_dec, 62 void ih264d_parse_tfr_nmb(dec_struct_t * ps_dec, in ih264d_parse_tfr_nmb() argument 71 const UWORD32 u1_mbaff = ps_dec->ps_cur_slice->u1_mbaff_frame_flag; in ih264d_parse_tfr_nmb() 80 u4_n_mb_start = (ps_dec->u2_cur_mb_addr + 1) - u1_num_mbs; in ih264d_parse_tfr_nmb() 85 u4_mb_num = (ps_dec->u2_cur_mb_addr + 1) - u1_num_mbs; in ih264d_parse_tfr_nmb() 89 UPDATE_SLICE_NUM_MAP(ps_dec->pu2_slice_num_map, u4_mb_num, in ih264d_parse_tfr_nmb() 90 ps_dec->u2_cur_slice_num); in ih264d_parse_tfr_nmb() 92 UPDATE_MB_MAP_MBNUM_BYTE(ps_dec->pu1_dec_mb_map, u4_mb_num); in ih264d_parse_tfr_nmb() 112 ps_dec->s_tran_addrecon_parse.pu1_dest_y += in ih264d_parse_tfr_nmb() [all …]
|
D | ih264d_parse_pslice.c | 66 void ih264d_init_cabac_contexts(UWORD8 u1_slice_type, dec_struct_t * ps_dec); 67 void ih264d_deblock_mb_level(dec_struct_t *ps_dec, 82 WORD32 ih264d_parse_pmb_cavlc(dec_struct_t * ps_dec, in ih264d_parse_pmb_cavlc() argument 89 dec_bit_stream_t * const ps_bitstrm = ps_dec->ps_bitstrm; in ih264d_parse_pmb_cavlc() 93 parse_pmbarams_t * ps_parse_mb_data = ps_dec->ps_parse_mb_data in ih264d_parse_pmb_cavlc() 96 const UWORD8 u1_mbaff = ps_dec->ps_cur_slice->u1_mbaff_frame_flag; in ih264d_parse_pmb_cavlc() 183 (ps_dec->ps_cur_slice->u1_num_ref_idx_lx_active[0] in ih264d_parse_pmb_cavlc() 213 parse_part_params_t * ps_part = ps_dec->ps_part; in ih264d_parse_pmb_cavlc() 217 mv_pred_t * ps_mv, *ps_mv_start = ps_dec->ps_mv_cur + (u1_mb_num << 4); in ih264d_parse_pmb_cavlc() 318 ps_dec->ps_part = ps_part; in ih264d_parse_pmb_cavlc() [all …]
|
D | ih264d_thread_compute_bs.c | 61 void ih264d_copy_intra_pred_line(dec_struct_t *ps_dec, 89 void ih264d_compute_bs_non_mbaff_thread(dec_struct_t * ps_dec, in ih264d_compute_bs_non_mbaff_thread() argument 117 ps_deblk_top_mb = ps_dec->ps_deblk_top_mb + u2_mbx; in ih264d_compute_bs_non_mbaff_thread() 120 ps_cur_mb_params = ps_dec->ps_deblk_pic + u4_mb_num; in ih264d_compute_bs_non_mbaff_thread() 121 ps_cur_mv_pred = ps_dec->s_cur_pic.ps_mv + (u4_mb_num << 4); in ih264d_compute_bs_non_mbaff_thread() 124 (void **)ps_dec->ps_computebs_cur_slice->ppv_map_ref_idx_to_poc in ih264d_compute_bs_non_mbaff_thread() 134 ps_cur_mb_params->u1_left_mb_qp = ps_dec->deblk_left_mb[1].u1_mb_qp; in ih264d_compute_bs_non_mbaff_thread() 135 ps_dec->deblk_left_mb[1].u1_mb_qp = ps_cur_mb_params->u1_mb_qp; in ih264d_compute_bs_non_mbaff_thread() 154 ps_dec->ps_left_mvpred_addr[!u1_pingpong][1].u4_add; in ih264d_compute_bs_non_mbaff_thread() 170 ps_dec->deblk_left_mb[1].u1_mb_type = ps_cur_mb_params->u1_mb_type; in ih264d_compute_bs_non_mbaff_thread() [all …]
|
D | ih264d_mb_utils.c | 80 UWORD32 ih264d_get_mb_info_cavlc_nonmbaff(dec_struct_t *ps_dec, in ih264d_get_mb_info_cavlc_nonmbaff() argument 88 UWORD16 u2_frm_width_in_mb = ps_dec->u2_frm_wd_in_mbs; in ih264d_get_mb_info_cavlc_nonmbaff() 89 WORD16 i2_prev_slice_mbx = ps_dec->i2_prev_slice_mbx; in ih264d_get_mb_info_cavlc_nonmbaff() 96 mb_x = (WORD16)ps_dec->u2_mbx; in ih264d_get_mb_info_cavlc_nonmbaff() 97 mb_y = (WORD16)ps_dec->u2_mby; in ih264d_get_mb_info_cavlc_nonmbaff() 99 ps_dec->u2_cur_mb_addr = u2_cur_mb_address; in ih264d_get_mb_info_cavlc_nonmbaff() 108 if(mb_y > ps_dec->i2_prev_slice_mby) in ih264d_get_mb_info_cavlc_nonmbaff() 112 if(mb_y > (ps_dec->i2_prev_slice_mby + 1)) in ih264d_get_mb_info_cavlc_nonmbaff() 147 mb_neigbour_params_t *ps_cur_mb_row = ps_dec->ps_cur_mb_row; in ih264d_get_mb_info_cavlc_nonmbaff() 148 mb_neigbour_params_t *ps_top_mb_row = ps_dec->ps_top_mb_row; in ih264d_get_mb_info_cavlc_nonmbaff() [all …]
|
D | ih264d_utils.c | 450 WORD32 ih264d_end_of_pic_processing(dec_struct_t *ps_dec) in ih264d_end_of_pic_processing() argument 453 dec_slice_params_t *ps_cur_slice = ps_dec->ps_cur_slice; in ih264d_end_of_pic_processing() 475 if(ps_dec->ps_dpb_cmds->u1_long_term_reference_flag == 0) in ih264d_end_of_pic_processing() 477 ih264d_reset_ref_bufs(ps_dec->ps_dpb_mgr); in ih264d_end_of_pic_processing() 480 ret = ih264d_insert_st_node(ps_dec->ps_dpb_mgr, in ih264d_end_of_pic_processing() 481 ps_dec->ps_cur_pic, in ih264d_end_of_pic_processing() 482 ps_dec->u1_pic_buf_id, in ih264d_end_of_pic_processing() 493 ret = ih264d_insert_st_node(ps_dec->ps_dpb_mgr, in ih264d_end_of_pic_processing() 494 ps_dec->ps_cur_pic, in ih264d_end_of_pic_processing() 495 ps_dec->u1_pic_buf_id, in ih264d_end_of_pic_processing() [all …]
|
D | ih264d_parse_islice.c | 65 void ih264d_init_cabac_contexts(UWORD8 u1_slice_type, dec_struct_t * ps_dec); 67 void ih264d_itrans_recon_luma_dc(dec_struct_t *ps_dec, 87 WORD32 ih264d_parse_imb_cavlc(dec_struct_t * ps_dec, in ih264d_parse_imb_cavlc() argument 101 dec_bit_stream_t * const ps_bitstrm = ps_dec->ps_bitstrm; in ih264d_parse_imb_cavlc() 109 u4_temp = ps_dec->u1_mb_ngbr_availablity; in ih264d_parse_imb_cavlc() 123 if(ps_dec->s_high_profile.u1_transform8x8_present) in ih264d_parse_imb_cavlc() 136 ih264d_read_intra_pred_modes(ps_dec, in ih264d_parse_imb_cavlc() 137 ((UWORD8 *)ps_dec->pv_parse_tu_coeff_data), in ih264d_parse_imb_cavlc() 138 ((UWORD8 *)ps_dec->pv_parse_tu_coeff_data+16), in ih264d_parse_imb_cavlc() 140 pu1_temp = (UWORD8 *)ps_dec->pv_parse_tu_coeff_data; in ih264d_parse_imb_cavlc() [all …]
|
D | ih264d_api.c | 140 WORD32 ih264d_deblock_display(dec_struct_t *ps_dec); 142 void ih264d_signal_decode_thread(dec_struct_t *ps_dec); 144 void ih264d_signal_bs_deblk_thread(dec_struct_t *ps_dec); 145 void ih264d_decode_picture_thread(dec_struct_t *ps_dec); 151 void ih264d_fill_output_struct_from_context(dec_struct_t *ps_dec, 1426 dec_struct_t * ps_dec = (dec_struct_t *)ps_dec_params; in ih264d_init_decoder() local 1436 ps_cur_slice = ps_dec->ps_cur_slice; in ih264d_init_decoder() 1437 ps_dec->init_done = 0; in ih264d_init_decoder() 1439 ps_dec->u4_num_cores = 1; in ih264d_init_decoder() 1441 ps_dec->u2_pic_ht = ps_dec->u2_pic_wd = 0; in ih264d_init_decoder() [all …]
|
D | ih264d_deblocking.c | 77 void ih264d_filter_boundary_left_nonmbaff(dec_struct_t *ps_dec, in ih264d_filter_boundary_left_nonmbaff() argument 152 ps_dec->pf_deblk_luma_vert_bs4(pu1_y, i4_strd_y, alpha_y, beta_y); in ih264d_filter_boundary_left_nonmbaff() 153 ps_dec->pf_deblk_chroma_vert_bs4(pu1_u, i4_strd_uv, alpha_u, in ih264d_filter_boundary_left_nonmbaff() 164 ps_dec->pf_deblk_luma_vert_bslt4(pu1_y, i4_strd_y, alpha_y, in ih264d_filter_boundary_left_nonmbaff() 167 ps_dec->pf_deblk_chroma_vert_bslt4(pu1_u, i4_strd_uv, alpha_u, in ih264d_filter_boundary_left_nonmbaff() 186 ps_dec->pf_deblk_luma_vert_bs4_mbaff(pu1_y, i4_strd_y, alpha_y, in ih264d_filter_boundary_left_nonmbaff() 188 ps_dec->pf_deblk_chroma_vert_bs4_mbaff(pu1_u, i4_strd_uv, alpha_u, in ih264d_filter_boundary_left_nonmbaff() 201 ps_dec->pf_deblk_luma_vert_bslt4_mbaff(pu1_y, i4_strd_y, in ih264d_filter_boundary_left_nonmbaff() 205 ps_dec->pf_deblk_chroma_vert_bslt4_mbaff(pu1_u, i4_strd_uv, in ih264d_filter_boundary_left_nonmbaff() 257 ps_dec->pf_deblk_luma_vert_bs4_mbaff(pu1_y, i4_strd_y, alpha_y, in ih264d_filter_boundary_left_nonmbaff() [all …]
|
D | ih264d_parse_bslice.c | 60 void ih264d_init_cabac_contexts(UWORD8 u1_slice_type, dec_struct_t * ps_dec); 74 WORD32 ih264d_parse_bmb_non_direct_cavlc(dec_struct_t * ps_dec, in ih264d_parse_bmb_non_direct_cavlc() argument 79 dec_bit_stream_t * ps_bitstrm = ps_dec->ps_bitstrm; in ih264d_parse_bmb_non_direct_cavlc() 89 parse_pmbarams_t * ps_parse_mb_data = ps_dec->ps_parse_mb_data in ih264d_parse_bmb_non_direct_cavlc() 148 ps_dec->s_high_profile.u1_no_submb_part_size_lt8x8_flag = 0; in ih264d_parse_bmb_non_direct_cavlc() 151 else if(!ps_dec->s_high_profile.u1_direct_8x8_inference_flag) in ih264d_parse_bmb_non_direct_cavlc() 153 ps_dec->s_high_profile.u1_no_submb_part_size_lt8x8_flag = 0; in ih264d_parse_bmb_non_direct_cavlc() 182 UWORD8 u1_mbaff = ps_dec->ps_cur_slice->u1_mbaff_frame_flag; in ih264d_parse_bmb_non_direct_cavlc() 185 ps_dec->ps_cur_slice->u1_num_ref_idx_lx_active; in ih264d_parse_bmb_non_direct_cavlc() 243 mv_pred_t *ps_mv_start = ps_dec->ps_mv_cur + (u1_mb_num << 4); in ih264d_parse_bmb_non_direct_cavlc() [all …]
|
D | ih264d_process_pslice.c | 62 void ih264d_init_cabac_contexts(UWORD8 u1_slice_type, dec_struct_t * ps_dec); 70 WORD32 ih264d_mv_pred_ref_tfr_nby2_pmb(dec_struct_t * ps_dec, in ih264d_mv_pred_ref_tfr_nby2_pmb() argument 78 const UWORD32 u1_mbaff = ps_dec->ps_cur_slice->u1_mbaff_frame_flag; in ih264d_mv_pred_ref_tfr_nby2_pmb() 83 ps_dec->i4_submb_ofst -= (u1_num_mbs - u1_mb_idx) << 4; in ih264d_mv_pred_ref_tfr_nby2_pmb() 84 ps_mb_part_info = ps_dec->ps_parse_mb_data; // + u1_mb_idx; in ih264d_mv_pred_ref_tfr_nby2_pmb() 85 ps_part = ps_dec->ps_parse_part_params; // + u1_mb_idx; in ih264d_mv_pred_ref_tfr_nby2_pmb() 97 *ps_mv_pred = ps_dec->s_default_mv_pred; in ih264d_mv_pred_ref_tfr_nby2_pmb() 99 ps_dec->i4_submb_ofst += SUB_BLK_SIZE; in ih264d_mv_pred_ref_tfr_nby2_pmb() 100 ps_dec->u2_wait_id = i; in ih264d_mv_pred_ref_tfr_nby2_pmb() 103 ps_cur_mb_info = ps_dec->ps_nmb_info + i; in ih264d_mv_pred_ref_tfr_nby2_pmb() [all …]
|
D | ih264d_parse_headers.c | 84 WORD32 ih264d_parse_slice_partition(dec_struct_t * ps_dec, in ih264d_parse_slice_partition() argument 88 UNUSED(ps_dec); in ih264d_parse_slice_partition() 115 WORD32 ih264d_parse_sei(dec_struct_t * ps_dec, dec_bit_stream_t * ps_bitstrm) in ih264d_parse_sei() argument 117 UNUSED(ps_dec); in ih264d_parse_sei() 144 WORD32 ih264d_parse_filler_data(dec_struct_t * ps_dec, in ih264d_parse_filler_data() argument 147 UNUSED(ps_dec); in ih264d_parse_filler_data() 173 void ih264d_parse_end_of_stream(dec_struct_t * ps_dec) in ih264d_parse_end_of_stream() argument 175 UNUSED(ps_dec); in ih264d_parse_end_of_stream() 190 WORD32 ih264d_parse_pps(dec_struct_t * ps_dec, dec_bit_stream_t * ps_bitstrm) in ih264d_parse_pps() argument 195 UWORD32 *pu4_bitstrm_buf = ps_dec->ps_bitstrm->pu4_buffer; in ih264d_parse_pps() [all …]
|
D | ih264d_process_bslice.c | 56 void ih264d_init_cabac_contexts(UWORD8 u1_slice_type, dec_struct_t * ps_dec); 71 WORD32 ih264d_decode_spatial_direct(dec_struct_t * ps_dec, in ih264d_decode_spatial_direct() argument 78 UWORD8 u1_mbaff = ps_dec->ps_cur_slice->u1_mbaff_frame_flag; in ih264d_decode_spatial_direct() 80 mv_pred_t *ps_mv_nmb_start = ps_dec->ps_mv_cur + (u1_mb_num << 4); in ih264d_decode_spatial_direct() 107 ps_mv_ntop_start = ps_dec->ps_mv_cur + (u1_mb_num << 4) in ih264d_decode_spatial_direct() 108 - (ps_dec->u2_frm_wd_in_mbs << (4 + u1_mbaff)) + 12; in ih264d_decode_spatial_direct() 114 u1_direct_zero_pred_flag = ps_dec->pf_mvpred(ps_dec, ps_cur_mb_info, ps_mv_nmb_start, in ih264d_decode_spatial_direct() 134 UWORD8 u1_scale_ref = (ps_dec->ps_cur_slice->u1_mbaff_frame_flag in ih264d_decode_spatial_direct() 149 ps_pic_buff0 = ps_dec->ps_ref_pic_buf_lx[0][u1_ref_idx1]; in ih264d_decode_spatial_direct() 165 ps_pic_buff1 = ps_dec->ps_ref_pic_buf_lx[1][u1_ref_idx1]; in ih264d_decode_spatial_direct() [all …]
|
D | ih264d_process_intra_mb.c | 62 void ih264d_itrans_recon_luma_dc(dec_struct_t *ps_dec, in ih264d_itrans_recon_luma_dc() argument 72 ps_dec->pf_ihadamard_scaling_4x4(pi2_src, pi2_out, in ih264d_itrans_recon_luma_dc() 73 ps_dec->pu2_quant_scale_y, pu2_weigh_mat, in ih264d_itrans_recon_luma_dc() 74 ps_dec->u1_qp_y_div6, pi4_tmp); in ih264d_itrans_recon_luma_dc() 105 WORD32 ih264d_read_intra_pred_modes(dec_struct_t * ps_dec, in ih264d_read_intra_pred_modes() argument 112 dec_bit_stream_t * ps_bitstrm = ps_dec->ps_bitstrm; in ih264d_read_intra_pred_modes() 157 WORD32 ih264d_unpack_coeff4x4_4x4blk(dec_struct_t * ps_dec, in ih264d_unpack_coeff4x4_4x4blk() argument 161 tu_sblk4x4_coeff_data_t *ps_tu_4x4 = (tu_sblk4x4_coeff_data_t *)ps_dec->pv_proc_tu_coeff_data; in ih264d_unpack_coeff4x4_4x4blk() 190 ps_dec->pv_proc_tu_coeff_data = (void *)((UWORD8 *)ps_dec->pv_proc_tu_coeff_data + offset); in ih264d_unpack_coeff4x4_4x4blk() 196 UWORD32 ih264d_unpack_coeff4x4_8x8blk(dec_struct_t * ps_dec, in ih264d_unpack_coeff4x4_8x8blk() argument [all …]
|
D | ih264d_quant_scaling.c | 77 void ih264d_form_default_scaling_matrix(dec_struct_t *ps_dec) in ih264d_form_default_scaling_matrix() argument 94 ps_dec->s_high_profile.i2_scalinglist4x4[i4_i][pu1_inv_scan[i4_j]] = in ih264d_form_default_scaling_matrix() 105 … ps_dec->s_high_profile.i2_scalinglist8x8[i4_i][gau1_ih264d_inv_scan_prog8x8_cabac[i4_j]] = in ih264d_form_default_scaling_matrix() 115 dec_struct_t *ps_dec) in ih264d_form_scaling_matrix_picture() argument 132 ps_dec->s_high_profile.pi2_scale_mat[i4_i] = in ih264d_form_scaling_matrix_picture() 137 ps_dec->s_high_profile.pi2_scale_mat[i4_i] = in ih264d_form_scaling_matrix_picture() 138 ps_dec->s_high_profile.pi2_scale_mat[i4_i in ih264d_form_scaling_matrix_picture() 146 ps_dec->s_high_profile.pi2_scale_mat[i4_i] = in ih264d_form_scaling_matrix_picture() 151 ps_dec->s_high_profile.pi2_scale_mat[i4_i] = in ih264d_form_scaling_matrix_picture() 163 ps_dec->s_high_profile.pi2_scale_mat[i4_i] = in ih264d_form_scaling_matrix_picture() [all …]
|
D | ih264d_parse_cavlc.c | 315 dec_struct_t *ps_dec = (dec_struct_t *)ps_bitstrm->pv_codec_handle; in ih264d_cavlc_4x4res_block_totalcoeff_1() local 317 ps_tu_4x4 = (tu_sblk4x4_coeff_data_t *)ps_dec->pv_parse_tu_coeff_data; in ih264d_cavlc_4x4res_block_totalcoeff_1() 404 … ps_dec->pv_parse_tu_coeff_data = (void *)((UWORD8 *)ps_dec->pv_parse_tu_coeff_data + offset); in ih264d_cavlc_4x4res_block_totalcoeff_1() 450 dec_struct_t *ps_dec = (dec_struct_t *)ps_bitstrm->pv_codec_handle; in ih264d_cavlc_4x4res_block_totalcoeff_2to10() local 452 ps_tu_4x4 = (tu_sblk4x4_coeff_data_t *)ps_dec->pv_parse_tu_coeff_data; in ih264d_cavlc_4x4res_block_totalcoeff_2to10() 682 … ps_dec->pv_parse_tu_coeff_data = (void *)((UWORD8 *)ps_dec->pv_parse_tu_coeff_data + offset); in ih264d_cavlc_4x4res_block_totalcoeff_2to10() 728 dec_struct_t *ps_dec = (dec_struct_t *)ps_bitstrm->pv_codec_handle; in ih264d_cavlc_4x4res_block_totalcoeff_11to16() local 730 ps_tu_4x4 = (tu_sblk4x4_coeff_data_t *)ps_dec->pv_parse_tu_coeff_data; in ih264d_cavlc_4x4res_block_totalcoeff_11to16() 959 … ps_dec->pv_parse_tu_coeff_data = (void *)((UWORD8 *)ps_dec->pv_parse_tu_coeff_data + offset); in ih264d_cavlc_4x4res_block_totalcoeff_11to16() 1000 dec_struct_t *ps_dec = (dec_struct_t *)ps_bitstrm->pv_codec_handle; in ih264d_rest_of_residual_cav_chroma_dc_block() local [all …]
|