Class Video4Linux2
- java.lang.Object
-
- org.jitsi.impl.neomedia.jmfext.media.protocol.video4linux2.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 Summary
Fields Modifier and Type Field Description static intMAP_SHAREDstatic intO_NONBLOCKstatic intO_RDWRstatic intPROT_READstatic intPROT_WRITEstatic intV4L2_BUF_TYPE_VIDEO_CAPTUREstatic intV4L2_CAP_STREAMINGstatic intV4L2_CAP_VIDEO_CAPTUREstatic intV4L2_FIELD_NONEstatic intV4L2_MEMORY_MMAPstatic intV4L2_MEMORY_USERPTRstatic intV4L2_PIX_FMT_BGR24static intV4L2_PIX_FMT_JPEGstatic intV4L2_PIX_FMT_MJPEGstatic intV4L2_PIX_FMT_NONEstatic intV4L2_PIX_FMT_RGB24static intV4L2_PIX_FMT_UYVYstatic intV4L2_PIX_FMT_VYUYstatic intV4L2_PIX_FMT_YUV420static intV4L2_PIX_FMT_YUYVstatic intVIDIOC_DQBUFstatic intVIDIOC_G_FMTstatic intVIDIOC_QBUFstatic intVIDIOC_QUERYBUFstatic intVIDIOC_QUERYCAPstatic intVIDIOC_REQBUFSstatic intVIDIOC_S_FMTstatic intVIDIOC_S_PARMstatic intVIDIOC_STREAMOFFstatic intVIDIOC_STREAMON
-
Constructor Summary
Constructors Constructor Description Video4Linux2()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intclose(int fd)static voidfree(long ptr)static intioctl(int fd, int request, long argp)static longmemcpy(long dest, long src, int n)static longmmap(long start, int length, int prot, int flags, int fd, long offset)static intmunmap(long start, int length)static intopen(String deviceName, int flags)static longv4l2_buf_type_alloc(int type)static longv4l2_buffer_alloc(int type)static intv4l2_buffer_getBytesused(long v4l2_buffer)static intv4l2_buffer_getIndex(long v4l2_buffer)static intv4l2_buffer_getLength(long v4l2_buffer)static longv4l2_buffer_getMOffset(long v4l2_buffer)static voidv4l2_buffer_setIndex(long v4l2_buffer, int index)static voidv4l2_buffer_setMemory(long v4l2_buffer, int memory)static longv4l2_capability_alloc()static intv4l2_capability_getCapabilities(long v4l2_capability)static Stringv4l2_capability_getCard(long v4l2_capability)static longv4l2_format_alloc(int type)static longv4l2_format_getFmtPix(long v4l2_format)static intv4l2_pix_format_getHeight(long v4l2_pix_format)static intv4l2_pix_format_getPixelformat(long v4l2_pix_format)static intv4l2_pix_format_getWidth(long v4l2_pix_format)static voidv4l2_pix_format_setBytesperline(long v4l2_pix_format, int bytesperline)static voidv4l2_pix_format_setField(long v4l2_pix_format, int field)static voidv4l2_pix_format_setPixelformat(long v4l2_pix_format, int pixelformat)static voidv4l2_pix_format_setWidthAndHeight(long v4l2_pix_format, int width, int height)static longv4l2_requestbuffers_alloc(int type)static intv4l2_requestbuffers_getCount(long v4l2_requestbuffers)static voidv4l2_requestbuffers_setCount(long v4l2_requestbuffers, int count)static voidv4l2_requestbuffers_setMemory(long v4l2_requestbuffers, int memory)static longv4l2_streamparm_alloc(int type)static voidv4l2_streamparm_setFps(long v4l2_streamparm, int fps)
-
-
-
Field Detail
-
MAP_SHARED
public static final int MAP_SHARED
- See Also:
- Constant Field Values
-
O_NONBLOCK
public static final int O_NONBLOCK
- See Also:
- Constant Field Values
-
O_RDWR
public static final int O_RDWR
- See Also:
- Constant Field Values
-
PROT_READ
public static final int PROT_READ
- See Also:
- Constant Field Values
-
PROT_WRITE
public static final int PROT_WRITE
- See Also:
- Constant Field Values
-
V4L2_BUF_TYPE_VIDEO_CAPTURE
public static final int V4L2_BUF_TYPE_VIDEO_CAPTURE
- See Also:
- Constant Field Values
-
V4L2_CAP_STREAMING
public static final int V4L2_CAP_STREAMING
- See Also:
- Constant Field Values
-
V4L2_CAP_VIDEO_CAPTURE
public static final int V4L2_CAP_VIDEO_CAPTURE
- See Also:
- Constant Field Values
-
V4L2_FIELD_NONE
public static final int V4L2_FIELD_NONE
- See Also:
- Constant Field Values
-
V4L2_MEMORY_MMAP
public static final int V4L2_MEMORY_MMAP
- See Also:
- Constant Field Values
-
V4L2_MEMORY_USERPTR
public static final int V4L2_MEMORY_USERPTR
- See Also:
- Constant Field Values
-
V4L2_PIX_FMT_NONE
public static final int V4L2_PIX_FMT_NONE
- 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
-
-
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)
-
-