net.luniks.linux.jv4linfo
Class V4L2Tuner

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

public class V4L2Tuner
extends java.lang.Object

Class to hold information about a tuner of a v4l2 input. 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

Nested Class Summary
static class V4L2Tuner.Audmode
           
 
Field Summary
private  int afc
           
private  int audmode
           
private  int capability
           
private  int index
           
private  java.lang.String name
           
private  int rangehigh
           
private  int rangelow
           
private  int[] reserved
           
private  int rxsubchans
           
private  int signal
           
private  int type
           
static int V4L2_TUNER_ANALOG_TV
           
static int V4L2_TUNER_CAP_LANG1
           
static int V4L2_TUNER_CAP_LANG2
           
static int V4L2_TUNER_CAP_LOW
           
static int V4L2_TUNER_CAP_NORM
           
static int V4L2_TUNER_CAP_SAP
           
static int V4L2_TUNER_CAP_STEREO
           
static int V4L2_TUNER_MODE_LANG1
           
static int V4L2_TUNER_MODE_LANG2
           
static int V4L2_TUNER_MODE_MONO
           
static int V4L2_TUNER_MODE_SAP
           
static int V4L2_TUNER_MODE_STEREO
           
static int V4L2_TUNER_RADIO
           
static int V4L2_TUNER_SUB_LANG1
           
static int V4L2_TUNER_SUB_LANG2
           
static int V4L2_TUNER_SUB_MONO
           
static int V4L2_TUNER_SUB_SAP
           
static int V4L2_TUNER_SUB_STEREO
           
 
Constructor Summary
V4L2Tuner()
           
 
Method Summary
 int getAfc()
          Automatic frequency control
 int getAudmode()
          The selected audio mode
 V4L2Tuner.Audmode[] getAudmodes()
          Returns the audio modes supported by the tuner
 int getCapability()
          The tuner's capabilities
 int getIndex()
          The index of the tuner
 java.lang.String getName()
          The name of the tuner
 int getRangehigh()
          The highest tunable frequency in units of 62.5 KHz, or if isCapLow() returns true, in units of 62.5 Hz.
 int getRangelow()
          The lowest tunable frequency in units of 62.5 KHz, or if isCapLow() returns true, in units of 62.5 Hz.
 int[] getReserved()
          Currently not used, returns null
 int getRxsubchans()
          The audio subprograms the hardware may currently receive
 int getSignal()
          The signal strength if known
 int getType()
          The type of the tuner
 boolean isAnalogTV()
          Returns true, if the tuner is an analog TV
 boolean isCapLow()
          Returns true, if the frequency is in units of 62.5 Hz, and false, if it is in units of 62.5 kHz.
 boolean isMultistandard()
          Is a multi-standard tuner
 boolean isRadio()
          Returns true, if the tuner is a radio
 void setAudmode(int audmode)
          Sets the audiomode, currently the only field that can be set
 void setIndex(int index)
          Sets the index of the tuner that should be queried/set
 boolean supportsLang1()
          Returns true, if reception of a primary language (of two) is supported
 boolean supportsLang2()
          Returns true, if reception of a secondary language is supported
 boolean supportsSAP()
          Returns true, if reception of the Secondary Audio Program is supported
 boolean supportsStereo()
          Returns true, if stereo audio reception is supported
 java.lang.String toString()
          String representation of the tuner info
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

V4L2_TUNER_CAP_LOW

public static final int V4L2_TUNER_CAP_LOW
See Also:
Constant Field Values

V4L2_TUNER_CAP_NORM

public static final int V4L2_TUNER_CAP_NORM
See Also:
Constant Field Values

V4L2_TUNER_CAP_STEREO

public static final int V4L2_TUNER_CAP_STEREO
See Also:
Constant Field Values

V4L2_TUNER_CAP_LANG2

public static final int V4L2_TUNER_CAP_LANG2
See Also:
Constant Field Values

V4L2_TUNER_CAP_SAP

public static final int V4L2_TUNER_CAP_SAP
See Also:
Constant Field Values

V4L2_TUNER_CAP_LANG1

public static final int V4L2_TUNER_CAP_LANG1
See Also:
Constant Field Values

V4L2_TUNER_SUB_MONO

public static final int V4L2_TUNER_SUB_MONO
See Also:
Constant Field Values

V4L2_TUNER_SUB_STEREO

public static final int V4L2_TUNER_SUB_STEREO
See Also:
Constant Field Values

V4L2_TUNER_SUB_LANG2

public static final int V4L2_TUNER_SUB_LANG2
See Also:
Constant Field Values

V4L2_TUNER_SUB_SAP

public static final int V4L2_TUNER_SUB_SAP
See Also:
Constant Field Values

V4L2_TUNER_SUB_LANG1

public static final int V4L2_TUNER_SUB_LANG1
See Also:
Constant Field Values

V4L2_TUNER_MODE_MONO

public static final int V4L2_TUNER_MODE_MONO
See Also:
Constant Field Values

V4L2_TUNER_MODE_STEREO

public static final int V4L2_TUNER_MODE_STEREO
See Also:
Constant Field Values

V4L2_TUNER_MODE_LANG2

public static final int V4L2_TUNER_MODE_LANG2
See Also:
Constant Field Values

V4L2_TUNER_MODE_SAP

public static final int V4L2_TUNER_MODE_SAP
See Also:
Constant Field Values

V4L2_TUNER_MODE_LANG1

public static final int V4L2_TUNER_MODE_LANG1
See Also:
Constant Field Values

V4L2_TUNER_RADIO

public static final int V4L2_TUNER_RADIO
See Also:
Constant Field Values

V4L2_TUNER_ANALOG_TV

public static final int V4L2_TUNER_ANALOG_TV
See Also:
Constant Field Values

index

private int index

name

private java.lang.String name

type

private int type

capability

private int capability

rangelow

private int rangelow

rangehigh

private int rangehigh

rxsubchans

private int rxsubchans

audmode

private int audmode

signal

private int signal

afc

private int afc

reserved

private int[] reserved
Constructor Detail

V4L2Tuner

public V4L2Tuner()
Method Detail

getIndex

public int getIndex()
The index of the tuner


getName

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


getType

public int getType()
The type of the tuner


getCapability

public int getCapability()
The tuner's capabilities


getRangelow

public int getRangelow()
The lowest tunable frequency in units of 62.5 KHz, or if isCapLow() returns true, in units of 62.5 Hz.


getRangehigh

public int getRangehigh()
The highest tunable frequency in units of 62.5 KHz, or if isCapLow() returns true, in units of 62.5 Hz.


getRxsubchans

public int getRxsubchans()
The audio subprograms the hardware may currently receive


getAudmode

public int getAudmode()
The selected audio mode


getSignal

public int getSignal()
The signal strength if known


getAfc

public int getAfc()
Automatic frequency control


getReserved

public int[] getReserved()
Currently not used, returns null


isRadio

public boolean isRadio()
Returns true, if the tuner is a radio


isAnalogTV

public boolean isAnalogTV()
Returns true, if the tuner is an analog TV


isCapLow

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


isMultistandard

public boolean isMultistandard()
Is a multi-standard tuner


supportsStereo

public boolean supportsStereo()
Returns true, if stereo audio reception is supported


supportsLang1

public boolean supportsLang1()
Returns true, if reception of a primary language (of two) is supported


supportsLang2

public boolean supportsLang2()
Returns true, if reception of a secondary language is supported


supportsSAP

public boolean supportsSAP()
Returns true, if reception of the Secondary Audio Program is supported


setIndex

public void setIndex(int index)
Sets the index of the tuner that should be queried/set


setAudmode

public void setAudmode(int audmode)
Sets the audiomode, currently the only field that can be set


getAudmodes

public V4L2Tuner.Audmode[] getAudmodes()
Returns the audio modes supported by the tuner


toString

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



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