From: Kostya Shishkov Date: Sat, 18 May 2019 09:43:41 +0000 (+0200) Subject: core: make blockdsp an independent feature X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=01b4e528eb3b54c894fea4cdd9236568ab58c855;p=nihav.git core: make blockdsp an independent feature --- diff --git a/nihav-core/Cargo.toml b/nihav-core/Cargo.toml index ea77c95..e898b04 100644 --- a/nihav-core/Cargo.toml +++ b/nihav-core/Cargo.toml @@ -10,7 +10,8 @@ default = ["decoders", "demuxers"] decoders = [] demuxers = [] -h263 = [] +blockdsp = [] +h263 = ["blockdsp"] dsp = [] dct = ["dsp"] diff --git a/nihav-core/src/codecs/mod.rs b/nihav-core/src/codecs/mod.rs index 311a45e..6cc8880 100644 --- a/nihav-core/src/codecs/mod.rs +++ b/nihav-core/src/codecs/mod.rs @@ -263,7 +263,7 @@ pub struct DecoderInfo { pub get_decoder: fn () -> Box, } -#[cfg(any(feature="h263"))] +#[cfg(any(feature="blockdsp"))] pub mod blockdsp; #[cfg(feature="h263")] diff --git a/nihav-realmedia/Cargo.toml b/nihav-realmedia/Cargo.toml index cfaf2ac..57db271 100644 --- a/nihav-realmedia/Cargo.toml +++ b/nihav-realmedia/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies.nihav_core] path = "../nihav-core" -features = ["h263", "mdct"] +features = ["h263", "mdct", "blockdsp"] [features] default = ["all_decoders", "all_demuxers"]