Struct robot36_encoder::Robot36Image
source · [−]pub struct Robot36Image { /* private fields */ }
Expand description
Represents an image that will be encoded
Implementations
sourceimpl Robot36Image
impl Robot36Image
sourcepub fn from_rgb8_vec(vec: Vec<(R, G, B)>) -> Result<Self, ImageCreationError>
pub fn from_rgb8_vec(vec: Vec<(R, G, B)>) -> Result<Self, ImageCreationError>
Creates a Robot36Image from a RGB8 vec.
pub fn get_height(&self) -> usize
pub fn get_width(&self) -> usize
pub fn get_y(&self, x: usize, y: usize) -> &Y
pub fn get_u(&self, x: usize, y: usize) -> &U
pub fn get_v(&self, x: usize, y: usize) -> &V
Auto Trait Implementations
impl RefUnwindSafe for Robot36Image
impl Send for Robot36Image
impl Sync for Robot36Image
impl Unpin for Robot36Image
impl UnwindSafe for Robot36Image
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more