|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.luniks.linux.jv4linfo.V4LCtrl
Class to query and control a v4l device such as getting or setting the currently selected video norm
Field Summary | |
private java.lang.String |
device
|
private V4LInfo |
info
|
Constructor Summary | |
V4LCtrl(java.lang.String device)
|
Method Summary | |
V4LInfo |
getInfo()
|
long |
getSelectedFrequency()
Returns the currently selected frequency |
int |
getSelectedNorm(int channel)
Returns the currently selected video norm of the channel given as argument |
void |
setMuted(boolean mute)
Mutes or unmutes the audio channels |
void |
setSelectedAudiomode(int mode)
Sets the selected audiomode by setting the audiomode of all audio inputs to the value given as argument |
void |
setSelectedChannel(int channel)
Sets the selected channel by the index given as argument |
void |
setSelectedFrequency(long units)
Sets the frequency in units of 62.5 Hz if VideoTuner.isLow() returns true, in units of 62.5 kHz otherwise. |
void |
setSelectedNorm(int channel,
int norm)
Sets the selected norm of the channel specified as first argument by the value 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 V4LInfo info
Constructor Detail |
public V4LCtrl(java.lang.String device) throws JV4LInfoException
Method Detail |
public V4LInfo getInfo()
public int getSelectedNorm(int channel) throws JV4LInfoException
JV4LInfoException
public long getSelectedFrequency() throws JV4LInfoException
JV4LInfoException
public void setSelectedChannel(int channel) throws JV4LInfoException
channel
- the index to set the channel to
JV4LInfoException
public void setSelectedNorm(int channel, int norm) throws JV4LInfoException
channel
- the channel of that the norm should be setnorm
- the norm to set
JV4LInfoException
public void setSelectedFrequency(long units) throws JV4LInfoException
units
- the units to set the frequency to
JV4LInfoException
public void setSelectedAudiomode(int mode) throws JV4LInfoException
mode
- the audio mode 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 |