Lines Matching refs:accessUnit
128 status_t NuPlayer2::DecoderPassThrough::dequeueAccessUnit(sp<ABuffer> *accessUnit) { in dequeueAccessUnit() argument
133 *accessUnit = mPendingAudioAccessUnit; in dequeueAccessUnit()
138 err = mSource->dequeueAccessUnit(true /* audio */, accessUnit); in dequeueAccessUnit()
145 mPendingAudioAccessUnit = *accessUnit; in dequeueAccessUnit()
146 (*accessUnit).clear(); in dequeueAccessUnit()
156 const sp<ABuffer> &accessUnit) { in aggregateBuffer() argument
159 if (accessUnit == NULL) { in aggregateBuffer()
167 size_t smallSize = accessUnit->size(); in aggregateBuffer()
179 bool smallTimestampValid = accessUnit->meta()->findInt64("timeUs", &timeUs); in aggregateBuffer()
190 mPendingAudioAccessUnit = accessUnit; in aggregateBuffer()
199 memcpy(mAggregateBuffer->base() + bigSize, accessUnit->data(), smallSize); in aggregateBuffer()
208 aggregate = accessUnit; in aggregateBuffer()
215 sp<ABuffer> accessUnit; in fetchInputData() local
218 status_t err = dequeueAccessUnit(&accessUnit); in fetchInputData()
222 accessUnit = aggregateBuffer(NULL /* accessUnit */); in fetchInputData()
223 if (accessUnit != NULL) { in fetchInputData()
230 CHECK(accessUnit->meta()->findInt32("discontinuity", &type)); in fetchInputData()
266 accessUnit = aggregateBuffer(accessUnit); in fetchInputData()
267 } while (accessUnit == NULL); in fetchInputData()
271 CHECK(accessUnit->meta()->findInt64("timeUs", &mediaTimeUs)); in fetchInputData()
276 reply->setBuffer("buffer", accessUnit); in fetchInputData()