Home
last modified time | relevance | path

Searched refs:ps_bitstrm (Results 1 – 25 of 64) sorted by relevance

123

/external/libhevc/decoder/
Dihevcd_bitstream.c105 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 …]
Dihevcd_parse_headers.c148 WORD32 ihevcd_parse_pred_wt_ofst(bitstrm_t *ps_bitstrm, in ihevcd_parse_pred_wt_ofst() argument
161 UEV_PARSE("luma_log2_weight_denom", u4_value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
170 SEV_PARSE("delta_chroma_log2_weight_denom", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
181 BITS_PARSE("luma_weight_l0_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_pred_wt_ofst()
191 BITS_PARSE("chroma_weight_l0_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_pred_wt_ofst()
208 SEV_PARSE("delta_luma_weight_l0[ i ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
216 SEV_PARSE("luma_offset_l0[ i ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
233 SEV_PARSE("delta_chroma_weight_l0[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
241 SEV_PARSE("delta_chroma_offset_l0[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
251 SEV_PARSE("delta_chroma_weight_l0[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
[all …]
Dihevcd_cabac.c133 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()
179 bitstrm_t *ps_bitstrm) in ihevcd_cabac_reset() argument
183 ASSERT(ps_bitstrm != NULL); in ihevcd_cabac_reset()
191 BITS_GET(ps_cabac->u4_ofst, ps_bitstrm->pu4_buf, ps_bitstrm->u4_bit_ofst, in ihevcd_cabac_reset()
192 ps_bitstrm->u4_cur_word, ps_bitstrm->u4_nxt_word, (9 + RANGE_SHIFT)); in ihevcd_cabac_reset()
[all …]
Dihevcd_cabac.h59 #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 …]
Dihevcd_parse_slice_header.c101 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()
230 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; in ihevcd_parse_slice_header() local
247 BITS_PARSE("first_slice_in_pic_flag", first_slice_in_pic_flag, ps_bitstrm, 1); in ihevcd_parse_slice_header()
251 BITS_PARSE("no_output_of_prior_pics_flag", no_output_of_prior_pics_flag, ps_bitstrm, 1); in ihevcd_parse_slice_header()
[all …]
Dihevcd_bitstream.h201 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 …]
/external/libavc/encoder/
Dih264e_encode_header.c123 static WORD32 ih264e_generate_nal_unit_header(bitstrm_t *ps_bitstrm, in ih264e_generate_nal_unit_header() argument
133 PUT_BITS(ps_bitstrm, in ih264e_generate_nal_unit_header()
160 WORD32 ih264e_generate_vui(bitstrm_t *ps_bitstrm, vui_t *ps_vui) in ih264e_generate_vui() argument
165 PUT_BITS(ps_bitstrm, ps_vui->u1_aspect_ratio_info_present_flag, 1, in ih264e_generate_vui()
170 PUT_BITS(ps_bitstrm, ps_vui->u1_aspect_ratio_idc, 8, return_status, in ih264e_generate_vui()
174 PUT_BITS(ps_bitstrm, ps_vui->u2_sar_width, 16, return_status, in ih264e_generate_vui()
177 PUT_BITS(ps_bitstrm, ps_vui->u2_sar_height, 16, return_status, in ih264e_generate_vui()
183 PUT_BITS(ps_bitstrm, ps_vui->u1_overscan_info_present_flag, 1, in ih264e_generate_vui()
189 PUT_BITS(ps_bitstrm, ps_vui->u1_overscan_appropriate_flag, 1, in ih264e_generate_vui()
194 PUT_BITS(ps_bitstrm, ps_vui->u1_video_signal_type_present_flag, 1, in ih264e_generate_vui()
[all …]
Dih264e_bitstream.h149 #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); \
232 static inline IH264E_ERROR_T ih264e_put_byte_epb(bitstrm_t *ps_bitstrm, UWORD8 byte) in ih264e_put_byte_epb() argument
234 if (INSERT_EPB(ps_bitstrm->i4_zero_bytes_run, byte)) in ih264e_put_byte_epb()
236 if ((ps_bitstrm->u4_strm_buf_offset + 1) >= ps_bitstrm->u4_max_strm_size) in ih264e_put_byte_epb()
240 ps_bitstrm->pu1_strm_buffer[ps_bitstrm->u4_strm_buf_offset++] = EPB_BYTE; in ih264e_put_byte_epb()
241 ps_bitstrm->i4_zero_bytes_run = 0; in ih264e_put_byte_epb()
[all …]
Dih264e_sei.c106 bitstrm_t *ps_bitstrm) in ih264e_put_sei_mdcv_params() argument
127 PUT_BITS(ps_bitstrm, u1_payload_size, 8, return_status, "u1_payload_size"); in ih264e_put_sei_mdcv_params()
136 PUT_BITS(ps_bitstrm, ps_sei_mdcv->au2_display_primaries_x[u4_count], 16, in ih264e_put_sei_mdcv_params()
139 PUT_BITS(ps_bitstrm, ps_sei_mdcv->au2_display_primaries_y[u4_count], 16, in ih264e_put_sei_mdcv_params()
144 PUT_BITS(ps_bitstrm, ps_sei_mdcv->u2_white_point_x, 16, return_status, "u2_white point x"); in ih264e_put_sei_mdcv_params()
147 PUT_BITS(ps_bitstrm, ps_sei_mdcv->u2_white_point_y, 16, return_status, "u2_white point y"); in ih264e_put_sei_mdcv_params()
150 PUT_BITS(ps_bitstrm, ps_sei_mdcv->u4_max_display_mastering_luminance, 32, in ih264e_put_sei_mdcv_params()
154 PUT_BITS(ps_bitstrm, ps_sei_mdcv->u4_min_display_mastering_luminance, 32, in ih264e_put_sei_mdcv_params()
179 bitstrm_t *ps_bitstrm) in ih264e_put_sei_cll_params() argument
195 PUT_BITS(ps_bitstrm, u1_payload_size, 8, return_status, "u1_payload_size"); in ih264e_put_sei_cll_params()
[all …]
Dih264e_bitstream.c95 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 …]
Dih264e_encode_header.h52 #define PUT_BITS(ps_bitstrm, code_val, code_len, ret_val, syntax_string) \ argument
55 ret_val = ih264e_put_bits((ps_bitstrm), (code_val), (code_len)); \
69 #define PUT_BITS_UEV(ps_bitstrm, code_val, ret_val, syntax_string) \ argument
72 ret_val = ih264e_put_uev((ps_bitstrm), (code_val)); \
85 #define PUT_BITS_SEV(ps_bitstrm, code_val, ret_val, syntax_string) \ argument
88 ret_val = ih264e_put_sev((ps_bitstrm), (code_val)); \
133 bitstrm_t *ps_bitstrm,
158 bitstrm_t *ps_bitstrm,
183 bitstrm_t *ps_bitstrm,
220 bitstrm_t *ps_bitstrm,
[all …]
/external/libhevc/encoder/
Dihevce_bitstream.c89 ihevce_bitstrm_init(bitstrm_t *ps_bitstrm, UWORD8 *pu1_bitstrm_buf, UWORD32 u4_max_bitstrm_size) in ihevce_bitstrm_init() argument
91 ps_bitstrm->pu1_strm_buffer = pu1_bitstrm_buf; in ihevce_bitstrm_init()
92 ps_bitstrm->u4_max_strm_size = u4_max_bitstrm_size; in ihevce_bitstrm_init()
95 ps_bitstrm->u4_strm_buf_offset = 0; in ihevce_bitstrm_init()
96 ps_bitstrm->u4_cur_word = 0; in ihevce_bitstrm_init()
97 ps_bitstrm->i4_bits_left_in_cw = WORD_SIZE; in ihevce_bitstrm_init()
98 ps_bitstrm->i4_zero_bytes_run = 0; in ihevce_bitstrm_init()
132 IHEVCE_ERROR_T ihevce_put_bits(bitstrm_t *ps_bitstrm, UWORD32 u4_code_val, WORD32 code_len) in ihevce_put_bits() argument
134 UWORD32 u4_cur_word = ps_bitstrm->u4_cur_word; in ihevce_put_bits()
135 WORD32 bits_left_in_cw = ps_bitstrm->i4_bits_left_in_cw; in ihevce_put_bits()
[all …]
Dihevce_encode_header.c145 bitstrm_t *ps_bitstrm, WORD32 nal_unit_type, WORD32 nuh_temporal_id) in ihevce_generate_nal_unit_header() argument
155 ps_bitstrm, in ihevce_generate_nal_unit_header()
161 PUT_BITS(ps_bitstrm, 0, 6, return_status); in ihevce_generate_nal_unit_header()
164 PUT_BITS(ps_bitstrm, (nuh_temporal_id + 1), 3, return_status); in ihevce_generate_nal_unit_header()
189 ihevce_generate_when_profile_present(bitstrm_t *ps_bitstrm, profile_tier_lvl_t *ps_ptl) in ihevce_generate_when_profile_present() argument
195 PUT_BITS(ps_bitstrm, ps_ptl->i1_profile_space, 2, return_status); in ihevce_generate_when_profile_present()
199 PUT_BITS(ps_bitstrm, ps_ptl->i1_tier_flag, 1, return_status); in ihevce_generate_when_profile_present()
203 PUT_BITS(ps_bitstrm, ps_ptl->i1_profile_idc, 5, return_status); in ihevce_generate_when_profile_present()
209 PUT_BITS(ps_bitstrm, ps_ptl->ai1_profile_compatibility_flag[i], 1, return_status); in ihevce_generate_when_profile_present()
215 PUT_BITS(ps_bitstrm, ps_ptl->i1_general_progressive_source_flag, 1, return_status); in ihevce_generate_when_profile_present()
[all …]
Dihevce_encode_header_sei_vui.c141 bitstrm_t *ps_bitstrm, in ihevce_generate_sub_layer_hrd_params() argument
153 ps_bitstrm, ps_sub_lyr_hrd_params->au4_bit_rate_value_minus1[j], return_status); in ihevce_generate_sub_layer_hrd_params()
158 ps_bitstrm, ps_sub_lyr_hrd_params->au4_cpb_size_value_minus1[j], return_status); in ihevce_generate_sub_layer_hrd_params()
165 ps_bitstrm, ps_sub_lyr_hrd_params->au4_cpb_size_du_value_minus1[j], return_status); in ihevce_generate_sub_layer_hrd_params()
171 ps_bitstrm, ps_sub_lyr_hrd_params->au4_bit_rate_du_value_minus1[j], return_status); in ihevce_generate_sub_layer_hrd_params()
177 PUT_BITS(ps_bitstrm, ps_sub_lyr_hrd_params->au1_cbr_flag[j], 1, return_status); in ihevce_generate_sub_layer_hrd_params()
204 WORD32 ihevce_generate_hrd_params(bitstrm_t *ps_bitstrm, hrd_params_t *ps_hrd_params, sps_t *ps_sps) in ihevce_generate_hrd_params() argument
213 PUT_BITS(ps_bitstrm, ps_hrd_params->u1_nal_hrd_parameters_present_flag, 1, return_status); in ihevce_generate_hrd_params()
218 PUT_BITS(ps_bitstrm, ps_hrd_params->u1_vcl_hrd_parameters_present_flag, 1, return_status); in ihevce_generate_hrd_params()
227 ps_bitstrm, ps_hrd_params->u1_sub_pic_cpb_params_present_flag, 1, return_status); in ihevce_generate_hrd_params()
[all …]
Dihevce_encode_header.h48 #define PUT_BITS(ps_bitstrm, code_val, code_len, ret_val) \ argument
49 ret_val |= ihevce_put_bits((ps_bitstrm), (code_val), (code_len))
58 #define PUT_BITS_UEV(ps_bitstrm, code_val, ret_val) \ argument
59 ret_val |= ihevce_put_uev((ps_bitstrm), (code_val))
68 #define PUT_BITS_SEV(ps_bitstrm, code_val, ret_val) \ argument
69 ret_val |= ihevce_put_sev((ps_bitstrm), (code_val))
76 bitstrm_t *ps_bitstrm, WORD32 nal_unit_type, WORD32 nuh_temporal_id);
78 WORD32 ihevce_generate_aud(bitstrm_t *ps_bitstrm, WORD32 pic_type);
80 WORD32 ihevce_generate_eos(bitstrm_t *ps_bitstrm);
82 WORD32 ihevce_generate_vps(bitstrm_t *ps_bitstrm, vps_t *ps_vps);
[all …]
Dihevce_entropy_interface.c337 bitstrm_t *ps_bitstrm = &ps_entropy_ctxt->s_bit_strm; in ihevce_entropy_encode_frame() local
375 ret |= ihevce_bitstrm_init(ps_bitstrm, (UWORD8 *)ps_curr_out->pv_bitstream_bufs, out_buf_size); in ihevce_entropy_encode_frame()
378 ps_bitstrm->i4_num_nal = 0; in ihevce_entropy_encode_frame()
381 u8_bits_slice_header_prev = (ps_bitstrm->u4_strm_buf_offset * 8); in ihevce_entropy_encode_frame()
401 ret |= ihevce_generate_aud(ps_bitstrm, u1_pic_type); in ihevce_entropy_encode_frame()
407 ret |= ihevce_generate_vps(ps_bitstrm, ps_entropy_ctxt->ps_vps); in ihevce_entropy_encode_frame()
410 ret |= ihevce_generate_sps(ps_bitstrm, ps_entropy_ctxt->ps_sps); in ihevce_entropy_encode_frame()
413 ret |= ihevce_generate_pps(ps_bitstrm, ps_entropy_ctxt->ps_pps); in ihevce_entropy_encode_frame()
429 ps_bitstrm, in ihevce_entropy_encode_frame()
441 (ps_bitstrm->u4_strm_buf_offset * 8) - u8_bits_slice_header_prev; in ihevce_entropy_encode_frame()
[all …]
Dihevce_bitstream.h121 #define BYTE_ALIGNMENT(ps_bitstrm) ihevce_put_rbsp_trailing_bits(ps_bitstrm) argument
185 … ihevce_bitstrm_init(bitstrm_t *ps_bitstrm, UWORD8 *pu1_bitstrm_buf, UWORD32 u4_max_bitstrm_size);
187 IHEVCE_ERROR_T ihevce_put_bits(bitstrm_t *ps_bitstrm, UWORD32 u4_code_val, WORD32 code_len);
189 IHEVCE_ERROR_T ihevce_put_bit(bitstrm_t *ps_bitstrm, UWORD32 u4_code_val);
191 IHEVCE_ERROR_T ihevce_put_rbsp_trailing_bits(bitstrm_t *ps_bitstrm);
193 IHEVCE_ERROR_T ihevce_put_uev(bitstrm_t *ps_bitstrm, UWORD32 u4_code_num);
195 IHEVCE_ERROR_T ihevce_put_sev(bitstrm_t *ps_bitstrm, WORD32 syntax_elem);
198 ihevce_put_nal_start_code_prefix(bitstrm_t *ps_bitstrm, WORD32 insert_leading_zero_8bits);
/external/libavc/decoder/
Dih264d_vui.c69 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 …]
Dih264d_sei.c72 dec_bit_stream_t *ps_bitstrm, in ih264d_parse_buffering_period() argument
79 UWORD32 *pu4_bitstrm_ofst = &ps_bitstrm->u4_ofst; in ih264d_parse_buffering_period()
80 UWORD32 *pu4_bitstrm_buf = ps_bitstrm->pu4_buffer; in ih264d_parse_buffering_period()
102 ps_bitstrm, in ih264d_parse_buffering_period()
105 ps_bitstrm, in ih264d_parse_buffering_period()
116 ps_bitstrm, in ih264d_parse_buffering_period()
119 ps_bitstrm, in ih264d_parse_buffering_period()
148 WORD32 ih264d_parse_pic_timing(dec_bit_stream_t *ps_bitstrm, in ih264d_parse_pic_timing() argument
186 u4_start_offset = ps_bitstrm->u4_ofst; in ih264d_parse_pic_timing()
189 ih264d_get_bits_h264(ps_bitstrm, u1_cpb_removal_delay_length); in ih264d_parse_pic_timing()
[all …]
Dih264d_bitstrm.c90 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 …]
Dih264d_parse_mb_header.c72 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 …]
Dih264d_parse_headers.c165 dec_bit_stream_t * ps_bitstrm) in ih264d_parse_slice_partition() argument
169 UNUSED(ps_bitstrm); in ih264d_parse_slice_partition()
195 WORD32 ih264d_parse_sei(dec_struct_t * ps_dec, dec_bit_stream_t * ps_bitstrm) in ih264d_parse_sei() argument
198 UNUSED(ps_bitstrm); in ih264d_parse_sei()
225 dec_bit_stream_t * ps_bitstrm) in ih264d_parse_filler_data() argument
228 UNUSED(ps_bitstrm); in ih264d_parse_filler_data()
270 WORD32 ih264d_parse_pps(dec_struct_t * ps_dec, dec_bit_stream_t * ps_bitstrm) in ih264d_parse_pps() argument
275 UWORD32 *pu4_bitstrm_buf = ps_dec->ps_bitstrm->pu4_buffer; in ih264d_parse_pps()
276 UWORD32 *pu4_bitstrm_ofst = &ps_dec->ps_bitstrm->u4_ofst; in ih264d_parse_pps()
323 ps_pps->u1_entropy_coding_mode = ih264d_get_bit_h264(ps_bitstrm); in ih264d_parse_pps()
[all …]
Dih264d_cabac.c63 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(EXCEED_OFFSET(ps_bitstrm)) 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 …]
Dih264d_bitstrm.h92 #define EXCEED_OFFSET(ps_bitstrm) \ argument
93 (ps_bitstrm->u4_ofst > ps_bitstrm->u4_max_ofst)
94 #define CHECK_BITS_SUFFICIENT(ps_bitstrm, bits_to_read) \ argument
95 (ps_bitstrm->u4_ofst + bits_to_read <= ps_bitstrm->u4_max_ofst)
96 #define MORE_RBSP_DATA(ps_bitstrm) \ argument
97 CHECK_BITS_SUFFICIENT(ps_bitstrm, 1)
99 void GoToByteBoundary(dec_bit_stream_t * ps_bitstrm);
100 UWORD8 ih264d_check_byte_aligned(dec_bit_stream_t * ps_bitstrm);
Dih264d_parse_cavlc.h52 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 …]

123