]> git.nihav.org Git - nihav.git/blob - nihav-itu/src/codecs/mod.rs
h264: update test hashes after the changes
[nihav.git] / nihav-itu / src / codecs / mod.rs
1 use nihav_core::codecs::*;
2
3 macro_rules! validate {
4 ($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DecoderError::InvalidData); } };
5 }
6
7 #[allow(clippy::too_many_arguments)]
8 #[cfg(feature="decoder_h264")]
9 mod h264;
10
11 const ITU_CODECS: &[DecoderInfo] = &[
12 #[cfg(feature="decoder_h264")]
13 DecoderInfo { name: "h264", get_decoder: h264::get_decoder },
14 ];
15
16 /// Registers all available codecs provided by this crate.
17 pub fn itu_register_all_decoders(rd: &mut RegisteredDecoders) {
18 for decoder in ITU_CODECS.iter() {
19 rd.add_decoder(*decoder);
20 }
21 }