Lines Matching defs:buffer
46 camera3_stream_buffer *buffer) {
71 ALOGE("%s: Stream %d: Can't acquire next output buffer: %s (%d)",
84 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
92 const camera3_stream_buffer &buffer,
107 // Find the buffer we are returning
115 if (anb != NULL && &(anb->handle) == buffer.buffer) {
123 ALOGE("%s: Stream %d: Can't return buffer that wasn't sent to HAL",
128 if (buffer.status == CAMERA3_BUFFER_STATUS_ERROR) {
129 if (buffer.release_fence != -1) {
131 "there is an error", __FUNCTION__, mId, buffer.release_fence);
132 close(buffer.release_fence);
138 const_cast<camera3_stream_buffer*>(&buffer)->release_fence =
139 buffer.acquire_fence;
143 * Unconditionally return buffer to the buffer queue.
146 sp<Fence> releaseFence = new Fence(buffer.release_fence);
149 ALOGE("%s: Stream %d: Error releasing buffer back to buffer queue:"
159 const camera3_stream_buffer &buffer) {
162 return returnAnyBufferLocked(buffer, /*timestamp*/0, /*output*/false);
247 * Boost the number up to meet the minimum required buffer count.
249 * (Note that this sets consumer-side buffer count only,
254 // TODO: somehow set the total buffer count when producer connects?
266 ALOGE("%s: Stream %d: Could not set buffer dimensions %dx%d",
272 ALOGE("%s: Stream %d: Could not set buffer format %d",