Lines Matching refs:mAggregateBuffer
147 if (mAggregateBuffer != NULL) { in dequeueAccessUnit()
167 aggregate = mAggregateBuffer; in aggregateBuffer()
168 mAggregateBuffer.clear(); in aggregateBuffer()
173 if ((mAggregateBuffer == NULL) in aggregateBuffer()
177 mAggregateBuffer = new ABuffer(kAggregateBufferSizeBytes); in aggregateBuffer()
178 mAggregateBuffer->setRange(0, 0); // start empty in aggregateBuffer()
181 if (mAggregateBuffer != NULL) { in aggregateBuffer()
185 bool bigTimestampValid = mAggregateBuffer->meta()->findInt64("timeUs", &dummy); in aggregateBuffer()
187 size_t bigSize = mAggregateBuffer->size(); in aggregateBuffer()
188 size_t roomLeft = mAggregateBuffer->capacity() - bigSize; in aggregateBuffer()
196 aggregate = mAggregateBuffer; in aggregateBuffer()
197 mAggregateBuffer.clear(); in aggregateBuffer()
201 mAggregateBuffer->meta()->setInt64("timeUs", timeUs); in aggregateBuffer()
204 memcpy(mAggregateBuffer->base() + bigSize, accessUnit->data(), smallSize); in aggregateBuffer()
206 mAggregateBuffer->setRange(0, bigSize); in aggregateBuffer()
209 smallSize, bigSize, mAggregateBuffer->capacity()); in aggregateBuffer()
378 mAggregateBuffer.clear(); in doFlush()