pub struct SpanImageResampleAffine<'a> { /* private fields */ }Expand description
Image resampling state for affine transformations.
Computes scale factors from the interpolator’s affine matrix once per
scanline (in prepare()), limiting them to avoid excessive filter expansion.
Port of C++ span_image_resample_affine<Source>.
Implementations§
Source§impl<'a> SpanImageResampleAffine<'a>
impl<'a> SpanImageResampleAffine<'a>
Sourcepub fn new(
interpolator: &'a mut SpanInterpolatorLinear<TransAffine>,
filter: &'a ImageFilterLut,
) -> Self
pub fn new( interpolator: &'a mut SpanInterpolatorLinear<TransAffine>, filter: &'a ImageFilterLut, ) -> Self
Create with interpolator and filter.
pub fn base( &self, ) -> &SpanImageFilterBase<'a, SpanInterpolatorLinear<TransAffine>>
pub fn base_mut( &mut self, ) -> &mut SpanImageFilterBase<'a, SpanInterpolatorLinear<TransAffine>>
pub fn scale_limit(&self) -> u32
pub fn set_scale_limit(&mut self, v: i32)
pub fn blur_x(&self) -> f64
pub fn blur_y(&self) -> f64
pub fn set_blur_x(&mut self, v: f64)
pub fn set_blur_y(&mut self, v: f64)
pub fn set_blur(&mut self, v: f64)
pub fn rx(&self) -> i32
pub fn ry(&self) -> i32
pub fn rx_inv(&self) -> i32
pub fn ry_inv(&self) -> i32
Auto Trait Implementations§
impl<'a> Freeze for SpanImageResampleAffine<'a>
impl<'a> RefUnwindSafe for SpanImageResampleAffine<'a>
impl<'a> Send for SpanImageResampleAffine<'a>
impl<'a> Sync for SpanImageResampleAffine<'a>
impl<'a> Unpin for SpanImageResampleAffine<'a>
impl<'a> !UnwindSafe for SpanImageResampleAffine<'a>
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