Lines Matching refs:head
1240 TimedBuffer& head = mTimedBufferQueue.editItemAt(0); in getNextBuffer() local
1257 if (!mMediaTimeTransform.doForwardTransform(head.pts(), in getNextBuffer()
1285 ((head.position() / mFrameSize) * mLocalTimeFreq / sr); in getNextBuffer()
1308 head.pts(), head.position(), pts, in getNextBuffer()
1330 head.position(), buffer->frameCount); in getNextBuffer()
1350 head.position() + lateFrames * mFrameSize; in getNextBuffer()
1352 if (onTimeSamplePosition > head.buffer()->size()) { in getNextBuffer()
1360 head.setPosition(onTimeSamplePosition); in getNextBuffer()
1365 ALOGV("*** late: head.pos=%d frameCount=%u", head.position(), buffer->frameCount); in getNextBuffer()
1379 const TimedBuffer& head = mTimedBufferQueue[0]; in timedYieldSamples_l() local
1381 buffer->raw = (static_cast<uint8_t*>(head.buffer()->pointer()) + in timedYieldSamples_l()
1382 head.position()); in timedYieldSamples_l()
1384 uint32_t framesLeftInHead = ((head.buffer()->size() - head.position()) / in timedYieldSamples_l()
1437 TimedBuffer& head = mTimedBufferQueue.editItemAt(0); in releaseBuffer() local
1439 void* start = head.buffer()->pointer(); in releaseBuffer()
1441 reinterpret_cast<uint8_t*>(head.buffer()->pointer()) in releaseBuffer()
1442 + head.buffer()->size()); in releaseBuffer()
1449 head.setPosition(head.position() + in releaseBuffer()
1460 if ((static_cast<size_t>(head.position()) >= head.buffer()->size()) in releaseBuffer()