Lines Matching refs:buffer

49         camera3_stream_buffer *buffer) {
74 ALOGE("%s: Stream %d: Can't acquire next output buffer: %s (%d)",
87 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
98 const camera3_stream_buffer &buffer,
113 // Find the buffer we are returning
121 if (anb != NULL && &(anb->handle) == buffer.buffer) {
130 ALOGE("%s: Stream %d: Can't return buffer that wasn't sent to HAL",
135 if (buffer.status == CAMERA3_BUFFER_STATUS_ERROR) {
136 if (buffer.release_fence != -1) {
138 "there is an error", __FUNCTION__, mId, buffer.release_fence);
139 close(buffer.release_fence);
145 const_cast<camera3_stream_buffer*>(&buffer)->release_fence =
146 buffer.acquire_fence;
150 * Unconditionally return buffer to the buffer queue.
153 sp<Fence> releaseFence = new Fence(buffer.release_fence);
156 ALOGE("%s: Stream %d: Error releasing buffer back to buffer queue:"
166 const camera3_stream_buffer &buffer) {
169 return returnAnyBufferLocked(buffer, /*timestamp*/0, /*output*/false);
255 * Boost the number up to meet the minimum required buffer count.
257 * (Note that this sets consumer-side buffer count only,
262 // TODO: somehow set the total buffer count when producer connects?
276 ALOGE("%s: Stream %d: Could not set buffer dimensions %dx%d",
282 ALOGE("%s: Stream %d: Could not set buffer format %d",
297 const sp<GraphicBuffer> buffer = gb.promote();
298 if (buffer != nullptr) {
300 {nullptr, &buffer->handle, 0, -1, -1};
301 // Check if this buffer is outstanding.
303 ALOGV("%s: Stream %d: Trying to free a buffer that is still being "
310 callback->onBufferFreed(mId, buffer->handle);