]> git.nihav.org Git - nihav.git/blob - nihav-commonfmt/src/muxers/mod.rs
809283f6c2705ad6c37429fb3386e272353e41c6
[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_wav")]
6 mod wav;
7 #[cfg(feature="muxer_y4m")]
8 mod y4m;
9
10 const MUXERS: &[&dyn MuxerCreator] = &[
11 #[cfg(feature="muxer_avi")]
12 &avi::AVIMuxerCreator {},
13 #[cfg(feature="muxer_wav")]
14 &wav::WAVMuxerCreator {},
15 #[cfg(feature="muxer_y4m")]
16 &y4m::Y4MMuxerCreator {},
17 ];
18
19 pub fn generic_register_all_muxers(rm: &mut RegisteredMuxers) {
20 for muxer in MUXERS.iter() {
21 rm.add_muxer(*muxer);
22 }
23 }