Home
last modified time | relevance | path

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

123

/external/libxaac/decoder/
Dixheaacd_bitbuffer.c52 WORD bit_pos = it_bit_buff->bit_pos; in ixheaacd_skip_bits_buf() local
60 bit_pos -= (no_of_bits % 8); in ixheaacd_skip_bits_buf()
61 if (bit_pos < 0) { in ixheaacd_skip_bits_buf()
62 bit_pos += 8; in ixheaacd_skip_bits_buf()
65 assert(bit_pos >= 0 && bit_pos <= 7); in ixheaacd_skip_bits_buf()
68 it_bit_buff->bit_pos = (WORD16)bit_pos; in ixheaacd_skip_bits_buf()
75 WORD bit_pos = it_bit_buff->bit_pos; in ixheaacd_show_bits_buf() local
89 bit_pos -= no_of_bits; in ixheaacd_show_bits_buf()
90 while (bit_pos < -1) { in ixheaacd_show_bits_buf()
91 bit_pos += 8; in ixheaacd_show_bits_buf()
[all …]
Dixheaacd_block.c173 WORD32 bit_pos = it_bit_buff->bit_pos; in ixheaacd_huffman_dec_word1() local
194 read_word1 = read_word << bit_pos; in ixheaacd_huffman_dec_word1()
197 bit_pos += length; in ixheaacd_huffman_dec_word1()
198 ixheaacd_aac_read_byte_corr(&ptr_read_next, &bit_pos, &read_word, in ixheaacd_huffman_dec_word1()
204 flush_cw = read_word << bit_pos; in ixheaacd_huffman_dec_word1()
213 bit_pos++; in ixheaacd_huffman_dec_word1()
218 bit_pos++; in ixheaacd_huffman_dec_word1()
223 ixheaacd_aac_read_byte_corr(&ptr_read_next, &bit_pos, &read_word, in ixheaacd_huffman_dec_word1()
228 value = ixheaacd_extu(read_word, bit_pos, 23); in ixheaacd_huffman_dec_word1()
233 bit_pos += (norm_val - 21); in ixheaacd_huffman_dec_word1()
[all …]
Dixheaacd_longblock.c172 WORD start_bit_pos = it_bit_buff->bit_pos; in ixheaacd_read_scale_factor_data()
175 WORD32 bit_pos = 7 - it_bit_buff->bit_pos; in ixheaacd_read_scale_factor_data() local
213 read_word1 = read_word << bit_pos; in ixheaacd_read_scale_factor_data()
218 bit_pos += length; in ixheaacd_read_scale_factor_data()
219 ixheaacd_aac_read_byte_corr(&ptr_read_next, &bit_pos, &read_word, in ixheaacd_read_scale_factor_data()
222 ixheaacd_aac_read_byte_corr1(&ptr_read_next, &bit_pos, &read_word, in ixheaacd_read_scale_factor_data()
232 temp = (read_word << bit_pos); in ixheaacd_read_scale_factor_data()
235 bit_pos += 9; in ixheaacd_read_scale_factor_data()
237 ixheaacd_aac_read_byte_corr1(&ptr_read_next, &bit_pos, &read_word, in ixheaacd_read_scale_factor_data()
297 it_bit_buff->bit_pos = 7 - bit_pos; 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()
216 WORD32 bit_pos = 7 - bs->bit_pos; in ixheaacd_dec_coupling_channel_element() local
221 read_word1 = read_word << bit_pos; in ixheaacd_dec_coupling_channel_element()
224 bit_pos += length; in ixheaacd_dec_coupling_channel_element()
[all …]
Dixheaacd_huff_code_reorder.c655 WORD32 *bit_pos = &it_bit_buff->bit_pos; in ixheaacd_huff_dec_pair_hcr_pcw() local
665 *bit_pos += read_bit_offset; in ixheaacd_huff_dec_pair_hcr_pcw()
666 ixheaacd_aac_read_byte_corr(&ptr_read_next, bit_pos, read_word, in ixheaacd_huff_dec_pair_hcr_pcw()
670 read_word1 = *read_word << *bit_pos; in ixheaacd_huff_dec_pair_hcr_pcw()
673 *bit_pos += length; in ixheaacd_huff_dec_pair_hcr_pcw()
678 ixheaacd_aac_read_byte_corr(&ptr_read_next, bit_pos, read_word, in ixheaacd_huff_dec_pair_hcr_pcw()
682 temp_word = *read_word << *bit_pos; in ixheaacd_huff_dec_pair_hcr_pcw()
690 *bit_pos += 1; in ixheaacd_huff_dec_pair_hcr_pcw()
704 *bit_pos += 1; in ixheaacd_huff_dec_pair_hcr_pcw()
720 ixheaacd_aac_read_byte_corr(&ptr_read_next, bit_pos, read_word, in ixheaacd_huff_dec_pair_hcr_pcw()
[all …]
Dixheaacd_common_initfuncs.c133 it_bit_buff->bit_pos = 7; in ixheaacd_create_bit_buf()
168 it_bit_buff->bit_pos = it_bit_buff->bit_pos - ixheaacd_drc_offset; in ixheaacd_read_bidirection()
169 byte_offset = it_bit_buff->bit_pos >> 3; in ixheaacd_read_bidirection()
170 it_bit_buff->bit_pos = it_bit_buff->bit_pos - (byte_offset << 3); in ixheaacd_read_bidirection()
Dixheaacd_spectrum_dec.c235 WORD32 start_bit_pos = g_bs->bit_pos; in ixheaacd_section_data()
238 WORD32 bit_pos = 7 - g_bs->bit_pos; in ixheaacd_section_data() local
274 read_word1 = read_word << bit_pos; in ixheaacd_section_data()
278 bit_pos += length; in ixheaacd_section_data()
279 ixheaacd_aac_read_byte_corr1(&ptr_read_next, &bit_pos, &read_word, in ixheaacd_section_data()
315 ixheaacd_aac_read_byte_corr1(&ptr_read_next, &bit_pos, &read_word, in ixheaacd_section_data()
320 g_bs->bit_pos = 7 - bit_pos; in ixheaacd_section_data()
324 (start_bit_pos - g_bs->bit_pos); in ixheaacd_section_data()
Dixheaacd_bitbuffer.h38 WORD16 bit_pos; member
67 WORD32 bit_pos; member
119 VOID ixheaacd_aac_read_byte(UWORD8 **ptr_read_next, WORD32 *bit_pos,
Dixheaacd_common_lpfuncs.c87 if (it_bit_buff->bit_pos < 6) { in ixheaacd_aac_showbits_7()
90 x = (UWORD32)b << (15 + 8 - it_bit_buff->bit_pos); in ixheaacd_aac_showbits_7()
296 it_bit_buff->bit_pos; in ixheaacd_get_element_index_tag()
Dixheaacd_decode_main.c272 pstr_dec_data->dec_bit_buf.bit_pos = 7; in ixheaacd_dec_main()
301 config_bit_buf.bit_pos = 7; in ixheaacd_dec_main()
335 pstr_dec_data->dec_bit_buf.bit_pos = 7; in ixheaacd_dec_main()
345 pstr_dec_data->dec_bit_buf.bit_pos = in ixheaacd_dec_main()
/external/webp/tests/fuzzer/
Dfuzz_utils.h51 uint32_t* const bit_pos) { in Extract() argument
54 while (*bit_pos < 8 * size && range <= max_value) { in Extract()
55 const uint8_t mask = 1u << (*bit_pos & 7); in Extract()
56 v = (v << 1) | !!(data[*bit_pos >> 3] & mask); in Extract()
58 ++*bit_pos; in Extract()
92 uint32_t* const bit_pos) { in ExtractAndDisableOptimizations() argument
97 int VP8GetCPUInfo_index = Extract(4, data, size, bit_pos); in ExtractAndDisableOptimizations()
105 uint32_t* const bit_pos) { in ExtractWebPConfig() argument
107 config->lossless = Extract(1, data, size, bit_pos); in ExtractWebPConfig()
108 config->quality = Extract(100, data, size, bit_pos); in ExtractWebPConfig()
[all …]
Danimencoder_fuzzer.cc31 size_t size, uint32_t* const bit_pos) { in AddFrame() argument
45 pic.use_argb = Extract(1, data, size, bit_pos); in AddFrame()
48 if (!ExtractSourcePicture(&pic, data, size, bit_pos)) { in AddFrame()
56 if (!ExtractAndCropOrScale(&pic, data, size, bit_pos)) { in AddFrame()
85 if (!ExtractWebPConfig(&config, data, size, bit_pos)) { in AddFrame()
116 uint32_t bit_pos = 0; in LLVMFuzzerTestOneInput() local
118 ExtractAndDisableOptimizations(default_VP8GetCPUInfo, data, size, &bit_pos); in LLVMFuzzerTestOneInput()
126 anim_config.minimize_size = Extract(1, data, size, &bit_pos); in LLVMFuzzerTestOneInput()
127 anim_config.kmax = Extract(15, data, size, &bit_pos); in LLVMFuzzerTestOneInput()
131 min_kmin + Extract((uint32_t)(max_kmin - min_kmin), data, size, &bit_pos); in LLVMFuzzerTestOneInput()
[all …]
Denc_dec_fuzzer.cc31 uint32_t bit_pos = 0; in LLVMFuzzerTestOneInput() local
33 ExtractAndDisableOptimizations(default_VP8GetCPUInfo, data, size, &bit_pos); in LLVMFuzzerTestOneInput()
41 pic.use_argb = Extract(1, data, size, &bit_pos); in LLVMFuzzerTestOneInput()
44 if (!ExtractSourcePicture(&pic, data, size, &bit_pos)) { in LLVMFuzzerTestOneInput()
51 if (!ExtractAndCropOrScale(&pic, data, size, &bit_pos)) { in LLVMFuzzerTestOneInput()
59 if (!ExtractWebPConfig(&config, data, size, &bit_pos)) { in LLVMFuzzerTestOneInput()
/external/libxaac/decoder/drc_src/
Dimpd_drc_bitbuffer.c36 WORD bit_pos = it_bit_buff->bit_pos; in impd_read_bits_buf() local
50 bit_pos -= no_of_bits; in impd_read_bits_buf()
51 while (bit_pos < 0) { in impd_read_bits_buf()
52 bit_pos += 8; in impd_read_bits_buf()
64 ret_val = ret_val << ((31 - no_of_bits) - bit_pos) >> (32 - no_of_bits); in impd_read_bits_buf()
66 it_bit_buff->bit_pos = (WORD16)bit_pos; in impd_read_bits_buf()
72 WORD bit_pos = it_bit_buff->bit_pos; in impd_skip_bits_buf() local
81 bit_pos -= no_of_bits; in impd_skip_bits_buf()
82 while (bit_pos < 0) { in impd_skip_bits_buf()
83 bit_pos += 8; in impd_skip_bits_buf()
[all …]
/external/arm-trusted-firmware/bl31/
Dinterrupt_mgmt.c102 uint32_t flag, bit_pos; in set_scr_el3_from_rm() local
105 bit_pos = plat_interrupt_type_to_line(type, security_state); in set_scr_el3_from_rm()
106 intr_type_descs[type].scr_el3[security_state] = (u_register_t)flag << bit_pos; in set_scr_el3_from_rm()
114 cm_write_scr_el3_bit(security_state, bit_pos, flag); in set_scr_el3_from_rm()
151 uint32_t bit_pos, flag; in disable_intr_rm_local() local
157 bit_pos = plat_interrupt_type_to_line(type, security_state); in disable_intr_rm_local()
158 cm_write_scr_el3_bit(security_state, bit_pos, flag); in disable_intr_rm_local()
169 uint32_t bit_pos, flag; in enable_intr_rm_local() local
176 bit_pos = plat_interrupt_type_to_line(type, security_state); in enable_intr_rm_local()
177 cm_write_scr_el3_bit(security_state, bit_pos, flag); in enable_intr_rm_local()
/external/pdfium/core/fxcrt/
Dcfx_bitstream.cpp31 const uint32_t bit_pos = m_BitPos % 8; in GetBits() local
37 int bit = (current_byte & (1 << (7 - bit_pos))) ? 1 : 0; in GetBits()
44 if (bit_pos) { in GetBits()
45 uint32_t bits_readable = 8 - bit_pos; in GetBits()
47 result = (current_byte & (0xff >> bit_pos)) >> (bits_readable - bit_left); in GetBits()
/external/f2fs-tools/fsck/
Ddir.c69 unsigned long bit_pos = 0; in find_target_dentry() local
74 while (bit_pos < (unsigned long)d->max) { in find_target_dentry()
75 if (!test_bit_le(bit_pos, d->bitmap)) { in find_target_dentry()
76 bit_pos++; in find_target_dentry()
81 de = &d->dentry[bit_pos]; in find_target_dentry()
84 !memcmp(d->filename[bit_pos], name, len)) { in find_target_dentry()
91 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in find_target_dentry()
201 unsigned int bit_pos) in f2fs_update_dentry() argument
207 de = &d->dentry[bit_pos]; in f2fs_update_dentry()
210 memcpy(d->filename[bit_pos], name, len); in f2fs_update_dentry()
[all …]
/external/libhevc/encoder/arm/
Dihevce_scan_coeffs_neon.c305 volatile WORD32 bit_pos; in ihevce_scan_coeffs_neon() local
308 GET_POS_MSB_32(bit_pos, sig_coeff_abs_gt1_flags); in ihevce_scan_coeffs_neon()
311 bit_pos); /*sig_coeff_abs_gt1_flags &= (~(0x1<<bit_pos));*/ in ihevce_scan_coeffs_neon()
313 x_pos = (pu1_csb_table[bit_pos] & 0x3); in ihevce_scan_coeffs_neon()
314 y_pos = (pu1_csb_table[bit_pos] >> 2); in ihevce_scan_coeffs_neon()
474 volatile WORD32 bit_pos; in ihevce_scan_coeffs_neon() local
477 GET_POS_MSB_32(bit_pos, sig_coeff_abs_gt1_flags); in ihevce_scan_coeffs_neon()
480 bit_pos); /*sig_coeff_abs_gt1_flags &= (~(0x1<<bit_pos));*/ in ihevce_scan_coeffs_neon()
482 x_pos = (pu1_csb_table[bit_pos] & 0x3); in ihevce_scan_coeffs_neon()
483 y_pos = (pu1_csb_table[bit_pos] >> 2); in ihevce_scan_coeffs_neon()
/external/arm-trusted-firmware/drivers/arm/ccn/
Dccn_private.h169 #define FOR_EACH_BIT(bit_pos, bit_map) \ argument
170 for (bit_pos = __builtin_ctzll(bit_map); \
172 bit_map &= ~(1ULL << (bit_pos)), \
173 bit_pos = __builtin_ctzll(bit_map))
/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/vulkan-validation-layers/layers/
Dvk_layer_utils.h149 unsigned long bit_pos = 0;
150 if (_BitScanForward(&bit_pos, val) != 0) {
151 bit_pos += 1;
153 return bit_pos;
/external/arm-trusted-firmware/lib/el3_runtime/aarch64/
Dcontext_mgmt.c705 uint32_t bit_pos, in cm_write_scr_el3_bit() argument
716 assert(((1UL << bit_pos) & SCR_VALID_BIT_MASK) != 0U); in cm_write_scr_el3_bit()
727 scr_el3 &= ~(1UL << bit_pos); in cm_write_scr_el3_bit()
728 scr_el3 |= (u_register_t)value << bit_pos; in cm_write_scr_el3_bit()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_s3tc.c573 LLVMValueRef bit_pos, sel_mask, sel_lo, sel_hi, indices; in s3tc_dxt1_full_to_rgba_aos() local
695 bit_pos = LLVMBuildShl(builder, j, const2, ""); in s3tc_dxt1_full_to_rgba_aos()
696 bit_pos = LLVMBuildAdd(builder, bit_pos, i, ""); in s3tc_dxt1_full_to_rgba_aos()
697 bit_pos = LLVMBuildAdd(builder, bit_pos, bit_pos, ""); in s3tc_dxt1_full_to_rgba_aos()
715 indices = LLVMBuildLShr(builder, codewords, bit_pos, ""); in s3tc_dxt1_full_to_rgba_aos()
770 LLVMValueRef bit_pos, sel_mask; in s3tc_dxt3_to_rgba_aos() local
802 bit_pos = LLVMBuildShl(builder, j, lp_build_const_int_vec(gallivm, type, 2), ""); in s3tc_dxt3_to_rgba_aos()
803 bit_pos = LLVMBuildAdd(builder, bit_pos, i, ""); in s3tc_dxt3_to_rgba_aos()
804 bit_pos = LLVMBuildShl(builder, bit_pos, in s3tc_dxt3_to_rgba_aos()
806 sel_mask = LLVMBuildLShr(builder, bit_pos, in s3tc_dxt3_to_rgba_aos()
[all …]
/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/arm-trusted-firmware/drivers/renesas/common/avs/
Davs_driver.c156 static void avs_poll(uint8_t bit_pos, uint8_t val);
616 static void avs_poll(uint8_t bit_pos, uint8_t val) in avs_poll() argument
621 bit_val = bit_pos; in avs_poll()
624 if ((mmio_read_8(IIC_ICSR) & bit_pos) == bit_val) in avs_poll()

123