/external/libavc/decoder/ |
D | ih264d_bitstrm.h | 102 #define GETBIT(u4_code, u4_offset, pu4_bitstream) \ argument 105 UWORD32 u4_word_off = ((u4_offset) >> 5); \ 106 UWORD32 u4_bit_off = (u4_offset) & 0x1F; \ 108 (u4_offset)++; \ 117 #define GETBITS(u4_code, u4_offset, pu4_bitstream, u4_no_bits) \ argument 120 UWORD32 u4_word_off = ((u4_offset) >> 5); \ 121 UWORD32 u4_bit_off = (u4_offset) & 0x1F; \ 127 (u4_offset) += u4_no_bits; \ 134 #define NEXTBITS(u4_word, u4_offset, pu4_bitstream, u4_no_bits) \ argument 137 UWORD32 u4_word_off = ((u4_offset) >> 5); \ [all …]
|
D | ih264d_cabac.c | 276 UWORD32 *pu4_buffer, u4_offset; in ih264d_decode_bin() local 279 u4_offset = ps_bitstrm->u4_ofst; in ih264d_decode_bin() 281 RENORM_RANGE_OFFSET(u4_code_int_range, u4_code_int_val_ofst, u4_offset, in ih264d_decode_bin() 284 ps_bitstrm->u4_ofst = u4_offset; in ih264d_decode_bin() 346 UWORD32 *pu4_buffer, u4_offset; in ih264d_decode_terminate() local 349 u4_offset = ps_stream->u4_ofst; in ih264d_decode_terminate() 351 RENORM_RANGE_OFFSET(u4_code_int_range, u4_code_int_val_ofst, u4_offset, in ih264d_decode_terminate() 353 ps_stream->u4_ofst = u4_offset; in ih264d_decode_terminate() 634 UWORD32 *pu4_buffer, u4_offset; in ih264d_decode_bypass_bins_unary() local 637 u4_offset = ps_bitstrm->u4_ofst; in ih264d_decode_bypass_bins_unary() [all …]
|
D | ih264d_parse_cabac.c | 73 UWORD32 u4_offset, *pu4_buffer; in ih264d_read_coeff4x4_cabac() local 85 u4_offset = ps_bitstrm->u4_ofst; in ih264d_read_coeff4x4_cabac() 123 u4_offset, pu4_buffer) in ih264d_read_coeff4x4_cabac() 203 NEXTBITS(read_bits, (u4_offset + 23), pu4_buffer, in ih264d_read_coeff4x4_cabac() 205 FLUSHBITS(u4_offset, (u4_clz)) in ih264d_read_coeff4x4_cabac() 371 u4_offset, pu4_buffer) in ih264d_read_coeff4x4_cabac() 411 FLUSHBITS(u4_offset, u4_clz) in ih264d_read_coeff4x4_cabac() 412 NEXTBITS(read_bits, u4_offset, pu4_buffer, 23) in ih264d_read_coeff4x4_cabac() 461 FLUSHBITS(u4_offset, u4_clz) in ih264d_read_coeff4x4_cabac() 462 NEXTBITS(read_bits, u4_offset, pu4_buffer, 23) in ih264d_read_coeff4x4_cabac() [all …]
|
D | ih264d_cabac.h | 250 UWORD32 *pu4_buffer,u4_offset; \ 254 u4_offset = p_DecBitStream_m->u4_ofst; \ 256 NEXTBITS(read_bits,(u4_offset+23),pu4_buffer,u4_clz_m) \ 257 FLUSHBITS(u4_offset,(u4_clz_m)) \ 262 p_DecBitStream_m->u4_ofst = u4_offset; \
|
D | ih264d_parse_mb_header.c | 800 UWORD32 u4_offset, *pu4_buffer; in ih264d_parse_ctx_cbp_cabac() local 811 u4_offset = ps_bitstrm->u4_ofst; in ih264d_parse_ctx_cbp_cabac() 821 FLUSHBITS(u4_offset, u4_clz) in ih264d_parse_ctx_cbp_cabac() 822 NEXTBITS(read_bits, u4_offset, pu4_buffer, 23) in ih264d_parse_ctx_cbp_cabac() 988 RENORM_RANGE_OFFSET(u4_code_int_range, u4_code_int_val_ofst, u4_offset, in ih264d_parse_ctx_cbp_cabac() 1069 u4_code_int_val_ofst, u4_offset, in ih264d_parse_ctx_cbp_cabac() 1091 ps_bitstrm->u4_ofst = u4_offset; in ih264d_parse_ctx_cbp_cabac() 1372 UWORD32 *pu4_buffer, u4_offset; in ih264d_parse_mvd_cabac() local 1375 u4_offset = ps_bitstrm->u4_ofst; in ih264d_parse_mvd_cabac() 1378 u4_offset, pu4_buffer) in ih264d_parse_mvd_cabac() [all …]
|
D | ih264d_utils.c | 1706 UWORD32 u4_offset; in ih264d_create_pic_buffers() local 1724 u4_offset = ps_dec->u2_frm_wd_y * (PAD_LEN_Y_V << 1) + PAD_LEN_Y_H; in ih264d_create_pic_buffers() 1725 ps_pic_buf->pu1_buf1 = (UWORD8 *)(pu1_luma) + u4_offset; in ih264d_create_pic_buffers() 1730 u4_offset = ps_dec->u2_frm_wd_uv * pad_len_v + pad_len_h; in ih264d_create_pic_buffers() 1732 ps_pic_buf->pu1_buf2 = (UWORD8 *)(pu1_chroma) + u4_offset; in ih264d_create_pic_buffers() 1733 ps_pic_buf->pu1_buf3 = (UWORD8 *)(NULL) + u4_offset; in ih264d_create_pic_buffers() 1739 u4_offset = ps_dec->u2_frm_wd_y * (PAD_LEN_Y_V << 1) + PAD_LEN_Y_H; in ih264d_create_pic_buffers() 1741 + u4_offset; in ih264d_create_pic_buffers() 1743 ps_dec->disp_bufs[i].u4_ofst[0] = u4_offset; in ih264d_create_pic_buffers() 1751 u4_offset = ps_dec->u2_frm_wd_uv * pad_len_v + pad_len_h; in ih264d_create_pic_buffers() [all …]
|
D | ih264d_parse_cavlc.c | 1252 UWORD32 u4_trailing_ones, u4_offset, u4_total_coeff_tone; in ih264d_cavlc_parse4x4coeff_n0to7() local 1257 u4_offset = pu1_offset[*pu4_total_coeff - 1]; in ih264d_cavlc_parse4x4coeff_n0to7() 1260 ret = ps_dec->pf_cavlc_4x4res_block[u4_offset](u4_isdc, in ih264d_cavlc_parse4x4coeff_n0to7() 1290 UWORD32 u4_trailing_ones, u4_offset, u4_total_coeff_tone; in ih264d_cavlc_parse4x4coeff_n8() local 1294 u4_offset = pu1_offset[*pu4_total_coeff - 1]; in ih264d_cavlc_parse4x4coeff_n8() 1297 ps_dec->pf_cavlc_4x4res_block[u4_offset](u4_isdc, in ih264d_cavlc_parse4x4coeff_n8()
|
D | ih264d_parse_islice.c | 97 UWORD32 u4_offset; in ih264d_parse_imb_cavlc() local 118 u4_offset = 0; in ih264d_parse_imb_cavlc() 273 u4_offset = 1; in ih264d_parse_imb_cavlc() 446 (UWORD8)u4_offset); in ih264d_parse_imb_cavlc()
|
/external/libmpeg2/decoder/ |
D | impeg2d_bitstream.c | 71 ps_stream->u4_offset = 0; in impeg2d_bit_stream_init() 86 ps_stream->u4_offset = 8; in impeg2d_bit_stream_init() 95 ps_stream->u4_offset = 16; in impeg2d_bit_stream_init() 103 ps_stream->u4_offset = 24; in impeg2d_bit_stream_init() 110 ps_stream->u4_offset = 0; in impeg2d_bit_stream_init() 128 ps_stream->u4_max_offset = (u4_max_offset << 3) + ps_stream->u4_offset; in impeg2d_bit_stream_init() 149 UWORD32 u4_bit,u4_offset,u4_temp; in impeg2d_bit_stream_get_bit() local 152 u4_offset = ps_stream->u4_offset; in impeg2d_bit_stream_get_bit() 153 u4_curr_bit = u4_offset & 0x1F; in impeg2d_bit_stream_get_bit() 160 u4_offset++; in impeg2d_bit_stream_get_bit() [all …]
|
D | impeg2d_bitstream.h | 52 UWORD32 u4_offset; /* Offset in the buffer for the current bit */ member 69 #define FLUSH_BITS(u4_offset,u4_buf,u4_buf_nxt,u4_no_bits,pu4_buf_aligned) \ argument 73 if (((u4_offset & 0x1f) + u4_no_bits)>= 32) \ 81 u4_offset += u4_no_bits; \ 85 #define GET_TEMP_STREAM_DATA(u4_buf,u4_buf_nxt,u4_offset,pu4_buf_aligned,stream) \ argument 89 u4_offset = stream->u4_offset; \ 94 #define PUT_TEMP_STREAM_DATA(u4_buf,u4_buf_nxt,u4_offset,pu4_buf_aligned,stream) \ argument 98 stream->u4_offset = u4_offset; \ 103 #define IBITS_NXT(u4_buf, u4_buf_nxt, u4_offset, u4_bits, no_of_bits) \ argument 108 u4_bit_ptr = u4_offset & 0x1F; \ [all …]
|
D | impeg2d_vld.c | 486 UWORD32 u4_offset; in impeg2d_vld_decode() local 501 GET_TEMP_STREAM_DATA(u4_buf,u4_buf_nxt,u4_offset,pu4_buf_aligned,ps_stream) in impeg2d_vld_decode() 529 IBITS_NXT(u4_buf,u4_buf_nxt,u4_offset,u4_bits,maxLen) in impeg2d_vld_decode() 542 FLUSH_BITS(u4_offset,u4_buf,u4_buf_nxt,(maxLen - maxLen_tmp),pu4_buf_aligned) in impeg2d_vld_decode() 552 IBITS_GET(u4_buf,u4_buf_nxt,u4_offset,u4_bits,pu4_buf_aligned, dc_size) in impeg2d_vld_decode() 587 IBITS_NXT(u4_buf,u4_buf_nxt,u4_offset,u4_bits,1) in impeg2d_vld_decode() 592 FLUSH_BITS(u4_offset,u4_buf,u4_buf_nxt,1, pu4_buf_aligned) in impeg2d_vld_decode() 593 IBITS_GET(u4_buf,u4_buf_nxt,u4_offset,u4_bits,pu4_buf_aligned, 1) in impeg2d_vld_decode() 620 PUT_TEMP_STREAM_DATA(u4_buf, u4_buf_nxt, u4_offset, pu4_buf_aligned, ps_stream) in impeg2d_vld_decode() 639 IBITS_NXT(u4_buf,u4_buf_nxt,u4_offset,u4_bits,u4_sym_len) in impeg2d_vld_decode() [all …]
|
D | impeg2d_dec_hdr.c | 69 && (ps_dec->s_bit_stream.u4_offset < ps_dec->s_bit_stream.u4_max_offset)) in impeg2d_next_start_code() 92 (ps_dec->s_bit_stream.u4_offset < ps_dec->s_bit_stream.u4_max_offset)) in impeg2d_next_code() 120 && (ps_dec->s_bit_stream.u4_offset < ps_dec->s_bit_stream.u4_max_offset)) in impeg2d_peek_next_start_code() 699 ps_stream->u4_offset < ps_stream->u4_max_offset) in impeg2d_dec_pic_hdr() 844 ps_stream->u4_offset < ps_stream->u4_max_offset) in impeg2d_dec_slice() 1222 if(s_bitstrm.u4_offset + START_CODE_LEN >= s_bitstrm.u4_max_offset) in impeg2d_get_slice_pos() 1255 i4_slice_bistream_ofst = s_bitstrm.u4_offset >> 3; in impeg2d_get_slice_pos() 1275 if(s_bitstrm.u4_offset >= s_bitstrm.u4_max_offset) in impeg2d_get_slice_pos() 1315 ps_dec->i4_bytes_consumed = s_bitstrm.u4_offset >> 3; in impeg2d_get_slice_pos() 1417 (ps_stream->u4_offset < ps_stream->u4_max_offset)) in impeg2d_flush_ext_and_user_data() [all …]
|
D | impeg2d_mv_dec.c | 76 UWORD32 u4_offset; in impeg2d_dec_1mv() local 83 GET_TEMP_STREAM_DATA(u4_buf,u4_buf_nxt,u4_offset,pu4_buf_aligned,ps_stream) in impeg2d_dec_1mv() 88 IBITS_NXT(u4_buf, u4_buf_nxt, u4_offset, u4_mv_code, MV_CODE_LEN) in impeg2d_dec_1mv() 93 FLUSH_BITS(u4_offset,u4_buf,u4_buf_nxt,1,pu4_buf_aligned) in impeg2d_dec_1mv() 121 FLUSH_BITS(u4_offset,u4_buf,u4_buf_nxt,(u2_mv_len + 1),pu4_buf_aligned) in impeg2d_dec_1mv() 126 IBITS_GET(u4_buf, u4_buf_nxt, u4_offset, val, pu4_buf_aligned, i2_r_size) in impeg2d_dec_1mv() 151 IBITS_GET(u4_buf, u4_buf_nxt, u4_offset, u4_val, pu4_buf_aligned, 1) in impeg2d_dec_1mv() 154 IBITS_GET(u4_buf, u4_buf_nxt, u4_offset, u4_val, pu4_buf_aligned, 1) in impeg2d_dec_1mv() 159 PUT_TEMP_STREAM_DATA(u4_buf, u4_buf_nxt, u4_offset, pu4_buf_aligned, ps_stream) in impeg2d_dec_1mv()
|
D | impeg2d_d_pic.c | 176 ps_stream->u4_offset < ps_stream->u4_max_offset) in impeg2d_dec_d_slice() 236 if(ps_dec->s_bit_stream.u4_offset > ps_dec->s_bit_stream.u4_max_offset) in impeg2d_dec_d_slice()
|
D | impeg2d_decoder.c | 241 … ps_op->s_ivd_video_decode_op_t.u4_num_bytes_consumed = (ps_dec->s_bit_stream.u4_offset + 7) >> 3; in impeg2d_dec_frm() 282 … ps_op->s_ivd_video_decode_op_t.u4_num_bytes_consumed = (ps_dec->s_bit_stream.u4_offset + 7) >> 3; in impeg2d_dec_frm()
|
D | impeg2d_i_pic.c | 315 if(ps_dec->s_bit_stream.u4_offset > ps_dec->s_bit_stream.u4_max_offset) in impeg2d_dec_i_slice()
|
D | impeg2d_pnb_pic.c | 708 if(ps_dec->s_bit_stream.u4_offset > ps_dec->s_bit_stream.u4_max_offset) in impeg2d_dec_p_b_slice()
|
D | impeg2d_pic_proc.c | 227 ps_stream->u4_offset < ps_stream->u4_max_offset) in impeg2d_get_mb_addr_incr()
|