Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/libwebp/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()
58 if (!ExtractAndCropOrScale(&pic, data, size, bit_pos)) { in AddFrame()
92 if (!ExtractWebPConfig(&config, data, size, bit_pos)) { in AddFrame()
125 uint32_t bit_pos = 0; in LLVMFuzzerTestOneInput() local
127 ExtractAndDisableOptimizations(default_VP8GetCPUInfo, data, size, &bit_pos); in LLVMFuzzerTestOneInput()
135 anim_config.minimize_size = Extract(1, data, size, &bit_pos); in LLVMFuzzerTestOneInput()
136 anim_config.kmax = Extract(15, data, size, &bit_pos); in LLVMFuzzerTestOneInput()
140 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()
53 if (!ExtractAndCropOrScale(&pic, data, size, &bit_pos)) { in LLVMFuzzerTestOneInput()
64 if (!ExtractWebPConfig(&config, data, size, &bit_pos)) { in LLVMFuzzerTestOneInput()
/third_party/skia/third_party/externals/libwebp/extras/
Dquality_estimate.c27 uint64_t max_size, uint64_t* const bit_pos) { in GetBit() argument
29 if (*bit_pos + nb <= 8 * max_size) { in GetBit()
31 const uint64_t p = (*bit_pos)++; in GetBit()
36 *bit_pos = INVALID_BIT_POS; in GetBit()
41 #define GET_BIT(n) GetBit(data, (n), size, &bit_pos)
46 uint64_t bit_pos; in VP8EstimateQuality() local
74 bit_pos = pos * 8; in VP8EstimateQuality()
120 if (bit_pos == INVALID_BIT_POS) return -1; in VP8EstimateQuality()
/third_party/flutter/skia/third_party/externals/libwebp/extras/
Dquality_estimate.c27 uint64_t max_size, uint64_t* const bit_pos) { in GetBit() argument
29 if (*bit_pos + nb <= 8 * max_size) { in GetBit()
31 const uint64_t p = (*bit_pos)++; in GetBit()
36 *bit_pos = INVALID_BIT_POS; in GetBit()
41 #define GET_BIT(n) GetBit(data, (n), size, &bit_pos)
46 uint64_t bit_pos; in VP8EstimateQuality() local
74 bit_pos = pos * 8; in VP8EstimateQuality()
120 if (bit_pos == INVALID_BIT_POS) return -1; in VP8EstimateQuality()
/third_party/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()
200 unsigned int bit_pos) in f2fs_update_dentry() argument
206 de = &d->dentry[bit_pos]; in f2fs_update_dentry()
209 memcpy(d->filename[bit_pos], name, len); in f2fs_update_dentry()
[all …]
/third_party/boost/boost/random/detail/
Dgray_coded_qrng.hpp52 inline static void bit_pos(unsigned) {} in bit_pos() function
59 inline static void bit_pos(unsigned bit_pos) { in bit_pos() function
60 if (bit_pos >= LatticeT::bit_count) in bit_pos()
143 check_bit_range_t::bit_pos(r); in compute_seq()
/third_party/skia/third_party/externals/libwebp/examples/
Dwebpinfo.c214 int* val, uint64_t* const bit_pos) { in GetBits() argument
217 const uint64_t p = (*bit_pos)++; in GetBits()
229 int* val, uint64_t* const bit_pos) { in GetSignedBits() argument
231 if (!GetBits(data, data_size, nb, val, bit_pos)) return 0; in GetSignedBits()
232 if (!GetBits(data, data_size, 1, &sign, bit_pos)) return 0; in GetSignedBits()
239 if (!GetBits(data, data_size, n, &(v), bit_pos)) { \
247 if (!GetSignedBits(data, data_size, n, &(v), bit_pos)) { \
256 uint64_t* const bit_pos) { in ParseLossySegmentHeader() argument
306 uint64_t* const bit_pos) { in ParseLossyFilterHeader() argument
343 uint64_t* const bit_pos = &bit_position; in ParseLossyHeader() local
[all …]
/third_party/flutter/skia/third_party/externals/libwebp/examples/
Dwebpinfo.c214 int* val, uint64_t* const bit_pos) { in GetBits() argument
217 const uint64_t p = (*bit_pos)++; in GetBits()
229 int* val, uint64_t* const bit_pos) { in GetSignedBits() argument
231 if (!GetBits(data, data_size, nb, val, bit_pos)) return 0; in GetSignedBits()
232 if (!GetBits(data, data_size, 1, &sign, bit_pos)) return 0; in GetSignedBits()
239 if (!GetBits(data, data_size, n, &(v), bit_pos)) { \
247 if (!GetSignedBits(data, data_size, n, &(v), bit_pos)) { \
256 uint64_t* const bit_pos) { in ParseLossySegmentHeader() argument
306 uint64_t* const bit_pos) { in ParseLossyFilterHeader() argument
343 uint64_t* const bit_pos = &bit_position; in ParseLossyHeader() local
[all …]
/third_party/ffmpeg/libavcodec/
Didcinvideo.c178 int bit_pos, node_num, dat_pos; in idcin_decode_vlcs() local
180 prev = bit_pos = dat_pos = 0; in idcin_decode_vlcs()
188 if(!bit_pos) { in idcin_decode_vlcs()
193 bit_pos = 8; in idcin_decode_vlcs()
199 bit_pos--; in idcin_decode_vlcs()
/third_party/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()
/third_party/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 …]
/third_party/ffmpeg/libavformat/
Drtpenc_h263_rfc2190.c154 uint32_t bit_pos = AV_RL32(ptr); in ff_rtp_send_h263_rfc2190() local
156 uint32_t pos_next_mb_info = (bit_pos + 7)/8; in ff_rtp_send_h263_rfc2190()
166 ebits = 8 * pos_next_mb_info - bit_pos; in ff_rtp_send_h263_rfc2190()
/third_party/mesa3d/src/mesa/main/
Dtexcompress_s3tc_tmp.h64 GLubyte bit_pos = 2 * (j * 4 + i) ; in dxt135_decode_imageblock() local
65 GLubyte code = (GLubyte) ((bits >> bit_pos) & 3); in dxt135_decode_imageblock()
159 const GLubyte bit_pos = ((j&3) * 4 + (i&3)) * 3; in fetch_2d_texel_rgba_dxt5() local
160 const GLubyte acodelow = blksrc[2 + bit_pos / 8]; in fetch_2d_texel_rgba_dxt5()
161 const GLubyte acodehigh = blksrc[3 + bit_pos / 8]; in fetch_2d_texel_rgba_dxt5()
162 const GLubyte code = (acodelow >> (bit_pos & 0x7) | in fetch_2d_texel_rgba_dxt5()
163 (acodehigh << (8 - (bit_pos & 0x7)))) & 0x7; in fetch_2d_texel_rgba_dxt5()
/third_party/pulseaudio/src/modules/raop/
Draop-client.c229 static inline void bit_writer(uint8_t **buffer, uint8_t *bit_pos, size_t *size, uint8_t data, uint8… in bit_writer() argument
237 if (!*bit_pos) in bit_writer()
241 bits_left = 7 - *bit_pos + 1; in bit_writer()
248 if (*bit_pos) in bit_writer()
256 *bit_pos = 0; in bit_writer()
258 *bit_pos += data_bit_len; in bit_writer()
269 *bit_pos = -bit_overflow; in bit_writer()
/third_party/ltp/testcases/kernel/mce-test/tsrc/erst-inj/
Dcper.h201 __u16 bit_pos; member
/third_party/quickjs/
Dlibbf.c373 static inline limb_t scan_bit_nz(const bf_t *r, slimb_t bit_pos) in scan_bit_nz() argument
378 pos = bit_pos >> LIMB_LOG2_BITS; in scan_bit_nz()
381 v = r->tab[pos] & limb_mask(0, bit_pos & (LIMB_BITS - 1)); in scan_bit_nz()
489 slimb_t i, bit_pos, pos, e_min, e_max, e_range, prec; in __bf_round() local
529 bit_pos = l * LIMB_BITS - 1 - (prec - 1); in __bf_round()
530 pos = bit_pos >> LIMB_LOG2_BITS; in __bf_round()
531 carry = (limb_t)1 << (bit_pos & (LIMB_BITS - 1)); in __bf_round()
571 bit_pos = l * LIMB_BITS - 1 - (prec - 1); in __bf_round()
572 i = bit_pos >> LIMB_LOG2_BITS; in __bf_round()
574 shift = bit_pos & (LIMB_BITS - 1); in __bf_round()
[all …]
/third_party/skia/third_party/externals/freetype/src/pshinter/
Dpshrec.c311 FT_UInt bit_pos, in ps_mask_table_set_bits() argument
331 FT_Byte* read = (FT_Byte*)source + ( bit_pos >> 3 ); in ps_mask_table_set_bits()
332 FT_Int rmask = 0x80 >> ( bit_pos & 7 ); in ps_mask_table_set_bits()
/third_party/freetype/src/pshinter/
Dpshrec.c311 FT_UInt bit_pos, in ps_mask_table_set_bits() argument
331 FT_Byte* read = (FT_Byte*)source + ( bit_pos >> 3 ); in ps_mask_table_set_bits()
332 FT_Int rmask = 0x80 >> ( bit_pos & 7 ); in ps_mask_table_set_bits()
/third_party/flutter/skia/third_party/externals/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()
/third_party/flutter/skia/third_party/externals/spirv-tools/source/comp/
Dmarkv_codec.cpp239 size_t GetNumBitsToNextByte(size_t bit_pos) { in GetNumBitsToNextByte() argument
240 return (8 - (bit_pos % 8)) % 8; in GetNumBitsToNextByte()
243 bool ShouldByteBreak(size_t bit_pos) { in ShouldByteBreak() argument
244 const size_t num_bits_to_next_byte = GetNumBitsToNextByte(bit_pos); in ShouldByteBreak()
/third_party/toybox/toys/pending/
Dxzcat.c615 uint32_t bit_pos; in bcj_ia64() local
635 for (slot = 0, bit_pos = 5; slot < 3; ++slot, bit_pos += 41) { in bcj_ia64()
639 byte_pos = bit_pos >> 3; in bcj_ia64()
640 bit_res = bit_pos & 7; in bcj_ia64()
/third_party/gstreamer/gstplugins_bad/sys/winscreencap/
Ddxgicapture.c722 int bit_pos = x % 8; in _draw_pointer() local
724 0 != (*(p_src_and + (x / 8)) & (mask_bit >> bit_pos)); in _draw_pointer()
726 0 != (*(p_src_xor + (x / 8)) & (mask_bit >> bit_pos)); in _draw_pointer()
/third_party/skia/third_party/externals/libwebp/
DChangeLog2557 ebc9b1ee Merge "VPLBitReader bugfix: Catch error if bit_pos > LBITS too."
2558 96ad0e0a VPLBitReader bugfix: Catch error if bit_pos > LBITS too.
/third_party/flutter/skia/third_party/externals/libwebp/
DChangeLog2352 ebc9b1ee Merge "VPLBitReader bugfix: Catch error if bit_pos > LBITS too."
2353 96ad0e0a VPLBitReader bugfix: Catch error if bit_pos > LBITS too.