blob: 7dca6d236e0ece6c186074b18acbc79007d45678 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
use nihav_core::demuxers::*;
#[allow(unused_macros)]
macro_rules! validate {
($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DemuxerError::InvalidData); } };
}
#[cfg(any(feature="demuxer_bmv",feature="demuxer_bmv3"))]
mod bmv;
#[cfg(feature="demuxer_gdv")]
mod gdv;
#[cfg(feature="demuxer_vmd")]
mod vmd;
const GAME_DEMUXERS: &[&DemuxerCreator] = &[
#[cfg(feature="demuxer_bmv")]
&bmv::BMVDemuxerCreator {},
#[cfg(feature="demuxer_bmv3")]
&bmv::BMV3DemuxerCreator {},
#[cfg(feature="demuxer_gdv")]
&gdv::GDVDemuxerCreator {},
#[cfg(feature="demuxer_vmd")]
&vmd::VMDDemuxerCreator {},
];
pub fn game_register_all_demuxers(rd: &mut RegisteredDemuxers) {
for demuxer in GAME_DEMUXERS.iter() {
rd.add_demuxer(*demuxer);
}
}
|