mirror of
https://github.com/Cykooz/fast_image_resize.git
synced 2026-10-08 01:11:09 +00:00
Disabled using libvips under Windows.
This commit is contained in:
@@ -47,6 +47,9 @@ testing = { path = "testing" }
|
||||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
||||
nix = { version = "0.27", default-features = false, features = ["sched"] }
|
||||
|
||||
|
||||
[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "windows")))'.dev-dependencies]
|
||||
libvips = "=1.4.3"
|
||||
|
||||
|
||||
|
||||
@@ -86,11 +86,11 @@ pub fn resize_resize<Format, Out>(
|
||||
/// Resize image with help of "libvips" crate (https://crates.io/crates/libvips)
|
||||
|
||||
pub fn libvips_resize<P: PixelTestingExt>(bench_group: &mut BenchGroup, has_alpha: bool) {
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
#[cfg(all(not(target_arch = "wasm32"), not(target_os = "windows")))]
|
||||
vips::libvips_resize_inner::<P>(bench_group, has_alpha);
|
||||
}
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
#[cfg(all(not(target_arch = "wasm32"), not(target_os = "windows")))]
|
||||
mod vips {
|
||||
use libvips::ops::{self, BandFormat, Kernel, ReduceOptions};
|
||||
use libvips::{VipsApp, VipsImage};
|
||||
@@ -99,7 +99,6 @@ mod vips {
|
||||
|
||||
const SAMPLE_SIZE: usize = 100;
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub(crate) fn libvips_resize_inner<P: PixelTestingExt>(
|
||||
bench_group: &mut BenchGroup,
|
||||
has_alpha: bool,
|
||||
|
||||
Reference in New Issue
Block a user