net.luniks.linux.jv4linfo
Class VideoCapability

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

public class VideoCapability
extends java.lang.Object

Class to hold information about the capabilities of a v4l device. Almost all fields and comments are taken from videodev.h

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

Field Summary
private  int audios
           
private  int channels
           
private  int maxheight
           
private  int maxwidth
           
private  int minheight
           
private  int minwidth
           
private  java.lang.String name
           
private  int type
           
static int VID_TYPE_CAPTURE
          Can capture
static int VID_TYPE_CHROMAKEY
          Overlay by chromakey
static int VID_TYPE_CLIPPING
          Can clip
static int VID_TYPE_FRAMERAM
          Uses the frame buffer memory
static int VID_TYPE_MJPEG_DECODER
          Can decode MJPEG streams
static int VID_TYPE_MJPEG_ENCODER
          Can encode MJPEG streams
static int VID_TYPE_MONOCHROME
          Monochrome only
static int VID_TYPE_MPEG_DECODER
          Can decode MPEG streams
static int VID_TYPE_MPEG_ENCODER
          Can encode MPEG streams
static int VID_TYPE_OVERLAY
          Overlay onto frame buffer
static int VID_TYPE_SCALES
          Scalable
static int VID_TYPE_SUBCAPTURE
          Can capture subareas of the image
static int VID_TYPE_TELETEXT
          Does teletext
static int VID_TYPE_TUNER
          Can tune
 
Constructor Summary
VideoCapability()
           
 
Method Summary
 boolean canCapture()
          Can capture
 boolean canCaptureSubareas()
          Can capture subareas of the image
 boolean canClip()
          Can clip
 boolean canDecodeMJPEG()
          Can decode MJPEG streams
 boolean canDecodeMPEG()
          Can decode MPEG streams
 boolean canEncodeMJPEG()
          Can encode MJPEG streams
 boolean canEncodeMPEG()
          Can encode MPEG streams
 boolean canTune()
          Can tune
 boolean doesTeletext()
          Does teletext
 int getAudios()
          Number of audio devices
 int getChannels()
          Number of channels/inputs
 int getMaxheight()
          Max. supported height
 int getMaxwidth()
          Max. supported width
 int getMinheight()
          Min. supported height
 int getMinwidth()
          Min. supported width
 java.lang.String getName()
          Name of the device
 int getType()
          Type of the device
 boolean isMonochrome()
          Monochrome only
 boolean isScalable()
          Scalable
 boolean overlayByChromakey()
          Overlay by chromakey
 boolean overlayOntoFramebuffer()
          Overlay onto frame buffer
 java.lang.String toString()
          String representation of the capability info
 boolean usesFramebufferMemory()
          Uses the frame buffer memory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VID_TYPE_CAPTURE

public static final int VID_TYPE_CAPTURE
Can capture

See Also:
Constant Field Values

VID_TYPE_TUNER

public static final int VID_TYPE_TUNER
Can tune

See Also:
Constant Field Values

VID_TYPE_TELETEXT

public static final int VID_TYPE_TELETEXT
Does teletext

See Also:
Constant Field Values

VID_TYPE_OVERLAY

public static final int VID_TYPE_OVERLAY
Overlay onto frame buffer

See Also:
Constant Field Values

VID_TYPE_CHROMAKEY

public static final int VID_TYPE_CHROMAKEY
Overlay by chromakey

See Also:
Constant Field Values

VID_TYPE_CLIPPING

public static final int VID_TYPE_CLIPPING
Can clip

See Also:
Constant Field Values

VID_TYPE_FRAMERAM

public static final int VID_TYPE_FRAMERAM
Uses the frame buffer memory

See Also:
Constant Field Values

VID_TYPE_SCALES

public static final int VID_TYPE_SCALES
Scalable

See Also:
Constant Field Values

VID_TYPE_MONOCHROME

public static final int VID_TYPE_MONOCHROME
Monochrome only

See Also:
Constant Field Values

VID_TYPE_SUBCAPTURE

public static final int VID_TYPE_SUBCAPTURE
Can capture subareas of the image

See Also:
Constant Field Values

VID_TYPE_MPEG_DECODER

public static final int VID_TYPE_MPEG_DECODER
Can decode MPEG streams

See Also:
Constant Field Values

VID_TYPE_MPEG_ENCODER

public static final int VID_TYPE_MPEG_ENCODER
Can encode MPEG streams

See Also:
Constant Field Values

VID_TYPE_MJPEG_DECODER

public static final int VID_TYPE_MJPEG_DECODER
Can decode MJPEG streams

See Also:
Constant Field Values

VID_TYPE_MJPEG_ENCODER

public static final int VID_TYPE_MJPEG_ENCODER
Can encode MJPEG streams

See Also:
Constant Field Values

name

private java.lang.String name

type

private int type

channels

private int channels

audios

private int audios

maxwidth

private int maxwidth

maxheight

private int maxheight

minwidth

private int minwidth

minheight

private int minheight
Constructor Detail

VideoCapability

public VideoCapability()
Method Detail

getName

public java.lang.String getName()
Name of the device


getType

public int getType()
Type of the device


getChannels

public int getChannels()
Number of channels/inputs


getAudios

public int getAudios()
Number of audio devices


getMaxwidth

public int getMaxwidth()
Max. supported width


getMaxheight

public int getMaxheight()
Max. supported height


getMinwidth

public int getMinwidth()
Min. supported width


getMinheight

public int getMinheight()
Min. supported height


canCapture

public boolean canCapture()
Can capture


canTune

public boolean canTune()
Can tune


doesTeletext

public boolean doesTeletext()
Does teletext


overlayOntoFramebuffer

public boolean overlayOntoFramebuffer()
Overlay onto frame buffer


overlayByChromakey

public boolean overlayByChromakey()
Overlay by chromakey


canClip

public boolean canClip()
Can clip


usesFramebufferMemory

public boolean usesFramebufferMemory()
Uses the frame buffer memory


isScalable

public boolean isScalable()
Scalable


isMonochrome

public boolean isMonochrome()
Monochrome only


canCaptureSubareas

public boolean canCaptureSubareas()
Can capture subareas of the image


canDecodeMPEG

public boolean canDecodeMPEG()
Can decode MPEG streams


canEncodeMPEG

public boolean canEncodeMPEG()
Can encode MPEG streams


canDecodeMJPEG

public boolean canDecodeMJPEG()
Can decode MJPEG streams


canEncodeMJPEG

public boolean canEncodeMJPEG()
Can encode MJPEG streams


toString

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



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