From f52b598b53446d98c43c5ae58f02df9194364ba1 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 4 Jun 2020 11:50:38 +0200 Subject: [PATCH] allstuff: add encoders and muxers --- nihav-allstuff/src/lib.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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; -- 2.39.5