diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2019-01-17 12:25:49 +0100 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2019-01-17 12:25:49 +0100 |
commit | 5641dccfbf2a70d589cf094a0d4ed5a10f919f00 (patch) | |
tree | ab444f3e91b46723187546b1b2820924fb332513 /nihav-allstuff | |
parent | b74ff9fac35d41737d71d97227fad233aa4a4b49 (diff) | |
download | nihav-5641dccfbf2a70d589cf094a0d4ed5a10f919f00.tar.gz |
split NihAV into subcrates
Diffstat (limited to 'nihav-allstuff')
-rw-r--r-- | nihav-allstuff/Cargo.toml | 11 | ||||
-rw-r--r-- | nihav-allstuff/src/lib.rs | 28 |
2 files changed, 39 insertions, 0 deletions
diff --git a/nihav-allstuff/Cargo.toml b/nihav-allstuff/Cargo.toml new file mode 100644 index 0000000..e366f4e --- /dev/null +++ b/nihav-allstuff/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "nihav_allstuff" +version = "0.1.0" +authors = ["Kostya Shishkov <kostya.shishkov@gmail.com>"] +edition = "2018" + +[dependencies] +nihav_core = { path = "../nihav-core" } +nihav_game = { path = "../nihav-game" } +nihav_indeo = { path = "../nihav-indeo" } +nihav_realmedia = { path = "../nihav-realmedia" }
\ No newline at end of file diff --git a/nihav-allstuff/src/lib.rs b/nihav-allstuff/src/lib.rs new file mode 100644 index 0000000..cb1e713 --- /dev/null +++ b/nihav-allstuff/src/lib.rs @@ -0,0 +1,28 @@ +extern crate nihav_core; +extern crate nihav_game; +extern crate nihav_indeo; +extern crate nihav_realmedia; + +use nihav_core::codecs::{RegisteredDecoders, core_register_all_codecs}; +use nihav_core::demuxers::{RegisteredDemuxers, core_register_all_demuxers}; + +use nihav_game::codecs::game_register_all_codecs; +use nihav_game::demuxers::game_register_all_demuxers; + +use nihav_indeo::codecs::indeo_register_all_codecs; + +use nihav_realmedia::codecs::realmedia_register_all_codecs; +use nihav_realmedia::demuxers::realmedia_register_all_demuxers; + +pub fn nihav_register_all_codecs(rd: &mut RegisteredDecoders) { + core_register_all_codecs(rd); + game_register_all_codecs(rd); + indeo_register_all_codecs(rd); + realmedia_register_all_codecs(rd); +} + +pub fn nihav_register_all_demuxers(rd: &mut RegisteredDemuxers) { + core_register_all_demuxers(rd); + game_register_all_demuxers(rd); + realmedia_register_all_demuxers(rd); +} |