From 7b373e69ce5d8ab713ba9c0ffba3989104967c5a Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Mon, 1 Apr 2024 00:37:09 +0200 Subject: [PATCH] Fix compilation errors with some feature combinations --- src/lib.rs | 2 ++ src/util.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 849945f..4dec82e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -115,6 +115,8 @@ pub use diff::*; pub use estimate::*; #[cfg(feature = "parse")] pub use parse::*; + +#[cfg(any(feature = "diff", feature = "estimate"))] pub use v_frame; /// The max number of luma scaling points for grain synthesis diff --git a/src/util.rs b/src/util.rs index 530272a..af8ab4c 100644 --- a/src/util.rs +++ b/src/util.rs @@ -1,5 +1,7 @@ +#[cfg(feature = "diff")] use std::{borrow::Cow, mem::size_of}; +#[cfg(feature = "diff")] use v_frame::{ frame::Frame, prelude::{CastFromPrimitive, ChromaSampling, Pixel},