Lines Matching refs:buffer
45 camera3_stream_buffer *buffer) {
70 ALOGE("%s: Stream %d: Can't acquire next output buffer: %s (%d)",
83 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
91 const camera3_stream_buffer &buffer,
106 // Find the buffer we are returning
114 if (anb != NULL && &(anb->handle) == buffer.buffer) {
122 ALOGE("%s: Stream %d: Can't return buffer that wasn't sent to HAL",
127 if (buffer.status == CAMERA3_BUFFER_STATUS_ERROR) {
128 if (buffer.release_fence != -1) {
130 "there is an error", __FUNCTION__, mId, buffer.release_fence);
131 close(buffer.release_fence);
137 const_cast<camera3_stream_buffer*>(&buffer)->release_fence =
138 buffer.acquire_fence;
142 * Unconditionally return buffer to the buffer queue.
145 sp<Fence> releaseFence = new Fence(buffer.release_fence);
148 ALOGE("%s: Stream %d: Error releasing buffer back to buffer queue:"
158 const camera3_stream_buffer &buffer) {
161 return returnAnyBufferLocked(buffer, /*timestamp*/0, /*output*/false);
222 * Boost the number up to meet the minimum required buffer count.
224 * (Note that this sets consumer-side buffer count only,
229 // TODO: somehow set the total buffer count when producer connects?
239 ALOGE("%s: Stream %d: Could not set buffer dimensions %dx%d",
245 ALOGE("%s: Stream %d: Could not set buffer format %d",