Struct linuxvideo::VideoOutputDevice
source · pub struct VideoOutputDevice { /* private fields */ }Expand description
A video device configured for video output.
Implementations§
source§impl VideoOutputDevice
impl VideoOutputDevice
sourcepub fn into_stream(self) -> Result<WriteStream>
pub fn into_stream(self) -> Result<WriteStream>
Initializes streaming I/O mode.
Trait Implementations§
source§impl Write for VideoOutputDevice
impl Write for VideoOutputDevice
Performs a direct write() on the video device file, writing a video frame to it.
This will only succeed if the device advertises the READWRITE capability, otherwise an
error will be returned and you have to use the streaming API instead.
Note that some applications, like guvcview, do not support the read/write methods, so using this on a v4l2loopback device will not work with such applications.
source§fn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this writer, returning how many bytes were written. Read more
source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector)1.0.0 · source§fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read more
source§fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
🔬This is a nightly-only experimental API. (
write_all_vectored)Attempts to write multiple buffers into this writer. Read more