Home
last modified time | relevance | path

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

12

/external/pdfium/core/src/fxcodec/jbig2/
DJBig2_HuffmanDecoder.cpp17 int nVal, nTmp, i, nBits; in decodeAValue() local
19 nBits = 0; in decodeAValue()
25 nBits ++; in decodeAValue()
27 if((pTable->PREFLEN[i] == nBits) && (pTable->CODES[i] == nVal)) { in decodeAValue()
DJBig2_BitStream.h20 FX_INT32 readNBits(FX_DWORD nBits, FX_DWORD *dwResult);
22 FX_INT32 readNBits(FX_DWORD nBits, FX_INT32 *nResult);
DJBig2_GeneralDecoder.cpp102 FX_INT32 nBits, k; in decode_Arith_Template0_opt2() local
126 nBits = 8; in decode_Arith_Template0_opt2()
134 nBits = GBW - w; in decode_Arith_Template0_opt2()
143 for(k = 0; k < nBits; k++) { in decode_Arith_Template0_opt2()
353 FX_INT32 nBits, k; in decode_Arith_Template1_opt2() local
377 nBits = 8; in decode_Arith_Template1_opt2()
385 nBits = GBW - w; in decode_Arith_Template1_opt2()
394 for(k = 0; k < nBits; k++) { in decode_Arith_Template1_opt2()
599 FX_INT32 nBits, k; in decode_Arith_Template2_opt2() local
623 nBits = 8; in decode_Arith_Template2_opt2()
[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/chromium_org/third_party/opus/src/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/chromium_org/v8/test/mjsunit/regress/
Dregress-2499.js30 function foo(word, nBits) { argument
31 return (word[1] >>> nBits) | (word[0] << (32 - nBits));
/external/chromium_org/third_party/opus/src/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/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/chromium_org/third_party/mesa/src/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/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/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-1.0/
Dcrypto-aes.js164 function AESEncryptCtr(plaintext, password, nBits) { argument
165 if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys
169 var nBytes = nBits/8; // no bytes in key
230 function AESDecryptCtr(ciphertext, password, nBits) { argument
231 if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys
233 var nBytes = nBits/8; // no bytes in key
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9/
Dcrypto-aes.js164 function AESEncryptCtr(plaintext, password, nBits) { argument
165 if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys
169 var nBytes = nBits/8; // no bytes in key
230 function AESDecryptCtr(ciphertext, password, nBits) { argument
231 if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys
233 var nBytes = nBits/8; // no bytes in key
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/
Dcrypto-aes.js164 function AESEncryptCtr(plaintext, password, nBits) { argument
165 if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys
169 var nBytes = nBits/8; // no bytes in key
230 function AESDecryptCtr(ciphertext, password, nBits) { argument
231 if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys
233 var nBytes = nBits/8; // no bytes in key
/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.cpp739 …r_UpdateBitStreamCounters(CStreamInfo *pSi, HANDLE_FDK_BITSTREAM hBs, int nBits, AAC_DECODER_ERROR… in aacDecoder_UpdateBitStreamCounters() argument
742 nBits = nBits - FDKgetValidBits(hBs); in aacDecoder_UpdateBitStreamCounters()
753 pSi->bitRate = (nBits * pSi->sampleRate)/pSi->frameSize; in aacDecoder_UpdateBitStreamCounters()
760 nBytes = nBits>>3; in aacDecoder_UpdateBitStreamCounters()
789 INT nBits; in aacDecoder_DecodeFrame() local
807 nBits = FDKgetValidBits(hBs); in aacDecoder_DecodeFrame()
1047 aacDecoder_UpdateBitStreamCounters(&self->streamInfo, hBs, nBits, ErrorStatus); in aacDecoder_DecodeFrame()
/external/pdfium/core/src/fxcrt/
Dfx_basic_buffer.cpp410 FX_DWORD CFX_BitStream::GetBits(FX_DWORD nBits) in GetBits() argument
412 if (nBits > m_BitSize || m_BitPos + nBits > m_BitSize) { in GetBits()
415 if (nBits == 1) { in GetBits()
421 FX_DWORD bit_pos = m_BitPos % 8, bit_left = nBits; in GetBits()
439 m_BitPos += nBits; in GetBits()
/external/chromium_org/third_party/opus/src/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/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/main/memcheck/
Dmc_main.c1201 Addr a, SizeT nBits, Bool bigendian ) in mc_LOADV_128_or_256_slow() argument
1204 SSizeT szB = nBits / 8; in mc_LOADV_128_or_256_slow()
1314 ULong mc_LOADVn_slow ( Addr a, SizeT nBits, Bool bigendian ) in mc_LOADVn_slow() argument
1327 && nBits == 64 && VG_IS_8_ALIGNED(a))) { in mc_LOADVn_slow()
1338 && nBits == 32 && VG_IS_4_ALIGNED(a))) { in mc_LOADVn_slow()
1352 SSizeT szB = nBits / 8; in mc_LOADVn_slow()
1359 tl_assert(nBits == 64 || nBits == 32 || nBits == 16 || nBits == 8); in mc_LOADVn_slow()
1439 && VG_IS_4_ALIGNED(a) && nBits == 32 && n_addrs_bad < 4) { in mc_LOADVn_slow()
1460 void mc_STOREVn_slow ( Addr a, SizeT nBits, ULong vbytes, Bool bigendian ) in mc_STOREVn_slow() argument
1462 SizeT szB = nBits / 8; in mc_STOREVn_slow()
[all …]

12