eye 0.5.0

Cross platform camera capture and control
Documentation
use eye_hal::buffer::Buffer;
use eye_hal::format::{ImageFormat, PixelFormat};

#[derive(Clone)]
pub struct Frame<'a> {
    buffer: Buffer<'a>,
    format: ImageFormat,
}

impl<'a> Frame<'a> {
    /// Returns the underlying buffer
    pub fn buf(&self) -> &Buffer {
        &self.buffer
    }

    /// Returns the image format
    pub fn fmt(&self) -> &ImageFormat {
        &self.format
    }
}