net.luniks.linux.jv4linfo
Class V4L2Capability

java.lang.Object
  extended bynet.luniks.linux.jv4linfo.V4L2Capability

public class V4L2Capability
extends java.lang.Object

Class to hold information about the capabilities of a v4l2 device. Almost all fields and comments are taken from videodev2.h or the Video for Linux Two API Specification

Author:
Torsten Römer, www.luniks.net

Field Summary
private  java.lang.String busInfo
           
private  int capabilities
           
private  java.lang.String card
           
private  java.lang.String driver
           
static int V4L2_CAP_ASYNCIO
          async I/O
static int V4L2_CAP_AUDIO
          has audio support
static int V4L2_CAP_RADIO
          is a radio device
static int V4L2_CAP_RDS_CAPTURE
          RDS data capture
static int V4L2_CAP_READWRITE
          read/write systemcalls
static int V4L2_CAP_STREAMING
          streaming I/O ioctls
static int V4L2_CAP_TUNER
          has a tuner
static int V4L2_CAP_VBI_CAPTURE
          Is a VBI capture device
static int V4L2_CAP_VBI_OUTPUT
          Is a VBI output device
static int V4L2_CAP_VIDEO_CAPTURE
          Is a video capture device
static int V4L2_CAP_VIDEO_OUTPUT
          Is a video output device
static int V4L2_CAP_VIDEO_OVERLAY
          Can do video overlay
private  int version
           
 
Constructor Summary
V4L2Capability()
           
 
Method Summary
 boolean canAsyncio()
          async I/O
 boolean canDoVideoOverlay()
          Can do video overlay
 boolean canReadwrite()
          read/write systemcalls
 boolean canStream()
          streaming I/O ioctls
 java.lang.String getBusInfo()
          "PCI:" + pci_name(pci_dev)
 int getCapabilities()
          Device capabilities
 java.lang.String getCard()
          For example "Hauppauge WinTV"
 java.lang.String getDriver()
          For example "bttv"
 int getVersion()
          should use KERNEL_VERSION()
 boolean hasAudio()
          has audio support
 boolean hasTuner()
          has a tuner
 boolean isRadio()
          is a radio device
 boolean isRDSCaptureDevice()
          RDS data capture
 boolean isVBICaptureDevice()
          Is a VBI capture device
 boolean isVBIOutputDevice()
          Is a VBI output device
 boolean isVideoCaptureDevice()
          Is a video capture device
 boolean isVideoOutputDevice()
          Is a video output device
 java.lang.String toString()
          String representation of the capability info
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

V4L2_CAP_VIDEO_CAPTURE

public static final int V4L2_CAP_VIDEO_CAPTURE
Is a video capture device

See Also:
Constant Field Values

V4L2_CAP_VIDEO_OUTPUT

public static final int V4L2_CAP_VIDEO_OUTPUT
Is a video output device

See Also:
Constant Field Values

V4L2_CAP_VIDEO_OVERLAY

public static final int V4L2_CAP_VIDEO_OVERLAY
Can do video overlay

See Also:
Constant Field Values

V4L2_CAP_VBI_CAPTURE

public static final int V4L2_CAP_VBI_CAPTURE
Is a VBI capture device

See Also:
Constant Field Values

V4L2_CAP_VBI_OUTPUT

public static final int V4L2_CAP_VBI_OUTPUT
Is a VBI output device

See Also:
Constant Field Values

V4L2_CAP_RDS_CAPTURE

public static final int V4L2_CAP_RDS_CAPTURE
RDS data capture

See Also:
Constant Field Values

V4L2_CAP_TUNER

public static final int V4L2_CAP_TUNER
has a tuner

See Also:
Constant Field Values

V4L2_CAP_AUDIO

public static final int V4L2_CAP_AUDIO
has audio support

See Also:
Constant Field Values

V4L2_CAP_RADIO

public static final int V4L2_CAP_RADIO
is a radio device

See Also:
Constant Field Values

V4L2_CAP_READWRITE

public static final int V4L2_CAP_READWRITE
read/write systemcalls

See Also:
Constant Field Values

V4L2_CAP_ASYNCIO

public static final int V4L2_CAP_ASYNCIO
async I/O

See Also:
Constant Field Values

V4L2_CAP_STREAMING

public static final int V4L2_CAP_STREAMING
streaming I/O ioctls

See Also:
Constant Field Values

driver

private java.lang.String driver

card

private java.lang.String card

busInfo

private java.lang.String busInfo

version

private int version

capabilities

private int capabilities
Constructor Detail

V4L2Capability

public V4L2Capability()
Method Detail

getDriver

public java.lang.String getDriver()
For example "bttv"


getCard

public java.lang.String getCard()
For example "Hauppauge WinTV"


getBusInfo

public java.lang.String getBusInfo()
"PCI:" + pci_name(pci_dev)


getVersion

public int getVersion()
should use KERNEL_VERSION()


getCapabilities

public int getCapabilities()
Device capabilities


isVideoCaptureDevice

public boolean isVideoCaptureDevice()
Is a video capture device


isVideoOutputDevice

public boolean isVideoOutputDevice()
Is a video output device


canDoVideoOverlay

public boolean canDoVideoOverlay()
Can do video overlay


isVBICaptureDevice

public boolean isVBICaptureDevice()
Is a VBI capture device


isVBIOutputDevice

public boolean isVBIOutputDevice()
Is a VBI output device


isRDSCaptureDevice

public boolean isRDSCaptureDevice()
RDS data capture


hasTuner

public boolean hasTuner()
has a tuner


hasAudio

public boolean hasAudio()
has audio support


isRadio

public boolean isRadio()
is a radio device


canReadwrite

public boolean canReadwrite()
read/write systemcalls


canAsyncio

public boolean canAsyncio()
async I/O


canStream

public boolean canStream()
streaming I/O ioctls


toString

public java.lang.String toString()
String representation of the capability info



Copyright © 2004 Torsten Römer, dode@luniks.net