[][src]Struct resize::Resizer

pub struct Resizer<Pixel: PixelFormat> { /* fields omitted */ }

Resampler with preallocated buffers and coeffecients for the given dimensions and filter type.

Methods

impl<Pixel: PixelFormat> Resizer<Pixel>[src]

pub fn new(
    source_width: usize,
    source_heigth: usize,
    dest_width: usize,
    dest_height: usize,
    pixel_format: Pixel,
    filter_type: Type
) -> Self
[src]

Create a new resizer instance.

pub fn resize(&mut self, src: &[Pixel::Subpixel], dst: &mut [Pixel::Subpixel])[src]

Resize src image data into dst.

pub fn resize_stride(
    &mut self,
    src: &[Pixel::Subpixel],
    src_stride: usize,
    dst: &mut [Pixel::Subpixel]
)
[src]

Resize src image data into dst, skipping stride pixels each row.

Trait Implementations

impl<Pixel: Debug + PixelFormat> Debug for Resizer<Pixel>[src]

Auto Trait Implementations

impl<Pixel> RefUnwindSafe for Resizer<Pixel> where
    Pixel: RefUnwindSafe

impl<Pixel> Send for Resizer<Pixel> where
    Pixel: Send

impl<Pixel> Sync for Resizer<Pixel> where
    Pixel: Sync

impl<Pixel> Unpin for Resizer<Pixel> where
    Pixel: Unpin

impl<Pixel> UnwindSafe for Resizer<Pixel> where
    Pixel: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.