From: Kostya Shishkov Date: Wed, 14 Jun 2023 16:53:10 +0000 (+0200) Subject: allstuff: register multi-threaded decoders as well X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=f9c76c79e1f04372a09ee6c19d1ee1b625306dd9;p=nihav.git allstuff: register multi-threaded decoders as well --- diff --git a/nihav-allstuff/src/lib.rs b/nihav-allstuff/src/lib.rs index c016d54..060ee61 100644 --- a/nihav-allstuff/src/lib.rs +++ b/nihav-allstuff/src/lib.rs @@ -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);