/external/aac/libAACdec/src/ |
H A D | block.cpp | 141 if (i - 16 > CACHE_BITS) { /* cannot read more than "CACHE_BITS" bits at once in the function FDKreadBits() */ 381 * \param lsb last 2 bits of the scale factor of the sfb. 545 int bits = hcb->numBits; local 546 int mask = (1<<bits)-1; 564 idx >>= bits; local
|
/external/aac/libAACenc/src/ |
H A D | adj_thr.cpp | 268 /* make use of advanced bits to pe factor table */ 340 description: convert from bits to pe 343 const INT bits, 348 return (INT)(fMult(factor_m, (FIXP_DBL)(bits<<Q_AVGBITS)) >> (Q_AVGBITS-factor_e)); 508 side channels to avoid spending unnoticable bits */ 2068 description: calculates factor of spending bits for one frame 2069 1.0 : take all frame dynpart bits 2070 >1.0 : take all frame dynpart bits + bitres 2071 <1.0 : put bits in bitreservoir 2310 /* init bits t 342 FDKaacEnc_bits2pe2( const INT bits, const FIXP_DBL factor_m, const INT factor_e ) argument [all...] |
H A D | dyn_bits.cpp | 118 /* count bits using all possible tables */ 258 /* Side-Info bits will be calculated in Stage 1! */ 299 /* we can merge. update tables, side info bits will be updated outside of this loop */ 307 /* add side info info bits */ 388 /* count bits used by the noiseless coder */ 432 /* count bits in this group */ 463 compress output, calculate total huff and side bits 485 /* sum up side info bits (section data bits) */ 497 description : count bits use 674 int i, bits=0; local [all...] |
/external/aac/libFDK/include/ |
H A D | FDK_bitstream.h | 199 * bits from the input bitstream. 202 * \param numberOfBits The number of bits to be retrieved. 203 * \return the requested bits, right aligned 215 UINT bits = hBitStream->CacheWord << missingBits; local 218 return ( bits | (hBitStream->CacheWord >> hBitStream->BitsInCache)) & BitMask[numberOfBits]; 259 * bits from the input bitstream. It is the optimized version 260 of FDKreadBits() for readign 2 bits. 263 * \return the requested bits, right aligned 281 * \brief ReadBits Function (backward). This function returns a number of sequential bits 285 * \param numberOfBits The number of bits t [all...] |
/external/aac/libFDK/src/ |
H A D | FDK_crc.cpp | 308 * \brief Calculate crc bits. 316 * \param nBits Number of processing bits. 318 * \return Number of processed bits. 364 * \return Number of processed bits. 401 * \return Number of processed bits. 422 int bits, rBits; local 423 rBits = (rD->maxBits>=0) ? rD->maxBits : -rD->maxBits; /* ramaining bits */ 425 bits = rD->bitBufCntBits; 428 bits = rBits; 431 int words = bits >> [all...] |
/external/aac/libMpegTPDec/src/ |
H A D | tpdec_lib.cpp | 321 needs a number 2^x. So we assume the maximum of 48 channels with 6144 bits per channel 398 /* For ELD and other payloads there is an unknown amount of padding, so ignore unread bits, but 399 throw an error only if too many bits where read. */ 451 * \param bitsAvail the amount of available bits at the end of the first frame to be decoded. 561 /* Reset CRC because the next bits are the beginning of a raw_data_block() */ 656 /* How many bits to advance for synchronization search. */ 677 INT syncLength; /* Length of sync word in bits */ 711 INT checkLengthBits; /* Helper to check remaining bits and buffer boundaries */ 795 int bits; local 801 bits 1126 INT bits; local [all...] |
/external/aac/libMpegTPEnc/src/ |
H A D | tpenc_adif.cpp | 160 int bits = 0; local 162 bits += 8*4; /* ADIF ID */ 164 bits += 1; /* Copyright present */ 167 bits += 72; /* Copyright ID */ 169 bits += 26; 171 bits += 4; /* Number of PCE's */ 174 bits += 20; 178 bits = transportEnc_GetPCEBits(adif->cm, 0, bits); 180 return bits; [all...] |
H A D | tpenc_adts.cpp | 101 int mBits /*!< number of bits in crc region */ 124 int bits = 0; local 127 /* Static and variable header bits */ 128 bits = 56; 130 /* Add header/ single raw data block CRC bits */ 131 bits += 16; 133 /* Add bits of raw data block position markers */ 134 bits += (hAdts->num_raw_blocks)*16; 139 /* Add raw data block CRC bits. Not really part of the header, put they cause bit overhead to be accounted. */ 140 bits [all...] |
H A D | tpenc_adts.h | 144 * \return Amount of additional bits required for the current raw data block 177 int *bits 182 * \brief Start CRC region with a maximum number of bits 184 * are less than mBits bits available. 187 * number of bits is not limited. 191 * \param mBits limit of number of bits to be considered for the requested CRC region
|
H A D | tpenc_asc.cpp | 308 int bits) 316 bits += 4 + 2 + 4; /* Element instance tag + Object type + Sample rate index */ 317 bits += 4 + 4 + 4 + 2; /* No (front + side + back + lfe channel) elements */ 318 bits += 3 + 4; /* No (assoc data + valid cc) elements */ 319 bits += 1 + 1 + 1 ; /* Mono + Stereo + Matrix mixdown present */ 322 bits +=3; /* matrix_mixdown_idx + pseudo_surround_enable */ 325 bits += (1+4) * (INT)config->num_front_channel_elements; 326 bits += (1+4) * (INT)config->num_side_channel_elements; 327 bits += (1+4) * (INT)config->num_back_channel_elements; 328 bits 306 transportEnc_GetPCEBits(CHANNEL_MODE channelMode, int matrixMixdownA, int bits) argument [all...] |
H A D | tpenc_asc.h | 133 * \return the amount of bits required for the PCE including the given bit offset. 138 int bits
|
H A D | tpenc_latm.cpp | 109 first two bits define the size of the value itself 342 UINT bits; local 348 bits = FDKgetValidBits( hBs ); 356 bits = FDKgetValidBits( hBs ) - bits; 359 FDKpushBack(hBs, bits+2); 360 hAss->streamMuxConfigBits += transportEnc_LatmWriteValue( hBs, bits ); 368 hAss->streamMuxConfigBits += bits; /* add asc length to smc summary */ 760 int *bits) 762 /* Substract bits fro 759 transportEnc_LatmAdjustSubframeBits(HANDLE_LATM_STREAM hAss, int *bits) argument [all...] |
H A D | tpenc_lib.cpp | 363 frameUsedBits += transportEnc_GetPCEBits(hTp->config.channelMode, hTp->config.matrixMixdownA, 3); /* Consider 3 bits ID signalling in alignment */ 418 /* Write PCE element ID bits */ 442 TRANSPORTENC_ERROR transportEnc_EndAccessUnit(HANDLE_TRANSPORTENC hTp, int *bits) argument 448 transportEnc_LatmAdjustSubframeBits(&hTp->writer.latm, bits); 451 adtsWrite_EndRawDataBlock(&hTp->writer.adts, &hTp->bitStream, bits); 454 /* Substract ADIF header from AU bits, not to be considered. */ 455 *bits -= adifWrite_GetHeaderBits(&hTp->writer.adif); 459 *bits -= hTp->writer.raw.prevBits; 509 nPceBits = transportEnc_GetPCEBits(hTp->config.channelMode, hTp->config.matrixMixdownA, 3); /* Consider 3 bits ID signalling in alignment */ 531 /* PCE is written in the transport library therefore the bit consumption is part of the transport static bits [all...] |
/external/aac/libSBRenc/src/ |
H A D | bit_sbr.cpp | 168 returns: number of bits written 215 returns: number of bits written 286 int bits; local 288 bits = encodeSbrHeaderData (&sbrEncoder->sbrElement[element_index]->sbrHeaderData, hBs); 303 returns: number of bits written 336 returns: number of bits written 396 returns: number of bits written 441 returns: number of bits written 455 payloadBits += FDKwriteBits (hBitStream, 0, SI_SBR_DATA_EXTRA_BITS); /* no reserved bits */ 510 payloadBits += FDKwriteBits (hBitStream, 0, SI_SBR_DATA_EXTRA_BITS); /* no reserved bits */ [all...] |
/external/antlr/antlr-3.4/lib/ |
H A D | antlr-3.4-complete.jar | META-INF/ META-INF/MANIFEST.MF org/ org/antlr/ org/antlr/analysis/ org/antlr/codegen/ org/ ... |
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
H A D | BitSet.as | 35 protected static const BITS:uint = 32; // number of bits / int 45 /** The actual data bits */ 46 protected var bits:Array; 49 public function BitSet(bits:Array = null) { 50 if (bits == null) { 51 this.bits = new Array(); 54 this.bits = new Array(); 55 for (var i:int = 0; i < bits.length; i++) { 56 this.bits[i] = bits[ [all...] |
/external/antlr/antlr-3.4/runtime/C/include/ |
H A D | antlr3bitset.h | 43 /** How many bits in the elements 47 /** How many bits in a nible of bits 71 /// Pointer to the allocated array of bits for this bit set, which 79 pANTLR3_BITWORD bits; member in struct:ANTLR3_BITSET_LIST_struct 89 /// The actual bits themselves
|
/external/antlr/antlr-3.4/runtime/C/src/ |
H A D | antlr3bitset.c | 65 if (bitset->blist.bits != NULL) 67 ANTLR3_FREE(bitset->blist.bits); 68 bitset->blist.bits = NULL; 98 // No we need to allocate the memory for the number of bits asked for 103 bitset->blist.bits = (pANTLR3_BITWORD) ANTLR3_MALLOC((size_t)(numelements * sizeof(ANTLR3_BITWORD))); 104 memset(bitset->blist.bits, 0, (size_t)(numelements * sizeof(ANTLR3_BITWORD))); 107 if (bitset->blist.bits == NULL) 168 bitset->blist.bits = (pANTLR3_BITWORD)ANTLR3_MALLOC((size_t)(numElements * sizeof(ANTLR3_BITWORD))); 170 if (bitset->blist.bits == NULL) 176 ANTLR3_MEMCPY(bitset->blist.bits, blis [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
H A D | BitSet.cs | 50 private const int BITS = 64; // number of bits / long 62 /** <summary>The actual data bits</summary> */ 65 /** <summary>Construct a bitset of size one word (64 bits)</summary> */ 71 public BitSet(ulong[] bits) { argument 72 _bits = bits; 83 * <param name="nbits">The size of the bitset in bits</param> 138 /** <summary>Grows the set to a larger number of bits.</summary> 204 // for any bits in common, compare 211 // make sure any extra bits are off 261 return _bits.Length << LOG_BITS; // num words * bits pe [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
H A D | BitSet.cs | 52 private const int BITS = 64; // number of bits / long 64 /** <summary>The actual data bits</summary> */ 67 /** <summary>Construct a bitset of size one word (64 bits)</summary> */ 75 public BitSet( ulong[] bits ) 77 _bits = bits; 89 * <param name="nbits">The size of the bitset in bits</param> 153 /** <summary>Grows the set to a larger number of bits.</summary> 235 // for any bits in common, compare 244 // make sure any extra bits are off 309 return _bits.Length << LOG_BITS; // num words * bits pe [all...] |
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime/ |
H A D | Antlr.Runtime.Tools.pas | 356 /// TLocalStorage can only store variables that are 32 bits in size, and
|
H A D | Antlr.Runtime.pas | 447 /// <summary> Grows the set to a larger number of bits.</summary> 461 /// <summary>return how much space is being used by the bits array not 462 /// how many actually have member bits on. 1723 BITS = 64; // number of bits / ulong 1733 /// <summary>The actual data bits </summary> 1758 /// <summary>Construct a bitset of size one word (64 bits) </summary> 1768 /// <param name="nbits">The size of the bitset in bits</param> 3500 // for any bits in common, compare 3507 // make sure any extra bits are off
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
H A D | BitSet.java | 37 protected final static int BITS = 64; // number of bits / long 47 /** The actual data bits */ 48 protected long bits[]; field in class:BitSet 50 /** Construct a bitset of size one word (64 bits) */ 57 bits = bits_; 70 * @param nbits The size of the bitset in bits 73 bits = new long[((nbits - 1) >> LOG_BITS) + 1]; 119 if (n >= bits.length) { 122 bits[n] |= bitMask(el); 126 * Grows the set to a larger number of bits [all...] |
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
H A D | BitSet.js | 10 * @param {Number|Array} [bits] a 32 bit number or array of 32 bit numbers 14 org.antlr.runtime.BitSet = function(bits) { 15 if (!bits) { 16 bits = org.antlr.runtime.BitSet.BITS; 19 if (org.antlr.lang.isArray(bits)) { 24 this.bits = bits; 25 } else if(org.antlr.lang.isNumber(bits)) { 26 this.bits = []; 32 * Number of bits i [all...] |
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/ |
H A D | BitSet.pm | 14 # number of bits / long 30 has 'bits' => ( 46 my $bits; 48 # Construct a bitset of size one word (64 bits) 49 $bits = '0' x BITS; 51 elsif (exists $args->{bits}) { 52 $bits = $args->{bits}; 55 $bits = reverse unpack('B*', pack('N', $args->{number})); 66 $bits [all...] |