Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/libwebp/tests/fuzzer/
H A Dfuzz_utils.h51 uint32_t* const bit_pos) { in Extract()
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()
97 int VP8GetCPUInfo_index = Extract(4, data, size, bit_pos); in ExtractAndDisableOptimizations()
105 uint32_t* const bit_pos) { in ExtractWebPConfig()
107 config->lossless = Extract(1, data, size, bit_pos); in ExtractWebPConfig()
108 config->quality = Extract(100, data, size, bit_pos); in ExtractWebPConfig()
49 Extract(uint32_t max_value, const uint8_t data[], size_t size, uint32_t* const bit_pos) Extract() argument
90 ExtractAndDisableOptimizations( VP8CPUInfo default_VP8GetCPUInfo, const uint8_t data[], size_t size, uint32_t* const bit_pos) ExtractAndDisableOptimizations() argument
103 ExtractWebPConfig(WebPConfig* const config, const uint8_t data[], size_t size, uint32_t* const bit_pos) ExtractWebPConfig() argument
138 ExtractSourcePicture(WebPPicture* const pic, const uint8_t data[], size_t size, uint32_t* const bit_pos) ExtractSourcePicture() argument
174 ExtractAndCropOrScale(WebPPicture* const pic, const uint8_t data[], size_t size, uint32_t* const bit_pos) ExtractAndCropOrScale() argument
[all...]
H A Danimencoder_fuzzer.cc31 size_t size, uint32_t* const bit_pos) { in AddFrame()
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()
28 AddFrame(WebPAnimEncoder** const enc, const WebPAnimEncoderOptions& anim_config, int* const width, int* const height, int timestamp_ms, const uint8_t data[], size_t size, uint32_t* const bit_pos) AddFrame() argument
[all...]
H A 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/
H A Dquality_estimate.c27 uint64_t max_size, uint64_t* const bit_pos) { in GetBit()
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()
26 GetBit(const uint8_t* const data, size_t nb, uint64_t max_size, uint64_t* const bit_pos) GetBit() argument
/third_party/f2fs-tools/fsck/
H A 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()
207 de = &d->dentry[bit_pos]; in f2fs_update_dentry()
210 memcpy(d->filename[bit_pos], nam in f2fs_update_dentry()
198 f2fs_update_dentry(nid_t ino, int file_type, struct f2fs_dentry_ptr *d, const unsigned char *name, int len, f2fs_hash_t name_hash, unsigned int bit_pos) f2fs_update_dentry() argument
225 int level = 0, current_depth, bit_pos; f2fs_add_link() local
559 unsigned long bit_pos = 0; convert_inline_dentry() local
[all...]
/third_party/googletest/googlemock/src/
H A Dgmock-internal-utils.cc226 int bit_pos = 0; in Base64Unescape() local
237 if (bit_pos == 0) { in Base64Unescape()
239 bit_pos = 6; in Base64Unescape()
241 dst |= static_cast<char>(src_bin >> (bit_pos - 2)); in Base64Unescape()
243 dst = static_cast<char>(src_bin << (10 - bit_pos)); in Base64Unescape()
244 bit_pos = (bit_pos + 6) % 8; in Base64Unescape()
/third_party/ffmpeg/libavcodec/
H A Didcinvideo.c180 int bit_pos, node_num, dat_pos; in idcin_decode_vlcs() local
182 prev = bit_pos = dat_pos = 0; in idcin_decode_vlcs()
190 if(!bit_pos) { in idcin_decode_vlcs()
195 bit_pos = 8; in idcin_decode_vlcs()
201 bit_pos--; in idcin_decode_vlcs()
/third_party/skia/third_party/externals/libwebp/examples/
H A Dwebpinfo.c214 int* val, uint64_t* const bit_pos) { in GetBits()
217 const uint64_t p = (*bit_pos)++; in GetBits()
229 int* val, uint64_t* const bit_pos) { in GetSignedBits()
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()
306 uint64_t* const bit_pos) { in ParseLossyFilterHeader()
343 uint64_t* const bit_pos in ParseLossyHeader() local
213 GetBits(const uint8_t* const data, size_t data_size, size_t nb, int* val, uint64_t* const bit_pos) GetBits() argument
228 GetSignedBits(const uint8_t* const data, size_t data_size, size_t nb, int* val, uint64_t* const bit_pos) GetSignedBits() argument
253 ParseLossySegmentHeader(const WebPInfo* const webp_info, const uint8_t* const data, size_t data_size, uint64_t* const bit_pos) ParseLossySegmentHeader() argument
303 ParseLossyFilterHeader(const WebPInfo* const webp_info, const uint8_t* const data, size_t data_size, uint64_t* const bit_pos) ParseLossyFilterHeader() argument
449 LLGetBits(const uint8_t* const data, size_t data_size, size_t nb, int* val, uint64_t* const bit_pos) LLGetBits() argument
474 ParseLosslessTransform(WebPInfo* const webp_info, const uint8_t* const data, size_t data_size, uint64_t* const bit_pos) ParseLosslessTransform() argument
508 uint64_t* const bit_pos = &bit_position; ParseLosslessHeader() local
571 uint64_t bit_pos = 0; ParseAlphaHeader() local
[all...]
/third_party/mesa3d/src/util/
H A Dtexcompress_rgtc_tmp.h39 const char bit_pos = ((j&3) * 4 + (i&3)) * 3; in fetch_texel_rgtc() local
40 const unsigned char acodelow = blksrc[2 + bit_pos / 8]; in fetch_texel_rgtc()
41 const unsigned char acodehigh = (3 + bit_pos / 8) < 8 ? blksrc[3 + bit_pos / 8] : 0; in fetch_texel_rgtc()
42 const unsigned char code = (acodelow >> (bit_pos & 0x7) | in fetch_texel_rgtc()
43 (acodehigh << (8 - (bit_pos & 0x7)))) & 0x7; in fetch_texel_rgtc()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
H A 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()
709 * - subtract bit_pos from 128+30, shl 23, convert float to int... 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_mas in s3tc_dxt3_to_rgba_aos() local
902 LLVMValueRef tmp, alpha0, alpha1, alphac, alphac0, bit_pos, shift; s3tc_dxt5_alpha_channel() local
[all...]
/third_party/ffmpeg/libavformat/
H A 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/
H A 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/
H A Draop-client.c228 * @param bit_pos A pointer to a position buffer to keep track the current write location (0 for MSB, 7 for LSB)
233 static inline void bit_writer(uint8_t **buffer, uint8_t *bit_pos, size_t *size, uint8_t data, uint8_t data_bit_len) { in bit_writer() argument
241 if (!*bit_pos) in bit_writer()
245 bits_left = 7 - *bit_pos + 1; in bit_writer()
252 if (*bit_pos) in bit_writer()
258 /* Do not increment size as it will be incremented on next call as bit_pos is zero. */ in bit_writer()
260 *bit_pos = 0; in bit_writer()
262 *bit_pos += data_bit_len; in bit_writer()
273 *bit_pos = -bit_overflow; in bit_writer()
/third_party/skia/third_party/externals/freetype/src/pshinter/
H A Dpshrec.c311 FT_UInt bit_pos, in ps_mask_table_set_bits()
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()
309 ps_mask_table_set_bits( PS_Mask_Table table, const FT_Byte* source, FT_UInt bit_pos, FT_UInt bit_count, FT_Memory memory ) ps_mask_table_set_bits() argument
/third_party/node/deps/v8/src/codegen/arm64/
H A Dassembler-arm64-inl.h891 Instr Assembler::ImmTestBranchBit(unsigned bit_pos) { in ImmTestBranchBit() argument
892 DCHECK(is_uint6(bit_pos)); in ImmTestBranchBit()
893 // Subtract five from the shift offset, as we need bit 5 from bit_pos. in ImmTestBranchBit()
894 unsigned b5 = bit_pos << (ImmTestBranchBit5_offset - 5); in ImmTestBranchBit()
895 unsigned b40 = bit_pos << ImmTestBranchBit40_offset; in ImmTestBranchBit()
H A Dassembler-arm64.h403 void tbz(const Register& rt, unsigned bit_pos, Label* label);
404 void tbz(const Register& rt, unsigned bit_pos, int imm14);
407 void tbnz(const Register& rt, unsigned bit_pos, Label* label);
408 void tbnz(const Register& rt, unsigned bit_pos, int imm14);
2172 inline static Instr ImmTestBranchBit(unsigned bit_pos);
H A Dmacro-assembler-arm64.cc1027 void TurboAssembler::Tbnz(const Register& rt, unsigned bit_pos, Label* label) { in Tbnz() argument
1035 tbz(rt, bit_pos, &done); in Tbnz()
1038 tbnz(rt, bit_pos, label); in Tbnz()
1043 void TurboAssembler::Tbz(const Register& rt, unsigned bit_pos, Label* label) { in Tbz() argument
1051 tbnz(rt, bit_pos, &done); in Tbz()
1054 tbz(rt, bit_pos, label); in Tbz()
H A Dassembler-arm64.cc806 void Assembler::tbz(const Register& rt, unsigned bit_pos, int imm14) { in tbz() argument
807 DCHECK(rt.Is64Bits() || (rt.Is32Bits() && (bit_pos < kWRegSizeInBits))); in tbz()
808 Emit(TBZ | ImmTestBranchBit(bit_pos) | ImmTestBranch(imm14) | Rt(rt)); in tbz()
811 void Assembler::tbz(const Register& rt, unsigned bit_pos, Label* label) { in tbz() argument
812 tbz(rt, bit_pos, LinkAndGetInstructionOffsetTo(label)); in tbz()
815 void Assembler::tbnz(const Register& rt, unsigned bit_pos, int imm14) { in tbnz() argument
816 DCHECK(rt.Is64Bits() || (rt.Is32Bits() && (bit_pos < kWRegSizeInBits))); in tbnz()
817 Emit(TBNZ | ImmTestBranchBit(bit_pos) | ImmTestBranch(imm14) | Rt(rt)); in tbnz()
820 void Assembler::tbnz(const Register& rt, unsigned bit_pos, Label* label) { in tbnz() argument
821 tbnz(rt, bit_pos, LinkAndGetInstructionOffsetT in tbnz()
[all...]
H A Dmacro-assembler-arm64.h505 void Tbnz(const Register& rt, unsigned bit_pos, Label* label);
506 void Tbz(const Register& rt, unsigned bit_pos, Label* label);
/third_party/ltp/testcases/kernel/mce-test/tsrc/erst-inj/
H A Dcper.h201 __u16 bit_pos; member
/third_party/ltp/testcases/kernel/mce-test/hwpoison/erst-inj/
H A Dcper.h201 __u16 bit_pos; member
/third_party/toybox/toys/pending/
H A Dxzcat.c615 uint32_t bit_pos; in bcj_ia64() local
617 /* bit_pos split into byte and bit parts */ in bcj_ia64()
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/vixl/src/aarch64/
H A Dmacro-assembler-aarch64.cc715 void MacroAssembler::Tbnz(const Register& rt, unsigned bit_pos, Label* label) { in Emit() argument
730 tbz(rt, bit_pos, &done); in Emit()
739 tbnz(rt, bit_pos, label); in Emit()
744 void MacroAssembler::Tbz(const Register& rt, unsigned bit_pos, Label* label) { in Emit() argument
759 tbnz(rt, bit_pos, &done); in Emit()
768 tbz(rt, bit_pos, label); in Emit()
H A Dassembler-aarch64.h638 void tbz(const Register& rt, unsigned bit_pos, Label* label);
641 void tbz(const Register& rt, unsigned bit_pos, int64_t imm14);
644 void tbnz(const Register& rt, unsigned bit_pos, Label* label);
647 void tbnz(const Register& rt, unsigned bit_pos, int64_t imm14);
7263 static Instr ImmTestBranchBit(unsigned bit_pos) {
7264 VIXL_ASSERT(IsUint6(bit_pos));
7265 // Subtract five from the shift offset, as we need bit 5 from bit_pos.
7266 unsigned bit5 = bit_pos << (ImmTestBranchBit5_offset - 5);
7267 unsigned bit40 = bit_pos << ImmTestBranchBit40_offset;
H A Dassembler-aarch64.cc421 void Assembler::tbz(const Register& rt, unsigned bit_pos, int64_t imm14) { in tbz() argument
422 VIXL_ASSERT(rt.Is64Bits() || (rt.Is32Bits() && (bit_pos < kWRegSize))); in tbz()
423 Emit(TBZ | ImmTestBranchBit(bit_pos) | ImmTestBranch(imm14) | Rt(rt)); in tbz()
427 void Assembler::tbz(const Register& rt, unsigned bit_pos, Label* label) { in tbz() argument
430 tbz(rt, bit_pos, static_cast<int>(offset)); in tbz()
434 void Assembler::tbnz(const Register& rt, unsigned bit_pos, int64_t imm14) { in tbnz() argument
435 VIXL_ASSERT(rt.Is64Bits() || (rt.Is32Bits() && (bit_pos < kWRegSize))); in tbnz()
436 Emit(TBNZ | ImmTestBranchBit(bit_pos) | ImmTestBranch(imm14) | Rt(rt)); in tbnz()
440 void Assembler::tbnz(const Register& rt, unsigned bit_pos, Label* label) { in tbnz() argument
443 tbnz(rt, bit_pos, static_cas in tbnz()
[all...]

Completed in 56 milliseconds

12