Class Video4Linux2


  • public class Video4Linux2
    extends Object
    Provides the interface to the native Video for Linux Two API Specification (http://v4l2spec.bytesex.org/spec/) implementation.
    Author:
    Lyubomir Marinov
    • Field Detail

      • V4L2_BUF_TYPE_VIDEO_CAPTURE

        public static final int V4L2_BUF_TYPE_VIDEO_CAPTURE
        See Also:
        Constant Field Values
      • V4L2_PIX_FMT_RGB24

        public static final int V4L2_PIX_FMT_RGB24
      • V4L2_PIX_FMT_BGR24

        public static final int V4L2_PIX_FMT_BGR24
      • V4L2_PIX_FMT_UYVY

        public static final int V4L2_PIX_FMT_UYVY
      • V4L2_PIX_FMT_VYUY

        public static final int V4L2_PIX_FMT_VYUY
      • V4L2_PIX_FMT_YUV420

        public static final int V4L2_PIX_FMT_YUV420
      • V4L2_PIX_FMT_YUYV

        public static final int V4L2_PIX_FMT_YUYV
      • V4L2_PIX_FMT_MJPEG

        public static final int V4L2_PIX_FMT_MJPEG
      • V4L2_PIX_FMT_JPEG

        public static final int V4L2_PIX_FMT_JPEG
      • VIDIOC_DQBUF

        public static final int VIDIOC_DQBUF
      • VIDIOC_G_FMT

        public static final int VIDIOC_G_FMT
      • VIDIOC_QBUF

        public static final int VIDIOC_QBUF
      • VIDIOC_QUERYBUF

        public static final int VIDIOC_QUERYBUF
      • VIDIOC_QUERYCAP

        public static final int VIDIOC_QUERYCAP
      • VIDIOC_REQBUFS

        public static final int VIDIOC_REQBUFS
      • VIDIOC_S_FMT

        public static final int VIDIOC_S_FMT
      • VIDIOC_S_PARM

        public static final int VIDIOC_S_PARM
      • VIDIOC_STREAMOFF

        public static final int VIDIOC_STREAMOFF
      • VIDIOC_STREAMON

        public static final int VIDIOC_STREAMON
    • Constructor Detail

      • Video4Linux2

        public Video4Linux2()
    • Method Detail

      • close

        public static int close​(int fd)
      • free

        public static void free​(long ptr)
      • ioctl

        public static int ioctl​(int fd,
                                int request,
                                long argp)
      • memcpy

        public static long memcpy​(long dest,
                                  long src,
                                  int n)
      • mmap

        public static long mmap​(long start,
                                int length,
                                int prot,
                                int flags,
                                int fd,
                                long offset)
      • munmap

        public static int munmap​(long start,
                                 int length)
      • open

        public static int open​(String deviceName,
                               int flags)
      • v4l2_buffer_alloc

        public static long v4l2_buffer_alloc​(int type)
      • v4l2_buffer_getBytesused

        public static int v4l2_buffer_getBytesused​(long v4l2_buffer)
      • v4l2_buffer_getIndex

        public static int v4l2_buffer_getIndex​(long v4l2_buffer)
      • v4l2_buffer_getLength

        public static int v4l2_buffer_getLength​(long v4l2_buffer)
      • v4l2_buffer_getMOffset

        public static long v4l2_buffer_getMOffset​(long v4l2_buffer)
      • v4l2_buffer_setIndex

        public static void v4l2_buffer_setIndex​(long v4l2_buffer,
                                                int index)
      • v4l2_buffer_setMemory

        public static void v4l2_buffer_setMemory​(long v4l2_buffer,
                                                 int memory)
      • v4l2_buf_type_alloc

        public static long v4l2_buf_type_alloc​(int type)
      • v4l2_capability_alloc

        public static long v4l2_capability_alloc()
      • v4l2_capability_getCapabilities

        public static int v4l2_capability_getCapabilities​(long v4l2_capability)
      • v4l2_capability_getCard

        public static String v4l2_capability_getCard​(long v4l2_capability)
      • v4l2_format_alloc

        public static long v4l2_format_alloc​(int type)
      • v4l2_format_getFmtPix

        public static long v4l2_format_getFmtPix​(long v4l2_format)
      • v4l2_pix_format_getHeight

        public static int v4l2_pix_format_getHeight​(long v4l2_pix_format)
      • v4l2_pix_format_getPixelformat

        public static int v4l2_pix_format_getPixelformat​(long v4l2_pix_format)
      • v4l2_pix_format_getWidth

        public static int v4l2_pix_format_getWidth​(long v4l2_pix_format)
      • v4l2_pix_format_setBytesperline

        public static void v4l2_pix_format_setBytesperline​(long v4l2_pix_format,
                                                           int bytesperline)
      • v4l2_pix_format_setField

        public static void v4l2_pix_format_setField​(long v4l2_pix_format,
                                                    int field)
      • v4l2_pix_format_setPixelformat

        public static void v4l2_pix_format_setPixelformat​(long v4l2_pix_format,
                                                          int pixelformat)
      • v4l2_pix_format_setWidthAndHeight

        public static void v4l2_pix_format_setWidthAndHeight​(long v4l2_pix_format,
                                                             int width,
                                                             int height)
      • v4l2_requestbuffers_alloc

        public static long v4l2_requestbuffers_alloc​(int type)
      • v4l2_requestbuffers_getCount

        public static int v4l2_requestbuffers_getCount​(long v4l2_requestbuffers)
      • v4l2_requestbuffers_setCount

        public static void v4l2_requestbuffers_setCount​(long v4l2_requestbuffers,
                                                        int count)
      • v4l2_requestbuffers_setMemory

        public static void v4l2_requestbuffers_setMemory​(long v4l2_requestbuffers,
                                                         int memory)
      • v4l2_streamparm_alloc

        public static long v4l2_streamparm_alloc​(int type)
      • v4l2_streamparm_setFps

        public static void v4l2_streamparm_setFps​(long v4l2_streamparm,
                                                  int fps)