Home
last modified time | relevance | path

Searched refs:bit_pos (Results 1 – 25 of 47) sorted by relevance

12

/external/libxaac/decoder/
Dixheaacd_bitbuffer.c50 WORD bit_pos = it_bit_buff->bit_pos; in ixheaacd_show_bits_buf() local
54 bit_pos -= no_of_bits; in ixheaacd_show_bits_buf()
55 while (bit_pos < 0) { in ixheaacd_show_bits_buf()
56 bit_pos += 8; in ixheaacd_show_bits_buf()
68 ret_val = ret_val << ((31 - no_of_bits) - bit_pos) >> (32 - no_of_bits); in ixheaacd_show_bits_buf()
76 WORD bit_pos = it_bit_buff->bit_pos; in ixheaacd_read_bits_buf() local
85 bit_pos -= no_of_bits; in ixheaacd_read_bits_buf()
86 while (bit_pos < 0) { in ixheaacd_read_bits_buf()
87 bit_pos += 8; in ixheaacd_read_bits_buf()
99 ret_val = ret_val << ((31 - no_of_bits) - bit_pos) >> (32 - no_of_bits); in ixheaacd_read_bits_buf()
[all …]
Dixheaacd_block.c171 WORD32 bit_pos = it_bit_buff->bit_pos; in ixheaacd_huffman_dec_word1() local
187 read_word1 = read_word << bit_pos; in ixheaacd_huffman_dec_word1()
190 bit_pos += length; in ixheaacd_huffman_dec_word1()
191 ixheaacd_aac_read_byte_corr(&ptr_read_next, &bit_pos, &read_word, in ixheaacd_huffman_dec_word1()
197 flush_cw = read_word << bit_pos; in ixheaacd_huffman_dec_word1()
206 bit_pos++; in ixheaacd_huffman_dec_word1()
211 bit_pos++; in ixheaacd_huffman_dec_word1()
216 ixheaacd_aac_read_byte_corr(&ptr_read_next, &bit_pos, &read_word, in ixheaacd_huffman_dec_word1()
221 value = ixheaacd_extu(read_word, bit_pos, 23); in ixheaacd_huffman_dec_word1()
226 bit_pos += (norm_val - 21); in ixheaacd_huffman_dec_word1()
[all …]
Dixheaacd_longblock.c171 WORD start_bit_pos = it_bit_buff->bit_pos; in ixheaacd_read_scale_factor_data()
174 WORD32 bit_pos = 7 - it_bit_buff->bit_pos; in ixheaacd_read_scale_factor_data() local
225 read_word1 = read_word << bit_pos; in ixheaacd_read_scale_factor_data()
230 bit_pos += length; in ixheaacd_read_scale_factor_data()
231 ixheaacd_aac_read_byte_corr(&ptr_read_next, &bit_pos, &read_word, in ixheaacd_read_scale_factor_data()
233 while (bit_pos > 8) in ixheaacd_read_scale_factor_data()
234 ixheaacd_aac_read_byte(&ptr_read_next, &bit_pos, &read_word); in ixheaacd_read_scale_factor_data()
243 temp = (read_word << bit_pos); in ixheaacd_read_scale_factor_data()
246 bit_pos += 9; in ixheaacd_read_scale_factor_data()
248 ixheaacd_aac_read_2bytes(&ptr_read_next, &bit_pos, &read_word); in ixheaacd_read_scale_factor_data()
[all …]
Dixheaacd_multichannel.c79 WORD cblock_decode_huff_symbol(UWORD8 *ptr_read_next, WORD32 bit_pos, in cblock_decode_huff_symbol() argument
91 read_word1 = *readword << bit_pos; in cblock_decode_huff_symbol()
102 bit_pos += first_offset; in cblock_decode_huff_symbol()
104 if ((bit_pos -= 8) >= 0) { in cblock_decode_huff_symbol()
108 bit_pos += 8; in cblock_decode_huff_symbol()
121 bit_pos += ((sign_ret_val & 0x7fff) >> 11); in cblock_decode_huff_symbol()
122 if ((bit_pos - 8) >= 0) { in cblock_decode_huff_symbol()
215 WORD32 bit_pos = 7 - bs->bit_pos; in ixheaacd_dec_coupling_channel_element() local
219 read_word1 = read_word << bit_pos; in ixheaacd_dec_coupling_channel_element()
222 bit_pos += length; in ixheaacd_dec_coupling_channel_element()
[all …]
Dixheaacd_huff_code_reorder.c650 WORD32 *bit_pos = &it_bit_buff->bit_pos; in ixheaacd_huff_dec_pair_hcr_pcw() local
660 *bit_pos += read_bit_offset; in ixheaacd_huff_dec_pair_hcr_pcw()
661 ixheaacd_aac_read_byte_corr(&ptr_read_next, bit_pos, read_word, in ixheaacd_huff_dec_pair_hcr_pcw()
665 read_word1 = *read_word << *bit_pos; in ixheaacd_huff_dec_pair_hcr_pcw()
668 *bit_pos += length; in ixheaacd_huff_dec_pair_hcr_pcw()
673 ixheaacd_aac_read_byte_corr(&ptr_read_next, bit_pos, read_word, in ixheaacd_huff_dec_pair_hcr_pcw()
677 temp_word = *read_word << *bit_pos; in ixheaacd_huff_dec_pair_hcr_pcw()
685 *bit_pos += 1; in ixheaacd_huff_dec_pair_hcr_pcw()
699 *bit_pos += 1; in ixheaacd_huff_dec_pair_hcr_pcw()
715 ixheaacd_aac_read_byte_corr(&ptr_read_next, bit_pos, read_word, in ixheaacd_huff_dec_pair_hcr_pcw()
[all …]
Dixheaacd_common_initfuncs.c134 it_bit_buff->bit_pos = 7; in ixheaacd_create_bit_buf()
164 it_bit_buff->bit_pos = it_bit_buff->bit_pos - ixheaacd_drc_offset; in ixheaacd_read_bidirection()
165 bit_offset = it_bit_buff->bit_pos >> 3; in ixheaacd_read_bidirection()
166 it_bit_buff->bit_pos = it_bit_buff->bit_pos - (bit_offset << 3); in ixheaacd_read_bidirection()
Dixheaacd_spectrum_dec.c239 WORD32 start_bit_pos = g_bs->bit_pos; in ixheaacd_section_data()
242 WORD32 bit_pos = 7 - g_bs->bit_pos; in ixheaacd_section_data() local
276 read_word1 = read_word << bit_pos; in ixheaacd_section_data()
280 bit_pos += length; in ixheaacd_section_data()
281 ixheaacd_aac_read_2bytes(&ptr_read_next, &bit_pos, &read_word); in ixheaacd_section_data()
318 g_bs->bit_pos = 7 - bit_pos; in ixheaacd_section_data()
322 (start_bit_pos - g_bs->bit_pos); in ixheaacd_section_data()
Dixheaacd_bitbuffer.h36 WORD16 bit_pos; member
65 WORD32 bit_pos; member
113 UWORD32 ixheaacd_aac_read_byte(UWORD8 **ptr_read_next, WORD32 *bit_pos,
116 UWORD32 ixheaacd_aac_read_2bytes(UWORD8 **ptr_read_next, WORD32 *bit_pos,
Dixheaacd_headerdecode.c105 num_bit = (it_bit_buff->bit_pos + 1); in ixheaacd_aac_bytealign()
107 it_bit_buff->bit_pos = 7; in ixheaacd_aac_bytealign()
226 if (bits_to_read <= it_bit_buff->bit_pos) { in ixheaacd_read_prog_config_element()
227 bits_to_read = it_bit_buff->bit_pos - bits_to_read; in ixheaacd_read_prog_config_element()
229 bits_to_read = 8 - (bits_to_read) + it_bit_buff->bit_pos; in ixheaacd_read_prog_config_element()
498 it_bit_buff->bit_pos; in ixheaacd_ga_hdr_dec()
657 7 - it_bit_buff->bit_pos); in ixheaacd_ga_hdr_dec()
675 7 - it_bit_buff->bit_pos) - in ixheaacd_ga_hdr_dec()
692 7 - it_bit_buff->bit_pos + 7) >> in ixheaacd_ga_hdr_dec()
786 if (it_bit_buff->bit_pos < 7) *bytes_consumed += 1; in ixheaacd_ga_hdr_dec()
Dixheaacd_decode_main.c281 pstr_dec_data->dec_bit_buf.bit_pos = 7; in ixheaacd_dec_main()
308 config_bit_buf->bit_pos = 7; in ixheaacd_dec_main()
337 pstr_dec_data->dec_bit_buf.bit_pos = 7; in ixheaacd_dec_main()
346 pstr_dec_data->dec_bit_buf.bit_pos = in ixheaacd_dec_main()
Dixheaacd_channel.c277 it_bit_buff->bit_pos = 7 - it_bit_buff->bit_pos; in ixheaacd_read_block_data()
286 { it_bit_buff->bit_pos = 7 - it_bit_buff->bit_pos; } in ixheaacd_read_block_data()
293 it_bit_buff->bit_pos = (7 - it_bit_buff->bit_pos); in ixheaacd_read_block_data()
886 it_bit_buff->bit_pos = (it_bit_buff->size - it_bit_buff->cnt_bits) & 7; in ixheaacd_read_spectral_data()
892 it_bit_buff->bit_pos = (it_bit_buff->size - it_bit_buff->cnt_bits) & 7; in ixheaacd_read_spectral_data()
Dixheaacd_adts_crc_check.c83 it_crc_bit_buff_dst->bit_pos = it_bit_buff_src->bit_pos; in ixheaacd_copy_bit_buf_state()
Dixheaacd_aacdecoder.c715 WORD32 alignment = it_bit_buff->bit_pos & 0x07; in ixheaacd_aacdec_decodeframe()
717 it_bit_buff->bit_pos = 7; in ixheaacd_aacdec_decodeframe()
721 if (it_bit_buff->bit_pos != 7) { in ixheaacd_aacdec_decodeframe()
722 WORD32 alignment = it_bit_buff->bit_pos & 0x07; in ixheaacd_aacdec_decodeframe()
724 it_bit_buff->bit_pos += 7 - alignment; in ixheaacd_aacdec_decodeframe()
Dixheaacd_common_lpfuncs.c89 x = (UWORD32)b << (15 + 8 - it_bit_buff->bit_pos); in ixheaacd_aac_showbits_7()
294 it_bit_buff->bit_pos; in ixheaacd_get_element_index_tag()
/external/pdfium/core/fxcrt/
Dcfx_bitstream.cpp37 uint32_t bit_pos = m_BitPos % 8; in GetBits() local
40 if (bit_pos) { in GetBits()
41 if (8 - bit_pos >= bit_left) { in GetBits()
42 result = (data[byte_pos] & (0xff >> bit_pos)) >> (8 - bit_pos - bit_left); in GetBits()
46 bit_left -= 8 - bit_pos; in GetBits()
47 result = (data[byte_pos++] & ((1 << (8 - bit_pos)) - 1)) << bit_left; in GetBits()
/external/f2fs-tools/fsck/
Ddir.c68 unsigned long bit_pos = 0; in find_target_dentry() local
73 while (bit_pos < (unsigned long)d->max) { in find_target_dentry()
74 if (!test_bit_le(bit_pos, d->bitmap)) { in find_target_dentry()
75 bit_pos++; in find_target_dentry()
80 de = &d->dentry[bit_pos]; in find_target_dentry()
83 !memcmp(d->filename[bit_pos], name, len)) { in find_target_dentry()
90 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in find_target_dentry()
182 unsigned int bit_pos) in f2fs_update_dentry() argument
188 de = &d->dentry[bit_pos]; in f2fs_update_dentry()
191 memcpy(d->filename[bit_pos], name, len); in f2fs_update_dentry()
[all …]
/external/libxaac/decoder/drc_src/
Dimpd_drc_bitbuffer.c36 WORD bit_pos = it_bit_buff->bit_pos; in impd_read_bits_buf() local
51 bit_pos -= no_of_bits; in impd_read_bits_buf()
52 while (bit_pos < 0) { in impd_read_bits_buf()
53 bit_pos += 8; in impd_read_bits_buf()
65 ret_val = ret_val << ((31 - no_of_bits) - bit_pos) >> (32 - no_of_bits); in impd_read_bits_buf()
67 it_bit_buff->bit_pos = (WORD16)bit_pos; in impd_read_bits_buf()
78 it_bit_buff->bit_pos = 7; in impd_create_bit_buf()
Dimpd_drc_bitbuffer.h29 WORD32 bit_pos; member
/external/vulkan-validation-layers/layers/
Dvk_layer_utils.h55 unsigned long bit_pos = 0; in u_ffs() local
56 if (_BitScanForward(&bit_pos, val) != 0) { in u_ffs()
57 bit_pos += 1; in u_ffs()
59 return bit_pos; in u_ffs()
/external/mesa3d/src/util/
Dtexcompress_rgtc_tmp.h39 const char bit_pos = ((j&3) * 4 + (i&3)) * 3; in TAG() local
40 const unsigned char acodelow = blksrc[2 + bit_pos / 8]; in TAG()
41 const unsigned char acodehigh = (3 + bit_pos / 8) < 8 ? blksrc[3 + bit_pos / 8] : 0; in TAG()
42 const unsigned char code = (acodelow >> (bit_pos & 0x7) | in TAG()
43 (acodehigh << (8 - (bit_pos & 0x7)))) & 0x7; in TAG()
/external/xz-embedded/linux/lib/xz/
Dxz_dec_bcj.c204 uint32_t bit_pos; in bcj_ia64() local
224 for (slot = 0, bit_pos = 5; slot < 3; ++slot, bit_pos += 41) { in bcj_ia64()
228 byte_pos = bit_pos >> 3; in bcj_ia64()
229 bit_res = bit_pos & 7; in bcj_ia64()
/external/syslinux/efi/
Dvesa.c53 uint8_t bit_pos = 0, bit_len = 0; in find_pixmask_bits() local
61 bit_pos++; in find_pixmask_bits()
67 *first_bit = bit_pos; in find_pixmask_bits()
/external/libhevc/decoder/
Dihevcd_process_slice.c117 WORD32 bit_pos = proc_type; in ihevcd_proc_map_check() local
118 WORD32 bit_mask = (1 << bit_pos); in ihevcd_proc_map_check()
200 WORD32 bit_pos = proc_type; in ihevcd_proc_map_update() local
201 WORD32 bit_mask = (1 << bit_pos); in ihevcd_proc_map_update()
1060 …WORD32 bit_pos = ((ps_proc->i4_ctb_y << (log2_ctb_size - 3)) - 1) * loop_filter_strd + (ps_proc->i… in ihevcd_process() local
1065 …flag[row] = (*(UWORD32 *)(ps_proc->pu1_pic_no_loop_filter_flag + (bit_pos >> 3))) >> (bit_pos & 7); in ihevcd_process()
1066 bit_pos += loop_filter_strd; in ihevcd_process()
/external/pdfium/core/fxcodec/codec/
Dfx_codec_flate.cpp177 int bit_pos = m_InPos % 8, bit_left = m_CodeLen; in Decode() local
179 if (bit_pos) { in Decode()
180 bit_left -= 8 - bit_pos; in Decode()
181 code = (m_pInput[byte_pos++] & ((1 << (8 - bit_pos)) - 1)) << bit_left; in Decode()
/external/freetype/src/pshinter/
Dpshrec.c312 FT_UInt bit_pos, in ps_mask_table_set_bits() argument
332 FT_Byte* read = (FT_Byte*)source + ( bit_pos >> 3 ); in ps_mask_table_set_bits()
333 FT_Int rmask = 0x80 >> ( bit_pos & 7 ); in ps_mask_table_set_bits()

12