Home
last modified time | relevance | path

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

12

/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/
DParsableBitArray.java31 private int bitOffset; field in ParsableBitArray
88 bitOffset = 0; in reset()
96 return (byteLimit - byteOffset) * 8 - bitOffset; in bitsLeft()
103 return byteOffset * 8 + bitOffset; in getPosition()
112 Assertions.checkState(bitOffset == 0); in getBytePosition()
123 bitOffset = position - (byteOffset * 8); in setPosition()
131 if (++bitOffset == 8) { in skipBit()
132 bitOffset = 0; in skipBit()
146 bitOffset += numBits - (numBytes * 8); in skipBits()
147 if (bitOffset > 7) { in skipBits()
[all …]
DParsableNalUnitBitArray.java31 private int bitOffset; field in ParsableNalUnitBitArray
54 bitOffset = 0; in reset()
62 if (++bitOffset == 8) { in skipBit()
63 bitOffset = 0; in skipBit()
78 bitOffset += numBits - (numBytes * 8); in skipBits()
79 if (bitOffset > 7) { in skipBits()
81 bitOffset -= 8; in skipBits()
104 int newBitOffset = bitOffset + numBits - (numBytes * 8); in canReadBits()
125 boolean returnValue = (data[byteOffset] & (0x80 >> bitOffset)) != 0; in readBit()
138 bitOffset += numBits; in readBits()
[all …]
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DVorbisBitArray.java32 private int bitOffset; field in VorbisBitArray
49 bitOffset = 0; in reset()
58 boolean returnValue = (((data[byteOffset] & 0xFF) >> bitOffset) & 0x01) == 1; in readBit()
71 int bitsRead = Math.min(numBits, 8 - bitOffset); in readBits()
72 int returnValue = ((data[tempByteOffset++] & 0xFF) >> bitOffset) & (0xFF >> (8 - bitsRead)); in readBits()
90 bitOffset += numBits - (numBytes * 8); in skipBits()
91 if (bitOffset > 7) { in skipBits()
93 bitOffset -= 8; in skipBits()
102 return byteOffset * 8 + bitOffset; in getPosition()
112 bitOffset = position - (byteOffset * 8); in setPosition()
[all …]
/external/brotli/java/org/brotli/dec/
DBitReader.java88 int byteOffset = (s.halfOffset << LOG_HALF_SIZE) + ((s.bitOffset + 7) >> 3) - BYTENESS; in checkHealth()
98 if (s.bitOffset > BITNESS) { in assertAccumulatorHealthy()
99 throw new IllegalStateException("Accumulator underloaded: " + s.bitOffset); in assertAccumulatorHealthy()
107 if (s.bitOffset >= HALF_BITNESS) { in fillBitWindow()
116 s.bitOffset -= HALF_BITNESS; in fillBitWindow()
131 s.bitOffset -= HALF_BITNESS; in doFillBitWindow()
136 return (int) (s.accumulator64 >>> s.bitOffset); in peekBits()
138 return s.accumulator32 >>> s.bitOffset; in peekBits()
150 s.bitOffset += n; in readFewBits()
177 s.bitOffset = BITNESS; in initBitReader()
[all …]
DState.java35 int bitOffset; // BitReader: bit-reading position in accumulator. field in State
DDecode.java392 s.bitOffset += bits; in readSymbol()
398 s.bitOffset += ((tableGroup[offset] >> 16) + HUFFMAN_TABLE_BITS); in readSymbol()
447 s.bitOffset += table[p] >> 16; in readHuffmanCodeLengths()
581 s.bitOffset += FIXED_TABLE[p] >> 16; in readComplexHuffmanCode()
1216 if (s.bitOffset + extraBits <= BitReader.BITNESS) { in decompress()
/external/brotli/csharp/org/brotli/dec/
DBitReader.cs40 internal int bitOffset; field in Org.Brotli.Dec.BitReader
103 int byteOffset = (br.intOffset << 2) + ((br.bitOffset + 7) >> 3) - 8; in CheckHealth()
117 if (br.bitOffset >= 32) in FillBitWindow()
120 br.bitOffset -= 32; in FillBitWindow()
128 int val = (int)((long)(((ulong)br.accumulator) >> br.bitOffset)) & ((1 << n) - 1); in ReadBits()
129 br.bitOffset += n; in ReadBits()
150 br.bitOffset = 64; in Init()
166 if (br.bitOffset == 64) in Reload()
185 int padding = (64 - br.bitOffset) & 7; in JumpToByteBoundary()
208 if ((br.bitOffset & 7) != 0) in CopyBytes()
[all …]
DDecode.cs117 int val = (int)((long)(((ulong)br.accumulator) >> br.bitOffset)); in ReadSymbol()
123 br.bitOffset += bits; in ReadSymbol()
129 br.bitOffset += ((table[offset] >> 16) + HuffmanTableBits); in ReadSymbol()
193 int p = (int)(((long)(((ulong)br.accumulator) >> br.bitOffset))) & 31; in ReadHuffmanCodeLengths()
194 br.bitOffset += table[p] >> 16; in ReadHuffmanCodeLengths()
327 int p = (int)((long)(((ulong)br.accumulator) >> br.bitOffset)) & 15; in ReadHuffmanCode()
329 br.bitOffset += FixedTable[p] >> 16; in ReadHuffmanCode()
/external/brotli/js/
Ddecode.js117 if (s.bitOffset >= 16) {
119 s.bitOffset -= 16;
210 if (s.bitOffset >= 16) {
212 s.bitOffset -= 16;
229 if (s.bitOffset >= 16) {
231 s.bitOffset -= 16;
251 if (s.bitOffset >= 16) {
253 s.bitOffset -= 16;
263 if (s.bitOffset >= 16) {
265 s.bitOffset -= 16;
[all …]
/external/mesa3d/src/glx/
Dpixel.c92 GLint elementsLeft, bitOffset, currentByte, nextByte, highBitMask; in FillBitmap() local
111 bitOffset = (skipPixels * components) & 7; in FillBitmap()
112 highBitMask = LowBitsMask[8 - bitOffset]; in FillBitmap()
113 lowBitMask = HighBitsMask[bitOffset]; in FillBitmap()
126 if (bitOffset) { in FillBitmap()
128 if (elementsLeft > (8 - bitOffset)) { in FillBitmap()
136 ((currentByte & highBitMask) << bitOffset) | in FillBitmap()
137 ((nextByte & lowBitMask) >> (8 - bitOffset)); in FillBitmap()
140 currentByte = ((currentByte & highBitMask) << bitOffset); in FillBitmap()
283 GLint elementsLeft, bitOffset, currentByte, highBitMask, lowBitMask; in EmptyBitmap() local
[all …]
/external/aac/libFDK/src/
DFDK_bitbuffer.cpp159 UINT bitOffset = hBitBuf->BitNdx & 0x07; in FDK_get() local
171 if (bitOffset) { in FDK_get()
172 tx <<= bitOffset; in FDK_get()
173 tx |= hBitBuf->Buffer[(byteOffset + 4) & byteMask] >> (8 - bitOffset); in FDK_get()
217 UINT bitOffset = hBitBuf->BitNdx & 0x07; in FDK_getBwd() local
230 tx >>= (8 - bitOffset); in FDK_getBwd()
232 if (bitOffset && numberOfBits > 24) { in FDK_getBwd()
233 tx |= hBitBuf->Buffer[(byteOffset - 4) & byteMask] << (24 + bitOffset); in FDK_getBwd()
251 UINT bitOffset = hBitBuf->BitNdx & 0x7; in FDK_put() local
265 UINT tmp = (value << (32 - numberOfBits)) >> bitOffset; in FDK_put()
[all …]
/external/skqp/src/codec/
DSkSwizzler.cpp101 int bitOffset = bitIndex + deltaSrc; in swizzle_bit_to_grayscale() local
102 bitIndex = bitOffset % 8; in swizzle_bit_to_grayscale()
103 currByte = *(src += bitOffset / 8); in swizzle_bit_to_grayscale()
125 int bitOffset = bitIndex + deltaSrc; in swizzle_bit_to_n32() local
126 bitIndex = bitOffset % 8; in swizzle_bit_to_n32()
127 currByte = *(src += bitOffset / 8); in swizzle_bit_to_n32()
148 int bitOffset = bitIndex + deltaSrc; in swizzle_bit_to_565() local
149 bitIndex = bitOffset % 8; in swizzle_bit_to_565()
150 currByte = *(src += bitOffset / 8); in swizzle_bit_to_565()
180 int bitOffset = bitIndex + deltaSrc; in swizzle_bit_to_f16() local
[all …]
/external/skia/src/codec/
DSkSwizzler.cpp101 int bitOffset = bitIndex + deltaSrc; in swizzle_bit_to_grayscale() local
102 bitIndex = bitOffset % 8; in swizzle_bit_to_grayscale()
103 currByte = *(src += bitOffset / 8); in swizzle_bit_to_grayscale()
125 int bitOffset = bitIndex + deltaSrc; in swizzle_bit_to_n32() local
126 bitIndex = bitOffset % 8; in swizzle_bit_to_n32()
127 currByte = *(src += bitOffset / 8); in swizzle_bit_to_n32()
148 int bitOffset = bitIndex + deltaSrc; in swizzle_bit_to_565() local
149 bitIndex = bitOffset % 8; in swizzle_bit_to_565()
150 currByte = *(src += bitOffset / 8); in swizzle_bit_to_565()
180 int bitOffset = bitIndex + deltaSrc; in swizzle_bit_to_f16() local
[all …]
/external/deqp/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrUtil.cpp772 deUint32 bitOffset) in ChannelAccess() argument
777 , m_data ((deUint8*)data + (bitOffset / 8)) in ChannelAccess()
778 , m_bitOffset (bitOffset % 8) in ChannelAccess()
788 const deInt32 bitOffset (m_bitOffset + tcu::dot(m_bitPitch, pos)); in getChannelUint() local
789 const deUint8* const firstByte = ((const deUint8*)m_data) + (bitOffset / 8); in getChannelUint()
790 const deUint32 byteCount = divRoundUp((bitOffset + m_channelSize) - 8u * (bitOffset / 8u), 8u); in getChannelUint()
792 const deUint32 offset = bitOffset % 8; in getChannelUint()
806 const deInt32 bitOffset (m_bitOffset + tcu::dot(m_bitPitch, pos)); in setChannel() local
807 deUint8* const firstByte = ((deUint8*)m_data) + (bitOffset / 8); in setChannel()
808 const deUint32 byteCount = divRoundUp((bitOffset + m_channelSize) - 8u * (bitOffset / 8u), 8u); in setChannel()
[all …]
DvktYCbCrUtil.hpp145 deUint32 bitOffset);
/external/deqp/framework/delibs/debase/
DdeSha1.c139 const size_t bitOffset = (size_t)(8 * (4 - (1 + (stream->size % 4)))); in deSha1Stream_process() local
141 stream->data[(stream->size / 4) % 16] |= ((deUint32)data[bytesProcessed]) << (deUint32)bitOffset; in deSha1Stream_process()
/external/skqp/src/ports/
DSkFontHost_FreeType_common.cpp85 int bittst(const uint8_t data[], int bitOffset) { in bittst() argument
86 SkASSERT(bitOffset >= 0); in bittst()
87 int lowBit = data[bitOffset >> 3] >> (~bitOffset & 7); in bittst()
/external/clang/include/clang/CodeGen/
DSwiftCallingConv.h114 uint64_t bitOffset);
/external/swiftshader/src/Device/
DETC_Decoder.cpp593 int bitOffset = bitIndex & 7; in getIndex() local
594 int lsb = (pixelIndexLSB[1 - (bitIndex >> 3)] >> bitOffset) & 1; in getIndex()
595 int msb = (pixelIndexMSB[1 - (bitIndex >> 3)] >> bitOffset) & 1; in getIndex()
/external/swiftshader/src/Renderer/
DETC_Decoder.cpp596 int bitOffset = bitIndex & 7; in getIndex() local
597 int lsb = (pixelIndexLSB[1 - (bitIndex >> 3)] >> bitOffset) & 1; in getIndex()
598 int msb = (pixelIndexMSB[1 - (bitIndex >> 3)] >> bitOffset) & 1; in getIndex()
/external/deqp/external/vulkancts/modules/vulkan/texture/
DvktSampleVerifierUtil.cpp752 const int bitOffset, in unpackBits() argument
755 DE_ASSERT(bitOffset + numBits <= 8 * (int) sizeof(BaseType)); in unpackBits()
759 return mask & (pack >> (BaseType) (8 * (int) sizeof(BaseType) - bitOffset - numBits)); in unpackBits()
/external/llvm-project/clang/include/clang/CodeGen/
DSwiftCallingConv.h112 uint64_t bitOffset);
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmTypeTests.cpp1142 T bitOffset = static_cast<T>(0); in combine() local
1167 bitOffset = static_cast<T>(m_rnd.getUint32() & (m_typeSize - 1u)); in combine()
1172 if ((deUint32)(bitOffset + bitCount) > m_typeSize) in combine()
1173 bitCount = static_cast<T>(m_typeSize - bitOffset); in combine()
1176 inputs1.push_back(bitOffset); in combine()
1178 outputs.push_back(operation(data[elemNdx1], bitOffset, bitCount)); in combine()
1253 T bitOffset = static_cast<T>(0); in combine() local
1280 bitOffset = static_cast<T>(m_rnd.getUint32() & (m_typeSize - 1u)); in combine()
1285 if ((deUint32)(bitOffset + bitCount) > m_typeSize) in combine()
1286 bitCount -= bitOffset + bitCount - static_cast<T>(m_typeSize); in combine()
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
DE_B_D_T_.py499 bitOffset = row * rowBits
500 return (bitOffset, bitOffset+rowBits)
/external/skia/src/ports/
DSkFontHost_FreeType_common.cpp97 int bittst(const uint8_t data[], int bitOffset) { in bittst() argument
98 SkASSERT(bitOffset >= 0); in bittst()
99 int lowBit = data[bitOffset >> 3] >> (~bitOffset & 7); in bittst()

12