pub struct SimdConverter { /* private fields */ }Expand description
SIMD converter for pixel format operations
Implementations§
Source§impl SimdConverter
impl SimdConverter
Sourcepub fn convert_bgra_to_rgba(&self, data: &mut [u8])
pub fn convert_bgra_to_rgba(&self, data: &mut [u8])
Convert BGRA to RGBA using the best available SIMD instruction set
Sourcepub fn convert_bgr_to_rgb(&self, data: &mut [u8])
pub fn convert_bgr_to_rgb(&self, data: &mut [u8])
Convert BGR to RGB
Sourcepub fn convert_rgba_to_rgb(&self, src: &[u8], dst: &mut [u8])
pub fn convert_rgba_to_rgb(&self, src: &[u8], dst: &mut [u8])
Convert RGBA to RGB (remove alpha channel)
Sourcepub fn capabilities(&self) -> String
pub fn capabilities(&self) -> String
Get SIMD capabilities as a string
Sourcepub fn benchmark_conversion(&self, size: usize) -> Duration
pub fn benchmark_conversion(&self, size: usize) -> Duration
Benchmark pixel conversion performance
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimdConverter
impl RefUnwindSafe for SimdConverter
impl Send for SimdConverter
impl Sync for SimdConverter
impl Unpin for SimdConverter
impl UnsafeUnpin for SimdConverter
impl UnwindSafe for SimdConverter
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