]> git.nihav.org Git - nihav.git/blob - nihav-commonfmt/src/muxers/mod.rs
GIF support
[nihav.git] / nihav-commonfmt / src / muxers / mod.rs
1 use nihav_core::muxers::*;
2
3 #[cfg(feature="muxer_avi")]
4 mod avi;
5 #[cfg(feature="muxer_gif")]
6 mod gif;
7 #[cfg(feature="muxer_wav")]
8 mod wav;
9 #[cfg(feature="muxer_y4m")]
10 mod y4m;
11
12 const MUXERS: &[&dyn MuxerCreator] = &[
13 #[cfg(feature="muxer_avi")]
14 &avi::AVIMuxerCreator {},
15 #[cfg(feature="muxer_gif")]
16 &gif::GIFMuxerCreator {},
17 #[cfg(feature="muxer_wav")]
18 &wav::WAVMuxerCreator {},
19 #[cfg(feature="muxer_y4m")]
20 &y4m::Y4MMuxerCreator {},
21 ];
22
23 pub fn generic_register_all_muxers(rm: &mut RegisteredMuxers) {
24 for muxer in MUXERS.iter() {
25 rm.add_muxer(*muxer);
26 }
27 }