blob: 81414ba4e956c242f8df766a579bc272bd3f9007 (
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
|
use nihav_core::muxers::*;
#[cfg(debug_assertions)]
macro_rules! validate {
($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(MuxerError::InvalidData); } };
}
#[cfg(not(debug_assertions))]
macro_rules! validate {
($a:expr) => { if !$a { return Err(MuxerError::InvalidData); } };
}
#[cfg(feature="muxer_bink")]
mod bink;
const MUXERS: &[&dyn MuxerCreator] = &[
#[cfg(feature="muxer_bink")]
&bink::BinkMuxerCreator {},
];
pub fn rad_register_all_muxers(rm: &mut RegisteredMuxers) {
for muxer in MUXERS.iter() {
rm.add_muxer(*muxer);
}
}
|