Lines Matching refs:buffer
175 ST_LOGE("setBufferCount: requested buffer count (%d) is less than "
181 // and will release all of its buffer references.
292 // Free up any buffers that are in slots beyond the max buffer
302 // look for a free buffer to give to the client
324 // clients are not allowed to dequeue more than one buffer
325 // if they didn't set a buffer count.
328 "setting the buffer count");
332 // See whether a buffer has been queued since the last
341 ST_LOGE("dequeueBuffer: min undequeued buffer count (%d) "
349 // If no buffer is found, wait for a buffer to be released or for
350 // the max buffer count to change.
360 ST_LOGE("dequeueBuffer: no available buffer slots");
378 const sp<GraphicBuffer>& buffer(mSlots[buf].mGraphicBuffer);
379 if ((buffer == NULL) ||
380 (uint32_t(buffer->width) != w) ||
381 (uint32_t(buffer->height) != h) ||
382 (uint32_t(buffer->format) != format) ||
383 ((uint32_t(buffer->usage) & usage) != usage))
427 // If something goes wrong, log the error, but return the buffer without
518 "buffer", buf);
528 "buffer in slot %d", buf);
540 // In asynchronous mode we only keep the most recent buffer.
550 // buffer currently queued is freed
552 // and we record the new buffer index in the queued list
712 char buffer[1024];
713 BufferQueue::dump(result, "", buffer, 1024);
717 char* buffer, size_t SIZE) const
725 snprintf(buffer, SIZE, "%02d ", *i++);
727 fifo.append(buffer);
732 snprintf(buffer, SIZE,
738 result.append(buffer);
755 snprintf(buffer, SIZE,
765 result.append(buffer);
769 snprintf(buffer, SIZE,
773 result.append(buffer);
807 status_t BufferQueue::acquireBuffer(BufferItem *buffer) {
812 // buffers acquired. We allow the max buffer count to be exceeded by one
813 // buffer, so that the consumer can successfully set up the newly acquired
814 // buffer before releasing the old one.
822 ST_LOGE("acquireBuffer: max acquired buffer count reached: %d (max=%d)",
828 // In asynchronous mode the list is guaranteed to be one buffer
829 // deep, while in synchronous mode we use the oldest buffer.
837 buffer->mGraphicBuffer = NULL;
839 buffer->mGraphicBuffer = mSlots[buf].mGraphicBuffer;
841 buffer->mCrop = mSlots[buf].mCrop;
842 buffer->mTransform = mSlots[buf].mTransform;
843 buffer->mScalingMode = mSlots[buf].mScalingMode;
844 buffer->mFrameNumber = mSlots[buf].mFrameNumber;
845 buffer->mTimestamp = mSlots[buf].mTimestamp;
846 buffer->mBuf = buf;
847 buffer->mFence = mSlots[buf].mFence;
880 // The buffer can now only be released if its in the acquired state
1052 // buffers will temporarily keep the max buffer count up until the slots