Home
last modified time | relevance | path

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

/external/libxcam/xcore/
Dv4l2_device.cpp486 struct v4l2_buffer v4l2_buf; in allocate_buffer() local
488 xcam_mem_clear (v4l2_buf); in allocate_buffer()
489 v4l2_buf.index = index; in allocate_buffer()
490 v4l2_buf.type = _capture_buf_type; in allocate_buffer()
491 v4l2_buf.memory = _memory_type; in allocate_buffer()
505 v4l2_buf.m.fd = expbuf.fd; in allocate_buffer()
506 v4l2_buf.length = format.fmt.pix.sizeimage; in allocate_buffer()
516 if (io_control (VIDIOC_QUERYBUF, &v4l2_buf) < 0) { in allocate_buffer()
520 … pointer = mmap (0, v4l2_buf.length, PROT_READ | PROT_WRITE, map_flags, _fd, v4l2_buf.m.offset); in allocate_buffer()
525 v4l2_buf.m.userptr = (uintptr_t) pointer; in allocate_buffer()
[all …]
Ddrm_display.cpp334 struct v4l2_buffer v4l2_buf; in create_drm_buf() local
339 xcam_mem_clear (v4l2_buf); in create_drm_buf()
354 v4l2_buf.index = index; in create_drm_buf()
355 v4l2_buf.type = buf_type; in create_drm_buf()
356 v4l2_buf.memory = V4L2_MEMORY_DMABUF; in create_drm_buf()
357 v4l2_buf.m.fd = prime.fd; in create_drm_buf()
358v4l2_buf.length = XCAM_MAX (format.fmt.pix.sizeimage, gem.size); // todo check gem.size and format… in create_drm_buf()
360 return new DrmV4l2Buffer (gem.handle, v4l2_buf, format, _instance); in create_drm_buf()