]>
Commit | Line | Data |
---|---|---|
5cd2f537 KS |
1 | use nihav_core::muxers::*; |
2 | ||
3 | #[cfg(feature="muxer_avi")] | |
4 | mod avi; | |
fc39649d KS |
5 | #[cfg(feature="muxer_gif")] |
6 | mod gif; | |
db2b1e6c KS |
7 | #[cfg(feature="muxer_wav")] |
8 | mod wav; | |
1ee737a4 KS |
9 | #[cfg(feature="muxer_y4m")] |
10 | mod y4m; | |
5cd2f537 | 11 | |
ac818eac | 12 | const MUXERS: &[&dyn MuxerCreator] = &[ |
5cd2f537 KS |
13 | #[cfg(feature="muxer_avi")] |
14 | &avi::AVIMuxerCreator {}, | |
fc39649d KS |
15 | #[cfg(feature="muxer_gif")] |
16 | &gif::GIFMuxerCreator {}, | |
db2b1e6c KS |
17 | #[cfg(feature="muxer_wav")] |
18 | &wav::WAVMuxerCreator {}, | |
1ee737a4 KS |
19 | #[cfg(feature="muxer_y4m")] |
20 | &y4m::Y4MMuxerCreator {}, | |
5cd2f537 KS |
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 | } |