Lines Matching refs:accessUnit
129 status_t NuPlayer::DecoderPassThrough::dequeueAccessUnit(sp<ABuffer> *accessUnit) { in dequeueAccessUnit() argument
134 *accessUnit = mPendingAudioAccessUnit; in dequeueAccessUnit()
139 err = mSource->dequeueAccessUnit(true /* audio */, accessUnit); in dequeueAccessUnit()
146 mPendingAudioAccessUnit = *accessUnit; in dequeueAccessUnit()
147 (*accessUnit).clear(); in dequeueAccessUnit()
157 const sp<ABuffer> &accessUnit) { in aggregateBuffer() argument
160 if (accessUnit == NULL) { in aggregateBuffer()
168 size_t smallSize = accessUnit->size(); in aggregateBuffer()
180 bool smallTimestampValid = accessUnit->meta()->findInt64("timeUs", &timeUs); in aggregateBuffer()
191 mPendingAudioAccessUnit = accessUnit; in aggregateBuffer()
200 memcpy(mAggregateBuffer->base() + bigSize, accessUnit->data(), smallSize); in aggregateBuffer()
209 aggregate = accessUnit; in aggregateBuffer()
216 sp<ABuffer> accessUnit; in fetchInputData() local
219 status_t err = dequeueAccessUnit(&accessUnit); in fetchInputData()
223 accessUnit = aggregateBuffer(NULL /* accessUnit */); in fetchInputData()
224 if (accessUnit != NULL) { in fetchInputData()
231 CHECK(accessUnit->meta()->findInt32("discontinuity", &type)); in fetchInputData()
267 accessUnit = aggregateBuffer(accessUnit); in fetchInputData()
268 } while (accessUnit == NULL); in fetchInputData()
272 CHECK(accessUnit->meta()->findInt64("timeUs", &mediaTimeUs)); in fetchInputData()
277 reply->setBuffer("buffer", accessUnit); in fetchInputData()