]> git.nihav.org Git - nihav.git/commitdiff
annotate the sources for test samples
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 20 Nov 2021 15:06:22 +0000 (16:06 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 20 Nov 2021 15:06:22 +0000 (16:06 +0100)
110 files changed:
nihav-commonfmt/src/codecs/atrac3.rs
nihav-commonfmt/src/codecs/cinepak.rs
nihav-commonfmt/src/codecs/cinepakenc.rs
nihav-commonfmt/src/codecs/clearvideo.rs
nihav-commonfmt/src/codecs/jpeg.rs
nihav-commonfmt/src/codecs/rawvideo.rs
nihav-commonfmt/src/codecs/rawvideo_ms.rs
nihav-commonfmt/src/codecs/sipro.rs
nihav-commonfmt/src/codecs/ts102366.rs
nihav-commonfmt/src/codecs/zmbv.rs
nihav-commonfmt/src/codecs/zmbvenc.rs
nihav-commonfmt/src/demuxers/avi.rs
nihav-commonfmt/src/demuxers/mov.rs
nihav-commonfmt/src/demuxers/wav.rs
nihav-commonfmt/src/demuxers/y4m.rs
nihav-commonfmt/src/muxers/avi.rs
nihav-commonfmt/src/muxers/wav.rs
nihav-duck/src/codecs/dkadpcm.rs
nihav-duck/src/codecs/on2avc.rs
nihav-duck/src/codecs/truemotion1.rs
nihav-duck/src/codecs/truemotion2.rs
nihav-duck/src/codecs/truemotion2x.rs
nihav-duck/src/codecs/truemotionrt.rs
nihav-duck/src/codecs/vp3.rs
nihav-duck/src/codecs/vp5.rs
nihav-duck/src/codecs/vp6.rs
nihav-duck/src/codecs/vp6enc/mod.rs
nihav-duck/src/codecs/vp7.rs
nihav-duck/src/codecs/vp8.rs
nihav-duck/src/demuxers/ivf.rs
nihav-flash/src/codecs/adpcm.rs
nihav-flash/src/codecs/adpcmenc.rs
nihav-flash/src/codecs/asao.rs
nihav-flash/src/codecs/flashsv.rs
nihav-flash/src/codecs/flv263.rs
nihav-flash/src/demuxers/flv.rs
nihav-flash/src/muxers/flv.rs
nihav-game/src/codecs/bmv.rs
nihav-game/src/codecs/bmv3.rs
nihav-game/src/codecs/futurevision.rs
nihav-game/src/codecs/gremlinvideo.rs
nihav-game/src/codecs/imax.rs
nihav-game/src/codecs/ipma.rs
nihav-game/src/codecs/midivid.rs
nihav-game/src/codecs/midivid3.rs
nihav-game/src/codecs/q.rs
nihav-game/src/codecs/vmd.rs
nihav-game/src/codecs/vx.rs
nihav-game/src/demuxers/bmv.rs
nihav-game/src/demuxers/fst.rs
nihav-game/src/demuxers/gdv.rs
nihav-game/src/demuxers/imax.rs
nihav-game/src/demuxers/q.rs
nihav-game/src/demuxers/vmd.rs
nihav-game/src/demuxers/vx.rs
nihav-indeo/src/codecs/imc.rs
nihav-indeo/src/codecs/indeo2.rs
nihav-indeo/src/codecs/indeo3.rs
nihav-indeo/src/codecs/indeo4.rs
nihav-indeo/src/codecs/indeo5.rs
nihav-indeo/src/codecs/intel263.rs
nihav-itu/src/codecs/h264/mod.rs
nihav-llaudio/src/codecs/ape.rs
nihav-llaudio/src/codecs/flac.rs
nihav-llaudio/src/codecs/flacenc.rs
nihav-llaudio/src/codecs/tta.rs
nihav-llaudio/src/codecs/wavpack.rs
nihav-llaudio/src/demuxers/ape.rs
nihav-llaudio/src/demuxers/flac.rs
nihav-llaudio/src/demuxers/flacraw.rs
nihav-llaudio/src/demuxers/tta.rs
nihav-llaudio/src/demuxers/wavpack.rs
nihav-llaudio/src/muxers/flac.rs
nihav-mpeg/src/codecs/mpegaudio/mod.rs
nihav-ms/src/codecs/imaadpcm.rs
nihav-ms/src/codecs/imaadpcmenc.rs
nihav-ms/src/codecs/msadpcm.rs
nihav-ms/src/codecs/msrle.rs
nihav-ms/src/codecs/msvideo1.rs
nihav-ms/src/codecs/msvideo1enc.rs
nihav-qt/src/codecs/alac.rs
nihav-qt/src/codecs/imaadpcm.rs
nihav-qt/src/codecs/mace.rs
nihav-qt/src/codecs/qdm2.rs
nihav-qt/src/codecs/qdmc.rs
nihav-qt/src/codecs/rle.rs
nihav-qt/src/codecs/rpza.rs
nihav-qt/src/codecs/smc.rs
nihav-qt/src/codecs/svq1.rs
nihav-qt/src/codecs/svq3.rs
nihav-rad/src/codecs/bink2.rs
nihav-rad/src/codecs/binkaud.rs
nihav-rad/src/codecs/binkvid.rs
nihav-rad/src/codecs/smacker.rs
nihav-rad/src/demuxers/bink.rs
nihav-rad/src/demuxers/smacker.rs
nihav-realmedia/src/codecs/cook.rs
nihav-realmedia/src/codecs/ra144.rs
nihav-realmedia/src/codecs/ra288.rs
nihav-realmedia/src/codecs/ralf.rs
nihav-realmedia/src/codecs/rv10.rs
nihav-realmedia/src/codecs/rv20.rs
nihav-realmedia/src/codecs/rv30.rs
nihav-realmedia/src/codecs/rv40.rs
nihav-realmedia/src/codecs/rv60.rs
nihav-realmedia/src/demuxers/realmedia.rs
nihav-vivo/src/codecs/g723_1.rs
nihav-vivo/src/codecs/siren.rs
nihav-vivo/src/codecs/vivo.rs
nihav-vivo/src/demuxers/vivo.rs

index f1b9ef65af1afc37f9b5de60a62b105daa4db849..ee93a6328d95f3b671b67cc97a53de483abcbadb 100644 (file)
@@ -721,6 +721,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         generic_register_all_decoders(&mut dec_reg);
 
+        // samples from private collection
         let file = "assets/RV/rv30_atrc_384x208_realproducer_plus_8.51.rm";
 //        let file = "assets/RV/rv20_svt_atrc_640x352_realproducer_plus_8.51.rm";
         test_decode_audio("realmedia", file, Some(12000), None/*Some("atrac3")*/, &dmx_reg, &dec_reg);
index 23903dd0417b7742899d2fbca298d1b023c73113..e558da95e945b838b7dace2d72cca6040fcdadf5 100644 (file)
@@ -413,6 +413,7 @@ mod test {
         generic_register_all_demuxers(&mut dmx_reg);
         let mut dec_reg = RegisteredDecoders::new();
         generic_register_all_decoders(&mut dec_reg);
+        // sample: https://samples.mplayerhq.hu/V-codecs/CVID/ot171.avi
         test_decoding("avi", "cinepak", "assets/Misc/ot171.avi", Some(10), &dmx_reg,
                      &dec_reg, ExpectedTestResult::MD5Frames(vec![
                         [0xd58326b0, 0xdbfc1dcc, 0x6d66a04c, 0x08a21bbb],
@@ -433,6 +434,7 @@ mod test {
         generic_register_all_demuxers(&mut dmx_reg);
         let mut dec_reg = RegisteredDecoders::new();
         generic_register_all_decoders(&mut dec_reg);
+        // sample: https://samples.mplayerhq.hu/V-codecs/CVID/grayscale/dday.mov
         test_decoding("mov", "cinepak", "assets/Misc/dday.mov", Some(10), &dmx_reg,
                      &dec_reg, ExpectedTestResult::MD5Frames(vec![
                         [0x2ab229bc, 0xb71308aa, 0x979511c6, 0xcef3ea92],
@@ -453,6 +455,7 @@ mod test {
         generic_register_all_demuxers(&mut dmx_reg);
         let mut dec_reg = RegisteredDecoders::new();
         generic_register_all_decoders(&mut dec_reg);
+        // sample: https://samples.mplayerhq.hu/V-codecs/CVID/palette/catfight%20Tag%20team%20DT.mov
         test_decoding("mov", "cinepak", "assets/Misc/catfight Tag team DT.mov", Some(10), &dmx_reg,
                      &dec_reg, ExpectedTestResult::MD5Frames(vec![
                         [0x3f7ec8ea, 0x873a2bc6, 0xcc58336e, 0xe88c4ffd],
index ddf2584321afa3881787c4680bc4f559de7fc07f..3269cf8ea7ef7de5fb111cdc5bce516b36306acc 100644 (file)
@@ -1100,6 +1100,7 @@ mod test {
         let mut enc_reg = RegisteredEncoders::new();
         generic_register_all_encoders(&mut enc_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/UCOD/TalkingHead_352x288.avi
         let dec_config = DecoderTestParams {
                 demuxer:        "avi",
                 in_name:        "assets/Misc/TalkingHead_352x288.avi",
index 80521b8eb53dd80984ccd5daf7dd94eb03993725..731f8485213a3a16ce99edf92b813b2e9e73b4b3 100644 (file)
@@ -998,6 +998,7 @@ mod test {
         generic_register_all_demuxers(&mut dmx_reg);
         let mut dec_reg = RegisteredDecoders::new();
         generic_register_all_decoders(&mut dec_reg);
+        // sample: https://samples.mplayerhq.hu/V-codecs/UCOD/TalkingHead_352x288.avi
         test_decoding("avi", "clearvideo", "assets/Misc/TalkingHead_352x288.avi", Some(10), &dmx_reg,
                      &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0xb432376c, 0xf1dce57b, 0x8e79c7ee, 0xdd51850d],
@@ -1018,6 +1019,7 @@ mod test {
         generic_register_all_demuxers(&mut dmx_reg);
         let mut dec_reg = RegisteredDecoders::new();
         generic_register_all_decoders(&mut dec_reg);
+        // sample: https://samples.mplayerhq.hu/V-codecs/UCOD/Nick%20Pope.avi
         test_decoding("avi", "clearvideo", "assets/Misc/Nick Pope.avi", Some(20), &dmx_reg,
                      &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0xca265763, 0xd7d40e35, 0x1c27d4fb, 0xbb76b9c6],
index 693ead48dd409ba2b8d915cbc1fa2d57f07588ab..f9689a04a96492dc78b716e962bbdaaa2677be6e 100644 (file)
@@ -756,6 +756,7 @@ mod test {
         generic_register_all_demuxers(&mut dmx_reg);
         let mut dec_reg = RegisteredDecoders::new();
         generic_register_all_decoders(&mut dec_reg);
+        // sample: self-created with avconv
         test_decoding("avi", "jpeg", "assets/Misc/mjpeg.avi", Some(1), &dmx_reg,
                      &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0xe07f7128, 0x8c55eb5d, 0x03bfdee5, 0x358b24a4],
index 13bd18729becfd96298147a7e558257787da185a..52dcc52e1f24893c29accc72676e37304c7db075 100644 (file)
@@ -103,6 +103,7 @@ mod test {
         generic_register_all_demuxers(&mut dmx_reg);
         let mut dec_reg = RegisteredDecoders::new();
         generic_register_all_decoders(&mut dec_reg);
+        // sample: self-created with avconv
         test_decoding("yuv4mpeg", "rawvideo", "assets/Misc/test.y4m", None, &dmx_reg,
                      &dec_reg, ExpectedTestResult::MD5Frames(vec![
                                 [0xd58326b0, 0xdbfc1dcc, 0x6d66a04c, 0x08a21bbb],
index a445cfd64e7cb1cad70192e386f2a47b120b8b93..8261e3e3a3b49ac655c5fb11cb4c5dc6ef2adec0 100644 (file)
@@ -126,6 +126,7 @@ mod test {
         generic_register_all_demuxers(&mut dmx_reg);
         let mut dec_reg = RegisteredDecoders::new();
         generic_register_all_decoders(&mut dec_reg);
+        // sample: https://samples.mplayerhq.hu/V-codecs/Uncompressed/8bpp.avi
         test_decoding("avi", "rawvideo-ms", "assets/Misc/8bpp.avi", Some(0), &dmx_reg,
                      &dec_reg, ExpectedTestResult::MD5([0xb6629439, 0x6ea482e9, 0x42c84d7c, 0x46c94431]));
     }
@@ -135,6 +136,7 @@ mod test {
         generic_register_all_demuxers(&mut dmx_reg);
         let mut dec_reg = RegisteredDecoders::new();
         generic_register_all_decoders(&mut dec_reg);
+        // sample: https://samples.mplayerhq.hu/V-codecs/Uncompressed/16bpp.avi
         test_decoding("avi", "rawvideo-ms", "assets/Misc/16bpp.avi", Some(0), &dmx_reg,
                      &dec_reg, ExpectedTestResult::MD5([0xe80e16a1, 0x2d50659e, 0x413d24af, 0xea3bee05]));
     }
@@ -144,6 +146,7 @@ mod test {
         generic_register_all_demuxers(&mut dmx_reg);
         let mut dec_reg = RegisteredDecoders::new();
         generic_register_all_decoders(&mut dec_reg);
+        // sample:https://samples.mplayerhq.hu/V-codecs/Uncompressed/keve.avi
         test_decoding("avi", "rawvideo-ms", "assets/Misc/keve.avi", Some(0), &dmx_reg,
                      &dec_reg, ExpectedTestResult::MD5([0x9514ac1f, 0x4512cc62, 0x069485ba, 0x084a1e63]));
     }
@@ -153,6 +156,7 @@ mod test {
         generic_register_all_demuxers(&mut dmx_reg);
         let mut dec_reg = RegisteredDecoders::new();
         generic_register_all_decoders(&mut dec_reg);
+        // sample: https://samples.mplayerhq.hu/V-codecs/Uncompressed/Logo-Uncompressed.zip
         test_decoding("avi", "rawvideo-ms", "assets/Misc/VRMLuncompressed.avi", Some(0), &dmx_reg,
                      &dec_reg, ExpectedTestResult::MD5([0xf4c9d468, 0x8f42c576, 0xc8eb522a, 0x75f654b1]));
     }
index a1a1ed3aac4cc97e9fcc3b98df927177098df64f..eeab6197a2189f218869696cd04df25e465b4a56 100644 (file)
@@ -759,6 +759,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         generic_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/real/AC-sipr/autahi-vox.rm
         let file = "assets/RV/autahi-vox.rm";
         test_decode_audio("realmedia", file, Some(5000), None/*Some("sipro")*/, &dmx_reg, &dec_reg);
     }
index de6a5adb391c0446d745280cfa29f30c4e7bbfa5..5cf90c506c4ca07ddd5c8222e895aed21f0cfe6d 100644 (file)
@@ -1265,6 +1265,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         generic_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/real/VC-RV10/sp_sample1.rm
         let file = "assets/RV/sp_sample1.rm";
         test_decode_audio("realmedia", file, Some(12000), None/*Some("ac3")*/, &dmx_reg, &dec_reg);
     }
index b01e37536f8eb0bd068c81c6fa386ccc91309d17..c53f76adba9769f9b0977981657b61655fa48272 100644 (file)
@@ -320,6 +320,7 @@ mod test {
     use nihav_codec_support::test::dec_video::*;
     use crate::generic_register_all_decoders;
     use crate::generic_register_all_demuxers;
+    // samples are from https://samples.mplayerhq.hu/V-codecs/ZMBV/
     #[test]
     fn test_zmbv_8() {
         let mut dmx_reg = RegisteredDemuxers::new();
index ee40f494f3c171dad7e5c41014502b2d43f44daf..c0d58fab14a1ff177051e91a906e771eb348c2ea 100644 (file)
@@ -549,6 +549,7 @@ mod test {
     use nihav_codec_support::test::enc_video::*;
     use super::{RGB555_FORMAT, RGB24_0_FORMAT};
 
+    // samples are from https://samples.mplayerhq.hu/V-codecs/ZMBV/
     #[test]
     fn test_zmbv_encoder_8bit() {
         let mut dmx_reg = RegisteredDemuxers::new();
index 7c1d4f7b5a2ee0e4388be374ad84d42f51499254..cc24fe308581882d4d34b39030d0b30bceba17de 100644 (file)
@@ -857,6 +857,7 @@ mod test {
 
     #[test]
     fn test_avi_demux() {
+        //test sample: https://samples.mplayerhq.hu/V-codecs/RT21/320x240/laser05.avi
         let mut file = File::open("assets/Indeo/laser05.avi").unwrap();
         let mut fr = FileReader::new_read(&mut file);
         let mut br = ByteReader::new(&mut fr);
index 90ca6c5eb0726a1a34ce74f9315c252dc00fb550..23781a9f45143c6a1a4e815f1bdeb17a0c41bb31 100644 (file)
@@ -2045,6 +2045,7 @@ mod test {
 
     #[test]
     fn test_mov_demux() {
+        // sample: https://samples.mplayerhq.hu/V-codecs/IV32/cubes.mov
         let mut file = File::open("assets/Indeo/cubes.mov").unwrap();
         let mut fr = FileReader::new_read(&mut file);
         let mut br = ByteReader::new(&mut fr);
@@ -2066,6 +2067,7 @@ mod test {
 
     #[test]
     fn test_dash_demux() {
+        // sample: a stream downloaded with youtube-dl
         let mut file = File::open("assets/ITU/dash.m4a").unwrap();
         let mut fr = FileReader::new_read(&mut file);
         let mut br = ByteReader::new(&mut fr);
index 2164619d74085ecde706b107a10482535b286920..1e685de8705bd23d49d526e4e78793a1ec142c6a 100644 (file)
@@ -209,6 +209,7 @@ mod test {
 
     #[test]
     fn test_wav_demux() {
+        // sample: https://samples.mplayerhq.hu/A-codecs/msadpcm-stereo/scatter.wav
         let mut file = File::open("assets/MS/scatter.wav").unwrap();
         let mut fr = FileReader::new_read(&mut file);
         let mut br = ByteReader::new(&mut fr);
index f3030604e5d1e90c0081bc0c8aa82fd04d111da6..93831e97f77aa819758bb56a44dd5880a3685118 100644 (file)
@@ -194,6 +194,7 @@ mod test {
 
     #[test]
     fn test_y4m_demux() {
+        // sample: self-created with avconv
         let mut file = File::open("assets/Misc/test.y4m").unwrap();
         let mut fr = FileReader::new_read(&mut file);
         let mut br = ByteReader::new(&mut fr);
index cd75942f5a75bfffe135cb4c077751ef5df6e052..e094060eebcc84a246e26cfd4563d5f5c7e523db 100644 (file)
@@ -355,6 +355,7 @@ mod test {
     fn test_avi_muxer() {
         let mut dmx_reg = RegisteredDemuxers::new();
         generic_register_all_demuxers(&mut dmx_reg);
+        //test sample: https://samples.mplayerhq.hu/V-codecs/RT21/320x240/laser05.avi
         let dec_config = DecoderTestParams {
                 demuxer:        "avi",
                 in_name:        "assets/Indeo/laser05.avi",
index f99c1475f6723c2c744a4b2f3e36d80e21bf6321..49be5d6036c96ad84fc11478265d791035f79892 100644 (file)
@@ -126,6 +126,7 @@ mod test {
     fn test_wav_muxer() {
         let mut dmx_reg = RegisteredDemuxers::new();
         generic_register_all_demuxers(&mut dmx_reg);
+        // sample: https://samples.mplayerhq.hu/V-codecs/RT21/320x240/laser05.avi
         let dec_config = DecoderTestParams {
                 demuxer:        "avi",
                 in_name:        "assets/Indeo/laser05.avi",
index 399b4f79b006e923f60a9fdb1035c7cba7d63f44..cdd58b6638f097f475e7aaea58b864e2c2df20f6 100644 (file)
@@ -170,6 +170,7 @@ mod test {
 
         //let file = "assets/Duck/AVI-DUCK-dk3.duk";
         //test_decode_audio("avi", file, Some(100), None/*Some("dk3")*/, &dmx_reg, &dec_reg);
+        // sample: https://samples.mplayerhq.hu/V-codecs/DUCK/AVI-DUCK-dk3.duk
         test_decoding("avi", "adpcm-dk3", "assets/Duck/AVI-DUCK-dk3.duk", None, &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0xa48fae0a, 0xa536b27f, 0x169ecc19, 0x8436fade]));
     }
@@ -182,6 +183,7 @@ mod test {
 
 //        let file = "assets/Duck/virtuafighter2-opening1.avi";
 //        test_decode_audio("avi", file, Some(100), None/*Some("dk4")*/, &dmx_reg, &dec_reg);
+        // sample: https://samples.mplayerhq.hu/V-codecs/DUCK/virtuafighter2-opening1.avi
         test_decoding("avi", "adpcm-dk4", "assets/Duck/virtuafighter2-opening1.avi", None, &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x04e40d15, 0xf65b3427, 0x1dd5181f, 0xf321b56f]));
     }
index 1e3a1220f72e8be914d78dd20873708a5da85b52..69505cf839d24e1eb660261b4774f9de8ea0a557 100644 (file)
@@ -1060,6 +1060,7 @@ mod test {
 
         //let file = "assets/Duck/Cell-140.vp5";
         //let file = "assets/Duck/Chocolat-500.vp5";
+        // sample: https://samples.mplayerhq.hu/V-codecs/VP7/potter-500.vp7
         let file = "assets/Duck/potter-500.vp7";
         test_decode_audio("avi", file, Some(1500), None/*Some("avc")*/, &dmx_reg, &dec_reg);
     }
index 9f5546f71733672e2f70c4a648aa567046548d85..c64c2ecdb6cf793dbb8c1d35c89718849e087305 100644 (file)
@@ -683,6 +683,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         duck_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/DUCK/phant2-940.duk
         test_decoding("avi", "truemotion1", "assets/Duck/phant2-940.duk", Some(12), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5Frames(vec![
                         [0x989e62b8, 0x5d85c23c, 0x1cffba6d, 0xe599f1c4],
index 0c9e0041db0f96a62d938348a2bca08d31338f9a..dfbbf9b120fdd9dd9476db56bceee0864a79619d 100644 (file)
@@ -606,6 +606,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         duck_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/TM20/tm20.avi
         test_decoding("avi", "truemotion2", "assets/Duck/tm20.avi", Some(16),
                         &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0x8c336eb4, 0x10d0d934, 0x52392306, 0xc0bc6dd3],
index 652b5b06147b9741240f2661d429660bae08a13e..2e3182971a47a3ace4d4e68c260288da9df922fc 100644 (file)
@@ -719,6 +719,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         duck_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/TM2x.avi
         test_decoding("avi", "truemotion2x", "assets/Duck/TM2x.avi", None,
                         &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0x2854e7f3, 0x41e54fd3, 0xd9a16302, 0x580321b2],
index 5ca17bd2ceb971e7278be241742b0448497e4bc0..157f8be688c9a53222fa1039d8b06b068564ff51 100644 (file)
@@ -109,6 +109,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         duck_register_all_decoders(&mut dec_reg);
 
+        // sample from a private collection
         test_decoding("avi", "truemotionrt", "assets/Duck/tr20_low.avi", Some(10),
                         &dmx_reg, &dec_reg,
                         ExpectedTestResult::MD5([0x24c3d26c, 0x1e8bbdc4, 0xfb0fba5d, 0xaa04be81]));
index 7b3411ccffb162c3cd9c806f332b11cd91cfdbe2..cf59b14340f57e21e6f840424c67ffe8d7a4e74c 100644 (file)
@@ -1910,6 +1910,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         duck_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/VP3/vp30-logo.avi
         test_decoding("avi", "vp3", "assets/Duck/vp30-logo.avi", Some(23), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x51aba7df, 0x6e42534d, 0xef6c5b13, 0x26c38d1f]));
     }
@@ -1926,6 +1927,7 @@ mod test {
 //        let file = "assets/Duck/01-vp31-0500.avi";
 //        test_file_decoding("avi", file, Some(3), true, false, None/*Some("vp31")*/, &dmx_reg, &dec_reg);
 //panic!("end");
+        // sample: https://samples.mplayerhq.hu/V-codecs/VP3/01-vp31-0500.avi
         test_decoding("avi", "vp3", "assets/Duck/01-vp31-0500.avi", Some(16), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x65112f7e, 0x2914f29b, 0x2908ed2f, 0xce5fc8c5]));
     }
@@ -1937,6 +1939,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         duck_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/VP4/ot171_vp40.avi
         test_decoding("avi", "vp3", "assets/Duck/ot171_vp40.avi", Some(86), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0xd41d8cd9, 0x8f00b204, 0xe9800998, 0xecf8427e]));
     }
index 48fda2d3b74b87fa1eaa17df5a6b6c054825cdff..0b7062e2757b05edec4dbce89cde4a4d05485f8d 100644 (file)
@@ -305,6 +305,7 @@ mod test {
 
         let file = "assets/Duck/Cell-140.vp5";
         //let file = "assets/Duck/Chocolat-500.vp5";
+        // sample: https://samples.mplayerhq.hu/V-codecs/VP5/Cell-140.vp5
         test_decoding("avi", "vp5", file, Some(96), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x9ad78b0f, 0xed988ead, 0x88ed2ea9, 0xcdb75cdf]));
     }
index 6d971899b4a85ce8917585c9f95c6d431469a577..4bbf4c91cee35bddb6e0c34eb97b010b055d2f5d 100644 (file)
@@ -566,6 +566,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         duck_register_all_decoders(&mut dec_reg);
 
+        // sample from a private collection
         test_decoding("avi", "vp6", "assets/Duck/selection_720x576_300kBit_vp60i.avi", Some(16),
                       &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x042c3e96, 0x8a9b26a2, 0x4dcbaf66, 0x1b788d03]));
@@ -577,6 +578,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         duck_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/VP6/vp6_crash.avi
         test_decoding("avi", "vp6", "assets/Duck/vp6_crash.avi", Some(4),
                       &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0xdcd70fa0, 0x0d075ce2, 0xc9e65077, 0xb003a92e],
@@ -592,6 +594,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         duck_register_all_decoders(&mut dec_reg);
 
+        // sample created by remuxing some VP6A in FLV
         test_decoding("avi", "vp6a", "assets/Duck/vp6a.avi", Some(25),
                       &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0xaf903d79, 0x17ddb3c7, 0xf0a381e8, 0x26b36a7d],
index 9388fd2ac604ecd9c8ddfeaa6d136c0ed676283b..9f87054ac17c37f50109a5a2430f5a61a8e1000b 100644 (file)
@@ -882,6 +882,7 @@ mod test {
         let mut enc_reg = RegisteredEncoders::new();
         duck_register_all_encoders(&mut enc_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/VP4/ot171_vp40.avi
         let dec_config = DecoderTestParams {
                 demuxer:        "avi",
                 in_name:        "assets/Duck/ot171_vp40.avi",
index 95f2575b88d4c08db3c62ebbccce5e0d2136a703..da0ccc4be4b73dfcc656fd1fd2f29dfc1b1ce18a 100644 (file)
@@ -1267,6 +1267,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         duck_register_all_decoders(&mut dec_reg);
 
+        // sample from https://trac.ffmpeg.org/ticket/5580
         test_decoding("avi", "vp7", "assets/Duck/interlaced_blit_pitch.avi", Some(12), &dmx_reg,
                       &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0xb79fb6f8, 0xed51ac9e, 0x9e423456, 0xc0918e7f],
index 2969bfa9e697021fced83f83f935181fa574b94c..9a9c4ccb8902155b027dcc3c23ccd136f0544d52 100644 (file)
@@ -1547,6 +1547,7 @@ mod test {
     use crate::duck_register_all_decoders;
     use crate::duck_register_all_demuxers;
 
+    // all samples are from the official VP8 test bitstreams set
     fn test_vp8_core(name: &str, hash: [u32; 4]) {
         let mut dmx_reg = RegisteredDemuxers::new();
         duck_register_all_demuxers(&mut dmx_reg);
index 7d444604ea77f415e472cbe519b16b162cd2f4a2..ba4bb91930431add541497790fe6bce23683ca11 100644 (file)
@@ -97,6 +97,7 @@ mod test {
 
     #[test]
     fn test_ivf_demux() {
+        // sample is from the official VP8 test bitstream set
         let mut file = File::open("assets/Duck/VP8/vp80-00-comprehensive-001.ivf").unwrap();
         let mut fr = FileReader::new_read(&mut file);
         let mut br = ByteReader::new(&mut fr);
index e6e21cfd583f7f8da5eac531538e5f5a92741a52..d72b1010de468c0d5ac746da8c9ccc85d8c905e6 100644 (file)
@@ -143,6 +143,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         flash_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/FLV/flash_flv_adpcm_testfiles/mono_11k.flv
         test_decoding("flv", "flv-adpcm", "assets/Flash/mono_11k.flv", Some(3000), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x4cf30e71, 0x4360c85b, 0x21c52863, 0x1782160e]));
     }
@@ -153,6 +154,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         flash_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/FLV/flash_flv_adpcm_testfiles/stereo_44k.flv
         test_decoding("flv", "flv-adpcm", "assets/Flash/stereo_44k.flv", Some(3000), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0xae108d38, 0xb36236f8, 0x2bc18d31, 0xac600424]));
     }
index ced3c1b8d6b014481bf5dc6c187c80f6612e5cf1..92a292bb01770b12ee6ca60920a5d50a251672cf 100644 (file)
@@ -175,6 +175,7 @@ mod test {
         let mut enc_reg = RegisteredEncoders::new();
         flash_register_all_encoders(&mut enc_reg);
 
+        // sample: https://samples.mplayerhq.hu/FLV/flash_flv_adpcm_testfiles/mono_11k.flv
         let dec_config = DecoderTestParams {
                 demuxer:        "flv",
                 in_name:        "assets/Flash/mono_11k.flv",
index e20c7297246ce151d791f3ecc32c9554a374edbf..5fe8b40a61527eacc35ab23cb932b5dde77964d4 100644 (file)
@@ -309,6 +309,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         flash_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/A-codecs/Nelly_Moser/nellymoser-in-flv.flv
         test_decode_audio("flv", "assets/Flash/nellymoser-in-flv.flv", Some(3000), None/*Some("asao")*/, &dmx_reg, &dec_reg);
     }
 }
index 26e0eb4e201d9bac69f448b0ab491a47a82001fd..91d5825a4b692439ff5e6383cd5e9d5c9a5fbcd3 100644 (file)
@@ -347,6 +347,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         flash_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/FLV/flash_screen/screen.flv
         test_decoding("flv", "flashsv", "assets/Flash/screen.flv",
                       Some(3000), &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0xb45b899e, 0x417b17d5, 0x7bfe898b, 0x026b289f],
@@ -367,6 +368,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         flash_register_all_decoders(&mut dec_reg);
 
+        // sample created from https://samples.mplayerhq.hu/FLV/flash_screen/screen.flv by recoding
         test_decoding("flv", "flashsv2", "assets/Flash/screen2.flv",
                       Some(4700), &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0x55522afa, 0x9c7dd794, 0xdd67aa2e, 0x8b8c525e],
index 3a8a18af933504888aa2a151c673a9e3ad5c5041..865542305713663857ad65e26ab3fe20b2251d42 100644 (file)
@@ -356,6 +356,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         flash_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/A-codecs/Nelly_Moser/input.flv
         test_decoding("flv", "flv263", "assets/Flash/input.flv",
                       Some(1000), &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0x9110718e, 0x794e22ad, 0x3324e552, 0xf58a0449],
index 52080ab2017f2dbc6b1741f174af7ba79645ef16..82901ac91ebb4064857bda6a2a1f0c83e543045c 100644 (file)
@@ -473,6 +473,7 @@ mod test {
     use super::*;
     use std::fs::File;
 
+    // sample: https://samples.mplayerhq.hu/A-codecs/Nelly_Moser/input.flv
     #[test]
     fn test_flv_demux() {
         let mut file = File::open("assets/Flash/input.flv").unwrap();
index 9f32fbeed6a8108a2ca896a01b653cf862b63f60..3ff9bee5a39ea093596f326c969a3ba4a50b827a 100644 (file)
@@ -301,6 +301,7 @@ mod test {
     fn test_flv_muxer() {
         let mut dmx_reg = RegisteredDemuxers::new();
         flash_register_all_demuxers(&mut dmx_reg);
+        // sample: https://samples.mplayerhq.hu/A-codecs/Nelly_Moser/input.flv
         let dec_config = DecoderTestParams {
                 demuxer:        "flv",
                 in_name:        "assets/Flash/input.flv",
index a407fb9c82c8c4018cd2cf67f740a4d626a8cc89..31fd8556f495d141d0529ed36a3fcd1d872516f3 100644 (file)
@@ -322,6 +322,7 @@ mod test {
     use nihav_codec_support::test::dec_video::*;
     use crate::game_register_all_decoders;
     use crate::game_register_all_demuxers;
+    // samples from: https://samples.mplayerhq.hu/game-formats/bmv/
     #[test]
     fn test_bmv_video() {
         let mut dmx_reg = RegisteredDemuxers::new();
index 0140c8c4498d31371018b46a853bb7faec336011..525273dd7f15d87459335251d8f31d7e6b9b8ec0 100644 (file)
@@ -620,6 +620,7 @@ mod test {
     use nihav_codec_support::test::dec_video::*;
     use crate::game_register_all_decoders;
     use crate::game_register_all_demuxers;
+    // sample: https://samples.mplayerhq.hu/game-formats/bmv/DW3-Loffnote.bmv
     #[test]
     fn test_bmv_video() {
         let mut dmx_reg = RegisteredDemuxers::new();
index 814039124a55ac8f3fa2095c5a5c5595eff154b1..e7ddd971fd90dd576db053429c0791719b218845 100644 (file)
@@ -242,6 +242,7 @@ mod test {
     use crate::game_register_all_decoders;
     use crate::game_register_all_demuxers;
 
+    // samples come from the Harvester game
     #[test]
     fn test_fst_video() {
         let mut dmx_reg = RegisteredDemuxers::new();
index 7427e54eb5588cd1535fe80f800b1fb63b871523..624f51335db4c4610615102ed0aa4f3461b90178 100644 (file)
@@ -755,6 +755,7 @@ mod test {
     use crate::game_register_all_decoders;
     use crate::game_register_all_demuxers;
 
+    // samples: intro1.gdv from Normality, SHELI_S.GDV from Jungle Strike
     #[test]
     fn test_gdv_video() {
         let mut dmx_reg = RegisteredDemuxers::new();
index 5a4c8142856b78f438654ed561f0828b07e2b9c0..de0bf98053edbccf0fe156bda8b2da0bceec643b 100644 (file)
@@ -158,6 +158,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         game_register_all_decoders(&mut dec_reg);
 
+        // sample from Fable game
         test_decoding("fable-imax", "fable-imax", "assets/Game/present.imx",
                       Some(64), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x775e1326, 0x7aa63674, 0x9b8aec54, 0x5caee2e3]));
index 21f657d14e7bfe00856a555b0887c80c859ec79b..fcdeac3883ae7e730e2e57bc09a014cdaaaf4423 100644 (file)
@@ -221,6 +221,7 @@ mod test {
     use nihav_codec_support::test::dec_video::*;
     use crate::game_register_all_decoders;
     use nihav_commonfmt::generic_register_all_demuxers;
+    // samples from https://misc.daniel-marschall.de/spiele/blown_away/ipma_codec/
     #[test]
     fn test_ipma_video() {
         let mut dmx_reg = RegisteredDemuxers::new();
index ac91fde5dacfa7e9177f53e101716fa9a7059ef5..fec4cd64f66915b7dda55272db8a64b8c170b889 100644 (file)
@@ -201,6 +201,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         game_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/MVDV.avi
         test_decoding("avi", "midivid", "assets/Game/MVDV.avi", Some(16), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5Frames(vec![
                         [0x383e1995, 0x32bf000d, 0x2067aa2e, 0x54425bd4],
index 3c06e965243dda6a59862e8d7afaa3f0a56af91b..31b8618bd936128a4896e13d468cd39f885976f8 100644 (file)
@@ -536,6 +536,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         game_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/mv30.avi
         test_decoding("avi", "midivid3", "assets/Game/mv30.avi", Some(16), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5Frames(vec![
                             [0x0f4f2377, 0xe017458f, 0xebf6d59d, 0x238a3e64],
index ff6b647a0c5774aae45ab1d4a1abfc16d5d1d5c8..9f30ae52974e7a9417a5aced858295eb0570b324 100644 (file)
@@ -526,6 +526,7 @@ mod test {
     use crate::game_register_all_decoders;
     use crate::game_register_all_demuxers;
 
+    // samples from Deathgate, Mission Critical and Shannara games
     #[test]
     fn test_q_video3() {
         let mut dmx_reg = RegisteredDemuxers::new();
index e05899de67f2e4fe93feadcfa7825538e3021cb3..25f8b6d4bf761324a33677ab3ba74ec37b53231e 100644 (file)
@@ -692,6 +692,7 @@ mod test {
     use nihav_codec_support::test::dec_video::*;
     use crate::game_register_all_decoders;
     use crate::game_register_all_demuxers;
+    // samples from https://samples.mplayerhq.hu/game-formats/sierra-vmd/ and various games
     #[test]
     fn test_vmd_video() {
         let mut dmx_reg = RegisteredDemuxers::new();
index 185c9f4d434e915f8507dd3c4b095dc9a342f0f3..c13fc493cbd6f8924b2b69b5ada74364527608b3 100644 (file)
@@ -1331,6 +1331,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         game_register_all_decoders(&mut dec_reg);
 
+        // sample from some game
         test_decoding("vx", "vxvideo", "assets/Game/bioware.vx", Some(31), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5Frames(vec![
                                 [0x33de14fa, 0x00948eb7, 0x028141d7, 0x1d07abd6],
index f548fdc7593cbd82e1038b182e87cf4591dc8b1c..ee882628ea4aee6b9790e9f4c3593b59b30ca47d 100644 (file)
@@ -260,6 +260,7 @@ mod test {
     use super::*;
     use std::fs::File;
 
+    // samples from https://samples.mplayerhq.hu/game-formats/bmv
     #[test]
     fn test_bmv_demux() {
         let mut file = File::open("assets/Game/DW2-MOUSE.BMV").unwrap();
index b6cc0666b90a3030518c3db66fe0b1fd6fb38c3c..c70584ad7e2a106a8a14bef78be2733599130a9a 100644 (file)
@@ -188,6 +188,7 @@ mod test {
     use super::*;
     use std::fs::File;
 
+    // samples from the Harvester game
     #[test]
     fn test_fst_demux() {
         let mut file = File::open("assets/Game/c007.fst").unwrap();
index de4e9934a88cb6c6d4bc45d7322b566aa4a89f9c..8f54bca750d55779614926074b962f70ca6ce6fb 100644 (file)
@@ -180,6 +180,7 @@ mod test {
 
     #[test]
     fn test_gdv_demux() {
+        // sample from Normality game
         let mut file = File::open("assets/Game/intro1.gdv").unwrap();
         let mut fr = FileReader::new_read(&mut file);
         let mut br = ByteReader::new(&mut fr);
index ad427dd52859174dc33a611d13aad9dc68daf907..a477ebe757ec7726cb1afd8c51542e067414a1f4 100644 (file)
@@ -124,6 +124,7 @@ mod test {
 
     #[test]
     fn test_imax_demux() {
+        // sample from Fable game
         let mut file = File::open("assets/Game/present.imx").unwrap();
         let mut fr = FileReader::new_read(&mut file);
         let mut br = ByteReader::new(&mut fr);
index 0b154e97a9d9e76caab6cf705907a250dd0fb5b2..473507adbb8eabdaec825afe22305b8f3aa54b5f 100644 (file)
@@ -187,6 +187,7 @@ mod test {
     use super::*;
     use std::fs::File;
 
+    // samples from Death Gate, Mission Critical and Shannara games
     #[test]
     fn test_q_demux_v3() {
         let mut file = File::open("assets/Game/dgate101.q").unwrap();
index a2c93f6d5dc6496dda7f92d0ddadc37ff4084c1e..663a1a8e07fbf962f98798f68d3ff9346a6eab92 100644 (file)
@@ -223,6 +223,7 @@ mod test {
 
     #[test]
     fn test_vmd_demux() {
+        // sample: https://samples.mplayerhq.hu/game-formats/sierra-vmd/Lighthouse/128.vmd
         let mut file = File::open("assets/Game/128.vmd").unwrap();
         //let mut file = File::open("assets/Game/1491.VMD").unwrap();
         let mut fr = FileReader::new_read(&mut file);
index 245ca49ef62547c97c69814fd902844e734f7701..17228419e7b85de9359bc0a1b27977dc5e14efb8 100644 (file)
@@ -142,6 +142,7 @@ mod test {
 
     #[test]
     fn test_vx_demux() {
+        // sample from some game
         let mut file = File::open("assets/Game/bioware.vx").unwrap();
         //let mut file = File::open("assets/Game/BS_01_Intro.vx").unwrap();
         //let mut file = File::open("assets/Game/sega.vx").unwrap();
index f9a92c0595c7918183c7e42ee9cc55667862a65a..e94704c64c64f2d10b3eaa38c1429dd25b10985e 100644 (file)
@@ -1130,6 +1130,7 @@ mod test {
 
 //        let file = "assets/Indeo/neal73_saber.avi";
 //        let file = "assets/Indeo/IMC/hvalen.avi";
+        // sample from a private collection
         let file = "assets/Indeo/IMC/8khz.avi";
 //        let file = "assets/Indeo/STsKlassFist-1a.avi";
 //        let file = "assets/Indeo/IMC/Angel Bday.avi";
index 32e54f854c3b10bd7a2d222b3b882a65d76f99fe..321338821fd662baea35ea3eb18d320c09ce5321 100644 (file)
@@ -389,6 +389,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         indeo_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/RT21/320x240/laser05.avi
         test_decoding("avi", "indeo2", "assets/Indeo/laser05.avi", Some(10),
                       &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0x55f509ad, 0x62fb52d5, 0x6e9a86b2, 0x3910ce74],
index 9e0ee1155320149a5556de96c10f9918d9c27921..bdf8e7b961881bbcdd0a2a5e76d97b83c1735a20 100644 (file)
@@ -817,6 +817,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         indeo_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/IV32/iv32_example.avi
         test_decoding("avi", "indeo3", "assets/Indeo/iv32_example.avi", Some(10),
                       &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0x90be698e, 0x326db071, 0x08e8c6a5, 0x39349acc],
index 474a8d5c7b159a21f620d7df5520d9b4cdc097da..a7263c6736ee508c4bcb7561e4fc5787e9d71928 100644 (file)
@@ -786,6 +786,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         indeo_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/IV41/indeo4-avi/volcano.avi
         test_decoding("avi", "indeo4", "assets/Indeo/IV4/volcano.avi", Some(16),
                       &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0x194f626b, 0x023fdfd0, 0x9809665a, 0xd68f6f47],
@@ -805,6 +806,7 @@ mod test {
                             [0x4b04dc0e, 0x684533a7, 0x6a4e4b16, 0x0b8a5e68],
                             [0xa3eb64fc, 0x5e02a31b, 0x6b484eae, 0xbb6e6c49],
                             [0x7d4ef46e, 0x6761c447, 0x02e002f5, 0x02d0231c]]));
+        // a sample from Civilization II
         test_decoding("avi", "indeo4", "assets/Indeo/IV4/HRLDVIK.AVI", Some(8),
                       &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0x239b8b87, 0x6dbec08c, 0x82bae1f0, 0x868e00c2],
index eb0b40c577217baa2dc0a4a245c2bfe28a32ad36..11d813d4cab332eb006e8775c246dad06347a4dd 100644 (file)
@@ -740,6 +740,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         indeo_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/IV50/sample.avi
         test_decoding("avi", "indeo5", "assets/Indeo/IV5/sample.avi", Some(100),
                       &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                            [0xd73ef6e2, 0x099dc18f, 0x46450af9, 0x1b390a48],
index 7237adf7f90ce21dfc08cb3e64accf66e240cec7..c9bb5f4dd7564cfe1844a6c6b8c24a9e0f74d2d2 100644 (file)
@@ -758,6 +758,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         indeo_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/A-codecs/IMC/neal73_saber.avi
         test_decoding("avi", "intel263", "assets/Indeo/neal73_saber.avi", Some(16),
                       &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                         [0x698c4f70, 0xf727bfc1, 0x96e687e9, 0xc9e37073],
index e23d909930bcc4704168027ca8c5d23c1b077268..3034e0768608feb4fba3679de15d61ad97216bc6 100644 (file)
@@ -1461,6 +1461,7 @@ mod test {
     use crate::itu_register_all_decoders;
     use nihav_commonfmt::generic_register_all_demuxers;
 
+    // samples if not specified otherwise come from H.264 conformance suite
     mod raw_demux;
     mod conformance;
     use self::raw_demux::RawH264DemuxerCreator;
@@ -1503,6 +1504,7 @@ mod test {
                         [0xa90454f5, 0x7875d5db, 0xbab234bd, 0xe6ce1193]]));
     }
 
+    // mostly static music video downloaded with youtube-dl
     #[test]
     fn test_h264_real1() {
         let mut dmx_reg = RegisteredDemuxers::new();
@@ -1576,6 +1578,7 @@ mod test {
                             [0x94fee093, 0x78ad89b3, 0xf20e882b, 0x941425db],
                             [0xc3eb1a78, 0x4b4e098a, 0xcbcf9bb4, 0xfd5b5426]]));
     }
+    // a sample downloaded from gfycat.com
     #[test]
     fn test_h264_real2() {
         let mut dmx_reg = RegisteredDemuxers::new();
index 8a9073dda5228da15e7ac9c097246cefd8e762f9..1bcd62e2a200dca4b4b75f62fcda473c0e3f9ebf 100644 (file)
@@ -260,6 +260,7 @@ mod test {
     use nihav_codec_support::test::dec_video::*;
     use crate::llaudio_register_all_decoders;
     use crate::llaudio_register_all_demuxers;
+    // samples from Libav test suite
     #[test]
     fn test_ape_3990() {
         let mut dmx_reg = RegisteredDemuxers::new();
index 9f8a884faa6600c06d022f5bc047c178f5b5c77a..3fba6b13e600103888855f8f94c590808822a308 100644 (file)
@@ -636,6 +636,7 @@ mod test {
     use nihav_codec_support::test::dec_video::*;
     use crate::llaudio_register_all_decoders;
     use crate::llaudio_register_all_demuxers;
+    // sample: https://samples.mplayerhq.hu/A-codecs/lossless/luckynight.flac
     #[test]
     fn test_flac() {
         let mut dmx_reg = RegisteredDemuxers::new();
index f9adc24711f9f849ce5f329737a6cbc85aaffc8e..55c7eb0e5ab74463d6a50108c35fc11747994cfa 100644 (file)
@@ -599,6 +599,7 @@ mod test {
         let mut enc_reg = RegisteredEncoders::new();
         llaudio_register_all_encoders(&mut enc_reg);
 
+        // sample: https://samples.mplayerhq.hu/A-codecs/lossless/luckynight.flac
         let dec_config = DecoderTestParams {
                 demuxer:        "flac",
                 in_name:        "assets/LLaudio/luckynight.flac",
index e88793eddf508c820a8dd5deff860d9e5c9e15f3..d5130644683e094fdb0e34ba4649041db0cdbcb6 100644 (file)
@@ -341,6 +341,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         llaudio_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/A-codecs/lossless/luckynight.tta
         test_decoding("tta", "tta", "assets/LLaudio/luckynight.tta", Some(3), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0xce0fe9c4, 0xa69eefda, 0xe182008c, 0xe941db3f]));
     }
index 0f561acca150392b5f703e6dfceb00e440937f39..31629e7f29fec7081347bef240d4219cad1c5f93 100644 (file)
@@ -1063,6 +1063,7 @@ mod test {
     use nihav_codec_support::test::dec_video::*;
     use crate::llaudio_register_all_decoders;
     use crate::llaudio_register_all_demuxers;
+    // samples come from the official WavPack test samples set
     #[test]
     fn test_wavpack_8bit() {
         let mut dmx_reg = RegisteredDemuxers::new();
index bae9416ba2ab3f8ebd082aa48cef97fc28b96795..c58915bb14d1c01b699454f4a2aac444af4fe0aa 100644 (file)
@@ -251,6 +251,7 @@ mod test {
 
     #[test]
     fn test_ape_demux() {
+        // sample: https://samples.mplayerhq.hu/A-codecs/lossless/luckynight.ape
         let mut file = File::open("assets/LLaudio/ape/luckynight.ape").unwrap();
         let mut fr = FileReader::new_read(&mut file);
         let mut br = ByteReader::new(&mut fr);
index 83208c406cf9034446bf36c9d12364c0c891ddf3..13ab0e37a3193ebe818c5855ad8064009f1a47be 100644 (file)
@@ -286,6 +286,7 @@ mod test {
 
     #[test]
     fn test_flac_demux() {
+        // sample: https://samples.mplayerhq.hu/A-codecs/lossless/luckynight.flac
         let mut file = File::open("assets/LLaudio/luckynight.flac").unwrap();
         let mut fr = FileReader::new_read(&mut file);
         let mut br = ByteReader::new(&mut fr);
index d86d14e1eb3efb6c7901a1c1ecc174c7e49786d0..e8d1f4ae204ed2dc18366078218ef810fb37f318 100644 (file)
@@ -154,6 +154,7 @@ mod test {
 
     #[test]
     fn test_flac_raw_demux() {
+        // sample: https://samples.mplayerhq.hu/A-codecs/lossless/luckynight.flac
         let mut file = File::open("assets/LLaudio/luckynight.flac").unwrap();
         let mut fr = FileReader::new_read(&mut file);
         let mut br = ByteReader::new(&mut fr);
index 25fac1b98c6fe6ed787c85448bbb866ff0173dd6..8c2150c028c8ac4d902904207f697c76468fcd5c 100644 (file)
@@ -124,6 +124,7 @@ mod test {
 
     #[test]
     fn test_tta_demux() {
+        // sample: https://samples.mplayerhq.hu/A-codecs/lossless/luckynight.tta
         let mut file = File::open("assets/LLaudio/luckynight.tta").unwrap();
         let mut fr = FileReader::new_read(&mut file);
         let mut br = ByteReader::new(&mut fr);
index e54ad7e68a3bed760499dfbdbe2050f92680fa8e..9d010890ad88c5ae9987a624d4615c1c221a69cd 100644 (file)
@@ -279,6 +279,7 @@ mod test {
 
     #[test]
     fn test_wavpack_demux() {
+        // sample from the official WavPack test samples set
         let mut file = File::open("assets/LLaudio/wv/false_stereo.wv").unwrap();
         let mut fr = FileReader::new_read(&mut file);
         let mut br = ByteReader::new(&mut fr);
index 5c649a592839f912f310b5e9b1f18fbb4fa555ab..fb54a8976e07381043a901370393b12161d46eff 100644 (file)
@@ -108,6 +108,7 @@ mod test {
     fn test_flac_muxer() {
         let mut dmx_reg = RegisteredDemuxers::new();
         llaudio_register_all_demuxers(&mut dmx_reg);
+        // sample: https://samples.mplayerhq.hu/A-codecs/lossless/luckynight.flac
         let dec_config = DecoderTestParams {
                 demuxer:        "flac",
                 in_name:        "assets/LLaudio/luckynight.flac",
index e9400f6f02f9b1f2224c48de0aa8a358a147ce9c..0ca85f531ead44f9603f37732c5a8d7ac809f57a 100644 (file)
@@ -450,6 +450,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         mpeg_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/FLV/flash_video_5/i_004.flv
         let file = "assets/Flash/i_004.flv";
         test_decode_audio("flv", file, Some(6000), None/*Some("mp3_1")*/, &dmx_reg, &dec_reg);
     }
@@ -460,6 +461,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         mpeg_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/FLV/venture_030_ivcp_001_8bit.flv
         let file = "assets/Flash/venture_030_ivcp_001_8bit.flv";
         test_decode_audio("flv", file, Some(7200), None/*Some("mp3_2")*/, &dmx_reg, &dec_reg);
     }
@@ -470,12 +472,14 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         mpeg_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/FLV/flash_with_alpha/lection2-2.flv
         let file = "assets/Flash/lection2-2.flv";
         test_decode_audio("flv", file, Some(6000), None/*Some("mp3_3")*/, &dmx_reg, &dec_reg);
     }
     #[test]
     fn test_mpa_packetiser() {
         let mut buf = [0; 16384];
+        // sample from a private collection
         let mut file = std::fs::File::open("assets/MPEG/1.mp3").unwrap();
 
         let mut pkts = super::MPAPacketiser::new();
index d58ef36f8d66efc01d30261bdcc587e67fa50570..e0606e97500599da25e189b156d1aaee5df9279d 100644 (file)
@@ -106,6 +106,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         ms_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/A-codecs/ima-adpcm/ima-adpcm-stutter/IMAG0006.AVI
         test_decoding("avi", "ima-adpcm-ms", "assets/MS/IMAG0006.AVI", None, &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x0cdc640f, 0xb00df235, 0x1ec4a280, 0x065b5e9e]));
     }
index 45e8d21f32cc2b4e04340c802c40666fceaec838..f142646c20a358a9d6d177521549801c2df39303 100644 (file)
@@ -341,6 +341,7 @@ mod test {
         let mut enc_reg = RegisteredEncoders::new();
         ms_register_all_encoders(&mut enc_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/VP4/ot171_vp40.avi
         let dec_config = DecoderTestParams {
                 demuxer:        "avi",
                 in_name:        "assets/Duck/ot171_vp40.avi",
index 068dd410fe7708a8a7ca2c5ffb5b348d40140ec2..6b6c63e699734ec7da0d8811bb270a2ad8a98a1b 100644 (file)
@@ -448,6 +448,7 @@ mod test {
         let mut enc_reg = RegisteredEncoders::new();
         ms_register_all_encoders(&mut enc_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/RT21/320x240/laser05.avi
         let dec_config = DecoderTestParams {
                 demuxer:        "avi",
                 in_name:        "assets/Indeo/laser05.avi",
index 1cc330865c390e152e055d2c26d610b992d43d59..8637e039bb94be2042edb6b476ac3112ea0bca49 100644 (file)
@@ -261,6 +261,7 @@ mod test {
     use nihav_codec_support::test::dec_video::*;
     use crate::ms_register_all_decoders;
     use nihav_commonfmt::generic_register_all_demuxers;
+    // samples from https://samples.mplayerhq.hu/V-codecs/RLE
     #[test]
     fn test_ms_rle_8bit() {
         let mut dmx_reg = RegisteredDemuxers::new();
index 2fb77130cb2ce84c18f99e810857651e9efeba3e..424eb3b1324120e2642931f5c06e83ac7b0702c6 100644 (file)
@@ -272,6 +272,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         ms_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/avi/palette_change/toon.avi
         test_decoding("avi", "msvideo1", "assets/MS/toon.avi", Some(66), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x0c26ec42, 0xb75bfea7, 0x1e6342ae, 0xb14dcfa3]));
     }
@@ -282,6 +283,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         ms_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/CRAM/clock-cram16.avi
         test_decoding("avi", "msvideo1", "assets/MS/clock-cram16.avi", None, &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x03381fa4, 0x5b294fec, 0xb97a7575, 0xa1a3ffe9]));
     }
index 959c5d5d3e2fca70a59ac098688d29878bbcc82f..d716df077862fe5865db958adc496f578edfcdec 100644 (file)
@@ -582,6 +582,7 @@ mod test {
         let mut enc_reg = RegisteredEncoders::new();
         ms_register_all_encoders(&mut enc_reg);
 
+        // sample: https://samples.mplayerhq.hu/V-codecs/UCOD/TalkingHead_352x288.avi
         let dec_config = DecoderTestParams {
                 demuxer:        "avi",
                 in_name:        "assets/Misc/TalkingHead_352x288.avi",
index b29e9a2d206cd5fc2b844790c219c66566068f02..a4f959d1d7c4b4391d5712e844fae38ec4c33581 100644 (file)
@@ -460,6 +460,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         qt_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/A-codecs/lossless/luckynight.m4a
         test_decoding("mov", "alac", "assets/LLaudio/alac/luckynight.m4a", Some(48000 * 16), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x8b6562ac, 0x95981733, 0x47e14709, 0x45d4f05a]));
     }
@@ -470,6 +471,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         qt_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/A-codecs/lossless/ALAC/ALAC_6ch.mov
         test_decoding("mov", "alac", "assets/LLaudio/alac/ALAC_6ch.mov", None, &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x0356ff3d, 0x1ddd3684, 0xb4da8b00, 0x8e8671a7]));
     }
@@ -480,6 +482,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         qt_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/A-codecs/lossless/ALAC/ALAC_24bits2.mov
         test_decoding("mov", "alac", "assets/LLaudio/alac/ALAC_24bits2.mov", None, &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x15d58ed9, 0x9ee74f5e, 0x0fb82c0b, 0x27da35f9]));
     }
index 636f8828608e31243aac37ab46e458a0919e2d8a..74b31f9884c676f0fc58254cc5d466861baeac59 100644 (file)
@@ -103,6 +103,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         qt_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/A-codecs/ima-adpcm/shuffle-ima41.mov
         test_decoding("mov", "ima-adpcm-qt", "assets/QT/shuffle-ima41.mov", None, &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0xba2ad472, 0xd6aee026, 0xb915dd7d, 0xac51314c]));
     }
index 1166d92c61e304774b55425bc552a3bc32986691..460dca9711c150fb9bb66b0946c0c20b8507e690 100644 (file)
@@ -183,6 +183,7 @@ mod test {
     use nihav_codec_support::test::dec_video::*;
     use crate::qt_register_all_decoders;
     use nihav_commonfmt::generic_register_all_demuxers;
+    // samples from https://samples.mplayerhq.hu/A-codecs/MACE/surge-samples/
     #[test]
     fn test_mace3() {
         let mut dmx_reg = RegisteredDemuxers::new();
index 5edd336e7d437e6c3924484bedfc3bbfd4705be3..f573ac45b9a370f5a42d78adb1e3c4c9d0fd4141 100644 (file)
@@ -303,6 +303,7 @@ mod test {
         qt_register_all_decoders(&mut dec_reg);
 
         //test_decode_audio("mov", "assets/QT/0-22050HzSweep8kb.mov", None, Some("qdm2"), &dmx_reg, &dec_reg);
+        // sample: https://samples.mplayerhq.hu/A-codecs/QDM2/sweep/0-22050HzSweep10kb.mov
         test_decoding("mov", "qdesign-music2", "assets/QT/0-22050HzSweep10kb.mov", None, &dmx_reg, &dec_reg,
                       ExpectedTestResult::Decodes);
     }
index cebf6372e4269ae51a1d3deb60539d800b8ba12e..27ef4e6b60b084c9a47a07e0fb3fbf1e65021b81 100644 (file)
@@ -396,6 +396,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         qt_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/A-codecs/QDMC/rumcoke.mov
         test_decoding("mov", "qdesign-music", "assets/QT/rumcoke.mov", Some(32), &dmx_reg, &dec_reg,
                       ExpectedTestResult::Decodes);
     }
index 969c104e8a4f712e08047bdbffb2dd74a3c4065d..1ff1059460aee858c7580c8d0c1ab8958782b248 100644 (file)
@@ -513,6 +513,7 @@ mod test {
     use nihav_codec_support::test::dec_video::*;
     use crate::qt_register_all_decoders;
     use nihav_commonfmt::generic_register_all_demuxers;
+    // samples from https://samples.mplayerhq.hu/V-codecs/QTRLE
     #[test]
     fn test_qt_rle_1bit() {
         let mut dmx_reg = RegisteredDemuxers::new();
index cbea562cec36e322d77c73a5d55ff2caeba3d0f5..b20cb91e714fe3a7ab90ebfc2bb009132cd5ea02 100644 (file)
@@ -204,7 +204,8 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         qt_register_all_decoders(&mut dec_reg);
 
-        test_decoding("mov", "apple-video", "assets/QT/aletrek-rpza.mov", Some(6), &dmx_reg, &dec_reg,
+        // sample: https://samples.mplayerhq.hu/V-codecs/RPZA/aletrek-rpza.mov
+        test_decoding("mov", "apple-video", "assets/QT/aletrek-rpza.mov", Some(6), &dmx_reg &dec_reg,
                       ExpectedTestResult::MD5Frames(vec![
                             [0xe7cfc941, 0xa448841b, 0x75afc888, 0x94aa064b],
                             [0xadaaec50, 0xff7319ff, 0xa1f3f64a, 0xc40c2985],
index 5364b08e680b3c7b0bbf2360d0bb7c5fb371e9d2..b53ca5cff3ec638769299196096251e1f636c809 100644 (file)
@@ -293,6 +293,7 @@ mod test {
     use nihav_codec_support::test::dec_video::*;
     use crate::qt_register_all_decoders;
     use nihav_commonfmt::generic_register_all_demuxers;
+    // samples from https://samples.mplayerhq.hu/V-codecs/SMC
     #[test]
     fn test_smc() {
         let mut dmx_reg = RegisteredDemuxers::new();
index 4b5d8cd9661ff345dbc4b60d71ea24a4c9fe4021..e36714571ac312ed26834a06e0197f501a6f2105 100644 (file)
@@ -504,6 +504,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         qt_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/A-codecs/ima-adpcm/adpcm-bug.mov
         test_decoding("mov", "sorenson-video", "assets/QT/adpcm-bug.mov", Some(6), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5Frames(vec![
                             [0x90c5eb74, 0xcb942d7d, 0x84c5e444, 0x7f1ba2c2],
index d2cd385a2b9e899b8330deab4170d66882fe2526..07331c688e9c83200922ea28058a109aa6043d50 100644 (file)
@@ -1230,6 +1230,7 @@ mod test {
 //let file = "assets/QT/broken_sword_Large.mov";
 //test_file_decoding("mov", file, Some(264), true, false, Some("svq3"), &dmx_reg, &dec_reg);
 //panic!("end");
+        // sample: https://samples.mplayerhq.hu/V-codecs/SVQ3/broken_sword_Large.mov
         test_decoding("mov", "sorenson-video3", "assets/QT/broken_sword_Large.mov", Some(40), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5Frames(vec![
                         [0x16924d18, 0xccc5a0b4, 0xc2bb9412, 0x93d41f10],
index 21b48eb5c5602d5ea921069daec5053bf5c75397..a42b3d69230c7d4a8049ddf69683ad5ca9eeb364 100644 (file)
@@ -1970,6 +1970,7 @@ mod test {
 
         //let file = "assets/RAD/Open_Logos_partial.bik";
         //let file = "assets/RAD/sc13_01_partial.bk2";
+        // sample from a private collection
         let file = "assets/RAD/ge_video_86l.bk2";
         //let file = "assets/RAD/eg_club_0.bk2";
         test_file_decoding("bink", file, Some(8), true, false, None/*Some("bink2")*/, &dmx_reg, &dec_reg);
index 1cdb0a1ddbf2c7d6334414786946f8577606cdbf..039e4411830d5d07257ab7db99bec0f74cf4842a 100644 (file)
@@ -308,6 +308,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         rad_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/game-formats/bink/ActivisionLogo.bik
         let file = "assets/RAD/ActivisionLogo.bik";
         test_decode_audio("bink", file, None, None/*Some("bink")*/, &dmx_reg, &dec_reg);
     }
@@ -318,6 +319,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         rad_register_all_decoders(&mut dec_reg);
 
+        // sample from Heroes of Might and Magic 3
         let file = "assets/RAD/NWCLOGO.BIK";
         test_decode_audio("bink", file, None, None/*Some("bink")*/, &dmx_reg, &dec_reg);
     }
index 9c0dc9e37dd976780c48263dd091377b89794767..65ab3cf0770e136ff6fe129495d4a5bb3e9d7d54 100644 (file)
@@ -1273,6 +1273,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         rad_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/game-formats/bink/bikb/NEW.BIK
         test_decoding("bink", "bink-video", "assets/RAD/NEW.BIK", Some(16), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5Frames(vec![
                             [0x00edef7e, 0x7efad3b1, 0x7e8bdd74, 0x3f6b00ba],
@@ -1300,6 +1301,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         rad_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/game-formats/bink/ActivisionLogo.bik
         test_decoding("bink", "bink-video", "assets/RAD/ActivisionLogo.bik", Some(42),
                       &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x41128884, 0x73a8c710, 0x5072ea4a, 0x8caca428]));
index 0d681dc19809b1c792b69e26386f435bd37cf692..c1b9fd6cae3270c49165960d10482f6c1573dc68 100644 (file)
@@ -625,6 +625,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         rad_register_all_decoders(&mut dec_reg);
 
+        // sample from Heroes of Might and Magic 2
         test_decoding("smacker", "smacker-video", "assets/RAD/credits.smk", None, &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5Frames(vec![
                             [0x0983944a, 0xa23503f8, 0x2602b589, 0x13b53480],
@@ -645,6 +646,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         rad_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/game-formats/smacker/wetlands/wetlogo.smk
         test_decoding("smacker", "smacker-audio", "assets/RAD/wetlogo.smk", None, &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0xc686b833, 0x0a203038, 0x012f6d9b, 0xa4186d44]));
     }
@@ -655,6 +657,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         rad_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/game-formats/smacker/20130507_audio-distortion.smk
         test_decoding("smacker", "smacker-audio", "assets/RAD/20130507_audio-distortion.smk", None, &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x942a0922, 0x182bb5fd, 0x94ab7a59, 0x2028d810]));
     }
index dbf401f837436510e4b13723b072a3a89763b1fd..cf576f3763346b4f65f70074534297c0f8d96f1c 100644 (file)
@@ -205,6 +205,7 @@ mod test {
 
     #[test]
     fn test_bink_demux() {
+        // sample: https://samples.mplayerhq.hu/game-formats/bink/ActivisionLogo.bik
         let mut file = File::open("assets/RAD/ActivisionLogo.bik").unwrap();
 //        let mut file = File::open("assets/RAD/original.bik").unwrap();
 //        let mut file = File::open("assets/RAD/Snd0a110c51.dee").unwrap();
index 3a45826850da8852461f556463b933cc8dc94619..fe64191399b5de6e33508b419a8c96fad26192b0 100644 (file)
@@ -314,6 +314,7 @@ mod test {
 
     #[test]
     fn test_smk_demux() {
+        // sample: https://samples.mplayerhq.hu/game-formats/smacker/20130507_audio-distortion.smk
         let mut file = File::open("assets/RAD/20130507_audio-distortion.smk").unwrap();
 //        let mut file = File::open("assets/RAD/ajfstr1.smk").unwrap();
 //        let mut file = File::open("assets/RAD/credits.smk").unwrap();
index b4e17f3f6f2163fc6a4df78956ba316f33858193..24df7c7292cb2a9f40cb194bb6acff6656fb012e 100644 (file)
@@ -702,6 +702,7 @@ mod test {
         realmedia_register_all_decoders(&mut dec_reg);
 
 //        let file = "assets/RV/rv30_weighted_mc.rm";
+        // sample: https://samples.mplayerhq.hu/real/AC-cook/cook_5.1/multichannel.rma
         let file = "assets/RV/multichannel.rma";
         test_decode_audio("realmedia", file, Some(2000), None/*Some("cook")*/, &dmx_reg, &dec_reg);
     }
index 63d4d12548ea2733bee9d0396a0da10c80ac4bb9..a28850f350251294e90c81ca58373c95c10870b1 100644 (file)
@@ -335,6 +335,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         realmedia_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/real/AC-14_4/ra3_in_rm_file.rm
         let file = "assets/RV/ra3_in_rm_file.rm";
         test_decode_audio("realmedia", file, Some(5000), None/*Some("ra14.4")*/, &dmx_reg, &dec_reg);
     }
index 624769dd04fc816bec4069789bca69c53c2d1006..822b1e51fab07a1fcf815abac00f12ca9d996300 100644 (file)
@@ -225,6 +225,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         realmedia_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/real/AC-28_8/A0000044.rm
         let file = "assets/RV/A0000044.rm";
         test_decode_audio("realmedia", file, Some(5000), None/*Some("ra28.8")*/, &dmx_reg, &dec_reg);
     }
index 7e832de211b363d6db030aa27f0abad78c4020d7..94443a9ef1466a8cb5ab89c2ce76f800b36c6201 100644 (file)
@@ -495,6 +495,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         realmedia_register_all_decoders(&mut dec_reg);
 
+        // sample from a private collection
         test_decoding("realmedia", "ralf", "assets/RV/rv40_ralf.rmvb", None, &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x6cf18361, 0x9548b5ce, 0x5dfc0b5c, 0x2bd6f392]));
     }
index 7c317af52db93c91fe1f30de49cdf0118f7ad1bf..317f3568cce42f673cfe005d911067fdb9ac7711 100644 (file)
@@ -485,6 +485,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         realmedia_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/real/VC-RV10/thankyou.rm
         test_decoding("realmedia", "realvideo1", "assets/RV/thankyou.rm",
                       Some(1000), &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0x8bba459c, 0xe6e8e01c, 0x36f90595, 0xb268adee],
@@ -503,6 +504,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         realmedia_register_all_decoders(&mut dec_reg);
 
+        // sample from a private collection
         test_decoding("realmedia", "realvideo1",
                       "assets/RV/rv10_dnet_640x352_realvideo_encoder_4.0.rm",
                       Some(1000), &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
index 078198731844d7874e829d8ba2b4ce89ca112b62..f25df6beeb00f23790be5fbc953d8d0a3d77dc2e 100644 (file)
@@ -702,6 +702,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         realmedia_register_all_decoders(&mut dec_reg);
 
+        // sample from a private collection
         test_decoding("realmedia", "realvideo2",
                       "assets/RV/rv20_svt_atrc_640x352_realproducer_plus_8.51.rm",
                       Some(1000), &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
index f5a894b2a2d4fb84a4f956e712416f1a4e0b0727..704b17e0767b8418ddc88acfce17224460d6bf0b 100644 (file)
@@ -189,6 +189,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         realmedia_register_all_decoders(&mut dec_reg);
 
+        // sample from a private collection
         test_decoding("realmedia", "realvideo3", "assets/RV/rv30_weighted_mc.rm", Some(700),
                       &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
                             [0x2a4d13bf, 0x2f21f3c9, 0xcbd601be, 0x61a6405c],
@@ -206,6 +207,7 @@ mod test {
                             [0x7b38660e, 0xa46f4080, 0xa493f422, 0x36eaaa3b],
                             [0x6375934a, 0xf2a23087, 0x367f9738, 0xf2251e09],
                             [0x54bcefe7, 0xbbc91dc7, 0x0acec7d7, 0x95cf6d02]]));
+        // sample: https://samples.mplayerhq.hu/real/VC-RV30/simpsons-clip.rm
         test_decoding("realmedia", "realvideo3", "assets/RV/simpsons-clip.rm", Some(1337),
                       &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5([0x36604117, 0x415f95cc, 0xec38e776, 0x9818d3be]));
index bcd600b83dba6a1ae98f1b05ae636f094eec764d..4971c7a1416d280e233d305e70661536d1e3c4a8 100644 (file)
@@ -375,6 +375,7 @@ mod test {
     use nihav_codec_support::test::dec_video::*;
     use crate::realmedia_register_all_decoders;
     use crate::realmedia_register_all_demuxers;
+    // samples from a private collection
     #[test]
     fn test_rv40() {
         let mut dmx_reg = RegisteredDemuxers::new();
index c786b71a0495753f62e61de01433dba5b91b27ff..71668d78522010644230231afdac814cb5a9b471 100644 (file)
@@ -1598,6 +1598,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         realmedia_register_all_decoders(&mut dec_reg);
 
+        // sample from a private collection
         test_decoding("realmedia", "realvideo6", "assets/RV/RV60.rmhd", Some(1000), &dmx_reg, &dec_reg,
                       ExpectedTestResult::MD5Frames(vec![
                             [0x2b1f1807, 0x09edef33, 0x0e6c78c1, 0x3b3c8179],
index ad28fcafcbb9149e6d3fee2301edd65ca33f9566..7a59f567d1e7c83c67346a53d340869955f8307e 100644 (file)
@@ -1709,6 +1709,7 @@ mod test {
 
     #[test]
     fn test_rm_demux() {
+        // sample from a private collection
         let mut file =
             File::open("assets/RV/rv10_dnet_640x352_realvideo_encoder_4.0.rm").unwrap();
 //            File::open("assets/RV/rv20_cook_640x352_realproducer_plus_8.51.rm").unwrap();
@@ -1741,6 +1742,7 @@ mod test {
     }
     #[test]
     fn test_ra_demux() {
+        // sample: https://samples.mplayerhq.hu/real//RA/ra_with_comment_field/diemusik.ra
         let mut file =
 //            File::open("assets/RV/welcome288.ra").unwrap();
             File::open("assets/RV/diemusik.ra").unwrap();
@@ -1763,6 +1765,7 @@ mod test {
     }
     #[test]
     fn test_ivr_demux() {
+        // sample: https://samples.mplayerhq.hu/real/ivr/Opener_rm_hi.ivr
         let mut file =
             File::open("assets/RV/Opener_rm_hi.ivr").unwrap();
 //            File::open("assets/RV/SherwinWilliamsCommercial.ivr").unwrap();
index 42dda3a5dbb783802288d04160c7ce843c392ff5..2f650d8bda04abb015fc7e04bb2c39bd0685b51c 100644 (file)
@@ -984,6 +984,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         vivo_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/vivo/viv1/adalogo.viv
         let file = "assets/Misc/adalogo.viv";
         //let file = "assets/Misc/gr_al.viv";
         //test_decode_audio("vivo", file, Some(1500), None/*Some("g7231")*/, &dmx_reg, &dec_reg);
index 0b23f18e15404750c3ffeee28d0744bff1462490..d026ff3fccc3738e8c5ac3641e09ae279c641471 100644 (file)
@@ -404,6 +404,7 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         vivo_register_all_decoders(&mut dec_reg);
 
+        // sample: https://samples.mplayerhq.hu/vivo/vivo2/favmovie.viv
         let file = "assets/Misc/favmovie.viv";
         //let file = "assets/Misc/gr_al.viv";
         test_decode_audio("vivo", file, None, None/*Some("siren")*/, &dmx_reg, &dec_reg);
index c1d78c980d573a265a7a353984cdacc58dd24e56..64af5ffae9833396c07a162877c8043cc04eb982 100644 (file)
@@ -729,6 +729,7 @@ mod test {
     use nihav_codec_support::test::dec_video::*;
     use crate::vivo_register_all_decoders;
     use crate::vivo_register_all_demuxers;
+    // samples from https://samples.mplayerhq.hu/vivo/
     #[test]
     fn test_vivo1() {
         let mut dmx_reg = RegisteredDemuxers::new();
index 4a6f25469b29fc5d3f9e5906dc9b586f942d60ab..cd8e97dc14381863b221cfa1583fce9324856045 100644 (file)
@@ -262,6 +262,7 @@ mod test {
     #[test]
     fn test_vivo_demux() {
 //        let mut file = File::open("assets/Misc/greetings.viv").unwrap();
+        // sample: https://samples.mplayerhq.hu/vivo/vivo2/favmovie.viv
         let mut file = File::open("assets/Misc/favmovie.viv").unwrap();
         let mut fr = FileReader::new_read(&mut file);
         let mut br = ByteReader::new(&mut fr);