1 use nihav_core::demuxers::*;
3 #[allow(unused_macros)]
4 macro_rules! validate {
5 ($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DemuxerError::InvalidData); } };
8 #[cfg(feature="demuxer_bmv")]
10 #[cfg(feature="demuxer_gdv")]
12 #[cfg(feature="demuxer_vmd")]
15 const GAME_DEMUXERS: &[&'static DemuxerCreator] = &[
16 #[cfg(feature="demuxer_bmv")]
17 &bmv::BMVDemuxerCreator {},
18 #[cfg(feature="demuxer_gdv")]
19 &gdv::GDVDemuxerCreator {},
20 #[cfg(feature="demuxer_vmd")]
21 &vmd::VMDDemuxerCreator {},
24 pub fn game_register_all_demuxers(rd: &mut RegisteredDemuxers) {
25 for demuxer in GAME_DEMUXERS.into_iter() {
26 rd.add_demuxer(*demuxer);