/external/libhevc/decoder/ |
D | ihevcd_bitstream.c | 105 void ihevcd_bits_init(bitstrm_t *ps_bitstrm, in ihevcd_bits_init() argument 120 ps_bitstrm->u4_bit_ofst = 0; in ihevcd_bits_init() 121 ps_bitstrm->pu1_buf_base = pu1_buf; in ihevcd_bits_init() 122 ps_bitstrm->pu4_buf = pu4_buf; in ihevcd_bits_init() 123 ps_bitstrm->u4_cur_word = u4_cur_word; in ihevcd_bits_init() 124 ps_bitstrm->u4_nxt_word = u4_nxt_word; in ihevcd_bits_init() 126 ps_bitstrm->pu1_buf_max = pu1_buf + u4_numbytes + 8; in ihevcd_bits_init() 155 void ihevcd_bits_flush(bitstrm_t *ps_bitstrm, UWORD32 u4_numbits) in ihevcd_bits_flush() argument 158 BITS_FLUSH(ps_bitstrm->pu4_buf, in ihevcd_bits_flush() 159 ps_bitstrm->u4_bit_ofst, in ihevcd_bits_flush() [all …]
|
D | ihevcd_parse_headers.c | 146 WORD32 ihevcd_parse_pred_wt_ofst(bitstrm_t *ps_bitstrm, in ihevcd_parse_pred_wt_ofst() argument 158 UEV_PARSE("luma_log2_weight_denom", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst() 163 SEV_PARSE("delta_chroma_log2_weight_denom", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst() 169 BITS_PARSE("luma_weight_l0_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_pred_wt_ofst() 179 BITS_PARSE("chroma_weight_l0_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_pred_wt_ofst() 196 SEV_PARSE("delta_luma_weight_l0[ i ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst() 201 SEV_PARSE("luma_offset_l0[ i ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst() 214 SEV_PARSE("delta_chroma_weight_l0[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst() 218 SEV_PARSE("delta_chroma_offset_l0[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst() 224 SEV_PARSE("delta_chroma_weight_l0[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst() [all …]
|
D | ihevcd_cabac.c | 133 bitstrm_t *ps_bitstrm, in ihevcd_cabac_init() argument 140 ASSERT(ps_bitstrm != NULL); in ihevcd_cabac_init() 151 BITS_GET(ps_cabac->u4_ofst, ps_bitstrm->pu4_buf, ps_bitstrm->u4_bit_ofst, in ihevcd_cabac_init() 152 ps_bitstrm->u4_cur_word, ps_bitstrm->u4_nxt_word, (9 + RANGE_SHIFT)); in ihevcd_cabac_init() 156 BITS_GET(ps_cabac->u4_ofst, ps_bitstrm->pu4_buf, ps_bitstrm->u4_bit_ofst, in ihevcd_cabac_init() 157 ps_bitstrm->u4_cur_word, ps_bitstrm->u4_nxt_word, 9); in ihevcd_cabac_init() 170 bitstrm_t *ps_bitstrm) in ihevcd_cabac_reset() argument 174 ASSERT(ps_bitstrm != NULL); in ihevcd_cabac_reset() 182 BITS_GET(ps_cabac->u4_ofst, ps_bitstrm->pu4_buf, ps_bitstrm->u4_bit_ofst, in ihevcd_cabac_reset() 183 ps_bitstrm->u4_cur_word, ps_bitstrm->u4_nxt_word, (9 + RANGE_SHIFT)); in ihevcd_cabac_reset() [all …]
|
D | ihevcd_cabac.h | 59 #define IHEVCD_CABAC_DECODE_BIN(u4_bin, ps_cabac, ps_bitstrm, ctxt_index) \ argument 103 BITS_GET(u4_bits, ps_bitstrm->pu4_buf, ps_bitstrm->u4_bit_ofst, \ 104 ps_bitstrm->u4_cur_word, ps_bitstrm->u4_nxt_word, numbits); \ 117 #define IHEVCD_CABAC_DECODE_BIN(u4_bin, ps_cabac, ps_bitstrm, ctxt_index) \ argument 118 u4_bin = ihevcd_cabac_decode_bin(ps_cabac, ps_bitstrm, ctxt_index); 122 #define IHEVCD_CABAC_DECODE_BYPASS_BIN(u4_bin, ps_cabac, ps_bitstrm) \ argument 133 BIT_GET(u4_bits, ps_bitstrm->pu4_buf, ps_bitstrm->u4_bit_ofst, \ 134 ps_bitstrm->u4_cur_word, ps_bitstrm->u4_nxt_word); \ 151 #define IHEVCD_CABAC_DECODE_BYPASS_BIN(u4_bin, ps_cabac, ps_bitstrm) \ argument 152 u4_bin = ihevcd_cabac_decode_bypass_bin(ps_cabac, ps_bitstrm); [all …]
|
D | ihevcd_parse_slice_header.c | 101 IHEVCD_ERROR_T ihevcd_operation_point_set(vps_t *ps_vps, bitstrm_t *ps_bitstrm, WORD32 ops_idx) in ihevcd_operation_point_set() argument 110 BITS_PARSE("list_entry_l0[ i ]", value, ps_bitstrm, 1); in ihevcd_operation_point_set() 140 WORD32 ihevcd_ref_pic_list_modification(bitstrm_t *ps_bitstrm, in ihevcd_ref_pic_list_modification() argument 164 BITS_PARSE("ref_pic_list_modification_flag_l0", value, ps_bitstrm, 1); in ihevcd_ref_pic_list_modification() 170 BITS_PARSE("list_entry_l0", value, ps_bitstrm, num_bits_list_entry); in ihevcd_ref_pic_list_modification() 179 BITS_PARSE("ref_pic_list_modification_flag_l1", value, ps_bitstrm, 1); in ihevcd_ref_pic_list_modification() 185 BITS_PARSE("list_entry_l1", value, ps_bitstrm, num_bits_list_entry); in ihevcd_ref_pic_list_modification() 229 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; in ihevcd_parse_slice_header() local 245 BITS_PARSE("first_slice_in_pic_flag", first_slice_in_pic_flag, ps_bitstrm, 1); in ihevcd_parse_slice_header() 249 BITS_PARSE("no_output_of_prior_pics_flag", no_output_of_prior_pics_flag, ps_bitstrm, 1); in ihevcd_parse_slice_header() [all …]
|
D | ihevcd_bitstream.h | 201 void ihevcd_bits_init(bitstrm_t *ps_bitstrm, 204 void ihevcd_bits_flush(bitstrm_t *ps_bitstrm, UWORD32 u4_numbits); 206 void ihevcd_bits_flush_to_byte_boundary(bitstrm_t *ps_bitstrm); 208 UWORD32 ihevcd_bits_nxt(bitstrm_t *ps_bitstrm, UWORD32 u4_numbits); 210 UWORD32 ihevcd_bits_nxt32(bitstrm_t *ps_bitstrm, UWORD32 u4_numbits); 213 UWORD32 ihevcd_bits_get(bitstrm_t *ps_bitstrm, UWORD32 u4_numbits); 215 UWORD32 ihevcd_bits_num_bits_remaining(bitstrm_t *ps_bitstrm); 218 UWORD32 ihevcd_bits_num_bits_consumed(bitstrm_t *ps_bitstrm); 220 UWORD32 ihevcd_uev(bitstrm_t *ps_bitstrm); 222 WORD32 ihevcd_sev(bitstrm_t *ps_bitstrm); [all …]
|
D | ihevcd_parse_residual.c | 191 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; in ihevcd_parse_residual_coding() local 228 ps_bitstrm, in ihevcd_parse_residual_coding() 256 ps_bitstrm, in ihevcd_parse_residual_coding() 266 ps_bitstrm, in ihevcd_parse_residual_coding() 281 ps_bitstrm, in ihevcd_parse_residual_coding() 298 ps_bitstrm, in ihevcd_parse_residual_coding() 520 IHEVCD_CABAC_DECODE_BIN(cur_csbf, ps_cabac, ps_bitstrm, ctxt_idx); in ihevcd_parse_residual_coding() 600 ps_bitstrm, in ihevcd_parse_residual_coding() 689 … IHEVCD_CABAC_DECODE_BIN(coeff_abs_level_greater1_flag, ps_cabac, ps_bitstrm, ctxt_idx); in ihevcd_parse_residual_coding() 745 IHEVCD_CABAC_DECODE_BIN(coeff_abs_level_greater2_flag, ps_cabac, ps_bitstrm, ctxt_idx); in ihevcd_parse_residual_coding() [all …]
|
/external/libavc/encoder/ |
D | ih264e_bitstream.c | 95 IH264E_ERROR_T ih264e_bitstrm_init(bitstrm_t *ps_bitstrm, in ih264e_bitstrm_init() argument 99 ps_bitstrm->pu1_strm_buffer = pu1_bitstrm_buf; in ih264e_bitstrm_init() 100 ps_bitstrm->u4_max_strm_size = u4_max_bitstrm_size; in ih264e_bitstrm_init() 103 ps_bitstrm->u4_strm_buf_offset = 0; in ih264e_bitstrm_init() 104 ps_bitstrm->u4_cur_word = 0; in ih264e_bitstrm_init() 105 ps_bitstrm->i4_bits_left_in_cw = WORD_SIZE; in ih264e_bitstrm_init() 106 ps_bitstrm->i4_zero_bytes_run = 0; in ih264e_bitstrm_init() 140 IH264E_ERROR_T ih264e_put_bits(bitstrm_t *ps_bitstrm, in ih264e_put_bits() argument 144 UWORD32 u4_cur_word = ps_bitstrm->u4_cur_word; in ih264e_put_bits() 145 WORD32 bits_left_in_cw = ps_bitstrm->i4_bits_left_in_cw; in ih264e_put_bits() [all …]
|
D | ih264e_encode_header.c | 121 static WORD32 ih264e_generate_nal_unit_header(bitstrm_t *ps_bitstrm, in ih264e_generate_nal_unit_header() argument 131 PUT_BITS(ps_bitstrm, in ih264e_generate_nal_unit_header() 158 WORD32 ih264e_generate_vui(bitstrm_t *ps_bitstrm, vui_t *ps_vui) in ih264e_generate_vui() argument 163 …PUT_BITS(ps_bitstrm, ps_vui->u1_aspect_ratio_info_present_flag, 1, return_status, "aspect_ratio_in… in ih264e_generate_vui() 166 …PUT_BITS(ps_bitstrm, ps_vui->u1_overscan_info_present_flag, 1, return_status, "overscan_info_prese… in ih264e_generate_vui() 169 …PUT_BITS(ps_bitstrm, ps_vui->u1_video_signal_type_present_flag, 1, return_status, "video_signal_ty… in ih264e_generate_vui() 172 …PUT_BITS(ps_bitstrm, ps_vui->u1_chroma_loc_info_present_flag, 1, return_status, "chroma_loc_info_p… in ih264e_generate_vui() 175 …PUT_BITS(ps_bitstrm, ps_vui->u1_vui_timing_info_present_flag, 1, return_status, "timing_info_prese… in ih264e_generate_vui() 178 …PUT_BITS(ps_bitstrm, ps_vui->u1_nal_hrd_parameters_present_flag, 1, return_status, "nal_hrd_parame… in ih264e_generate_vui() 181 …PUT_BITS(ps_bitstrm, ps_vui->u1_vcl_hrd_parameters_present_flag, 1, return_status, "vcl_hrd_parame… in ih264e_generate_vui() [all …]
|
D | ih264e_bitstream.h | 149 #define BYTE_ALIGNMENT(ps_bitstrm) ih264e_put_rbsp_trailing_bits(ps_bitstrm) argument 167 #define BITSTREAM_BYTE_ALIGN(ps_bitstrm) \ argument 168 if (ps_bitstrm->i4_bits_left_in_cw & 0x07) \ 170 const WORD32 len = (WORD32)((ps_bitstrm->i4_bits_left_in_cw) & 0x07);\ 171 ih264e_put_bits(ps_bitstrm, (UWORD32)((1 << len) - 1), len); \ 181 #define BITSTREAM_FLUSH(ps_bitstrm) \ argument 184 for (i = WORD_SIZE; i > ps_bitstrm->i4_bits_left_in_cw; i -= 8) \ 186 UWORD8 u1_next_byte = (ps_bitstrm->u4_cur_word >> (i - 8)) & 0xFF; \ 187 PUTBYTE_EPB(ps_bitstrm->pu1_strm_buffer, ps_bitstrm->u4_strm_buf_offset,\ 188 u1_next_byte, ps_bitstrm->i4_zero_bytes_run); \ [all …]
|
D | ih264e_encode_header.h | 52 #define PUT_BITS(ps_bitstrm, code_val, code_len, ret_val, syntax_string) \ argument 54 ret_val |= ih264e_put_bits((ps_bitstrm), (code_val), (code_len)) 63 #define PUT_BITS_UEV(ps_bitstrm, code_val, ret_val, syntax_string) \ argument 65 ret_val |= ih264e_put_uev((ps_bitstrm), (code_val)) 74 #define PUT_BITS_SEV(ps_bitstrm, code_val, ret_val, syntax_string) \ argument 76 ret_val |= ih264e_put_sev((ps_bitstrm), (code_val)) 103 bitstrm_t *ps_bitstrm, 128 bitstrm_t *ps_bitstrm, 165 bitstrm_t *ps_bitstrm, 274 bitstrm_t *ps_bitstrm,
|
/external/libavc/decoder/ |
D | ih264d_vui.c | 69 dec_bit_stream_t *ps_bitstrm) in ih264d_parse_hrd_parametres() argument 72 UWORD32 *pu4_bitstrm_ofst = &ps_bitstrm->u4_ofst; in ih264d_parse_hrd_parametres() 73 UWORD32 *pu4_bitstrm_buf = ps_bitstrm->pu4_buffer; in ih264d_parse_hrd_parametres() 79 ps_hrd->u1_bit_rate_scale = ih264d_get_bits_h264(ps_bitstrm, 4); in ih264d_parse_hrd_parametres() 80 ps_hrd->u1_cpb_size_scale = ih264d_get_bits_h264(ps_bitstrm, 4); in ih264d_parse_hrd_parametres() 90 ps_hrd->u1_cbr_flag[u1_index] = ih264d_get_bits_h264(ps_bitstrm, 1); in ih264d_parse_hrd_parametres() 94 + ih264d_get_bits_h264(ps_bitstrm, 5); in ih264d_parse_hrd_parametres() 96 + ih264d_get_bits_h264(ps_bitstrm, 5); in ih264d_parse_hrd_parametres() 98 + ih264d_get_bits_h264(ps_bitstrm, 5); in ih264d_parse_hrd_parametres() 99 ps_hrd->u1_time_offset_length = ih264d_get_bits_h264(ps_bitstrm, 5); in ih264d_parse_hrd_parametres() [all …]
|
D | ih264d_sei.c | 71 dec_bit_stream_t *ps_bitstrm, in ih264d_parse_buffering_period() argument 78 UWORD32 *pu4_bitstrm_ofst = &ps_bitstrm->u4_ofst; in ih264d_parse_buffering_period() 79 UWORD32 *pu4_bitstrm_buf = ps_bitstrm->pu4_buffer; in ih264d_parse_buffering_period() 101 ps_bitstrm, in ih264d_parse_buffering_period() 104 ps_bitstrm, in ih264d_parse_buffering_period() 115 ps_bitstrm, in ih264d_parse_buffering_period() 118 ps_bitstrm, in ih264d_parse_buffering_period() 147 WORD32 ih264d_parse_pic_timing(dec_bit_stream_t *ps_bitstrm, in ih264d_parse_pic_timing() argument 185 u4_start_offset = ps_bitstrm->u4_ofst; in ih264d_parse_pic_timing() 188 ih264d_get_bits_h264(ps_bitstrm, u1_cpb_removal_delay_length); in ih264d_parse_pic_timing() [all …]
|
D | ih264d_parse_headers.c | 85 dec_bit_stream_t * ps_bitstrm) in ih264d_parse_slice_partition() argument 89 UNUSED(ps_bitstrm); 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 118 UNUSED(ps_bitstrm); in ih264d_parse_sei() 145 dec_bit_stream_t * ps_bitstrm) in ih264d_parse_filler_data() argument 148 UNUSED(ps_bitstrm); in ih264d_parse_filler_data() 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() 196 UWORD32 *pu4_bitstrm_ofst = &ps_dec->ps_bitstrm->u4_ofst; in ih264d_parse_pps() 236 ps_pps->u1_entropy_coding_mode = ih264d_get_bit_h264(ps_bitstrm); in ih264d_parse_pps() [all …]
|
D | ih264d_bitstrm.c | 90 UWORD32 ih264d_get_bits_h264(dec_bit_stream_t *ps_bitstrm, UWORD32 u4_num_bits) in ih264d_get_bits_h264() argument 94 GETBITS(u4_code, ps_bitstrm->u4_ofst, ps_bitstrm->pu4_buffer, u4_num_bits); in ih264d_get_bits_h264() 115 UWORD32 ih264d_next_bits_h264(dec_bit_stream_t *ps_bitstrm, UWORD32 u4_num_bits) in ih264d_next_bits_h264() argument 117 UWORD32 u4_word_off = (ps_bitstrm->u4_ofst >> 5); in ih264d_next_bits_h264() 118 UWORD32 u4_bit_off = ps_bitstrm->u4_ofst & 0x1F; in ih264d_next_bits_h264() 119 UWORD32 *pu4_bitstream = ps_bitstrm->pu4_buffer; in ih264d_next_bits_h264() 150 WORD32 ih264d_flush_bits_h264(dec_bit_stream_t *ps_bitstrm, WORD32 u4_num_bits) in ih264d_flush_bits_h264() argument 152 ps_bitstrm->u4_ofst += u4_num_bits; in ih264d_flush_bits_h264() 154 if(ps_bitstrm->u4_ofst > ps_bitstrm->u4_max_ofst) in ih264d_flush_bits_h264() 175 UWORD8 ih264d_check_byte_aligned(dec_bit_stream_t * ps_bitstrm) in ih264d_check_byte_aligned() argument [all …]
|
D | ih264d_parse_mb_header.c | 72 dec_bit_stream_t * ps_bitstrm = ps_dec->ps_bitstrm; in ih264d_parse_mb_type_intra_cabac() local 93 u1_mb_type = (UWORD8)ih264d_decode_bin(u4_cxt_inc, ps_mb_bin_ctxt, ps_bitstrm, in ih264d_parse_mb_type_intra_cabac() 99 u1_bin = ih264d_decode_terminate(ps_cab_env, ps_bitstrm); in ih264d_parse_mb_type_intra_cabac() 106 u1_bin = ih264d_decode_bins(2, u4_cxt_inc, ps_mb_bin_ctxt, ps_bitstrm, in ih264d_parse_mb_type_intra_cabac() 120 ps_bitstrm, ps_cab_env); in ih264d_parse_mb_type_intra_cabac() 128 ps_bitstrm, ps_cab_env); in ih264d_parse_mb_type_intra_cabac() 158 dec_bit_stream_t *ps_bitstrm = ps_dec->ps_bitstrm; in ih264d_parse_mb_type_cabac() local 179 u1_bin = (UWORD8)ih264d_decode_bin(u4_cxt_inc, ps_mb_bin_ctxt, ps_bitstrm, in ih264d_parse_mb_type_cabac() 196 u1_bin = (UWORD8)ih264d_decode_bin(u4_cxt_inc, ps_mb_bin_ctxt, ps_bitstrm, in ih264d_parse_mb_type_cabac() 204 ps_bitstrm, ps_cab_env); in ih264d_parse_mb_type_cabac() [all …]
|
D | ih264d_cabac.c | 63 dec_bit_stream_t *ps_bitstrm) in ih264d_init_cabac_dec_envirnoment() argument 68 NEXTBITS(u4_code_int_val_ofst, ps_bitstrm->u4_ofst, ps_bitstrm->pu4_buffer, in ih264d_init_cabac_dec_envirnoment() 70 FLUSHBITS(ps_bitstrm->u4_ofst, 9) in ih264d_init_cabac_dec_envirnoment() 72 if(ps_bitstrm->u4_ofst > ps_bitstrm->u4_max_ofst) in ih264d_init_cabac_dec_envirnoment() 234 dec_bit_stream_t *ps_bitstrm, in ih264d_decode_bin() argument 278 pu4_buffer = ps_bitstrm->pu4_buffer; in ih264d_decode_bin() 279 u4_offset = ps_bitstrm->u4_ofst; in ih264d_decode_bin() 284 ps_bitstrm->u4_ofst = u4_offset; in ih264d_decode_bin() 391 dec_bit_stream_t *ps_bitstrm, in ih264d_decode_bins_tunary() argument 419 pu4_table, ps_bitstrm, u4_symbol) in ih264d_decode_bins_tunary() [all …]
|
D | ih264d_parse_cavlc.h | 52 WORD32 ih264d_uvlc(dec_bit_stream_t *ps_bitstrm, 69 dec_bit_stream_t *ps_bitstrm, 74 dec_bit_stream_t *ps_bitstrm); 78 dec_bit_stream_t *ps_bitstrm); 82 dec_bit_stream_t *ps_bitstrm); 98 dec_bit_stream_t *ps_bitstrm, 143 WORD8 ResidualBlockChromaDC(WORD16 *pi2_level, dec_bit_stream_t *ps_bitstrm); 146 dec_bit_stream_t *ps_bitstrm, 151 dec_bit_stream_t *ps_bitstrm, 156 dec_bit_stream_t *ps_bitstrm, [all …]
|
D | ih264d_nal.c | 192 WORD32 ih264d_process_nal_unit(dec_bit_stream_t *ps_bitstrm, in ih264d_process_nal_unit() argument 202 ps_bitstrm->pu4_buffer = puc_bitstream_buffer; in ih264d_process_nal_unit() 346 ps_bitstrm->u4_ofst = 0; in ih264d_process_nal_unit() 347 ps_bitstrm->u4_max_ofst = ((u4_num_bytes_in_rbsp + NAL_FIRST_BYTE_SIZE) << 3); in ih264d_process_nal_unit() 367 void ih264d_rbsp_to_sodb(dec_bit_stream_t *ps_bitstrm) in ih264d_rbsp_to_sodb() argument 374 ui_lastWord = (ps_bitstrm->u4_max_ofst >> 5); in ih264d_rbsp_to_sodb() 375 i = (ps_bitstrm->u4_max_ofst >> 3) & 0x03; in ih264d_rbsp_to_sodb() 379 ui_word = ps_bitstrm->pu4_buffer[ui_lastWord]; in ih264d_rbsp_to_sodb() 384 ui_word = ps_bitstrm->pu4_buffer[ui_lastWord - 1]; in ih264d_rbsp_to_sodb() 392 ps_bitstrm->u4_max_ofst = ps_bitstrm->u4_max_ofst - (i + 1); in ih264d_rbsp_to_sodb()
|
D | ih264d_parse_cavlc.c | 205 WORD32 ih264d_uvlc(dec_bit_stream_t *ps_bitstrm, in ih264d_uvlc() argument 232 ps_bitstrm->u4_ofst = *pi_bitstrm_ofst; in ih264d_uvlc() 258 ps_bitstrm->u4_ofst = *pi_bitstrm_ofst; in ih264d_uvlc() 266 ps_bitstrm->u4_ofst = *pi_bitstrm_ofst; in ih264d_uvlc() 304 dec_bit_stream_t *ps_bitstrm) in ih264d_cavlc_4x4res_block_totalcoeff_1() argument 307 UWORD32 *pu4_bitstrm_buf = ps_bitstrm->pu4_buffer; in ih264d_cavlc_4x4res_block_totalcoeff_1() 308 UWORD32 u4_bitstream_offset = ps_bitstrm->u4_ofst; in ih264d_cavlc_4x4res_block_totalcoeff_1() 315 dec_struct_t *ps_dec = (dec_struct_t *)ps_bitstrm->pv_codec_handle; in ih264d_cavlc_4x4res_block_totalcoeff_1() 407 ps_bitstrm->u4_ofst = u4_bitstream_offset; in ih264d_cavlc_4x4res_block_totalcoeff_1() 438 dec_bit_stream_t *ps_bitstrm) in ih264d_cavlc_4x4res_block_totalcoeff_2to10() argument [all …]
|
D | ih264d_bitstrm.h | 91 #define MORE_RBSP_DATA(ps_bitstrm) \ argument 92 (ps_bitstrm->u4_ofst < ps_bitstrm->u4_max_ofst) 93 #define EXCEED_OFFSET(ps_bitstrm) \ argument 94 (ps_bitstrm->u4_ofst > ps_bitstrm->u4_max_ofst) 96 void GoToByteBoundary(dec_bit_stream_t * ps_bitstrm); 97 UWORD8 ih264d_check_byte_aligned(dec_bit_stream_t * ps_bitstrm);
|
D | ih264d_parse_islice.c | 101 dec_bit_stream_t * const ps_bitstrm = ps_dec->ps_bitstrm; in ih264d_parse_imb_cavlc() local 102 UWORD32 *pu4_bitstrm_ofst = &ps_bitstrm->u4_ofst; in ih264d_parse_imb_cavlc() 113 pu4_bitstrm_buf = ps_bitstrm->pu4_buffer; in ih264d_parse_imb_cavlc() 125 ps_cur_mb_info->u1_tran_form8x8 = ih264d_get_bit_h264(ps_bitstrm); in ih264d_parse_imb_cavlc() 416 if(EXCEED_OFFSET(ps_bitstrm)) in ih264d_parse_imb_cavlc() 449 if(EXCEED_OFFSET(ps_bitstrm)) in ih264d_parse_imb_cavlc() 491 dec_bit_stream_t * const ps_bitstrm = ps_dec->ps_bitstrm; in ih264d_parse_imb_cabac() local 688 ih264d_read_coeff4x4_cabac(ps_bitstrm, in ih264d_parse_imb_cabac() 726 if(EXCEED_OFFSET(ps_bitstrm)) in ih264d_parse_imb_cabac() 763 dec_bit_stream_t * const ps_bitstrm = ps_dec->ps_bitstrm; in ih264d_parse_islice_data_cavlc() local [all …]
|
D | ih264d_cabac.h | 125 dec_bit_stream_t *ps_bitstrm); 129 dec_bit_stream_t *ps_bitstrm, 132 dec_bit_stream_t * ps_bitstrm); 137 dec_bit_stream_t *ps_bitstrm, 143 dec_bit_stream_t *ps_bitstrm, 148 dec_bit_stream_t *ps_bitstrm, 152 dec_bit_stream_t *ps_bitstrm); 156 dec_bit_stream_t *ps_bitstrm);
|
D | ih264d_parse_cabac.c | 64 UWORD8 ih264d_read_coeff4x4_cabac(dec_bit_stream_t *ps_bitstrm, in ih264d_read_coeff4x4_cabac() argument 85 u4_offset = ps_bitstrm->u4_ofst; in ih264d_read_coeff4x4_cabac() 86 pu4_buffer = ps_bitstrm->pu4_buffer; in ih264d_read_coeff4x4_cabac() 566 ps_bitstrm->u4_ofst = u4_offset; in ih264d_read_coeff4x4_cabac() 582 void ih264d_read_coeff8x8_cabac(dec_bit_stream_t *ps_bitstrm, in ih264d_read_coeff8x8_cabac() argument 633 u4_offset = ps_bitstrm->u4_ofst; in ih264d_read_coeff8x8_cabac() 634 pu4_buffer = ps_bitstrm->pu4_buffer; in ih264d_read_coeff8x8_cabac() 1024 ps_bitstrm->u4_ofst = u4_offset; in ih264d_read_coeff8x8_cabac() 1077 dec_bit_stream_t * const ps_bitstrm = ps_dec->ps_bitstrm; in ih264d_cabac_parse_8x8block() local 1092 u4_top0 = ih264d_read_coeff4x4_cabac( ps_bitstrm, in ih264d_cabac_parse_8x8block() [all …]
|
D | ih264d_parse_pslice.c | 89 dec_bit_stream_t * const ps_bitstrm = ps_dec->ps_bitstrm; in ih264d_parse_pmb_cavlc() local 90 UWORD32 * const pu4_bitstrm_buf = ps_bitstrm->pu4_buffer; in ih264d_parse_pmb_cavlc() 91 UWORD32 *pu4_bitstrm_ofst = &ps_bitstrm->u4_ofst; in ih264d_parse_pmb_cavlc() 190 u1_num_mb_part, ps_bitstrm, pi1_ref_idx, in ih264d_parse_pmb_cavlc() 195 u1_num_mb_part, ps_bitstrm, pi1_ref_idx, in ih264d_parse_pmb_cavlc() 353 ps_cur_mb_info->u1_tran_form8x8 = ih264d_get_bit_h264(ps_bitstrm); in ih264d_parse_pmb_cavlc() 404 if(EXCEED_OFFSET(ps_bitstrm)) in ih264d_parse_pmb_cavlc() 446 dec_bit_stream_t * ps_bitstrm = ps_dec->ps_bitstrm; in ih264d_parse_pmb_cabac() local 470 0, ps_cab_env, ps_bitstrm, in ih264d_parse_pmb_cabac() 488 0, ps_cab_env, ps_bitstrm, in ih264d_parse_pmb_cabac() [all …]
|