Struct openh264::formats::RgbSliceU8
source · pub struct RgbSliceU8<'a> { /* private fields */ }
Expand description
Container for a slice of contiguous [R G B R G B ...]
data.
Implementations§
Trait Implementations§
source§impl<'a> Clone for RgbSliceU8<'a>
impl<'a> Clone for RgbSliceU8<'a>
source§fn clone(&self) -> RgbSliceU8<'a>
fn clone(&self) -> RgbSliceU8<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for RgbSliceU8<'a>
impl<'a> Debug for RgbSliceU8<'a>
source§impl<'a> RGBSource for RgbSliceU8<'a>
impl<'a> RGBSource for RgbSliceU8<'a>
source§fn dimensions(&self) -> (usize, usize)
fn dimensions(&self) -> (usize, usize)
Returns the underlying image size as an
usize
tuple (w, h)
.source§fn pixel_f32(&self, x: usize, y: usize) -> (f32, f32, f32)
fn pixel_f32(&self, x: usize, y: usize) -> (f32, f32, f32)
Extract the pixel value at the specified location. Pixel values are
expected to be floats in the range
[0, 255]
(u8
represented as f32
).source§fn dimensions_i32(&self) -> (i32, i32)
fn dimensions_i32(&self) -> (i32, i32)
Returns the underlying image size as an
i32
tuple (w, h)
.impl<'a> Copy for RgbSliceU8<'a>
Auto Trait Implementations§
impl<'a> Freeze for RgbSliceU8<'a>
impl<'a> RefUnwindSafe for RgbSliceU8<'a>
impl<'a> Send for RgbSliceU8<'a>
impl<'a> Sync for RgbSliceU8<'a>
impl<'a> Unpin for RgbSliceU8<'a>
impl<'a> UnwindSafe for RgbSliceU8<'a>
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