]> git.nihav.org Git - nihav.git/blobdiff - nihav-duck/src/codecs/mod.rs
avimux: do not record palette change chunks in OpenDML index
[nihav.git] / nihav-duck / src / codecs / mod.rs
index e4f115b7dc918a1c592ad20bc4cdf50a9da8c537..3afef9051edb5ec522a9ca9a46be8acbb5797739 100644 (file)
@@ -11,42 +11,35 @@ macro_rules! validate {
 
 #[cfg(feature="decoder_truemotion1")]
 mod truemotion1;
+#[cfg(any(feature="decoder_truemotion1", feature="encoder_truemotion1"))]
+mod truemotion1data;
 #[cfg(feature="decoder_truemotionrt")]
 mod truemotionrt;
 #[cfg(feature="decoder_truemotion2")]
-#[allow(clippy::needless_range_loop)]
 mod truemotion2;
 #[cfg(feature="decoder_truemotion2x")]
 mod truemotion2x;
 #[cfg(any(feature="decoder_vp3", feature="decoder_vp4", feature="decoder_vp5", feature="decoder_vp6", feature="decoder_vp7"))]
 #[macro_use]
 #[allow(clippy::erasing_op)]
-#[allow(clippy::needless_range_loop)]
+#[allow(clippy::identity_op)]
 #[allow(clippy::too_many_arguments)]
-#[allow(clippy::useless_let_if_seq)]
 mod vpcommon;
 #[cfg(any(feature="decoder_vp3", feature="decoder_vp4"))]
-#[allow(clippy::needless_range_loop)]
 #[allow(clippy::too_many_arguments)]
 mod vp3;
 #[cfg(any(feature="decoder_vp5", feature="decoder_vp6"))]
-#[allow(clippy::needless_range_loop)]
-#[allow(clippy::useless_let_if_seq)]
 #[allow(clippy::too_many_arguments)]
 mod vp56;
 #[cfg(feature="decoder_vp5")]
-#[allow(clippy::needless_range_loop)]
 mod vp5;
 #[cfg(any(feature="decoder_vp6", feature="encoder_vp6"))]
 mod vp6data;
 #[cfg(any(feature="decoder_vp6", feature="encoder_vp6"))]
 mod vp6dsp;
 #[cfg(feature="decoder_vp6")]
-#[allow(clippy::needless_range_loop)]
 mod vp6;
 #[cfg(feature="decoder_vp7")]
-#[allow(clippy::needless_range_loop)]
-#[allow(clippy::useless_let_if_seq)]
 mod vp7;
 #[cfg(any(feature="decoder_vp7", feature="encoder_vp7"))]
 mod vp7data;
@@ -54,38 +47,32 @@ mod vp7data;
 mod vp78data;
 #[cfg(feature="decoder_vp7")]
 #[allow(clippy::erasing_op)]
-#[allow(clippy::needless_range_loop)]
+#[allow(clippy::identity_op)]
 #[allow(clippy::too_many_arguments)]
-#[allow(clippy::useless_let_if_seq)]
 mod vp7dsp;
 #[cfg(any(feature="decoder_vp7", feature="decoder_vp8", feature="encoder_vp7"))]
 #[allow(clippy::needless_range_loop)]
-#[allow(clippy::useless_let_if_seq)]
 mod vp78;
 #[cfg(any(feature="decoder_vp7", feature="decoder_vp8", feature="encoder_vp7"))]
 #[allow(clippy::erasing_op)]
-#[allow(clippy::needless_range_loop)]
+#[allow(clippy::identity_op)]
 #[allow(clippy::too_many_arguments)]
-#[allow(clippy::useless_let_if_seq)]
 mod vp78dsp;
 #[cfg(feature="decoder_vp8")]
-#[allow(clippy::needless_range_loop)]
-#[allow(clippy::useless_let_if_seq)]
 mod vp8;
 #[cfg(feature="decoder_vp8")]
 #[allow(clippy::erasing_op)]
-#[allow(clippy::needless_range_loop)]
+#[allow(clippy::identity_op)]
 #[allow(clippy::too_many_arguments)]
 mod vp8dsp;
 
 #[cfg(any(feature="decoder_dk3_adpcm", feature="decoder_dk4_adpcm"))]
 mod dkadpcm;
 #[cfg(feature="decoder_on2avc")]
-#[allow(clippy::manual_memcpy)]
-#[allow(clippy::needless_range_loop)]
 #[allow(clippy::too_many_arguments)]
 mod on2avc;
 #[cfg(feature="decoder_on2avc")]
+#[allow(clippy::excessive_precision)]
 mod on2avcdata;
 
 const DUCK_CODECS: &[DecoderInfo] = &[
@@ -131,19 +118,21 @@ pub fn duck_register_all_decoders(rd: &mut RegisteredDecoders) {
     }
 }
 
+#[cfg(feature="encoder_truemotion1")]
+mod truemotion1enc;
 #[cfg(feature="encoder_truemotionrt")]
 mod truemotionrtenc;
 #[cfg(feature="encoder_vp6")]
 #[macro_use]
 mod vpenc;
 #[cfg(feature="encoder_vp6")]
-#[allow(clippy::needless_range_loop)]
 mod vp6enc;
 #[cfg(feature="encoder_vp7")]
-#[allow(clippy::needless_range_loop)]
 mod vp7enc;
 
 const DUCK_ENCODERS: &[EncoderInfo] = &[
+#[cfg(feature="encoder_truemotion1")]
+    EncoderInfo { name: "truemotion1", get_encoder: truemotion1enc::get_encoder },
 #[cfg(feature="encoder_truemotionrt")]
     EncoderInfo { name: "truemotionrt", get_encoder: truemotionrtenc::get_encoder },
 #[cfg(feature="encoder_vp6")]