Struct linuxvideo::Input
source · pub struct Input(_);Expand description
Information about a device input.
Implementations§
source§impl Input
impl Input
sourcepub fn input_type(&self) -> InputType
pub fn input_type(&self) -> InputType
Returns what kind of device this input is.
sourcepub fn audioset(&self) -> u32
pub fn audioset(&self) -> u32
Returns the set of selectable audio sources when this input is active.
This may return 0 even if the device supports audio inputs to indicate that the application cannot choose an audio input.
sourcepub fn tuner(&self) -> u32
pub fn tuner(&self) -> u32
Returns the tuner index if this input is of type InputType::TUNER.
For non-tuner inputs, this value should be ignored.
sourcepub fn std(&self) -> AnalogStd
pub fn std(&self) -> AnalogStd
Returns the set of supported analog video standards for this input.
sourcepub fn status(&self) -> InputStatus
pub fn status(&self) -> InputStatus
Returns the current status of the input.
Note that the input needs to be selected as the active input for most fields in this value to be valid.
sourcepub fn capabilities(&self) -> InputCapabilities
pub fn capabilities(&self) -> InputCapabilities
Returns the capability flags of this input.