|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.luniks.linux.jv4linfo.V4L2Ctrl
Class to query and control a v4l2 device such as getting or setting the currently selected video standard
Field Summary | |
private java.lang.String |
device
|
private V4L2Info |
info
|
Constructor Summary | |
V4L2Ctrl(java.lang.String device)
|
Method Summary | |
V4L2Info |
getInfo()
|
int |
getSelectedAudiomode()
Looks at all inputs starting with index '0' and returns the audiomode of the tuner associated with the first input of type tuner |
V4L2Frequency |
getSelectedFrequency()
Looks at all inputs starting with index '0' and returns the frequency of the tuner associated with the first input of type tuner as V4L2Frequency instance |
V4L2Input |
getSelectedInput()
Returns the currently selected input as V4L2Input instance. |
V4L2Standard |
getSelectedStandard()
Returns the currently selected standard as V4L2Standard instance. |
V4L2Tuner |
getTuner()
Looks at all inputs starting with index '0' and returns the tuner associated with the first input of type tuner |
void |
setMuted(boolean mute)
Mutes or unmutes the device |
void |
setSelectedAudiomode(int value)
Looks at all inputs starting with index '0' and sets the audiomode of the tuner associated with the first input of type tuner to the audiomode value given as argument |
void |
setSelectedFrequency(int units)
Looks at all inputs starting with index '0' and sets the frequency of the tuner associated with the first input of type tuner to the frequency value given as argument in units of 62.5 Hz if V4L2Tuner.isCapLow() returns true, in units of 62.5 kHz otherwise. |
void |
setSelectedInput(int index)
Sets the selected input by the index given as argument |
void |
setSelectedStandard(int index)
Sets the selected standard by the index given as argument |
void |
setSelectedStandard(long id)
Sets the selected standard by the id given as argument |
java.lang.String |
toString()
String representation of the current selection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String device
private V4L2Info info
Constructor Detail |
public V4L2Ctrl(java.lang.String device) throws JV4LInfoException
Method Detail |
public V4L2Info getInfo()
public V4L2Input getSelectedInput() throws JV4LInfoException
JV4LInfoException
public V4L2Standard getSelectedStandard() throws JV4LInfoException
JV4LInfoException
public V4L2Tuner getTuner() throws JV4LInfoException
JV4LInfoException
public V4L2Frequency getSelectedFrequency() throws JV4LInfoException
JV4LInfoException
public int getSelectedAudiomode() throws JV4LInfoException
JV4LInfoException
public void setSelectedInput(int index) throws JV4LInfoException
index
- the index to set the input to
JV4LInfoException
public void setSelectedStandard(long id) throws JV4LInfoException
id
- the id to set the standard to
JV4LInfoException
public void setSelectedStandard(int index) throws JV4LInfoException
index
- the index to set the standard to
JV4LInfoException
public void setSelectedFrequency(int units) throws JV4LInfoException
units
- the units to set the frequency to
JV4LInfoException
public void setSelectedAudiomode(int value) throws JV4LInfoException
value
- the value of the audiomode to be set
JV4LInfoException
public void setMuted(boolean mute) throws JV4LInfoException
mute
- true to mute, false to unmute
JV4LInfoException
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |