mirror of
https://github.com/Cykooz/fast_image_resize.git
synced 2026-10-08 01:11:09 +00:00
Fixed typo in name of CatmullRom filter type.
This commit is contained in:
+1
-1
@@ -1,3 +1,3 @@
|
||||
## [Unreleased] - ReleaseDate
|
||||
|
||||
- Initial version.
|
||||
- Fixed typo in name of CatmullRom filter type.
|
||||
|
||||
@@ -95,7 +95,7 @@ pub fn bench_downscale_rgb(bench: &mut Bench) {
|
||||
let resize_alg = match alg_name {
|
||||
"Nearest" => ResizeAlg::Nearest,
|
||||
"Bilinear" => ResizeAlg::Convolution(FilterType::Bilinear),
|
||||
"CatmullRom" => ResizeAlg::Convolution(FilterType::CatmulRom),
|
||||
"CatmullRom" => ResizeAlg::Convolution(FilterType::CatmullRom),
|
||||
"Lanczos3" => ResizeAlg::Convolution(FilterType::Lanczos3),
|
||||
_ => return,
|
||||
};
|
||||
|
||||
@@ -79,7 +79,7 @@ pub fn bench_downscale_rgba(bench: &mut Bench) {
|
||||
let resize_alg = match alg_name {
|
||||
"Nearest" => ResizeAlg::Nearest,
|
||||
"Bilinear" => ResizeAlg::Convolution(FilterType::Bilinear),
|
||||
"CatmullRom" => ResizeAlg::Convolution(FilterType::CatmulRom),
|
||||
"CatmullRom" => ResizeAlg::Convolution(FilterType::CatmullRom),
|
||||
"Lanczos3" => ResizeAlg::Convolution(FilterType::Lanczos3),
|
||||
_ => return,
|
||||
};
|
||||
|
||||
@@ -21,7 +21,7 @@ pub enum FilterType {
|
||||
/// Catmull-Rom bicubic filter calculate the output pixel value using
|
||||
/// cubic interpolation on all pixels that may contribute to the output
|
||||
/// value.
|
||||
CatmulRom,
|
||||
CatmullRom,
|
||||
/// Mitchell–Netravali bicubic filter calculate the output pixel value
|
||||
/// using cubic interpolation on all pixels that may contribute to the
|
||||
/// output value.
|
||||
@@ -45,7 +45,7 @@ pub fn get_filter_func(filter_type: FilterType) -> (FilterFn<'static>, f64) {
|
||||
FilterType::Box => (&box_filter, 0.5),
|
||||
FilterType::Bilinear => (&bilinear_filter, 1.0),
|
||||
FilterType::Hamming => (&hamming_filter, 1.0),
|
||||
FilterType::CatmulRom => (&catmul_filter, 2.0),
|
||||
FilterType::CatmullRom => (&catmul_filter, 2.0),
|
||||
FilterType::Mitchell => (&mitchell_filter, 2.0),
|
||||
FilterType::Lanczos3 => (&lanczos_filter, 3.0),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user