From 01b4e528eb3b54c894fea4cdd9236568ab58c855 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 18 May 2019 11:43:41 +0200 Subject: [PATCH] core: make blockdsp an independent feature --- nihav-core/Cargo.toml | 3 ++- nihav-core/src/codecs/mod.rs | 2 +- nihav-realmedia/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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"] -- 2.30.2