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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
use nihav_core::codecs::*;
macro_rules! validate {
($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DecoderError::InvalidData); } };
}
#[cfg(feature="decoder_intel263")]
mod intel263;
#[cfg(feature="decoder_indeo2")]
mod indeo2;
#[cfg(feature="decoder_indeo3")]
mod indeo3;
#[cfg(feature="decoder_indeo4")]
mod indeo4;
#[cfg(feature="decoder_indeo5")]
mod indeo5;
#[cfg(any(feature="decoder_indeo4", feature="decoder_indeo5"))]
mod ivi;
#[cfg(any(feature="decoder_indeo4", feature="decoder_indeo5"))]
mod ivibr;
#[cfg(any(feature="decoder_indeo4", feature="decoder_indeo5"))]
#[allow(clippy::erasing_op)]
mod ividsp;
#[cfg(feature="decoder_imc")]
mod imc;
const INDEO_CODECS: &[DecoderInfo] = &[
#[cfg(feature="decoder_indeo2")]
DecoderInfo { name: "indeo2", get_decoder: indeo2::get_decoder },
#[cfg(feature="decoder_indeo3")]
DecoderInfo { name: "indeo3", get_decoder: indeo3::get_decoder },
#[cfg(feature="decoder_indeo4")]
DecoderInfo { name: "indeo4", get_decoder: indeo4::get_decoder },
#[cfg(feature="decoder_indeo5")]
DecoderInfo { name: "indeo5", get_decoder: indeo5::get_decoder },
#[cfg(feature="decoder_intel263")]
DecoderInfo { name: "intel263", get_decoder: intel263::get_decoder },
#[cfg(feature="decoder_imc")]
DecoderInfo { name: "imc", get_decoder: imc::get_decoder_imc },
#[cfg(feature="decoder_imc")]
DecoderInfo { name: "iac", get_decoder: imc::get_decoder_iac },
];
pub fn indeo_register_all_codecs(rd: &mut RegisteredDecoders) {
for decoder in INDEO_CODECS.into_iter() {
rd.add_decoder(decoder.clone());
}
}
|