Lines Matching refs:bits

99         ABitReader *bits, unsigned *audioObjectType) {
100 *audioObjectType = bits->getBits(5);
102 *audioObjectType = 32 + bits->getBits(6);
109 ABitReader *bits,
111 unsigned frameLengthFlag = bits->getBits(1);
112 unsigned dependsOnCoreCoder = bits->getBits(1);
114 /* unsigned coreCoderDelay = */bits->getBits(1);
116 unsigned extensionFlag = bits->getBits(1);
124 /* unsigned layerNr = */bits->getBits(3);
129 /* unsigned numOfSubFrame = */bits->getBits(5);
130 /* unsigned layerLength = */bits->getBits(11);
133 /* unsigned aacSectionDataResilienceFlag = */bits->getBits(1);
134 /* unsigned aacScalefactorDataResilienceFlag = */bits->getBits(1);
135 /* unsigned aacSpectralDataResilienceFlag = */bits->getBits(1);
138 unsigned extensionFlag3 = bits->getBits(1);
145 static status_t parseAudioSpecificConfig(ABitReader *bits, sp<ABuffer> *asc) {
146 const uint8_t *dataStart = bits->data();
147 size_t totalNumBits = bits->numBitsLeft();
150 CHECK_EQ(parseAudioObjectType(bits, &audioObjectType), (status_t)OK);
152 unsigned samplingFreqIndex = bits->getBits(4);
154 /* unsigned samplingFrequency = */bits->getBits(24);
157 unsigned channelConfiguration = bits->getBits(4);
165 unsigned extensionSamplingFreqIndex = bits->getBits(4);
167 /* unsigned extensionSamplingFrequency = */bits->getBits(24);
169 CHECK_EQ(parseAudioObjectType(bits, &audioObjectType), (status_t)OK);
178 bits, audioObjectType, channelConfiguration), (status_t)OK);
182 unsigned epConfig = bits->getBits(2);
188 unsigned directMapping = bits->getBits(1);
194 if (extensionAudioObjectType != 5 && bits->numBitsLeft() >= 16) {
195 size_t numBitsLeftAtStart = bits->numBitsLeft();
197 unsigned syncExtensionType = bits->getBits(11);
201 CHECK_EQ(parseAudioObjectType(bits, &extensionAudioObjectType),
204 sbrPresent = bits->getBits(1);
207 unsigned extensionSamplingFreqIndex = bits->getBits(4);
209 /* unsigned extensionSamplingFrequency = */bits->getBits(24);
214 numBitsLeftAtStart - bits->numBitsLeft();
218 // multiple of 8 bits long.
220 ALOGI("Skipping %d bits after sync extension",
223 bits->skipBits(8 - (numBitsInExtension & 7));
226 bits->putBits(syncExtensionType, 11);
235 totalNumBits -= bits->numBitsLeft();
256 ABitReader *bits,
262 unsigned audioMuxVersion = bits->getBits(1);
266 audioMuxVersionA = bits->getBits(1);
276 unsigned allStreamsSameTimeFraming = bits->getBits(1);
279 *numSubFrames = bits->getBits(6);
280 unsigned numProgram = bits->getBits(4);
283 unsigned numLayer = bits->getBits(3);
288 CHECK_EQ(parseAudioSpecificConfig(bits, NULL /* asc */), (status_t)OK);
293 *frameLengthType = bits->getBits(3);
299 /* unsigned bufferFullness = */bits->getBits(8);
308 *fixedFrameLength = bits->getBits(9);
321 /* unsigned CELPframeLengthTableIndex = */bits->getBits(6);
328 /* unsigned HVXCframeLengthTableIndex = */bits->getBits(1);
336 *otherDataPresent = bits->getBits(1);
347 otherDataLenEsc = bits->getBits(1);
348 unsigned otherDataLenTmp = bits->getBits(8);
354 unsigned crcCheckPresent = bits->getBits(1);
356 /* unsigned crcCheckSum = */bits->getBits(8);
455 ABitReader bits(config->data(), config->size());
457 &bits, &mNumSubFrames, &mFrameLengthType,