[−][src]Struct v4l::io::mmap::stream::Stream
Stream of mapped buffers
An arena instance is used internally for buffer handling.
Implementations
impl<'a> Stream<'a>
[src]
pub fn new(dev: &Device, buf_type: Type) -> Result<Self>
[src]
Returns a stream for frame capturing
Arguments
dev
- Capture device ref to get its file descriptorbuf_type
- Type of the buffers
Example
use v4l::buffer::Type; use v4l::device::Device; use v4l::io::mmap::Stream; let dev = Device::new(0); if let Ok(dev) = dev { let stream = Stream::new(&dev, Type::VideoCapture); }
pub fn with_buffers(
dev: &Device,
buf_type: Type,
buf_count: u32
) -> Result<Self>
[src]
dev: &Device,
buf_type: Type,
buf_count: u32
) -> Result<Self>
Trait Implementations
impl<'a, 'b> CaptureStream<'b> for Stream<'a>
[src]
pub fn queue(&mut self, index: usize) -> Result<()>
[src]
pub fn dequeue(&mut self) -> Result<usize>
[src]
pub fn get(&self, index: usize) -> Option<&Self::Item>
[src]
pub fn get_meta(&self, index: usize) -> Option<&Metadata>
[src]
pub fn next(&'b mut self) -> Result<(&Self::Item, &Metadata)>
[src]
impl<'a> Drop for Stream<'a>
[src]
impl<'a, 'b> OutputStream<'b> for Stream<'a>
[src]
pub fn queue(&mut self, index: usize) -> Result<()>
[src]
pub fn dequeue(&mut self) -> Result<usize>
[src]
pub fn get(&mut self, index: usize) -> Option<&mut Self::Item>
[src]
pub fn get_meta(&mut self, index: usize) -> Option<&mut Metadata>
[src]
pub fn next(&'b mut self) -> Result<(&mut Self::Item, &mut Metadata)>
[src]
impl<'a> Stream for Stream<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Stream<'a>
[src]
impl<'a> Send for Stream<'a>
[src]
impl<'a> Sync for Stream<'a>
[src]
impl<'a> Unpin for Stream<'a>
[src]
impl<'a> !UnwindSafe for Stream<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,