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