Home
last modified time | relevance | path

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

123

/external/rust/crates/bindgen/src/codegen/
Dbitfield_unit.rs58 pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { in get()
60 debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); in get()
62 (bit_offset + (bit_width as usize)) / 8 <= in get()
69 if self.get_bit(i + bit_offset) { in get()
83 pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { in set()
85 debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); in set()
87 (bit_offset + (bit_width as usize)) / 8 <= in set()
99 self.set_bit(index + bit_offset, val_bit_is_set); in set()
/external/mesa3d/src/mesa/main/
Dtexcompress_bptc_tmp.h356 int bit_offset, in extract_unorm_endpoints() argument
370 extract_bits(block, bit_offset, mode->n_color_bits); in extract_unorm_endpoints()
371 bit_offset += mode->n_color_bits; in extract_unorm_endpoints()
381 extract_bits(block, bit_offset, mode->n_alpha_bits); in extract_unorm_endpoints()
382 bit_offset += mode->n_alpha_bits; in extract_unorm_endpoints()
399 pbit = extract_bits(block, bit_offset, 1); in extract_unorm_endpoints()
400 bit_offset += 1; in extract_unorm_endpoints()
410 pbit = extract_bits(block, bit_offset, 1); in extract_unorm_endpoints()
411 bit_offset += 1; in extract_unorm_endpoints()
443 return bit_offset; in extract_unorm_endpoints()
[all …]
/external/llvm-project/lldb/bindings/interface/
DSBType.i53bit_offset = property(GetOffsetInBits, None, doc='''A read only property that returns offset in bi…
378 bit_offset = base.bit_offset
381 if member.bit_offset > bit_offset:
388 bit_offset = vbase.bit_offset
391 if member.bit_offset > bit_offset:
398 bit_offset = field.bit_offset
401 if member.bit_offset > bit_offset:
/external/libaom/libaom/aom_dsp/
Dbitwriter_buffer.c23 return (wb->bit_offset % CHAR_BIT == 0); in aom_wb_is_byte_aligned()
27 return wb->bit_offset / CHAR_BIT + (wb->bit_offset % CHAR_BIT > 0); in aom_wb_bytes_written()
31 const int off = (int)wb->bit_offset; in aom_wb_write_bit()
41 wb->bit_offset = off + 1; in aom_wb_write_bit()
46 const int off = (int)wb->bit_offset; in aom_wb_overwrite_bit()
51 wb->bit_offset = off + 1; in aom_wb_overwrite_bit()
Dbitreader_buffer.c21 return (rb->bit_offset + 7) >> 3; in aom_rb_bytes_read()
25 const uint32_t off = rb->bit_offset; in aom_rb_read_bit()
30 rb->bit_offset = off + 1; in aom_rb_read_bit()
/external/rust/crates/nom/src/bits/
Dcomplete.rs17 move |(input, bit_offset): (I, usize)| { in take()
19 Ok(((input, bit_offset), 0u8.into())) in take()
21 let cnt = (count + bit_offset).div(8); in take()
22 if input.input_len() * 8 < count + bit_offset { in take()
23 Err(Err::Error(E::from_error_kind((input, bit_offset), ErrorKind::Eof))) in take()
26 let mut offset: usize = bit_offset; in take()
Dstreaming.rs17 move |(input, bit_offset): (I, usize)| { in take()
19 Ok(((input, bit_offset), 0u8.into())) in take()
21 let cnt = (count + bit_offset).div(8); in take()
22 if input.input_len() * 8 < count + bit_offset { in take()
26 let mut offset: usize = bit_offset; in take()
/external/swiftshader/third_party/astc-encoder/Source/
Dastc_integer_sequence.cpp238 int bit_offset in decode_ise() argument
261 results[i] = read_bits(bits, bit_offset, input_data); in decode_ise()
262 bit_offset += bits; in decode_ise()
270 int tdata = read_bits(bits_to_read[lcounter], bit_offset, input_data); in decode_ise()
271 bit_offset += bits_to_read[lcounter]; in decode_ise()
283 int tdata = read_bits(bits_to_read[lcounter], bit_offset, input_data); in decode_ise()
284 bit_offset += bits_to_read[lcounter]; in decode_ise()
/external/libvpx/libvpx/vpx_dsp/
Dbitwriter_buffer.c18 return wb->bit_offset / CHAR_BIT + (wb->bit_offset % CHAR_BIT > 0); in vpx_wb_bytes_written()
22 const int off = (int)wb->bit_offset; in vpx_wb_write_bit()
31 wb->bit_offset = off + 1; in vpx_wb_write_bit()
Dbitreader_buffer.c14 return (rb->bit_offset + 7) >> 3; in vpx_rb_bytes_read()
18 const size_t off = rb->bit_offset; in vpx_rb_read_bit()
23 rb->bit_offset = off + 1; in vpx_rb_read_bit()
/external/webrtc/common_video/h264/
Dpps_parser_unittest.cc128 size_t bit_offset; in WritePps() local
129 bit_buffer.GetCurrentOffset(&byte_offset, &bit_offset); in WritePps()
130 if (bit_offset > 0) { in WritePps()
131 bit_buffer.WriteBits(0, 8 - bit_offset); in WritePps()
132 bit_buffer.GetCurrentOffset(&byte_offset, &bit_offset); in WritePps()
Dsps_vui_rewriter.cc149 size_t bit_offset; in ParseAndRewriteSps() local
150 source_buffer.GetCurrentOffset(&byte_offset, &bit_offset); in ParseAndRewriteSps()
152 byte_offset + (bit_offset > 0 ? 1 : 0)); // OK to copy the last bits. in ParseAndRewriteSps()
156 if (bit_offset == 0) { in ParseAndRewriteSps()
158 bit_offset = 7; in ParseAndRewriteSps()
160 --bit_offset; in ParseAndRewriteSps()
162 sps_writer.Seek(byte_offset, bit_offset); in ParseAndRewriteSps()
182 sps_writer.GetCurrentOffset(&byte_offset, &bit_offset); in ParseAndRewriteSps()
183 if (bit_offset > 0) { in ParseAndRewriteSps()
184 sps_writer.WriteBits(0, 8 - bit_offset); in ParseAndRewriteSps()
[all …]
Dsps_parser_unittest.cc103 size_t byte_count, bit_offset; in GenerateFakeSps() local
104 writer.GetCurrentOffset(&byte_count, &bit_offset); in GenerateFakeSps()
105 if (bit_offset > 0) { in GenerateFakeSps()
/external/zstd/doc/educational_decoder/
Dzstd_decompress.c92 int bit_offset; member
1103 i64 bit_offset = (i64)(len * 8 - (size_t)padding); in decompress_sequences() local
1111 FSE_init_state(&states.ll_table, &states.ll_state, src, &bit_offset); in decompress_sequences()
1112 FSE_init_state(&states.of_table, &states.of_state, src, &bit_offset); in decompress_sequences()
1113 FSE_init_state(&states.ml_table, &states.ml_state, src, &bit_offset); in decompress_sequences()
1117 sequences[i] = decode_sequence(&states, src, &bit_offset); in decompress_sequences()
1120 if (bit_offset != 0) { in decompress_sequences()
1597 const size_t bytes = (num_bits + in->bit_offset + 7) / 8; in IO_read_bits()
1598 const size_t full_bytes = (num_bits + in->bit_offset) / 8; in IO_read_bits()
1603 const u64 result = read_bits_LE(in->ptr, num_bits, in->bit_offset); in IO_read_bits()
[all …]
/external/webrtc/rtc_base/
Dbit_buffer_unittest.cc149 size_t byte_offset, bit_offset; in TEST() local
153 buffer.GetCurrentOffset(&byte_offset, &bit_offset); in TEST()
155 EXPECT_EQ(7u, bit_offset); in TEST()
157 buffer.GetCurrentOffset(&byte_offset, &bit_offset); in TEST()
159 EXPECT_EQ(7u, bit_offset); in TEST()
164 buffer.GetCurrentOffset(&byte_offset, &bit_offset); in TEST()
166 EXPECT_EQ(4u, bit_offset); in TEST()
169 buffer.GetCurrentOffset(&byte_offset, &bit_offset); in TEST()
171 EXPECT_EQ(0u, bit_offset); in TEST()
Dbit_buffer.cc244 bool BitBuffer::Seek(size_t byte_offset, size_t bit_offset) { in Seek() argument
245 if (byte_offset > byte_count_ || bit_offset > 7 || in Seek()
246 (byte_offset == byte_count_ && bit_offset > 0)) { in Seek()
250 bit_offset_ = bit_offset; in Seek()
/external/libtextclassifier/native/annotator/
Dquantization.cc47 const int bit_offset = i * quantization_bits; in DequantizeAddNBit() local
48 const int read16_offset = bit_offset / 8; in DequantizeAddNBit()
57 int value = (data >> (bit_offset % 8)) & ((1 << quantization_bits) - 1); in DequantizeAddNBit()
/external/libgav1/libgav1/src/utils/
Draw_bit_reader.cc208 const size_t bit_offset = bit_offset_ + num_bits - 1; in SkipBits() local
209 if (DivideBy8(bit_offset, false) >= size_) return false; in SkipBits()
216 const size_t bit_offset = bit_offset_ + num_bits - 1; in CanReadLiteral() local
217 return DivideBy8(bit_offset, false) < size_; in CanReadLiteral()
Draw_bit_reader.h45 size_t bit_offset() const { return bit_offset_; } in bit_offset() function
47 size_t byte_offset() const { return (bit_offset() + 7) >> 3; } in byte_offset()
/external/llvm-project/lldb/include/lldb/Target/
DProcessStructReader.h52 uint64_t bit_offset; in ProcessStructReader() local
56 idx, name, &bit_offset, &bitfield_bit_size, &is_bitfield); in ProcessStructReader()
65 size_t byte_index = static_cast<size_t>(bit_offset / 8); in ProcessStructReader()
/external/llvm-project/llvm/test/DebugInfo/X86/
Ddbg-value-transfer-order.ll8 ; unsigned bit_offset = cell_offset ? __builtin_ctz(cell) : 32;
9 ; unsigned bit_mask = 1U << bit_offset;
10 ; unsigned slot = (cell_offset + bit_offset) << /*log2(sizeof(void*))*/ 3;
19 ; We had a bug where the DBG_VALUE instruction for bit_offset would be emitted
29 ; CHECK: #DEBUG_VALUE: bit_offset <- $ecx
127 !39 = !DILocalVariable(name: "bit_offset", scope: !40, file: !1, line: 7, type: !11)
/external/llvm-project/lldb/source/API/
DSBType.cpp403 uint32_t bit_offset = 0; in GetDirectBaseClassAtIndex() local
406 idx, &bit_offset); in GetDirectBaseClassAtIndex()
409 TypeImplSP(new TypeImpl(base_class_type)), bit_offset)); in GetDirectBaseClassAtIndex()
420 uint32_t bit_offset = 0; in GetVirtualBaseClassAtIndex() local
423 idx, &bit_offset); in GetVirtualBaseClassAtIndex()
426 TypeImplSP(new TypeImpl(base_class_type)), bit_offset)); in GetVirtualBaseClassAtIndex()
462 uint64_t bit_offset = 0; in GetFieldAtIndex() local
467 idx, name_sstr, &bit_offset, &bitfield_bit_size, &is_bitfield)); in GetFieldAtIndex()
473 new TypeMemberImpl(TypeImplSP(new TypeImpl(field_type)), bit_offset, in GetFieldAtIndex()
729 const uint32_t bit_offset = m_opaque_up->GetBitOffset(); in GetDescription() local
[all …]
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_meta_clear.c523 uint32_t bit_offset = 0; in get_color_clear_pipeline_cache_key() local
526 bit_offset += 2; in get_color_clear_pipeline_cache_key()
528 key |= ((uint64_t) format) << bit_offset; in get_color_clear_pipeline_cache_key()
529 bit_offset += 32; in get_color_clear_pipeline_cache_key()
531 key |= ((uint64_t) samples) << bit_offset; in get_color_clear_pipeline_cache_key()
532 bit_offset += 4; in get_color_clear_pipeline_cache_key()
534 key |= ((uint64_t) components) << bit_offset; in get_color_clear_pipeline_cache_key()
535 bit_offset += 4; in get_color_clear_pipeline_cache_key()
537 assert(bit_offset <= 64); in get_color_clear_pipeline_cache_key()
547 uint32_t bit_offset = 0; in get_depth_clear_pipeline_cache_key() local
[all …]
/external/libaom/libaom/av1/decoder/
Dobu.c70 while (rb->bit_offset & 7) { in byte_alignment()
106 const uint32_t saved_bit_offset = rb->bit_offset; in read_sequence_header_obu()
270 return ((rb->bit_offset - saved_bit_offset + 7) >> 3); in read_sequence_header_obu()
292 uint32_t saved_bit_offset = rb->bit_offset; in read_tile_group_header()
335 return ((rb->bit_offset - saved_bit_offset + 7) >> 3); in read_tile_group_header()
348 assert((rb->bit_offset & 7) == 0); in read_one_tile_group_obu()
513 rb->bit_offset = 0; in read_and_decode_one_tile_list()
832 assert((rb.bit_offset & 7) == 0); in read_metadata()
833 return type_length + (rb.bit_offset >> 3); in read_metadata()
975 assert(rb.bit_offset == 0); in aom_decode_frame_from_obus()
[all …]
/external/pdfium/core/fpdfapi/parser/
Dcpdf_hint_tables.cpp258 FX_SAFE_UINT32 bit_offset = offset; in ReadSharedObjHintTable() local
259 bit_offset *= 8; in ReadSharedObjHintTable()
260 if (!bit_offset.IsValid() || hStream->GetPos() > bit_offset.ValueOrDie()) in ReadSharedObjHintTable()
262 hStream->SkipBits((bit_offset - hStream->GetPos()).ValueOrDie()); in ReadSharedObjHintTable()

123