pub struct DecoderInfo {
pub path: PathBuf,
pub driver: String,
pub h264: bool,
pub hevc: bool,
pub stateful: bool,
}Expand description
One decoder node and what it accepts.
Fields§
§path: PathBufThe device node, /dev/videoN.
driver: StringThe driver’s name, as it reports it.
h264: boolWhether the compressed queue accepts H.264.
hevc: boolWhether the compressed queue accepts HEVC.
stateful: boolWhether the decoder is stateful — feed bytes, frames come out.
A stateless decoder (rpivid) advertises the codec but needs
userspace to parse slices and drive the request API; this crate’s
stateful path must not be pointed at one. Heuristic: stateless
drivers expose their controls and are known by name.
Trait Implementations§
Source§impl Clone for DecoderInfo
impl Clone for DecoderInfo
Source§fn clone(&self) -> DecoderInfo
fn clone(&self) -> DecoderInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DecoderInfo
impl RefUnwindSafe for DecoderInfo
impl Send for DecoderInfo
impl Sync for DecoderInfo
impl Unpin for DecoderInfo
impl UnsafeUnpin for DecoderInfo
impl UnwindSafe for DecoderInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more