Lines Matching refs:buffer

156     v4l2_buffer buffer{};  in queueBuffer()  local
161 buffer.type = buftype; in queueBuffer()
162 buffer.m.planes = plane; in queueBuffer()
164 bufferFiller(buffer); in queueBuffer()
166 return ioctl(mFd, VIDIOC_QBUF, &buffer) >= 0; in queueBuffer()
171 if (!queueBuffer(buftype, [buf, len](v4l2_buffer &buffer) { in queueBuffer() argument
172 buffer.memory = V4L2_MEMORY_DMABUF; in queueBuffer()
173 buffer.length = SCALER_MAX_PLANES; in queueBuffer()
175 buffer.m.planes[i].m.fd = buf[i]; in queueBuffer()
176 buffer.m.planes[i].length = len[i]; in queueBuffer()
189 if (!queueBuffer(buftype, [buf, len](v4l2_buffer &buffer) { in queueBuffer() argument
190 buffer.memory = V4L2_MEMORY_USERPTR; in queueBuffer()
191 buffer.length = SCALER_MAX_PLANES; in queueBuffer()
193 buffer.m.planes[i].m.userptr = reinterpret_cast<unsigned long>(buf[i]); in queueBuffer()
194 buffer.m.planes[i].length = len[i]; in queueBuffer()
207 if (!queueBuffer(buftype, [buf, len](v4l2_buffer &buffer) { in queueBuffer() argument
208 buffer.memory = V4L2_MEMORY_DMABUF; in queueBuffer()
209 buffer.length = 1; in queueBuffer()
210 buffer.m.planes[0].m.fd = buf; in queueBuffer()
211 buffer.m.planes[0].length = len[0]; in queueBuffer()
221 v4l2_buffer buffer{}; in dequeueBuffer() local
226 buffer.type = buftype; in dequeueBuffer()
227 buffer.memory = memtype; in dequeueBuffer()
228 buffer.length = SCALER_MAX_PLANES; in dequeueBuffer()
230 buffer.m.planes = plane; in dequeueBuffer()
232 if (ioctl(mFd, VIDIOC_DQBUF, &buffer) < 0) { in dequeueBuffer()