/external/libhevc/decoder/ |
H A D | ihevcd_ilf_padding.c | 81 sps_t *ps_sps; local 87 ps_sps = ps_deblk_ctxt->ps_sps; 90 ctb_size = (1 << ps_sps->i1_log2_ctb_size); 92 for(i4_ctb_y = 0; i4_ctb_y < ps_sps->i2_pic_ht_in_ctb; i4_ctb_y++) 94 for(i4_ctb_x = 0; i4_ctb_x < ps_sps->i2_pic_wd_in_ctb; i4_ctb_x++) 116 if(i4_ctb_x == ps_sps->i2_pic_wd_in_ctb - 1) 123 last_x_pos = (ps_sps->i2_pic_wd_in_ctb << ps_sps->i1_log2_ctb_size); 124 if(last_x_pos == ps_sps [all...] |
H A D | ihevcd_ref_list.h | 37 WORD32 ihevcd_ref_list(codec_t *ps_codec, pps_t *ps_pps, sps_t *ps_sps, slice_header_t *ps_slice_hdr);
|
H A D | ihevcd_parse_headers.c | 129 * @param[in] ps_sps 147 sps_t *ps_sps, 161 if(ps_sps->i1_chroma_format_idc != 0) 175 if(ps_sps->i1_chroma_format_idc != 0) 252 if(ps_sps->i1_chroma_format_idc != 0) 1193 sps_t *ps_sps; local 1225 ps_sps = (ps_codec->s_parse.ps_sps_base + MAX_SPS_CNT - 1); 1226 ps_sps->i1_sps_id = sps_id; 1227 ps_sps->i1_vps_id = vps_id; 1228 ps_sps 146 ihevcd_parse_pred_wt_ofst(bitstrm_t *ps_bitstrm, sps_t *ps_sps, pps_t *ps_pps, slice_header_t *ps_slice_hdr) argument 1561 sps_t *ps_sps, *ps_sps_ref; local 1618 sps_t *ps_sps; local [all...] |
H A D | ihevcd_process_slice.c | 112 sps_t *ps_sps = ps_proc->ps_sps; local 143 * ps_sps->i2_pic_wd_in_ctb); 158 idx = x_pos + (ps_proc->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb); 167 idx = x_pos + ((ps_proc->i4_ctb_y - 1) * ps_sps->i2_pic_wd_in_ctb); 209 sps_t *ps_sps = ps_proc->ps_sps; local 212 idx += ((ps_proc->i4_ctb_y) * ps_sps->i2_pic_wd_in_ctb); 250 sps_t *ps_sps = ps_proc->ps_sps; local 315 sps_t *ps_sps = ps_proc->ps_sps; local 449 sps_t *ps_sps = ps_proc->ps_sps; local 522 sps_t *ps_sps = ps_proc->ps_sps; local 1366 sps_t *ps_sps; local 1602 sps_t *ps_sps; local [all...] |
H A D | ihevcd_utils.h | 44 WORD32 ihevcd_nctb_cnt(codec_t *ps_codec, sps_t *ps_sps); 47 sps_t *ps_sps,
|
H A D | ihevcd_parse_slice_header.h | 45 sps_t *ps_sps,
|
H A D | ihevcd_utils.c | 202 sps_t *ps_sps = (ps_codec->s_parse.ps_sps_base + ps_codec->i4_sps_id); local 205 max_dpb_size = ps_sps->ai1_sps_max_dec_pic_buffering[ps_sps->i1_sps_max_sub_layers - 1]; 208 max_dpb_size += ps_sps->ai1_sps_max_num_reorder_pics[ps_sps->i1_sps_max_sub_layers - 1]; 337 WORD32 ihevcd_nctb_cnt(codec_t *ps_codec, sps_t *ps_sps) argument 343 if(ps_sps->i1_log2_ctb_size < 5) 350 sps_t *ps_sps, 388 next_tile_ctb_x = ps_sps->i2_pic_wd_in_ctb; 410 next_tile_ctb_y = ps_sps 349 ihevcd_get_tile_pos(pps_t *ps_pps, sps_t *ps_sps, WORD32 ctb_x, WORD32 ctb_y, WORD32 *pi4_ctb_tile_x, WORD32 *pi4_ctb_tile_y, WORD32 *pi4_tile_idx) argument 458 sps_t *ps_sps; local 583 sps_t *ps_sps; local 683 sps_t *ps_sps; local [all...] |
H A D | ihevcd_sao.c | 91 sps_t *ps_sps; local 116 ps_sps = ps_sao_ctxt->ps_sps; 117 log2_ctb_size = ps_sps->i1_log2_ctb_size; 123 ps_sao = ps_sao_ctxt->ps_pic_sao + ps_sao_ctxt->i4_ctb_x + ps_sao_ctxt->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb; 124 loop_filter_strd = (ps_sps->i2_pic_width_in_luma_samples + 63) / 64; 136 remaining_cols = ps_sps->i2_pic_width_in_luma_samples - (ps_sao_ctxt->i4_ctb_x << log2_ctb_size); 140 remaining_rows = ps_sps->i2_pic_height_in_luma_samples - (ps_sao_ctxt->i4_ctb_y << log2_ctb_size); 186 if(ps_sps->i2_pic_wd_in_ctb - 1 == ps_sao_ctxt->i4_ctb_x) 208 if(ps_sps 534 sps_t *ps_sps; local [all...] |
H A D | ihevcd_parse_slice.c | 123 sps_t *ps_sps; local 136 ps_sps = ps_codec->s_parse.ps_sps; 142 if((log2_trafo_size <= ps_sps->i1_log2_max_transform_block_size) && 143 (log2_trafo_size > ps_sps->i1_log2_min_transform_block_size) && 160 if((0 == ps_sps->i1_max_transform_hierarchy_depth_inter) && 168 if((log2_trafo_size > ps_sps->i1_log2_max_transform_block_size) || 239 ctb_x_base = ps_codec->s_parse.i4_ctb_x << ps_sps->i1_log2_ctb_size; 240 ctb_y_base = ps_codec->s_parse.i4_ctb_y << ps_sps->i1_log2_ctb_size; 531 sps_t *ps_sps; local 810 sps_t *ps_sps; local 952 sps_t *ps_sps; local 1157 sps_t *ps_sps; local 1677 sps_t *ps_sps; local 1952 sps_t *ps_sps; local 2175 sps_t *ps_sps; local 3122 sps_t *ps_sps = ps_codec->s_parse.ps_sps; local [all...] |
H A D | ihevcd_deblk.c | 126 sps_t *ps_sps; local 133 ps_sps = ps_deblk->ps_sps; 138 log2_ctb_size = ps_sps->i1_log2_ctb_size; 139 ctb_size = (1 << ps_sps->i1_log2_ctb_size); 143 bs_strd = (ps_sps->i2_pic_wd_in_ctb + 1) << (2 * log2_ctb_size - 7); 155 qp_strd = ps_sps->i2_pic_wd_in_ctb << (log2_ctb_size - 3); 160 ctb_indx = ps_deblk->i4_ctb_x + ps_sps->i2_pic_wd_in_ctb * ps_deblk->i4_ctb_y; 173 ctb_indx += ps_sps->i2_pic_wd_in_ctb; 200 ps_deblk->s_bs_ctxt.pu1_pic_qp_const_in_ctb[(ctb_indx - ps_sps [all...] |
H A D | ihevcd_parse_slice_header.c | 226 sps_t *ps_sps; local 272 ps_sps = ps_codec->s_parse.ps_sps_base + sps_id; 291 ps_slice_hdr_next->i2_ctb_y = ps_codec->s_parse.ps_sps->i2_pic_ht_in_ctb; 352 num_bits = 32 - CLZ(ps_sps->i4_pic_size_in_ctb - 1); 358 if(value >= ps_sps->i4_pic_size_in_ctb) 396 if(1 == ps_sps->i1_separate_colour_plane_flag) 411 BITS_PARSE("pic_order_cnt_lsb", value, ps_bitstrm, ps_sps->i1_log2_max_pic_order_cnt_lsb); 412 //value = ihevcd_extend_sign_bit(value, ps_sps->i1_log2_max_pic_order_cnt_lsb); 423 if(ps_sps->i1_num_short_term_ref_pic_sets > 1) 425 numbits = 32 - CLZ(ps_sps [all...] |
H A D | ihevcd_boundary_strength.c | 212 sps_t *ps_sps; local 235 ps_sps = ps_bs_ctxt->ps_sps; 240 log2_ctb_size = ps_sps->i1_log2_ctb_size; 245 bs_strd = (ps_sps->i2_pic_wd_in_ctb + 1) << (2 * log2_ctb_size - 7); 255 qp_strd = ps_sps->i2_pic_wd_in_ctb << (log2_ctb_size - 3); 258 ctb_indx = ps_bs_ctxt->i4_ctb_x + ps_sps->i2_pic_wd_in_ctb * ps_bs_ctxt->i4_ctb_y; 379 ctb_addr = ps_bs_ctxt->i4_ctb_x + (ps_bs_ctxt->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb); 383 ctb_addr = (ps_bs_ctxt->i4_ctb_x - 1) + (ps_bs_ctxt->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb); 401 ctb_addr = ps_bs_ctxt->i4_ctb_x + (ps_bs_ctxt->i4_ctb_y * ps_sps 460 sps_t *ps_sps; local [all...] |
H A D | ihevcd_get_mv.c | 111 sps_t *ps_sps; local 135 ps_sps = ps_mv_ctxt->ps_sps; 142 ctb_size = (1 << ps_sps->i1_log2_ctb_size); 147 pu1_pic_pu_map_ctb = ps_mv_ctxt->pu1_pic_pu_map + (ps_mv_ctxt->i4_ctb_x + ps_mv_ctxt->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb) * num_minpu_in_ctb; 169 WORD32 rows_remaining = ps_sps->i2_pic_height_in_luma_samples 170 - (ps_mv_ctxt->i4_ctb_y << ps_sps->i1_log2_ctb_size); 182 WORD32 cols_remaining = ps_sps->i2_pic_width_in_luma_samples 183 - (ps_mv_ctxt->i4_ctb_x << ps_sps->i1_log2_ctb_size); 211 index_pic_map = ((ps_mv_ctxt->i4_ctb_x - 1) + ps_mv_ctxt->i4_ctb_y * ps_sps [all...] |
H A D | ihevcd_intra_pred_mode_prediction.c | 120 sps_t *ps_sps = ps_parse->ps_sps; local 148 WORD32 numbytes_row = (ps_sps->i2_pic_width_in_luma_samples + 63) / 64; 173 WORD32 numbytes_row = (ps_sps->i2_pic_width_in_luma_samples + 63) / 64;
|
H A D | ihevcd_iquant_itrans_recon_ctb.c | 348 sps_t *ps_sps; local 362 ps_sps = ps_proc->ps_sps; 494 WORD32 cols_remaining = ps_sps->i2_pic_width_in_luma_samples 495 - (ps_proc->i4_ctb_x << ps_sps->i1_log2_ctb_size) 502 WORD32 rows_remaining = ps_sps->i2_pic_height_in_luma_samples 503 - (ps_proc->i4_ctb_y << ps_sps->i1_log2_ctb_size) 555 sps_t *ps_sps; local 576 ps_sps = ps_proc->ps_sps; [all...] |
H A D | ihevcd_fmt_conv.c | 708 sps_t *ps_sps; local 717 ps_sps = ps_proc->ps_sps; 722 if(CHROMA_FMT_IDC_YUV420 == ps_sps->i1_chroma_format_idc) 734 pu1_luma += ps_codec->i4_strd * ps_sps->i2_pic_crop_top_offset * crop_unit_y + ps_sps->i2_pic_crop_left_offset * crop_unit_x; 737 pu1_chroma += ps_codec->i4_strd * ps_sps->i2_pic_crop_top_offset + ps_sps->i2_pic_crop_left_offset * 2; 800 last_row = cur_row + MAX(num_rows, (1 << ps_sps->i1_log2_ctb_size)) + 801 ps_sps [all...] |
H A D | ihevcd_inter_pred.c | 121 sps_t *ps_sps; local 171 ps_sps = ps_proc->ps_sps; 173 + ps_proc->i4_ctb_y * (ps_sps->i2_pic_wd_in_ctb); 219 pu_x = (ps_proc->i4_ctb_x << ps_sps->i1_log2_ctb_size) + (ps_pu->b4_pos_x << 2); 220 pu_y = (ps_proc->i4_ctb_y << ps_sps->i1_log2_ctb_size) + (ps_pu->b4_pos_y << 2); 274 mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_in_luma_samples - pu_x + 7) << 2)); 278 mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_in_luma_samples - pu_y + 7) << 2)); 293 mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_in_luma_samples - pu_x + 7) << 2)); 297 mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps [all...] |
H A D | ihevcd_decode.c | 561 ps_slice_hdr_next->i2_ctb_y * ps_codec->s_parse.ps_sps->i2_pic_wd_in_ctb; 610 (ps_codec->s_parse.i4_next_ctb_indx != ps_codec->s_parse.ps_sps->i4_pic_size_in_ctb)) 623 ps_slice_hdr_next->i2_ctb_y = ps_codec->s_parse.ps_sps->i2_pic_ht_in_ctb; 698 sps_t *ps_sps = ps_codec->s_parse.ps_sps; local 718 for(i = 0; i < ps_sps->i2_pic_ht_in_ctb; i++) 765 sps_t *ps_sps = ps_codec->s_parse.ps_sps; local 766 WORD32 num_rows = 1 << ps_sps->i1_log2_ctb_size; 772 num_rows = MIN(num_rows, (ps_codec->i4_disp_ht - (s_job.i2_ctb_y << ps_sps [all...] |
H A D | ihevcd_ref_list.c | 93 WORD32 ihevcd_ref_list(codec_t *ps_codec, pps_t *ps_pps, sps_t *ps_sps, slice_header_t *ps_slice_hdr) argument 133 u4_max_poc_lsb = (1 << ps_sps->i1_log2_max_pic_order_cnt_lsb); 140 num_neg_pics = ps_sps->as_stref_picset[st_rps_idx].i1_num_neg_pics; 141 num_pos_pics = ps_sps->as_stref_picset[st_rps_idx].i1_num_pos_pics; 142 pi1_used = ps_sps->as_stref_picset[st_rps_idx].ai1_used; 143 pi2_delta_poc = ps_sps->as_stref_picset[st_rps_idx].ai2_delta_poc; 147 st_rps_idx = ps_sps->i1_num_short_term_ref_pic_sets;
|
H A D | ihevcd_structs.h | 227 sps_t *ps_sps; member in struct:__anon10093 325 sps_t *ps_sps; member in struct:__anon10094 474 sps_t *ps_sps; member in struct:__anon10095 543 sps_t *ps_sps; member in struct:__anon10096 851 sps_t *ps_sps; member in struct:__anon10098 1235 sps_t *ps_sps; member in struct:__anon10099
|
H A D | ihevcd_api.c | 1079 sps_t *ps_sps = ps_codec->ps_sps_base; local 1084 ps_sps->i1_sps_valid = 0; 1085 ps_sps++; 1367 sps_t *ps_sps = ps_codec->ps_sps_base; local 1376 ps_sps->pi2_scaling_mat = pi2_scaling_mat; 1378 ps_sps++; 1923 sps_t *ps_sps = (ps_codec->s_parse.ps_sps_base + ps_codec->i4_sps_id); local 1937 max_dpb_size = ps_sps->ai1_sps_max_dec_pic_buffering[ps_sps->i1_sps_max_sub_layers - 1]; 2408 sps_t *ps_sps local 2577 sps_t *ps_sps = (ps_codec->s_parse.ps_sps_base + ps_codec->i4_sps_id); local 3058 sps_t *ps_sps; local [all...] |
H A D | ihevcd_mv_merge.c | 147 sps_t *ps_sps = ps_mv_ctxt->ps_sps; local 167 log2_ctb_size = ps_sps->i1_log2_ctb_size; 193 && ((x_col + (ps_mv_ctxt->i4_ctb_x << log2_ctb_size)) < ps_sps->i2_pic_width_in_luma_samples) 195 < ps_sps->i2_pic_height_in_luma_samples))) 201 col_ctb_idx = col_ctb_x + (col_ctb_y)*(ps_sps->i2_pic_wd_in_ctb); 311 slice_idx = *(ps_mv_buf_col->pu1_pic_slice_map + col_ctb_x + col_ctb_y * ps_sps->i2_pic_wd_in_ctb);
|
/external/libavc/encoder/ |
H A D | ih264e_encode_header.c | 428 * @param[in] ps_sps 438 WORD32 ih264e_generate_sps(bitstrm_t *ps_bitstrm, sps_t *ps_sps, vui_t *ps_vui) argument 452 PUT_BITS(ps_bitstrm, ps_sps->u1_profile_idc, 8, return_status, "profile_idc"); 455 PUT_BITS(ps_bitstrm, ps_sps->u1_constraint_set0_flag, 1, return_status, "constrained_set0_flag"); 456 PUT_BITS(ps_bitstrm, ps_sps->u1_constraint_set1_flag, 1, return_status, "constrained_set1_flag"); 457 PUT_BITS(ps_bitstrm, ps_sps->u1_constraint_set2_flag, 1, return_status, "constrained_set2_flag"); 458 PUT_BITS(ps_bitstrm, ps_sps->u1_constraint_set3_flag, 1, return_status, "constrained_set3_flag"); 464 PUT_BITS(ps_bitstrm, ps_sps->u1_level_idc, 8, return_status, "level_idc"); 467 PUT_BITS_UEV(ps_bitstrm, ps_sps->u1_sps_id, return_status, "seq_parameter_set_id"); 469 if (ps_sps 607 ih264e_generate_pps(bitstrm_t *ps_bitstrm, pps_t *ps_pps, sps_t *ps_sps) argument 720 ih264e_generate_slice_header(bitstrm_t *ps_bitstrm, slice_header_t *ps_slice_hdr, pps_t *ps_pps, sps_t *ps_sps) argument 940 sps_t *ps_sps = ps_codec->ps_sps_base + ps_codec->i4_sps_id; local 988 ih264e_populate_sps(codec_t *ps_codec, sps_t *ps_sps) argument 1267 ih264e_populate_slice_header(process_ctxt_t *ps_proc, slice_header_t *ps_slice_hdr, pps_t *ps_pps, sps_t *ps_sps) argument [all...] |
H A D | ih264e_encode_header.h | 94 * @param[in] ps_sps 104 sps_t *ps_sps, 130 sps_t *ps_sps 150 * @param[in] ps_sps 168 sps_t *ps_sps 182 * @param[out] ps_sps 192 sps_t *ps_sps 237 * @param[in] ps_sps 249 sps_t *ps_sps
|
/external/libavc/decoder/ |
H A D | ih264d_parse_headers.c | 193 dec_seq_params_t * ps_sps = NULL; local 230 ps_sps = &ps_dec->ps_sps[u4_temp]; 231 ps_pps->ps_sps = ps_sps; 323 if(u1_more_data_flag && (ps_pps->ps_sps->u1_profile_idc == HIGH_PROFILE_IDC)) 569 *ps_seq = ps_dec->ps_sps[u1_seq_parameter_set_id]; 981 ps_dec->ps_sps[u1_seq_parameter_set_id] = *ps_seq;
|