Lines Matching defs:head

1401         TimedBuffer& head = mTimedBufferQueue.editItemAt(0);
1403 // calculate the PTS of the head of the timed buffer queue expressed in
1418 if (!mMediaTimeTransform.doForwardTransform(head.pts(),
1443 // adjust the head buffer's PTS to reflect the portion of the head buffer
1446 ((head.position() / mFrameSize) * mLocalTimeFreq / sr);
1448 // Calculate the delta in samples between the head of the input buffer
1455 ALOGV("*** head buffer is too far from PTS: dropped buffer");
1467 ALOGVV("*** getNextBuffer head.pts=%lld head.pos=%d pts=%lld"
1469 head.pts(), head.position(), pts,
1490 ALOGVV("*** on time: head.pos=%d frameCount=%u",
1491 head.position(), buffer->frameCount);
1511 head.position() + lateFrames * mFrameSize;
1513 if (onTimeSamplePosition > head.buffer()->size()) {
1514 // all the remaining samples in the head are too late, so
1521 head.setPosition(onTimeSamplePosition);
1526 ALOGV("*** late: head.pos=%d frameCount=%u", head.position(), buffer->frameCount);
1533 // Yield samples from the timed buffer queue head up to the given output
1540 const TimedBuffer& head = mTimedBufferQueue[0];
1542 buffer->raw = (static_cast<uint8_t*>(head.buffer()->pointer()) +
1543 head.position());
1545 uint32_t framesLeftInHead = ((head.buffer()->size() - head.position()) /
1581 // If the buffer which was just released is part of the buffer at the head
1583 // consumed. If the buffer being returned is not part of the head of the
1585 // because the head of the timed queue was trimmed after the mixer called
1589 "Queue head in flight during release of silence buffer!");
1595 " head in flight.");
1598 TimedBuffer& head = mTimedBufferQueue.editItemAt(0);
1600 void* start = head.buffer()->pointer();
1602 reinterpret_cast<uint8_t*>(head.buffer()->pointer())
1603 + head.buffer()->size());
1606 "released buffer not within the head of the timed buffer"
1610 head.setPosition(head.position() +
1621 if ((static_cast<size_t>(head.position()) >= head.buffer()->size())