net.luniks.linux.jv4linfo
Class VideoChannel

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

public class VideoChannel
extends java.lang.Object

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

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

Nested Class Summary
static class VideoChannel.Norm
           
 
Field Summary
private  int channel
           
private  int flags
           
private  java.lang.String name
           
private  int norm
           
private  int tuners
           
private  int type
           
static int VIDEO_MODE_NTSC
           
static int VIDEO_MODE_PAL
           
static int VIDEO_MODE_SECAM
           
static int VIDEO_TYPE_CAMERA
          Input type is camera
static int VIDEO_TYPE_TV
          Input type is television
static int VIDEO_VC_AUDIO
          Channel has audio
static int VIDEO_VC_TUNER
          Channel has a tuner
 
Constructor Summary
VideoChannel()
           
 
Method Summary
 int getChannel()
          The index of the channel
 int getFlags()
          Channel flags
 java.lang.String getName()
          The name of the channel
 int getNorm()
          Norm set by channel
static VideoChannel.Norm[] getNorms()
          Returns the video norms known by v4l
 int getTuners()
          Number of tuners
 int getType()
          Type of the channel
 boolean hasAudio()
          Channel has audio
 boolean hasTuner()
          Channel has a tuner
 boolean isCamera()
          Input type is camera
 boolean isTV()
          Input type is television
 void setChannel(int channel)
          Sets the index of the channel
 void setNorm(int norm)
          Sets the norm of the channel
 java.lang.String toString()
          String representation of the channel info
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VIDEO_VC_TUNER

public static final int VIDEO_VC_TUNER
Channel has a tuner

See Also:
Constant Field Values

VIDEO_VC_AUDIO

public static final int VIDEO_VC_AUDIO
Channel has audio

See Also:
Constant Field Values

VIDEO_TYPE_TV

public static final int VIDEO_TYPE_TV
Input type is television

See Also:
Constant Field Values

VIDEO_TYPE_CAMERA

public static final int VIDEO_TYPE_CAMERA
Input type is camera

See Also:
Constant Field Values

VIDEO_MODE_PAL

public static final int VIDEO_MODE_PAL
See Also:
Constant Field Values

VIDEO_MODE_NTSC

public static final int VIDEO_MODE_NTSC
See Also:
Constant Field Values

VIDEO_MODE_SECAM

public static final int VIDEO_MODE_SECAM
See Also:
Constant Field Values

channel

private int channel

name

private java.lang.String name

tuners

private int tuners

flags

private int flags

type

private int type

norm

private int norm
Constructor Detail

VideoChannel

public VideoChannel()
Method Detail

getChannel

public int getChannel()
The index of the channel


getName

public java.lang.String getName()
The name of the channel


getTuners

public int getTuners()
Number of tuners


getFlags

public int getFlags()
Channel flags


getType

public int getType()
Type of the channel


getNorm

public int getNorm()
Norm set by channel


hasTuner

public boolean hasTuner()
Channel has a tuner


hasAudio

public boolean hasAudio()
Channel has audio


isTV

public boolean isTV()
Input type is television


isCamera

public boolean isCamera()
Input type is camera


setChannel

public void setChannel(int channel)
Sets the index of the channel


setNorm

public void setNorm(int norm)
Sets the norm of the channel


getNorms

public static VideoChannel.Norm[] getNorms()
Returns the video norms known by v4l


toString

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



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