use nihav_core::codecs::*;
+#[cfg(debug_assertions)]
macro_rules! validate {
($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DecoderError::InvalidData); } };
}
+#[cfg(not(debug_assertions))]
+macro_rules! validate {
+ ($a:expr) => { if !$a { return Err(DecoderError::InvalidData); } };
+}
#[cfg(feature="decoder_truemotion1")]
mod truemotion1;
}
}
+#[cfg(feature="encoder_truemotionrt")]
+mod truemotionrtenc;
#[cfg(feature="encoder_vp6")]
#[macro_use]
mod vpenc;
mod vp7enc;
const DUCK_ENCODERS: &[EncoderInfo] = &[
+#[cfg(feature="encoder_truemotionrt")]
+ EncoderInfo { name: "truemotionrt", get_encoder: truemotionrtenc::get_encoder },
#[cfg(feature="encoder_vp6")]
EncoderInfo { name: "vp6", get_encoder: vp6enc::get_encoder },
#[cfg(feature="encoder_vp6")]