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},