Home
last modified time | relevance | path

Searched refs:numSamples (Results 1 – 7 of 7) sorted by relevance

/hardware/google/av/media/codecs/aac/
DC2SoftAacDec.cpp359 bool C2SoftAacDec::outputDelayRingBufferPutSamples(INT_PCM *samples, int32_t numSamples) { in outputDelayRingBufferPutSamples() argument
360 if (numSamples == 0) { in outputDelayRingBufferPutSamples()
363 if (outputDelayRingBufferSpaceLeft() < numSamples) { in outputDelayRingBufferPutSamples()
367 if (mOutputDelayRingBufferWritePos + numSamples <= mOutputDelayRingBufferSize in outputDelayRingBufferPutSamples()
369 … || mOutputDelayRingBufferReadPos > mOutputDelayRingBufferWritePos + numSamples)) { in outputDelayRingBufferPutSamples()
371 for (int32_t i = 0; i < numSamples; i++) { in outputDelayRingBufferPutSamples()
381 for (int32_t i = 0; i < numSamples; i++) { in outputDelayRingBufferPutSamples()
389 mOutputDelayRingBufferFilled += numSamples; in outputDelayRingBufferPutSamples()
393 int32_t C2SoftAacDec::outputDelayRingBufferGetSamples(INT_PCM *samples, int32_t numSamples) { in outputDelayRingBufferGetSamples() argument
395 if (numSamples > mOutputDelayRingBufferFilled) { in outputDelayRingBufferGetSamples()
[all …]
DC2SoftAacDec.h99 bool outputDelayRingBufferPutSamples(INT_PCM *samples, int numSamples);
100 int32_t outputDelayRingBufferGetSamples(INT_PCM *samples, int numSamples);
/hardware/google/av/media/codecs/opus/
DC2SoftOpusDec.cpp454 int numSamples = opus_multistream_decode(mDecoder, in process() local
460 if (numSamples < 0) { in process()
461 ALOGE("opus_multistream_decode returned numSamples %d", numSamples); in process()
462 numSamples = 0; in process()
470 if (mSamplesToDiscard > numSamples) { in process()
471 mSamplesToDiscard -= numSamples; in process()
472 numSamples = 0; in process()
474 numSamples -= mSamplesToDiscard; in process()
480 if (numSamples) { in process()
481 int outSize = numSamples * sizeof(int16_t) * mHeader.channels; in process()
/hardware/interfaces/power/stats/1.0/
DIPowerStats.hal55 * SUCCESS is returned and numSamples are reported back according
88 * k = numSamples
90 * @return numSamples Number of samples which will be generated in timeMs.
97 generates(fmq_sync<EnergyData> mqDesc, uint32_t numSamples,
/hardware/interfaces/power/stats/1.0/default/
DPowerStats.cpp256 uint32_t numSamples = timeMs * sps / 1000; in streamEnergyData() local
263 std::thread pollThread = std::thread([this, sps, numSamples]() { in streamEnergyData()
266 while (currSamples < numSamples) { in streamEnergyData()
288 _hidl_cb(*(mPm.fmqSynchronized)->getDesc(), numSamples, mPm.reading.size(), Status::SUCCESS); in streamEnergyData()
/hardware/google/av/media/codecs/mp3/
DC2SoftMp3Dec.cpp291 uint32_t numSamples; in calculateOutSize() local
297 nullptr, &channels, nullptr, &numSamples)) { in calculateOutSize()
302 decodedSizes->push_back(numSamples * channels * sizeof(int16_t)); in calculateOutSize()
/hardware/interfaces/power/stats/1.0/vts/functional/
DVtsHalPowerStatsV1_0TargetTest.cpp512 const hardware::MQDescriptorSync<EnergyData>& in, uint32_t numSamples, in readEnergy()
516 totalSamples = numSamples; in readEnergy()