Lines Matching refs:head

1240         TimedBuffer& head = mTimedBufferQueue.editItemAt(0);
1242 // calculate the PTS of the head of the timed buffer queue expressed in
1257 if (!mMediaTimeTransform.doForwardTransform(head.pts(),
1282 // adjust the head buffer's PTS to reflect the portion of the head buffer
1285 ((head.position() / mFrameSize) * mLocalTimeFreq / sr);
1287 // Calculate the delta in samples between the head of the input buffer
1294 ALOGV("*** head buffer is too far from PTS: dropped buffer");
1306 ALOGVV("*** getNextBuffer head.pts=%lld head.pos=%d pts=%lld"
1308 head.pts(), head.position(), pts,
1329 ALOGVV("*** on time: head.pos=%d frameCount=%u",
1330 head.position(), buffer->frameCount);
1350 head.position() + lateFrames * mFrameSize;
1352 if (onTimeSamplePosition > head.buffer()->size()) {
1353 // all the remaining samples in the head are too late, so
1360 head.setPosition(onTimeSamplePosition);
1365 ALOGV("*** late: head.pos=%d frameCount=%u", head.position(), buffer->frameCount);
1372 // Yield samples from the timed buffer queue head up to the given output
1379 const TimedBuffer& head = mTimedBufferQueue[0];
1381 buffer->raw = (static_cast<uint8_t*>(head.buffer()->pointer()) +
1382 head.position());
1384 uint32_t framesLeftInHead = ((head.buffer()->size() - head.position()) /
1420 // If the buffer which was just released is part of the buffer at the head
1422 // consumed. If the buffer being returned is not part of the head of the
1424 // because the head of the timed queue was trimmed after the mixer called
1428 "Queue head in flight during release of silence buffer!");
1434 " head in flight.");
1437 TimedBuffer& head = mTimedBufferQueue.editItemAt(0);
1439 void* start = head.buffer()->pointer();
1441 reinterpret_cast<uint8_t*>(head.buffer()->pointer())
1442 + head.buffer()->size());
1445 "released buffer not within the head of the timed buffer"
1449 head.setPosition(head.position() +
1460 if ((static_cast<size_t>(head.position()) >= head.buffer()->size())