From: Kostya Shishkov Date: Thu, 4 Jun 2020 09:50:38 +0000 (+0200) Subject: allstuff: add encoders and muxers X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=f52b598b53446d98c43c5ae58f02df9194364ba1;p=nihav.git allstuff: add encoders and muxers --- diff --git a/nihav-allstuff/src/lib.rs b/nihav-allstuff/src/lib.rs index 759ef54..0b85b89 100644 --- a/nihav-allstuff/src/lib.rs +++ b/nihav-allstuff/src/lib.rs @@ -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;