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_smk")]
10 #[cfg(feature="demuxer_bink")]
13 const RAD_DEMUXERS: &[&DemuxerCreator] = &[
14 #[cfg(feature="demuxer_smk")]
15 &smacker::SMKDemuxerCreator {},
16 #[cfg(feature="demuxer_bink")]
17 &bink::BinkDemuxerCreator {},
20 /// Registers all available demuxers provided by this crate.
21 pub fn rad_register_all_demuxers(rd: &mut RegisteredDemuxers) {
22 for demuxer in RAD_DEMUXERS.iter() {
23 rd.add_demuxer(*demuxer);