]> git.nihav.org Git - nihav.git/blame_incremental - nihav-itu/src/codecs/mod.rs
h264: reword MB reconstruction and add weighted MC
[nihav.git] / nihav-itu / src / codecs / mod.rs
... / ...
CommitLineData
1use nihav_core::codecs::*;
2
3macro_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")]
9mod h264;
10
11const 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.
17pub fn itu_register_all_decoders(rd: &mut RegisteredDecoders) {
18 for decoder in ITU_CODECS.iter() {
19 rd.add_decoder(*decoder);
20 }
21}