1 use nihav_core::codecs::*;
3 macro_rules! validate {
4 ($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DecoderError::InvalidData); } };
7 #[allow(clippy::too_many_arguments)]
8 #[cfg(feature="decoder_h264")]
11 const ITU_CODECS: &[DecoderInfo] = &[
12 #[cfg(feature="decoder_h264")]
13 DecoderInfo { name: "h264", get_decoder: h264::get_decoder },
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);