aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2019-05-18 11:43:41 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2019-05-18 11:43:41 +0200
commit01b4e528eb3b54c894fea4cdd9236568ab58c855 (patch)
treec0510f7124f88a73b6f8db88cb8d79a501ef2f29
parent74afc7de723f0e5a3d3ae93ccc775ef63c62b746 (diff)
downloadnihav-01b4e528eb3b54c894fea4cdd9236568ab58c855.tar.gz
core: make blockdsp an independent feature
-rw-r--r--nihav-core/Cargo.toml3
-rw-r--r--nihav-core/src/codecs/mod.rs2
-rw-r--r--nihav-realmedia/Cargo.toml2
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<dyn NADecoder>,
}
-#[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"]