]> git.nihav.org Git - nihav.git/commitdiff
allstuff: register multi-threaded decoders as well
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 14 Jun 2023 16:53:10 +0000 (18:53 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 14 Jun 2023 16:53:10 +0000 (18:53 +0200)
nihav-allstuff/src/lib.rs

index c016d54398a257cb3e3179db5f977fd32c726388..060ee61c6d157969ed52c2b966193a904c6d1c60 100644 (file)
@@ -1,5 +1,6 @@
 //! Umbrella crate to register decoders and demuxers from all known NihAV crates.
 use nihav_core::codecs::RegisteredDecoders;
+use nihav_core::codecs::RegisteredMTDecoders;
 use nihav_core::codecs::RegisteredPacketisers;
 use nihav_core::codecs::RegisteredEncoders;
 use nihav_core::demuxers::RegisteredDemuxers;
@@ -11,7 +12,7 @@ use nihav_duck::*;
 use nihav_flash::*;
 use nihav_game::*;
 use nihav_indeo::*;
-use nihav_itu::itu_register_all_decoders;
+use nihav_itu::*;
 use nihav_llaudio::*;
 use nihav_misc::*;
 use nihav_mpeg::*;
@@ -39,6 +40,11 @@ pub fn nihav_register_all_decoders(rd: &mut RegisteredDecoders) {
     vivo_register_all_decoders(rd);
 }
 
+/// Registers all known multi-threaded decoders.
+pub fn nihav_register_all_mt_decoders(rd: &mut RegisteredMTDecoders) {
+    itu_register_all_mt_decoders(rd);
+}
+
 /// Registers all known packetisers.
 pub fn nihav_register_all_packetisers(rp: &mut RegisteredPacketisers) {
     llaudio_register_all_packetisers(rp);