Home
last modified time | relevance | path

Searched refs:req_buffers (Results 1 – 2 of 2) sorted by relevance

/hardware/libhardware/modules/camera/3_4/
Dv4l2_wrapper.cpp559 v4l2_requestbuffers req_buffers; in RequestBuffers() local
560 memset(&req_buffers, 0, sizeof(req_buffers)); in RequestBuffers()
561 req_buffers.type = format_->type(); in RequestBuffers()
562 req_buffers.memory = V4L2_MEMORY_USERPTR; in RequestBuffers()
563 req_buffers.count = num_requested; in RequestBuffers()
565 int res = IoctlLocked(VIDIOC_REQBUFS, &req_buffers); in RequestBuffers()
573 if (num_requested > 0 && req_buffers.count < 1) { in RequestBuffers()
577 buffers_.resize(req_buffers.count); in RequestBuffers()
/hardware/interfaces/camera/device/3.4/default/
DExternalCameraDeviceSession.cpp2255 v4l2_requestbuffers req_buffers{}; in v4l2StreamOffLocked() local
2256 req_buffers.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in v4l2StreamOffLocked()
2257 req_buffers.memory = V4L2_MEMORY_MMAP; in v4l2StreamOffLocked()
2258 req_buffers.count = 0; in v4l2StreamOffLocked()
2259 if (TEMP_FAILURE_RETRY(ioctl(mV4l2Fd.get(), VIDIOC_REQBUFS, &req_buffers)) < 0) { in v4l2StreamOffLocked()
2394 v4l2_requestbuffers req_buffers{}; in configureV4l2StreamLocked() local
2395 req_buffers.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in configureV4l2StreamLocked()
2396 req_buffers.memory = V4L2_MEMORY_MMAP; in configureV4l2StreamLocked()
2397 req_buffers.count = v4lBufferCount; in configureV4l2StreamLocked()
2398 if (TEMP_FAILURE_RETRY(ioctl(mV4l2Fd.get(), VIDIOC_REQBUFS, &req_buffers)) < 0) { in configureV4l2StreamLocked()
[all …]