/external/libhevc/decoder/ |
D | ihevcd_process_slice.c | 93 process_ctxt_t *ps_proc, 109 void ihevcd_proc_map_check(process_ctxt_t *ps_proc, proc_type_t proc_type, WORD32 nctb) in ihevcd_proc_map_check() argument 111 tile_t *ps_tile = ps_proc->ps_tile; in ihevcd_proc_map_check() 112 sps_t *ps_sps = ps_proc->ps_sps; in ihevcd_proc_map_check() 113 pps_t *ps_pps = ps_proc->ps_pps; in ihevcd_proc_map_check() 114 codec_t *ps_codec = ps_proc->ps_codec; in ihevcd_proc_map_check() 120 if(ps_proc->i4_check_proc_status) in ihevcd_proc_map_check() 134 if(ps_proc->i4_ctb_y > 0) in ihevcd_proc_map_check() 136 x_pos = (ps_proc->i4_ctb_tile_x + nctb); in ihevcd_proc_map_check() 142 idx += ((ps_proc->i4_ctb_y - 1) in ihevcd_proc_map_check() [all …]
|
D | ihevcd_iquant_itrans_recon_ctb.c | 340 WORD32 ihevcd_get_intra_nbr_flag(process_ctxt_t *ps_proc, in ihevcd_get_intra_nbr_flag() argument 362 ps_sps = ps_proc->ps_sps; in ihevcd_get_intra_nbr_flag() 377 x_cur = ps_proc->i4_ctb_x * ctb_size + cur_x * MIN_TU_SIZE; in ihevcd_get_intra_nbr_flag() 378 y_cur = ps_proc->i4_ctb_y * ctb_size + cur_y * MIN_TU_SIZE; in ihevcd_get_intra_nbr_flag() 380 pu1_pic_intra_flag = ps_proc->pu1_pic_intra_flag; in ihevcd_get_intra_nbr_flag() 495 - (ps_proc->i4_ctb_x << ps_sps->i1_log2_ctb_size) in ihevcd_get_intra_nbr_flag() 503 - (ps_proc->i4_ctb_y << ps_sps->i1_log2_ctb_size) in ihevcd_get_intra_nbr_flag() 530 WORD32 ihevcd_iquant_itrans_recon_ctb(process_ctxt_t *ps_proc) in ihevcd_iquant_itrans_recon_ctb() argument 579 ps_sps = ps_proc->ps_sps; in ihevcd_iquant_itrans_recon_ctb() 580 ps_pps = ps_proc->ps_pps; in ihevcd_iquant_itrans_recon_ctb() [all …]
|
D | ihevcd_decode.c | 87 process_ctxt_t *ps_proc, 514 process_ctxt_t *ps_proc = &ps_codec->as_process[prev_proc_idx]; in ihevcd_decode() local 515 if(0 == ps_proc->i4_init_done) in ihevcd_decode() 517 ihevcd_init_proc_ctxt(ps_proc, 0); in ihevcd_decode() 771 process_ctxt_t *ps_proc; in ihevcd_decode() local 774 ps_proc = &ps_codec->as_process[ps_codec->i4_num_cores - 1]; in ihevcd_decode() 781 (ps_codec->i4_disp_buf_id == ps_proc->i4_cur_pic_buf_id)) in ihevcd_decode() 806 process_ctxt_t *ps_proc; in ihevcd_decode() local 809 ps_proc = &ps_codec->as_process[ps_codec->i4_num_cores - 1]; in ihevcd_decode() 811 ret = ihevcd_jobq_dequeue((jobq_t *)ps_proc->pv_proc_jobq, &s_job, in ihevcd_decode() [all …]
|
D | ihevcd_inter_pred.c | 113 void ihevcd_inter_pred_ctb(process_ctxt_t *ps_proc) in ihevcd_inter_pred_ctb() argument 168 ps_codec = ps_proc->ps_codec; in ihevcd_inter_pred_ctb() 169 ps_slice_hdr = ps_proc->ps_slice_hdr; in ihevcd_inter_pred_ctb() 170 ps_pps = ps_proc->ps_pps; in ihevcd_inter_pred_ctb() 171 ps_sps = ps_proc->ps_sps; in ihevcd_inter_pred_ctb() 172 cur_ctb_idx = ps_proc->i4_ctb_x in ihevcd_inter_pred_ctb() 173 + ps_proc->i4_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_inter_pred_ctb() 178 next_ctb_idx = ps_proc->i4_next_pu_ctb_cnt; in ihevcd_inter_pred_ctb() 179 i4_pu_cnt = ps_proc->pu4_pic_pu_idx[next_ctb_idx] - ps_proc->pu4_pic_pu_idx[cur_ctb_idx]; in ihevcd_inter_pred_ctb() 181 ps_pu = ps_proc->ps_pu; in ihevcd_inter_pred_ctb() [all …]
|
D | ihevcd_process_slice.h | 40 IHEVCD_ERROR_T ihevcd_process(process_ctxt_t *ps_proc); 41 void ihevcd_init_proc_ctxt(process_ctxt_t *ps_proc, WORD32 tu_coeff_data_ofst); 42 void ihevcd_process_thread(process_ctxt_t *ps_proc);
|
D | ihevcd_debug.h | 119 #define DEBUG_VALIDATE_PADDED_REGION(ps_proc) ihevcd_debug_validate_padded_region(ps_proc); argument 123 #define DEBUG_VALIDATE_PADDED_REGION(ps_proc) argument
|
/external/libavc/encoder/ |
D | ih264e_process.c | 219 IH264E_ERROR_T ih264e_init_entropy_ctxt(process_ctxt_t *ps_proc) in ih264e_init_entropy_ctxt() argument 222 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_init_entropy_ctxt() 225 entropy_ctxt_t *ps_entropy = &ps_proc->s_entropy; in ih264e_init_entropy_ctxt() 234 ps_entropy->i4_cur_slice_idx = ps_proc->pu1_slice_idx[ps_entropy->i4_mb_start_add]; in ih264e_init_entropy_ctxt() 279 IH264E_ERROR_T ih264e_entropy(process_ctxt_t *ps_proc) in ih264e_entropy() argument 282 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_entropy() 285 entropy_ctxt_t *ps_entropy = &ps_proc->s_entropy; in ih264e_entropy() 300 WORD32 i4_slice_type = ps_proc->i4_slice_type; in ih264e_entropy() 318 WORD32 ctxt_sel = ps_proc->i4_encode_api_call_cnt % MAX_CTXT_SETS; in ih264e_entropy() 344 pu1_proc_map = ps_proc->pu1_proc_map + ps_entropy->i4_mb_y * i4_wd_mbs; in ih264e_entropy() [all …]
|
D | ih264e_me.c | 213 static void ih264e_get_search_candidates(process_ctxt_t *ps_proc, in ih264e_get_search_candidates() argument 218 WORD32 i4_mb_x = ps_proc->i4_mb_x; in ih264e_get_search_candidates() 233 block_neighbors_t *ps_ngbr_avbl = ps_proc->ps_ngbr_avbl; in ih264e_get_search_candidates() 247 ps_left_mv = &ps_proc->s_left_mb_pu_ME.s_me_info[i4_reflist].s_mv; in ih264e_get_search_candidates() 248 ps_top_mv = &(ps_proc->ps_top_row_pu_ME + i4_mb_x)->s_me_info[i4_reflist].s_mv; in ih264e_get_search_candidates() 249 ps_top_left_mv = &ps_proc->s_top_left_mb_pu_ME.s_me_info[i4_reflist].s_mv; in ih264e_get_search_candidates() 250 ps_top_right_mv = &(ps_proc->ps_top_row_pu_ME + i4_mb_x + 1)->s_me_info[i4_reflist].s_mv; in ih264e_get_search_candidates() 252 i4_left_mode = ps_proc->s_left_mb_pu_ME.b2_pred_mode != i4_cmpl_predmode; in ih264e_get_search_candidates() 253 i4_top_mode = (ps_proc->ps_top_row_pu_ME + i4_mb_x)->b2_pred_mode != i4_cmpl_predmode; in ih264e_get_search_candidates() 254 i4_top_left_mode = ps_proc->s_top_left_mb_pu_ME.b2_pred_mode != i4_cmpl_predmode; in ih264e_get_search_candidates() [all …]
|
D | ih264e_intra_modes_eval.c | 116 void ih264e_derive_nghbr_avbl_of_mbs(process_ctxt_t *ps_proc) in ih264e_derive_nghbr_avbl_of_mbs() argument 118 UWORD8 *pu1_slice_idx_curr = ps_proc->pu1_slice_idx; in ih264e_derive_nghbr_avbl_of_mbs() 127 i4_mb_x = ps_proc->i4_mb_x; in ih264e_derive_nghbr_avbl_of_mbs() 128 i4_mb_y = ps_proc->i4_mb_y; in ih264e_derive_nghbr_avbl_of_mbs() 130 i4_wd_mbs = ps_proc->i4_wd_mbs; in ih264e_derive_nghbr_avbl_of_mbs() 137 ps_ngbr_avbl = ps_proc->ps_ngbr_avbl; in ih264e_derive_nghbr_avbl_of_mbs() 326 void ih264e_evaluate_intra16x16_modes_for_least_cost_rdoptoff(process_ctxt_t *ps_proc) in ih264e_evaluate_intra16x16_modes_for_least_cost_rdoptoff() argument 329 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_evaluate_intra16x16_modes_for_least_cost_rdoptoff() 335 UWORD32 u4_lambda = ps_proc->u4_lambda; in ih264e_evaluate_intra16x16_modes_for_least_cost_rdoptoff() 344 UWORD8 *pu1_ngbr_pels_i16 = ps_proc->au1_ngbr_pels; in ih264e_evaluate_intra16x16_modes_for_least_cost_rdoptoff() [all …]
|
D | ih264e_utils.c | 986 void ih264e_init_quant_params(process_ctxt_t *ps_proc, int qp) in ih264e_init_quant_params() argument 1026 ps_qp_params = ps_proc->ps_qp_params[plane]; in ih264e_init_quant_params() 1057 if (ps_proc->i4_slice_type != ISLICE in ih264e_init_quant_params() 1058 && ps_proc->i4_slice_type != SISLICE) in ih264e_init_quant_params() 1064 if (ps_proc->ps_codec->s_cfg.u4_enable_satqd) in ih264e_init_quant_params() 1800 process_ctxt_t *ps_proc = NULL; in ih264e_pic_init() local 1807 ps_proc = &ps_codec->as_process[i]; in ih264e_pic_init() 1812 ps_proc->pu1_src_buf_luma_base = ps_codec->pu1_y_csc_buf_base; in ih264e_pic_init() 1816 ps_proc->pu1_src_buf_luma_base = in ih264e_pic_init() 1824 ps_proc->pu1_src_buf_chroma_base = in ih264e_pic_init() [all …]
|
D | ih264e_mc.c | 109 void ih264e_motion_comp_luma(process_ctxt_t *ps_proc, UWORD8 **pu1_pseudo_pred, in ih264e_motion_comp_luma() argument 113 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_motion_comp_luma() 116 me_ctxt_t *ps_me_ctxt = &ps_proc->s_me_ctxt; in ih264e_motion_comp_luma() 131 WORD32 i4_pred_strd = ps_proc->i4_pred_strd; in ih264e_motion_comp_luma() 158 i4_ref_strd[0] = ps_proc->i4_rec_strd; in ih264e_motion_comp_luma() 163 for (u4_num_prtn = 0; u4_num_prtn < ps_proc->u4_num_sub_partitions; in ih264e_motion_comp_luma() 169 ps_curr_pu = ps_proc->ps_pu + u4_num_prtn; in ih264e_motion_comp_luma() 178 pu1_ref[0] = ps_proc->apu1_ref_buf_luma[0]; in ih264e_motion_comp_luma() 183 pu1_ref[0] = ps_proc->apu1_ref_buf_luma[1]; in ih264e_motion_comp_luma() 195 pu1_ref[0] = ps_proc->apu1_ref_buf_luma[0]; in ih264e_motion_comp_luma() [all …]
|
D | ih264e_core_coding.c | 1483 UWORD8 ih264e_code_luma_intra_macroblock_16x16(process_ctxt_t *ps_proc) in ih264e_code_luma_intra_macroblock_16x16() argument 1486 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_code_luma_intra_macroblock_16x16() 1489 UWORD8 *pu1_ref_mb = ps_proc->pu1_rec_buf_luma; in ih264e_code_luma_intra_macroblock_16x16() 1492 UWORD8 *pu1_curr_mb = ps_proc->pu1_src_buf_luma; in ih264e_code_luma_intra_macroblock_16x16() 1498 WORD16 *pi2_res_mb = ps_proc->pi2_res_buf; in ih264e_code_luma_intra_macroblock_16x16() 1501 WORD32 i4_src_strd = ps_proc->i4_src_strd; in ih264e_code_luma_intra_macroblock_16x16() 1502 WORD32 i4_rec_strd = ps_proc->i4_rec_strd; in ih264e_code_luma_intra_macroblock_16x16() 1503 WORD32 i4_pred_strd = ps_proc->i4_pred_strd; in ih264e_code_luma_intra_macroblock_16x16() 1504 WORD32 i4_res_strd = ps_proc->i4_res_strd; in ih264e_code_luma_intra_macroblock_16x16() 1507 UWORD8 u1_intra_mode = ps_proc->u1_l_i16_mode; in ih264e_code_luma_intra_macroblock_16x16() [all …]
|
D | ih264e_deblk.c | 353 static UWORD32 ih264e_calculate_csbp(process_ctxt_t *ps_proc) in ih264e_calculate_csbp() argument 356 UWORD8 *pu1_curr_nnz = (UWORD8 *)ps_proc->au4_nnz; in ih264e_calculate_csbp() 393 void ih264e_compute_bs(process_ctxt_t * ps_proc) in ih264e_compute_bs() argument 396 bs_ctxt_t *ps_bs = &(ps_proc->s_deblk_ctxt.s_bs_ctxt); in ih264e_compute_bs() 411 WORD32 i4_wd_mbs = ps_proc->i4_wd_mbs; in ih264e_compute_bs() 422 i4_intra = ps_proc->u4_is_intra; in ih264e_compute_bs() 436 mb_info_t *ps_left_mb_syntax_ele = &ps_proc->s_left_mb_syntax_ele; in ih264e_compute_bs() 439 mb_info_t *ps_top_mb_syntax_ele = ps_proc->ps_top_row_mb_syntax_ele + i4_mb_x; in ih264e_compute_bs() 442 enc_pu_t *ps_top_row_pu = ps_proc->ps_top_row_pu + i4_mb_x; in ih264e_compute_bs() 445 ps_proc->u4_csbp = ih264e_calculate_csbp(ps_proc); in ih264e_compute_bs() [all …]
|
D | ih264e_process.h | 87 IH264E_ERROR_T ih264e_init_entropy_ctxt(process_ctxt_t *ps_proc); 112 IH264E_ERROR_T ih264e_entropy(process_ctxt_t *ps_proc); 135 process_ctxt_t *ps_proc 167 process_ctxt_t *ps_proc 191 IH264E_ERROR_T ih264e_init_proc_ctxt(process_ctxt_t *ps_proc); 226 process_ctxt_t *ps_proc, 252 process_ctxt_t *ps_proc, 281 WORD32 ih264e_process(process_ctxt_t *ps_proc);
|
D | ih264e_encode_header.c | 1385 WORD32 ih264e_populate_slice_header(process_ctxt_t *ps_proc, in ih264e_populate_slice_header() argument 1391 entropy_ctxt_t *ps_entropy = &ps_proc->s_entropy; in ih264e_populate_slice_header() 1393 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_populate_slice_header() 1395 if (ps_proc->ps_codec->u4_is_curr_frm_ref) in ih264e_populate_slice_header() 1408 ps_slice_hdr->u1_slice_type = ps_proc->i4_slice_type; in ih264e_populate_slice_header() 1417 ps_slice_hdr->i4_frame_num = ps_proc->i4_frame_num; in ih264e_populate_slice_header() 1431 if (ps_proc->u4_is_idr) in ih264e_populate_slice_header() 1433 ps_slice_hdr->u2_idr_pic_id = ps_proc->u4_idr_pic_id; in ih264e_populate_slice_header() 1466 if (ps_proc->i4_slice_type == BSLICE) in ih264e_populate_slice_header() 1471 …if (ps_proc->i4_slice_type == PSLICE || ps_proc->i4_slice_type == SPSLICE || ps_proc->i4_slice_typ… in ih264e_populate_slice_header() [all …]
|
D | ih264e_core_coding.h | 510 process_ctxt_t *ps_proc 539 process_ctxt_t *ps_proc 568 process_ctxt_t *ps_proc 598 process_ctxt_t *ps_proc 624 process_ctxt_t *ps_proc 650 process_ctxt_t *ps_proc
|
D | ih264e_me.h | 310 void ih264e_init_me(process_ctxt_t *ps_proc); 330 void ih264e_compute_me_nmb(process_ctxt_t *ps_proc, UWORD32 u4_nmb_count); 350 void ih264e_mv_pred(process_ctxt_t *ps_proc, WORD32 i4_reflist); 370 void ih264e_mv_pred_me(process_ctxt_t *ps_proc, WORD32 i4_ref_list);
|
D | ih264e_debug.h | 48 #define DEBUG_DUMP_COST_SAD_PU(ps_proc) ih264e_debug_dump_cost_sad_pu(ps_proc); argument 59 #define DEBUG_DUMP_COST_SAD_PU(ps_proc) (void); argument
|
D | ih264e_rate_control.c | 405 process_ctxt_t *ps_proc = pv_proc; in ih264e_update_rc_mb_info() local 408 WORD32 mb_type = !ps_proc->u4_is_intra; in ih264e_update_rc_mb_info() 411 ps_frame_info->tot_mb_sad[mb_type] += ps_proc->i4_mb_distortion; in ih264e_update_rc_mb_info() 414 ps_frame_info->qp_sum[mb_type] += gau1_h264_to_mpeg2_qmap[ps_proc->u4_mb_qp]; in ih264e_update_rc_mb_info() 420 if (ps_proc->u4_is_intra) in ih264e_update_rc_mb_info() 422 ps_frame_info->intra_mb_cost_sum += ps_proc->i4_mb_cost; in ih264e_update_rc_mb_info()
|
D | ih264e_mc.h | 75 void ih264e_motion_comp_luma(process_ctxt_t *ps_proc, 100 process_ctxt_t *ps_proc
|
D | ih264e_deblk.h | 75 void ih264e_compute_bs(process_ctxt_t * ps_proc); 97 void ih264e_deblock_mb(process_ctxt_t *ps_proc, deblk_ctxt_t * ps_deblk);
|
D | ih264e_function_selector_generic.c | 117 process_ctxt_t *ps_proc = NULL; in ih264e_init_function_ptr_generic() local 233 ps_proc = &ps_codec->as_process[i]; in ih264e_init_function_ptr_generic() 235 ps_me_ctxt = &ps_proc->s_me_ctxt; in ih264e_init_function_ptr_generic()
|
/external/libavc/encoder/x86/ |
D | ih264e_function_selector_sse42.c | 108 process_ctxt_t *ps_proc = NULL; in ih264e_init_function_ptr_sse42() local 130 ps_proc = &ps_codec->as_process[i]; in ih264e_init_function_ptr_sse42() 132 ps_me_ctxt = &ps_proc->s_me_ctxt; in ih264e_init_function_ptr_sse42()
|
/external/libavc/encoder/arm/ |
D | ih264e_function_selector_av8.c | 115 process_ctxt_t *ps_proc = NULL; in ih264e_init_function_ptr_neon_av8() local 231 ps_proc = &ps_codec->as_process[i]; in ih264e_init_function_ptr_neon_av8() 232 ps_me_ctxt = &ps_proc->s_me_ctxt; in ih264e_init_function_ptr_neon_av8()
|
D | ih264e_function_selector_a9q.c | 108 process_ctxt_t *ps_proc = NULL; in ih264e_init_function_ptr_neon_a9q() local 221 ps_proc = &ps_codec->as_process[i]; in ih264e_init_function_ptr_neon_a9q() 222 ps_me_ctxt = &ps_proc->s_me_ctxt; in ih264e_init_function_ptr_neon_a9q()
|