]> git.nihav.org Git - nihav.git/commitdiff
allstuff: add encoders and muxers
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 4 Jun 2020 09:50:38 +0000 (11:50 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 4 Jun 2020 09:50:38 +0000 (11:50 +0200)
nihav-allstuff/src/lib.rs

index 759ef54e502634e43c6bc832a4d16ef3386f5e9c..0b85b89953648e33799325a81cebc646e7368b8c 100644 (file)
@@ -9,10 +9,14 @@ extern crate nihav_rad;
 extern crate nihav_realmedia;
 
 use nihav_core::codecs::RegisteredDecoders;
+use nihav_core::codecs::RegisteredEncoders;
 use nihav_core::demuxers::RegisteredDemuxers;
+use nihav_core::muxers::RegisteredMuxers;
 
 use nihav_commonfmt::generic_register_all_codecs;
 use nihav_commonfmt::generic_register_all_demuxers;
+use nihav_commonfmt::generic_register_all_encoders;
+use nihav_commonfmt::generic_register_all_muxers;
 
 use nihav_duck::duck_register_all_codecs;
 
@@ -22,6 +26,7 @@ use nihav_game::game_register_all_demuxers;
 use nihav_indeo::indeo_register_all_codecs;
 
 use nihav_ms::ms_register_all_codecs;
+use nihav_ms::ms_register_all_encoders;
 
 use nihav_rad::rad_register_all_codecs;
 use nihav_rad::rad_register_all_demuxers;
@@ -48,6 +53,17 @@ pub fn nihav_register_all_demuxers(rd: &mut RegisteredDemuxers) {
     realmedia_register_all_demuxers(rd);
 }
 
+/// Registers all known encoders.
+pub fn nihav_register_all_encoders(re: &mut RegisteredEncoders) {
+    generic_register_all_encoders(re);
+    ms_register_all_encoders(re);
+}
+
+/// Registers all known demuxers.
+pub fn nihav_register_all_muxers(rm: &mut RegisteredMuxers) {
+    generic_register_all_muxers(rm);
+}
+
 #[cfg(test)]
 extern crate nihav_registry;