net.luniks.linux.jv4linfo
Class VideoTuner

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

public class VideoTuner
extends java.lang.Object

Class to hold information about a tuner 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 flags
           
private  int mode
           
private  java.lang.String name
           
private  long rangehigh
           
private  long rangelow
           
private  int signal
           
private  int tuner
           
static int VIDEO_MODE_AUTO
           
static int VIDEO_MODE_NTSC
           
static int VIDEO_MODE_PAL
           
static int VIDEO_MODE_SECAM
           
static int VIDEO_TUNER_LOW
           
static int VIDEO_TUNER_MBS_ON
           
static int VIDEO_TUNER_NORM
           
static int VIDEO_TUNER_NTSC
           
static int VIDEO_TUNER_PAL
           
static int VIDEO_TUNER_RDS_ON
           
static int VIDEO_TUNER_SECAM
           
static int VIDEO_TUNER_STEREO_ON
           
 
Constructor Summary
VideoTuner()
           
 
Method Summary
 boolean canSetNorm()
          Tuner can set norm
 int getFlags()
          Returns the flags describing the tuner
 int getMode()
          Returns the video signal mode if relevant
 java.lang.String getModeName()
          Returns the video signal mode if relevant as name
 java.lang.String getName()
          Returns the name of the tuner
 long getRangehigh()
          Returns the highest tunable frequency
 long getRangelow()
          Returns the lowest tunable frequency
 int getSignal()
          Returns the Signal strength if known - between 0-65535
 int getTuner()
          Returns the index of the tuner
 boolean isLow()
          Returns true, if the frequency is in units of 62.5 Hz, and false, if it is in units of 62.5 kHz.
 boolean isSeeingMBS()
          Tuner is seeing an MBS datastream
 boolean isSeeingRDS()
          Tuner is seeing an RDS datastream
 boolean isSeeingStereo()
          Tuner is seeing stereo
 void setTuner(int tuner)
          Sets the index of the tuner
 boolean supportsNTSC()
          Tuner supports NTSC
 boolean supportsPAL()
          Tuner supports PAL
 boolean supportsSECAM()
          Tuner supports SECAM
 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_TUNER_PAL

public static final int VIDEO_TUNER_PAL
See Also:
Constant Field Values

VIDEO_TUNER_NTSC

public static final int VIDEO_TUNER_NTSC
See Also:
Constant Field Values

VIDEO_TUNER_SECAM

public static final int VIDEO_TUNER_SECAM
See Also:
Constant Field Values

VIDEO_TUNER_LOW

public static final int VIDEO_TUNER_LOW
See Also:
Constant Field Values

VIDEO_TUNER_NORM

public static final int VIDEO_TUNER_NORM
See Also:
Constant Field Values

VIDEO_TUNER_STEREO_ON

public static final int VIDEO_TUNER_STEREO_ON
See Also:
Constant Field Values

VIDEO_TUNER_RDS_ON

public static final int VIDEO_TUNER_RDS_ON
See Also:
Constant Field Values

VIDEO_TUNER_MBS_ON

public static final int VIDEO_TUNER_MBS_ON
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

VIDEO_MODE_AUTO

public static final int VIDEO_MODE_AUTO
See Also:
Constant Field Values

tuner

private int tuner

name

private java.lang.String name

rangelow

private long rangelow

rangehigh

private long rangehigh

flags

private int flags

mode

private int mode

signal

private int signal
Constructor Detail

VideoTuner

public VideoTuner()
Method Detail

getTuner

public int getTuner()
Returns the index of the tuner


getName

public java.lang.String getName()
Returns the name of the tuner


getRangelow

public long getRangelow()
Returns the lowest tunable frequency


getRangehigh

public long getRangehigh()
Returns the highest tunable frequency


getFlags

public int getFlags()
Returns the flags describing the tuner


getMode

public int getMode()
Returns the video signal mode if relevant


getSignal

public int getSignal()
Returns the Signal strength if known - between 0-65535


supportsPAL

public boolean supportsPAL()
Tuner supports PAL


supportsNTSC

public boolean supportsNTSC()
Tuner supports NTSC


supportsSECAM

public boolean supportsSECAM()
Tuner supports SECAM


isLow

public boolean isLow()
Returns true, if the frequency is in units of 62.5 Hz, and false, if it is in units of 62.5 kHz.


canSetNorm

public boolean canSetNorm()
Tuner can set norm


isSeeingStereo

public boolean isSeeingStereo()
Tuner is seeing stereo


isSeeingRDS

public boolean isSeeingRDS()
Tuner is seeing an RDS datastream


isSeeingMBS

public boolean isSeeingMBS()
Tuner is seeing an MBS datastream


getModeName

public java.lang.String getModeName()
Returns the video signal mode if relevant as name


setTuner

public void setTuner(int tuner)
Sets the index of the tuner


toString

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



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