Lines Matching refs:mAggregateBuffer
143 if (mAggregateBuffer != NULL) { in dequeueAccessUnit()
163 aggregate = mAggregateBuffer; in aggregateBuffer()
164 mAggregateBuffer.clear(); in aggregateBuffer()
169 if ((mAggregateBuffer == NULL) in aggregateBuffer()
173 mAggregateBuffer = new ABuffer(kAggregateBufferSizeBytes); in aggregateBuffer()
174 mAggregateBuffer->setRange(0, 0); // start empty in aggregateBuffer()
177 if (mAggregateBuffer != NULL) { in aggregateBuffer()
181 bool bigTimestampValid = mAggregateBuffer->meta()->findInt64("timeUs", &dummy); in aggregateBuffer()
183 size_t bigSize = mAggregateBuffer->size(); in aggregateBuffer()
184 size_t roomLeft = mAggregateBuffer->capacity() - bigSize; in aggregateBuffer()
192 aggregate = mAggregateBuffer; in aggregateBuffer()
193 mAggregateBuffer.clear(); in aggregateBuffer()
197 mAggregateBuffer->meta()->setInt64("timeUs", timeUs); in aggregateBuffer()
200 memcpy(mAggregateBuffer->base() + bigSize, accessUnit->data(), smallSize); in aggregateBuffer()
202 mAggregateBuffer->setRange(0, bigSize); in aggregateBuffer()
205 smallSize, bigSize, mAggregateBuffer->capacity()); in aggregateBuffer()
379 mAggregateBuffer.clear(); in doFlush()