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