Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/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()
/third_party/skia/third_party/externals/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()
/third_party/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 …]
/third_party/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 …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ycbcr/
DvktYCbCrUtil.cpp804 deUint32 bitOffset) in ChannelAccess() argument
809 , m_data ((deUint8*)data + (bitOffset / 8)) in ChannelAccess()
810 , m_bitOffset (bitOffset % 8) in ChannelAccess()
820 const deInt32 bitOffset (m_bitOffset + tcu::dot(m_bitPitch, pos)); in getChannelUint() local
821 const deUint8* const firstByte = ((const deUint8*)m_data) + (bitOffset / 8); in getChannelUint()
822 const deUint32 byteCount = divRoundUp((bitOffset + m_channelSize) - 8u * (bitOffset / 8u), 8u); in getChannelUint()
824 const deUint32 offset = bitOffset % 8; in getChannelUint()
838 const deInt32 bitOffset (m_bitOffset + tcu::dot(m_bitPitch, pos)); in setChannel() local
839 deUint8* const firstByte = ((deUint8*)m_data) + (bitOffset / 8); in setChannel()
840 const deUint32 byteCount = divRoundUp((bitOffset + m_channelSize) - 8u * (bitOffset / 8u), 8u); in setChannel()
[all …]
DvktYCbCrUtil.hpp146 deUint32 bitOffset);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrUtil.cpp804 deUint32 bitOffset) in ChannelAccess() argument
809 , m_data ((deUint8*)data + (bitOffset / 8)) in ChannelAccess()
810 , m_bitOffset (bitOffset % 8) in ChannelAccess()
820 const deInt32 bitOffset (m_bitOffset + tcu::dot(m_bitPitch, pos)); in getChannelUint() local
821 const deUint8* const firstByte = ((const deUint8*)m_data) + (bitOffset / 8); in getChannelUint()
822 const deUint32 byteCount = divRoundUp((bitOffset + m_channelSize) - 8u * (bitOffset / 8u), 8u); in getChannelUint()
824 const deUint32 offset = bitOffset % 8; in getChannelUint()
838 const deInt32 bitOffset (m_bitOffset + tcu::dot(m_bitPitch, pos)); in setChannel() local
839 deUint8* const firstByte = ((deUint8*)m_data) + (bitOffset / 8); in setChannel()
840 const deUint32 byteCount = divRoundUp((bitOffset + m_channelSize) - 8u * (bitOffset / 8u), 8u); in setChannel()
[all …]
DvktYCbCrUtil.hpp146 deUint32 bitOffset);
/third_party/vk-gl-cts/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()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/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()
/third_party/vk-gl-cts/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()
/third_party/skia/third_party/externals/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()
/third_party/skia/third_party/externals/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()
/third_party/vk-gl-cts/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 …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/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 …]
/third_party/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()
/third_party/lz4/lib/
Dlz4hc.c196 U32 bitOffset = (sizeof(pattern)*8) - 8; in LZ4HC_countPattern() local
198 BYTE const byte = (BYTE)(pattern >> bitOffset); in LZ4HC_countPattern()
200 ip ++; bitOffset -= 8; in LZ4HC_countPattern()
/third_party/skia/third_party/externals/angle2/src/image_util/
Dloadimage_etc.cpp677 size_t bitOffset = bitIndex & 7; in getIndex() local
678 size_t lsb = (u.idht.pixelIndexLSB[1 - (bitIndex >> 3)] >> bitOffset) & 1; in getIndex()
679 size_t msb = (u.idht.pixelIndexMSB[1 - (bitIndex >> 3)] >> bitOffset) & 1; in getIndex()
/third_party/mesa3d/src/gallium/drivers/svga/include/
Dsvga3d_surfacedefs.h361 SVGA3dChannelDef bitOffset; member
/third_party/mesa3d/src/gtest/src/
Dgtest.cc2945 int bitOffset = 0; in GetBitOffset() local
2948 ++bitOffset; in GetBitOffset()
2950 return bitOffset; in GetBitOffset()
/third_party/node/deps/googletest/src/
Dgtest.cc3190 int bitOffset = 0; in GetBitOffset() local
3193 ++bitOffset; in GetBitOffset()
3195 return bitOffset; in GetBitOffset()

12