net.luniks.linux.jv4linfo
Class V4L2Input

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

public class V4L2Input
extends java.lang.Object

Class to hold information about an input 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  int audioset
           
private  int index
           
private  java.lang.String name
           
private  int status
           
private  long std
           
private  V4L2Standard[] supportedStds
           
private  int tuner
           
private  int type
           
static int V4L2_IN_ST_COLOR_KILL
          Color killer is active
static int V4L2_IN_ST_MACROVISION
          Macrovision detected
static int V4L2_IN_ST_NO_ACCESS
          Conditional access denied
static int V4L2_IN_ST_NO_CARRIER
          Carrier recovery failed
static int V4L2_IN_ST_NO_COLOR
          Attached device has no color
static int V4L2_IN_ST_NO_EQU
          No equalizer lock
static int V4L2_IN_ST_NO_H_LOCK
          No horizontal sync lock
static int V4L2_IN_ST_NO_POWER
          Attached device is off
static int V4L2_IN_ST_NO_SIGNAL
          Attached device has no signal
static int V4L2_IN_ST_NO_SYNC
          No synchronization lock
static int V4L2_IN_ST_VTR
          VTR time constant
static int V4L2_INPUT_TYPE_CAMERA
          Input type is camera
static int V4L2_INPUT_TYPE_TUNER
          Input type is tuner
 
Constructor Summary
V4L2Input()
           
 
Method Summary
 boolean colorKill()
          Color killer is active
 int getAudioset()
          Associated audios (bitfield)
 int getIndex()
          Which input
 java.lang.String getName()
          Name
 int getStatus()
          Status
 long getStd()
          TV standard (norm)
 V4L2Standard[] getSupportedStds()
          Returns a list of standards supported by this input
 int getTuner()
          Associated tuner
 int getType()
          Type of input
 boolean isCamera()
          Input type is camera
 boolean isTuner()
          Input type is tuner
 boolean macrovision()
          Macrovision detected
 boolean noAccess()
          Conditional access denied
 boolean noCarrier()
          Carrier recovery failed
 boolean noColor()
          Attached device has no color
 boolean noEqu()
          No equalizer lock
 boolean noHLock()
          No horizontal sync lock
 boolean noPower()
          Attached device is off
 boolean noSignal()
          Attached device has no signal
 boolean noSync()
          No synchronization lock
 void setIndex(int index)
          Sets the index of the input that should be queried/set
 void setSupportedStds(V4L2Standard[] supportedStds)
          Sets the list of standards supported by this input
 java.lang.String toString()
          String representation of the input info
 boolean vtr()
          VTR time constant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

V4L2_INPUT_TYPE_TUNER

public static final int V4L2_INPUT_TYPE_TUNER
Input type is tuner

See Also:
Constant Field Values

V4L2_INPUT_TYPE_CAMERA

public static final int V4L2_INPUT_TYPE_CAMERA
Input type is camera

See Also:
Constant Field Values

V4L2_IN_ST_NO_POWER

public static final int V4L2_IN_ST_NO_POWER
Attached device is off

See Also:
Constant Field Values

V4L2_IN_ST_NO_SIGNAL

public static final int V4L2_IN_ST_NO_SIGNAL
Attached device has no signal

See Also:
Constant Field Values

V4L2_IN_ST_NO_COLOR

public static final int V4L2_IN_ST_NO_COLOR
Attached device has no color

See Also:
Constant Field Values

V4L2_IN_ST_NO_H_LOCK

public static final int V4L2_IN_ST_NO_H_LOCK
No horizontal sync lock

See Also:
Constant Field Values

V4L2_IN_ST_COLOR_KILL

public static final int V4L2_IN_ST_COLOR_KILL
Color killer is active

See Also:
Constant Field Values

V4L2_IN_ST_NO_SYNC

public static final int V4L2_IN_ST_NO_SYNC
No synchronization lock

See Also:
Constant Field Values

V4L2_IN_ST_NO_EQU

public static final int V4L2_IN_ST_NO_EQU
No equalizer lock

See Also:
Constant Field Values

V4L2_IN_ST_NO_CARRIER

public static final int V4L2_IN_ST_NO_CARRIER
Carrier recovery failed

See Also:
Constant Field Values

V4L2_IN_ST_MACROVISION

public static final int V4L2_IN_ST_MACROVISION
Macrovision detected

See Also:
Constant Field Values

V4L2_IN_ST_NO_ACCESS

public static final int V4L2_IN_ST_NO_ACCESS
Conditional access denied

See Also:
Constant Field Values

V4L2_IN_ST_VTR

public static final int V4L2_IN_ST_VTR
VTR time constant

See Also:
Constant Field Values

index

private int index

name

private java.lang.String name

type

private int type

audioset

private int audioset

tuner

private int tuner

std

private long std

status

private int status

supportedStds

private V4L2Standard[] supportedStds
Constructor Detail

V4L2Input

public V4L2Input()
Method Detail

getIndex

public int getIndex()
Which input


getName

public java.lang.String getName()
Name


getType

public int getType()
Type of input


getAudioset

public int getAudioset()
Associated audios (bitfield)


getTuner

public int getTuner()
Associated tuner


getStd

public long getStd()
TV standard (norm)


getStatus

public int getStatus()
Status


getSupportedStds

public V4L2Standard[] getSupportedStds()
Returns a list of standards supported by this input


isTuner

public boolean isTuner()
Input type is tuner


isCamera

public boolean isCamera()
Input type is camera


noPower

public boolean noPower()
Attached device is off


noSignal

public boolean noSignal()
Attached device has no signal


noColor

public boolean noColor()
Attached device has no color


noHLock

public boolean noHLock()
No horizontal sync lock


colorKill

public boolean colorKill()
Color killer is active


noSync

public boolean noSync()
No synchronization lock


noEqu

public boolean noEqu()
No equalizer lock


noCarrier

public boolean noCarrier()
Carrier recovery failed


macrovision

public boolean macrovision()
Macrovision detected


noAccess

public boolean noAccess()
Conditional access denied


vtr

public boolean vtr()
VTR time constant


setIndex

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


setSupportedStds

public void setSupportedStds(V4L2Standard[] supportedStds)
Sets the list of standards supported by this input


toString

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



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