]> git.nihav.org Git - nihav.git/blame - nihav-commonfmt/src/muxers/mod.rs
Acorn Super Moving Blocks Decoder
[nihav.git] / nihav-commonfmt / src / muxers / mod.rs
CommitLineData
5cd2f537
KS
1use nihav_core::muxers::*;
2
3#[cfg(feature="muxer_avi")]
4mod avi;
fc39649d
KS
5#[cfg(feature="muxer_gif")]
6mod gif;
db2b1e6c
KS
7#[cfg(feature="muxer_wav")]
8mod wav;
1ee737a4
KS
9#[cfg(feature="muxer_y4m")]
10mod y4m;
5cd2f537 11
ac818eac 12const 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
23pub fn generic_register_all_muxers(rm: &mut RegisteredMuxers) {
24 for muxer in MUXERS.iter() {
25 rm.add_muxer(*muxer);
26 }
27}