/external/libhevc/decoder/ |
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->i2_pic_width_in_luma_samples [all...] |
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);
|
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) 1191 sps_t *ps_sps; local 1569 sps_t *ps_sps, *ps_sps_ref; local 1626 sps_t *ps_sps; local [all...] |
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); 207 sps_t *ps_sps = ps_proc->ps_sps; local 210 idx += ((ps_proc->i4_ctb_y) * ps_sps->i2_pic_wd_in_ctb); 248 sps_t *ps_sps = ps_proc->ps_sps; local 313 sps_t *ps_sps = ps_proc->ps_sps; local 447 sps_t *ps_sps = ps_proc->ps_sps; local 520 sps_t *ps_sps = ps_proc->ps_sps; local 1364 sps_t *ps_sps; local 1600 sps_t *ps_sps; local [all...] |
ihevcd_utils.h | 44 WORD32 ihevcd_nctb_cnt(codec_t *ps_codec, sps_t *ps_sps); 47 sps_t *ps_sps,
|
ihevcd_parse_slice_header.h | 45 sps_t *ps_sps,
|
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->i2_pic_ht_in_ctb - 1 == ps_sao_ctxt->i4_ctb_y 534 sps_t *ps_sps; local [all...] |
ihevcd_utils.c | 435 WORD32 ihevcd_nctb_cnt(codec_t *ps_codec, sps_t *ps_sps) 441 if(ps_sps->i1_log2_ctb_size < 5) 448 sps_t *ps_sps, 486 next_tile_ctb_x = ps_sps->i2_pic_wd_in_ctb; 508 next_tile_ctb_y = ps_sps->i2_pic_ht_in_ctb; 556 sps_t *ps_sps; local 567 ps_sps = ps_codec->s_parse.ps_sps; 569 pic_size = ps_sps->i2_pic_width_in_luma_samples * 570 ps_sps->i2_pic_height_in_luma_samples 679 sps_t *ps_sps; local 781 sps_t *ps_sps; local [all...] |
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 3121 sps_t *ps_sps = ps_codec->s_parse.ps_sps; local [all...] |
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->i2_pic_wd_in_ctb - 1) >> 3] [all...] |
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); 422 numbits = 32 - CLZ(ps_sps->i1_num_short_term_ref_pic_sets - 1); 428 num_neg_pics = ps_sps->as_stref_picset[st_rps_idx].i1_num_neg_pics [all...] |
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->i2_pic_wd_in_ctb) 460 sps_t *ps_sps; local [all...] |
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->i2_pic_wd_in_ctb) [all...] |
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;
|
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...] |
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->i2_pic_crop_top_offset * crop_unit_y [all...] |
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->i2_pic_height_in_luma_samples - pu_y + 7) << 2)) [all...] |
ihevcd_decode.c | 552 ps_slice_hdr_next->i2_ctb_y * ps_codec->s_parse.ps_sps->i2_pic_wd_in_ctb; 583 (ps_codec->s_parse.i4_next_ctb_indx != ps_codec->s_parse.ps_sps->i4_pic_size_in_ctb)) 596 ps_slice_hdr_next->i2_ctb_y = ps_codec->s_parse.ps_sps->i2_pic_ht_in_ctb; 654 sps_t *ps_sps = ps_codec->s_parse.ps_sps; local 674 for(i = 0; i < ps_sps->i2_pic_ht_in_ctb; i++) 721 sps_t *ps_sps = ps_codec->s_parse.ps_sps; local 722 WORD32 num_rows = 1 << ps_sps->i1_log2_ctb_size; 728 num_rows = MIN(num_rows, (ps_codec->i4_disp_ht - (s_job.i2_ctb_y << ps_sps->i1_log2_ctb_size))) [all...] |
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) 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;
|
ihevcd_structs.h | 227 sps_t *ps_sps; member in struct:__anon12505 325 sps_t *ps_sps; member in struct:__anon12506 474 sps_t *ps_sps; member in struct:__anon12507 543 sps_t *ps_sps; member in struct:__anon12508 851 sps_t *ps_sps; member in struct:__anon12510 1235 sps_t *ps_sps; member in struct:__anon12511 [all...] |
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);
|
ihevcd_nal.c | 426 sps_t *ps_sps = ps_codec->ps_sps_base + MAX_SPS_CNT - 1; local 427 ihevcd_copy_sps(ps_codec, ps_sps->i1_sps_id, MAX_SPS_CNT - 1);
|
/external/libavc/encoder/ |
ih264e_encode_header.c | 151 * @param[in] ps_sps 158 WORD32 ih264e_generate_sps(bitstrm_t *ps_bitstrm, sps_t *ps_sps) 172 PUT_BITS(ps_bitstrm, ps_sps->u1_profile_idc, 8, return_status, "profile_idc"); 175 PUT_BITS(ps_bitstrm, ps_sps->u1_constraint_set0_flag, 1, return_status, "constrained_set0_flag"); 176 PUT_BITS(ps_bitstrm, ps_sps->u1_constraint_set1_flag, 1, return_status, "constrained_set1_flag"); 177 PUT_BITS(ps_bitstrm, ps_sps->u1_constraint_set2_flag, 1, return_status, "constrained_set2_flag"); 178 PUT_BITS(ps_bitstrm, ps_sps->u1_constraint_set3_flag, 1, return_status, "constrained_set3_flag"); 184 PUT_BITS(ps_bitstrm, ps_sps->u1_level_idc, 8, return_status, "level_idc"); 187 PUT_BITS_UEV(ps_bitstrm, ps_sps->u1_sps_id, return_status, "seq_parameter_set_id"); 189 if (ps_sps->u1_profile_idc >= IH264_PROFILE_HIGH [all...] |
ih264e_encode_header.h | 94 * @param[in] ps_sps 104 sps_t *ps_sps 129 sps_t *ps_sps 149 * @param[in] ps_sps 167 sps_t *ps_sps 181 * @param[out] ps_sps 191 sps_t *ps_sps 236 * @param[in] ps_sps 248 sps_t *ps_sps
|
/external/libavc/decoder/ |
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)) 563 *ps_seq = ps_dec->ps_sps[u1_seq_parameter_set_id]; [all...] |