pub struct LumaAFormat;Expand description
A Zero-Size-Type that contains the definition to convert a given image stream to an LumaA8(Grayscale 8-bit with 8-bit alpha) in the Buffer’s .decode_image()
use image::{ImageBuffer, LumaA};
let image: ImageBuffer<LumaA<u8>, Vec<u8>> = buffer.to_image::<LumaAFormat>();Trait Implementations§
Source§impl Clone for LumaAFormat
impl Clone for LumaAFormat
Source§fn clone(&self) -> LumaAFormat
fn clone(&self) -> LumaAFormat
Returns a duplicate 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 Debug for LumaAFormat
impl Debug for LumaAFormat
Source§impl Default for LumaAFormat
impl Default for LumaAFormat
Source§fn default() -> LumaAFormat
fn default() -> LumaAFormat
Returns the “default value” for a type. Read more
Source§impl FormatDecoder for LumaAFormat
impl FormatDecoder for LumaAFormat
const FORMATS: &'static [FrameFormat]
type Output = LumaA<u8>
Source§fn write_output(
fcc: FrameFormat,
resolution: Resolution,
data: &[u8],
) -> Result<Vec<u8>, NokhwaError>
fn write_output( fcc: FrameFormat, resolution: Resolution, data: &[u8], ) -> Result<Vec<u8>, NokhwaError>
Allocates and returns a
Vec Read moreSource§fn write_output_buffer(
fcc: FrameFormat,
_resolution: Resolution,
data: &[u8],
dest: &mut [u8],
) -> Result<(), NokhwaError>
fn write_output_buffer( fcc: FrameFormat, _resolution: Resolution, data: &[u8], dest: &mut [u8], ) -> Result<(), NokhwaError>
Writes to a user provided buffer. Read more
Source§impl Hash for LumaAFormat
impl Hash for LumaAFormat
Source§impl Ord for LumaAFormat
impl Ord for LumaAFormat
Source§fn cmp(&self, other: &LumaAFormat) -> Ordering
fn cmp(&self, other: &LumaAFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LumaAFormat
impl PartialEq for LumaAFormat
Source§impl PartialOrd for LumaAFormat
impl PartialOrd for LumaAFormat
impl Copy for LumaAFormat
impl Eq for LumaAFormat
impl StructuralPartialEq for LumaAFormat
Auto Trait Implementations§
impl Freeze for LumaAFormat
impl RefUnwindSafe for LumaAFormat
impl Send for LumaAFormat
impl Sync for LumaAFormat
impl Unpin for LumaAFormat
impl UnsafeUnpin for LumaAFormat
impl UnwindSafe for LumaAFormat
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