blob: 7a45b94dc79055ee4ca8e55a71e45369ae6a9bf8 (
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
|
use nihav_core::demuxers::*;
#[allow(unused_macros)]
#[cfg(debug_assertions)]
macro_rules! validate {
($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DemuxerError::InvalidData); } };
}
#[cfg(not(debug_assertions))]
macro_rules! validate {
($a:expr) => { if !$a { return Err(DemuxerError::InvalidData); } };
}
#[cfg(feature="demuxer_ivf")]
mod ivf;
const DEMUXERS: &[&dyn DemuxerCreator] = &[
#[cfg(feature="demuxer_ivf")]
&ivf::IVFDemuxerCreator {},
];
/// Registers all available demuxers provided by this crate.
pub fn duck_register_all_demuxers(rd: &mut RegisteredDemuxers) {
for demuxer in DEMUXERS.iter() {
rd.add_demuxer(*demuxer);
}
}
|