Struct resize::Resizer [−][src]
Resampler with preallocated buffers and coeffecients for the given dimensions and filter type.
Implementations
impl<Format: PixelFormat> Resizer<Format>
[src]
pub fn new(
source_width: usize,
source_heigth: usize,
dest_width: usize,
dest_height: usize,
pixel_format: Format,
filter_type: Type
) -> Result<Self>
[src]
source_width: usize,
source_heigth: usize,
dest_width: usize,
dest_height: usize,
pixel_format: Format,
filter_type: Type
) -> Result<Self>
Create a new resizer instance.
impl<Format: PixelFormat> Resizer<Format>
[src]
pub fn resize(
&mut self,
src: &[Format::InputPixel],
dst: &mut [Format::OutputPixel]
) -> Result<()>
[src]
&mut self,
src: &[Format::InputPixel],
dst: &mut [Format::OutputPixel]
) -> Result<()>
Resize src
image data into dst
.
pub fn resize_stride(
&mut self,
src: &[Format::InputPixel],
src_stride: usize,
dst: &mut [Format::OutputPixel]
) -> Result<()>
[src]
&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
impl<Format: Debug + PixelFormat> Debug for Resizer<Format> where
Format::Accumulator: Debug,
[src]
Format::Accumulator: Debug,
Auto Trait Implementations
impl<Format> RefUnwindSafe for Resizer<Format> where
Format: RefUnwindSafe,
<Format as PixelFormat>::Accumulator: RefUnwindSafe,
Format: RefUnwindSafe,
<Format as PixelFormat>::Accumulator: RefUnwindSafe,
impl<Format> Send for Resizer<Format> where
Format: Send,
<Format as PixelFormat>::Accumulator: Send,
Format: Send,
<Format as PixelFormat>::Accumulator: Send,
impl<Format> Sync for Resizer<Format> where
Format: Sync,
<Format as PixelFormat>::Accumulator: Sync,
Format: Sync,
<Format as PixelFormat>::Accumulator: Sync,
impl<Format> Unpin for Resizer<Format> where
Format: Unpin,
<Format as PixelFormat>::Accumulator: Unpin,
Format: Unpin,
<Format as PixelFormat>::Accumulator: Unpin,
impl<Format> UnwindSafe for Resizer<Format> where
Format: UnwindSafe,
<Format as PixelFormat>::Accumulator: UnwindSafe,
Format: UnwindSafe,
<Format as PixelFormat>::Accumulator: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,