pub struct Resizer<Format: PixelFormat> { /* private fields */ }
Expand description
Resampler with preallocated buffers and coeffecients for the given dimensions and filter type.
Implementations§
source§impl<Format: PixelFormat> Resizer<Format>
impl<Format: PixelFormat> Resizer<Format>
source§impl<Format: PixelFormat> Resizer<Format>
impl<Format: PixelFormat> Resizer<Format>
sourcepub fn resize(
&mut self,
src: &[Format::InputPixel],
dst: &mut [Format::OutputPixel]
) -> Result<()>
pub fn resize( &mut self, src: &[Format::InputPixel], dst: &mut [Format::OutputPixel] ) -> Result<()>
Resize src
image data into dst
.
sourcepub fn resize_stride(
&mut self,
src: &[Format::InputPixel],
src_stride: usize,
dst: &mut [Format::OutputPixel]
) -> Result<()>
pub fn resize_stride( &mut self, src: &[Format::InputPixel], src_stride: usize, dst: &mut [Format::OutputPixel] ) -> Result<()>
Resize src
image data into dst
, skipping stride
pixels each row.
Trait Implementations§
Auto Trait Implementations§
impl<Format> RefUnwindSafe for Resizer<Format>
impl<Format> Send for Resizer<Format>
impl<Format> Sync for Resizer<Format>
impl<Format> Unpin for Resizer<Format>
impl<Format> UnwindSafe for Resizer<Format>
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