Home
last modified time | relevance | path

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

12

/external/skia/src/utils/
DSkTextureCompressor_ASTC.cpp349 const int nBits = to - from; in read_astc_bits() local
350 if (0 == nBits) { in read_astc_bits()
354 if (nBits < 0 || 64 <= nBits) { in read_astc_bits()
363 result = (block.fLow >> from) & ((1ULL << nBits) - 1); in read_astc_bits()
366 result = (block.fHigh >> (from - 64)) & ((1ULL << nBits) - 1); in read_astc_bits()
369 SkASSERT(nBits > (64 - from)); in read_astc_bits()
371 const int nHigh = nBits - nLow; in read_astc_bits()
549 static void decode_trit_block(int* dst, int nBits, const uint64_t &block) { in decode_trit_block() argument
593 if (0 == nBits) { in decode_trit_block()
596 SkASSERT(nBits < 8); in decode_trit_block()
[all …]
/external/libopus/silk/float/
Dencode_frame_FLP.c92 opus_int32 seed_copy, nBits, nBits_lower, nBits_upper, gainMult_lower, gainMult_upper; in silk_encode_frame_FLP() local
175 nBits = nBits_lower; in silk_encode_frame_FLP()
177 nBits = nBits_upper; in silk_encode_frame_FLP()
204 nBits = ec_tell( psRangeEnc ); in silk_encode_frame_FLP()
206 if( useCBR == 0 && iter == 0 && nBits <= maxBits ) { in silk_encode_frame_FLP()
212 if( found_lower && ( gainsID == gainsID_lower || nBits > maxBits ) ) { in silk_encode_frame_FLP()
223 if( nBits > maxBits ) { in silk_encode_frame_FLP()
231 nBits_upper = nBits; in silk_encode_frame_FLP()
235 } else if( nBits < maxBits - 5 ) { in silk_encode_frame_FLP()
237 nBits_lower = nBits; in silk_encode_frame_FLP()
[all …]
/external/libopus/silk/fixed/
Dencode_frame_FIX.c91 opus_int32 seed_copy, nBits, nBits_lower, nBits_upper, gainMult_lower, gainMult_upper; in silk_encode_frame_FIX() local
180 nBits = nBits_lower; in silk_encode_frame_FIX()
182 nBits = nBits_upper; in silk_encode_frame_FIX()
217 nBits = ec_tell( psRangeEnc ); in silk_encode_frame_FIX()
219 if( useCBR == 0 && iter == 0 && nBits <= maxBits ) { in silk_encode_frame_FIX()
225 if( found_lower && ( gainsID == gainsID_lower || nBits > maxBits ) ) { in silk_encode_frame_FIX()
236 if( nBits > maxBits ) { in silk_encode_frame_FIX()
244 nBits_upper = nBits; in silk_encode_frame_FIX()
248 } else if( nBits < maxBits - 5 ) { in silk_encode_frame_FIX()
250 nBits_lower = nBits; in silk_encode_frame_FIX()
[all …]
/external/v8/test/mjsunit/regress/
Dregress-2499.js30 function foo(word, nBits) { argument
31 return (word[1] >>> nBits) | (word[0] << (32 - nBits));
/external/opencv3/3rdparty/openexr/IlmImf/
DImfHuf.cpp160 outputBits (int nBits, Int64 bits, Int64 &c, int &lc, char *&out) in outputBits() argument
162 c <<= nBits; in outputBits()
163 lc += nBits; in outputBits()
173 getBits (int nBits, Int64 &c, int &lc, const char *&in) in getBits() argument
175 while (lc < nBits) in getBits()
181 lc -= nBits; in getBits()
182 return (c >> lc) & ((1 << nBits) - 1); in getBits()
1024 int nBits = hufEncode (freq, raw, nRaw, iM, dataStart); in hufCompress() local
1025 int dataLength = (nBits + 7) / 8; in hufCompress()
1030 writeUInt (compressed + 12, nBits); in hufCompress()
[all …]
/external/mesa3d/src/gallium/drivers/nv50/codegen/
Dnv50_ir_util.cpp242 bool BitSet::resize(unsigned int nBits) in resize() argument
244 if (!data || !nBits) in resize()
245 return allocate(nBits, true); in resize()
247 const unsigned int n = (nBits + 31) / 32; in resize()
259 size = nBits; in resize()
263 bool BitSet::allocate(unsigned int nBits, bool zero) in allocate() argument
265 if (data && size < nBits) { in allocate()
269 size = nBits; in allocate()
277 if (nBits) in allocate()
Dnv50_ir_util.h477 BitSet(unsigned int nBits, bool zero) : marker(false), data(0), size(0) in BitSet() argument
479 allocate(nBits, zero); in BitSet()
487 bool allocate(unsigned int nBits, bool zero);
488 bool resize(unsigned int nBits); // keep old data, zero additional bits
/external/pdfium/core/src/fxcodec/jbig2/
DJBig2_HuffmanDecoder.cpp20 int nBits = 0; in decodeAValue() local
27 ++nBits; in decodeAValue()
29 if (pTable->GetPREFLEN()[i] == nBits && pTable->GetCODES()[i] == nVal) { in decodeAValue()
DJBig2_GrrdProc.cpp160 int32_t k, nBits; in decode_Template0_opt() local
197 nBits = GRW - w > 8 ? 8 : GRW - w; in decode_Template0_opt()
222 for (k = 0; k < nBits; k++) { in decode_Template0_opt()
237 nBits = GRW - w > 8 ? 8 : GRW - w; in decode_Template0_opt()
256 for (k = 0; k < nBits; k++) { in decode_Template0_opt()
398 int32_t k, nBits; in decode_Template1_opt() local
435 nBits = GRW - w > 8 ? 8 : GRW - w; in decode_Template1_opt()
454 for (k = 0; k < nBits; k++) { in decode_Template1_opt()
469 nBits = GRW - w > 8 ? 8 : GRW - w; in decode_Template1_opt()
488 for (k = 0; k < nBits; k++) { in decode_Template1_opt()
DJBig2_BitStream.h20 int32_t readNBits(FX_DWORD nBits, FX_DWORD* dwResult);
21 int32_t readNBits(FX_DWORD nBits, int32_t* nResult);
DJBig2_TrdProc.cpp31 int32_t nVal, nBits; in decode_Huffman() local
81 nBits = 0; in decode_Huffman()
88 nBits++; in decode_Huffman()
90 if ((nBits == SBSYMCODES[IDI].codelen) && in decode_Huffman()
DJBig2_SddProc.cpp305 int32_t nVal, nBits; in decode_Huffman() local
462 nBits = 0; in decode_Huffman()
471 (nBits == SBSYMCODES[IDI].codelen)) { in decode_Huffman()
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
DLongMath.java229 int nBits = LongMath.log2(n, RoundingMode.CEILING); in binomial() local
235 int numeratorBits = nBits; in binomial()
244 if (numeratorBits + nBits < Long.SIZE - 1) { in binomial()
248 numeratorBits += nBits; in binomial()
255 numeratorBits = nBits; in binomial()
/external/aac/libSYS/src/
Dwav_file.cpp259 INT WAV_InputRead (HANDLE_WAV wav, void *buffer, UINT numSamples, int nBits) in WAV_InputRead() argument
270 if (nBits == wav->header.bitsPerSample) { in WAV_InputRead()
285 if (wav->header.bitsPerSample > nBits) in WAV_InputRead()
286 tmp >>= (wav->header.bitsPerSample-nBits); in WAV_InputRead()
288 tmp <<= (nBits-wav->header.bitsPerSample); in WAV_InputRead()
290 if (nBits == 8) in WAV_InputRead()
292 if (nBits == 16) in WAV_InputRead()
294 if (nBits == 32) in WAV_InputRead()
/external/aac/libSBRdec/src/
Dsbr_crc.cpp101 calcCRC (HANDLE_CRC hCrcBuf, ULONG bValue, int nBits) in calcCRC() argument
104 ULONG bMask = (1UL << (nBits - 1)); in calcCRC()
106 for (i = 0; i < nBits; i++, bMask >>= 1) { in calcCRC()
/external/aac/libFDK/src/
DFDK_crc.cpp183 INT nBits
325 INT nBits in calcCrc_Bits() argument
332 for (i = 0; (i < nBits); i++) { in calcCrc_Bits()
341 for (i = 0; (i < nBits); i++) { in calcCrc_Bits()
351 return nBits; in calcCrc_Bits()
DFDK_bitbuffer.cpp206 int nBits = (INT)hBitBuf->bufBits-(INT)hBitBuf->BitNdx; in FDK_get32() local
208 UINT cache = FDK_get (hBitBuf,nBits)<< (32-nBits); in FDK_get32()
209 cache |= (FDK_get (hBitBuf,32-nBits)); in FDK_get32()
/external/fonttools/Lib/fontTools/ttLib/tables/
DotConverters.py324 nBits = 1 << DeltaFormat
325 minusOffset = 1 << nBits
326 mask = (1 << nBits) - 1
327 signMask = 1 << (nBits - 1)
334 shift = shift - nBits
348 nBits = 1 << DeltaFormat
350 mask = (1 << nBits) - 1
354 shift = shift - nBits
/external/aac/libAACdec/src/
Daacdecoder_lib.cpp745 …r_UpdateBitStreamCounters(CStreamInfo *pSi, HANDLE_FDK_BITSTREAM hBs, int nBits, AAC_DECODER_ERROR… in aacDecoder_UpdateBitStreamCounters() argument
748 nBits = nBits - FDKgetValidBits(hBs); in aacDecoder_UpdateBitStreamCounters()
759 pSi->bitRate = (nBits * pSi->sampleRate)/pSi->frameSize; in aacDecoder_UpdateBitStreamCounters()
766 nBytes = nBits>>3; in aacDecoder_UpdateBitStreamCounters()
795 INT nBits; in aacDecoder_DecodeFrame() local
818 nBits = FDKgetValidBits(hBs); in aacDecoder_DecodeFrame()
1060 aacDecoder_UpdateBitStreamCounters(&self->streamInfo, hBs, nBits, ErrorStatus); in aacDecoder_DecodeFrame()
/external/guava/guava/src/com/google/common/math/
DLongMath.java674 int nBits = LongMath.log2(n, RoundingMode.CEILING);
680 int numeratorBits = nBits;
689 if (numeratorBits + nBits < Long.SIZE - 1) {
693 numeratorBits += nBits;
700 numeratorBits = nBits;
/external/pdfium/core/src/fxcrt/
Dfx_basic_buffer.cpp352 FX_DWORD CFX_BitStream::GetBits(FX_DWORD nBits) { in GetBits() argument
353 if (nBits > m_BitSize || m_BitPos + nBits > m_BitSize) { in GetBits()
356 if (nBits == 1) { in GetBits()
362 FX_DWORD bit_pos = m_BitPos % 8, bit_left = nBits; in GetBits()
381 m_BitPos += nBits; in GetBits()
/external/libopus/silk/
Denc_API.c150 opus_int n, i, nBits, flags, tmp_payloadSize_ms = 0, tmp_complexity = 0, ret = 0; in silk_Encode() local
384nBits = silk_DIV32_16( silk_MUL( encControl->bitRate, encControl->payloadSize_ms ), 1000 ); in silk_Encode()
387 nBits -= ec_tell( psRangeEnc ) >> 1; in silk_Encode()
390nBits = silk_DIV32_16( nBits, psEnc->state_Fxx[ 0 ].sCmn.nFramesPerPacket - psEnc->state_Fxx[ 0 ].… in silk_Encode()
393 TargetRate_bps = silk_SMULBB( nBits, 100 ); in silk_Encode()
395 TargetRate_bps = silk_SMULBB( nBits, 50 ); in silk_Encode()
/external/valgrind/memcheck/
Dmc_main.c1202 Addr a, SizeT nBits, Bool bigendian ) in mc_LOADV_128_or_256_slow() argument
1205 SSizeT szB = nBits / 8; in mc_LOADV_128_or_256_slow()
1318 ULong mc_LOADVn_slow ( Addr a, SizeT nBits, Bool bigendian ) in mc_LOADVn_slow() argument
1331 && nBits == 64 && VG_IS_8_ALIGNED(a))) { in mc_LOADVn_slow()
1342 && nBits == 32 && VG_IS_4_ALIGNED(a))) { in mc_LOADVn_slow()
1356 SSizeT szB = nBits / 8; in mc_LOADVn_slow()
1363 tl_assert(nBits == 64 || nBits == 32 || nBits == 16 || nBits == 8); in mc_LOADVn_slow()
1443 && VG_IS_4_ALIGNED(a) && nBits == 32 && n_addrs_bad < 4) { in mc_LOADVn_slow()
1464 void mc_STOREVn_slow ( Addr a, SizeT nBits, ULong vbytes, Bool bigendian ) in mc_STOREVn_slow() argument
1466 SizeT szB = nBits / 8; in mc_STOREVn_slow()
[all …]
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRBitSet.m251 - (void) setSize:(NSUInteger) nBits
253 CFBitVectorSetCount( bitVector, nBits );
/external/pdfium/core/include/fxcrt/
Dfx_basic.h911 FX_DWORD GetBits(FX_DWORD nBits);
917 void SkipBits(FX_DWORD nBits) { m_BitPos += nBits; } in SkipBits() argument

12