Lines Matching refs:head

5084         TimedBuffer& head = mTimedBufferQueue.editItemAt(0);
5086 // calculate the PTS of the head of the timed buffer queue expressed in
5101 if (!mMediaTimeTransform.doForwardTransform(head.pts(),
5124 // adjust the head buffer's PTS to reflect the portion of the head buffer
5127 ((head.position() / mCblk->frameSize) * mLocalTimeFreq / sampleRate());
5129 // Calculate the delta in samples between the head of the input buffer
5136 ALOGV("*** head buffer is too far from PTS: dropped buffer");
5148 ALOGVV("*** getNextBuffer head.pts=%lld head.pos=%d pts=%lld"
5150 head.pts(), head.position(), pts,
5171 ALOGVV("*** on time: head.pos=%d frameCount=%u",
5172 head.position(), buffer->frameCount);
5192 head.position() + lateFrames * mCblk->frameSize;
5194 if (onTimeSamplePosition > head.buffer()->size()) {
5195 // all the remaining samples in the head are too late, so
5202 head.setPosition(onTimeSamplePosition);
5207 ALOGV("*** late: head.pos=%d frameCount=%u", head.position(), buffer->frameCount);
5214 // Yield samples from the timed buffer queue head up to the given output
5221 const TimedBuffer& head = mTimedBufferQueue[0];
5223 buffer->raw = (static_cast<uint8_t*>(head.buffer()->pointer()) +
5224 head.position());
5226 uint32_t framesLeftInHead = ((head.buffer()->size() - head.position()) /
5262 // If the buffer which was just released is part of the buffer at the head
5264 // consumed. If the buffer being returned is not part of the head of the
5266 // because the head of the timed queue was trimmed after the mixer called
5270 "Queue head in flight during release of silence buffer!");
5276 " head in flight.");
5279 TimedBuffer& head = mTimedBufferQueue.editItemAt(0);
5281 void* start = head.buffer()->pointer();
5283 reinterpret_cast<uint8_t*>(head.buffer()->pointer())
5284 + head.buffer()->size());
5287 "released buffer not within the head of the timed buffer"
5291 head.setPosition(head.position() +
5302 if ((static_cast<size_t>(head.position()) >= head.buffer()->size())