]> git.nihav.org Git - nihav.git/commitdiff
indeo5: switch to MD5-based testing
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 14 Dec 2019 09:43:59 +0000 (10:43 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 14 Dec 2019 09:43:59 +0000 (10:43 +0100)
nihav-indeo/src/codecs/indeo5.rs

index 19107862f3afad069eef001b3c79649a7eae23ab..045d4b7994ecfd3268cf456ab02dcf910450a95d 100644 (file)
@@ -732,8 +732,108 @@ mod test {
         let mut dec_reg = RegisteredDecoders::new();
         indeo_register_all_codecs(&mut dec_reg);
 
-        test_file_decoding("avi", "assets/Indeo/IV5/sample.avi", /*None*/Some(2), true, false, None, &dmx_reg, &dec_reg);
-//         test_file_decoding("avi", "assets/Indeo/IV5/W32mdl_1.avi", None/*Some(2)*/, true, false, Some("iv5"));
-//panic!("the end");
+        test_decoding("avi", "indeo5", "assets/Indeo/IV5/sample.avi", Some(100),
+                      &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![
+                           [0xd73ef6e2, 0x099dc18f, 0x46450af9, 0x1b390a48],
+                           [0xbe3295d6, 0xf4afd9fd, 0x820d35e8, 0x4b593c9a],
+                           [0x415e5aed, 0x33afb9a2, 0x14ae9308, 0x53e906d3],
+                           [0x7fa94dd3, 0x58582fc3, 0xe39977bc, 0xd88036d5],
+                           [0x8eef68f7, 0xace88c0c, 0x3f6e4388, 0xfcd82f46],
+                           [0xfe22fcc6, 0x8c4666ab, 0xd9888786, 0x7d9adbc8],
+                           [0x37f8b6bc, 0xaea9e94a, 0x05a98f2e, 0x2dce51fa],
+                           [0x37492cbd, 0x8fd516fa, 0x48a0bcd1, 0x5eb6584f],
+                           [0x6f464159, 0xa2af785b, 0xb440493b, 0x86b21911],
+                           [0x3a52de08, 0x9f5762b0, 0xe58a6979, 0x0abb295e],
+                           [0xe8f56414, 0x36e76d76, 0xd0927365, 0x15dc5327],
+                           [0x0fc17e06, 0x8cb6581c, 0x86eb730d, 0x9bedf951],
+                           [0x54fb3627, 0xc02bffc6, 0x87748ee5, 0x8b12d57d],
+                           [0x8e4fd3a5, 0x3a7b9cd7, 0x0a4ba1a0, 0x48e10237],
+                           [0xce87ea8b, 0x1ec40c98, 0x12c9a682, 0x57d02bf0],
+                           [0x7024e691, 0x6bc493ba, 0x617a7a91, 0x65997b4c],
+                           [0xb8d53b7c, 0x132ffec9, 0x827cf176, 0x68e97292],
+                           [0x12ed76a9, 0x11eced60, 0x473a364f, 0x1e197803],
+                           [0x6c23ba3a, 0x12e2f7e3, 0x8fc0c2bc, 0x20726bb2],
+                           [0x3307e5e6, 0x3e4fa871, 0x55df1d59, 0xbe055301],
+                           [0x8198ee6c, 0x82a33414, 0x9fd8c430, 0x1fca7b93],
+                           [0x557662c2, 0xeb3226fc, 0x2a125be4, 0xd475ffa9],
+                           [0x850c0326, 0x7a0105e5, 0x37799945, 0x927d1237],
+                           [0xe770097e, 0xabd460f4, 0x3d9260e0, 0x5a8132e2],
+                           [0xdb6644e7, 0xde6986eb, 0x12cc4916, 0x977d2177],
+                           [0xd58ced6c, 0x91c0e7b6, 0x8c5926fc, 0x2dbf3117],
+                           [0x6e76dd5f, 0x088884f0, 0x8f94451f, 0xc8df4daf],
+                           [0x726b2f8f, 0xd44af9ba, 0x1e188962, 0xd37c1a38],
+                           [0x84035565, 0xd2370a8c, 0x8ecb4a3f, 0xd6758196],
+                           [0xa1e75a16, 0xc9e230ed, 0x23de50f3, 0x2366967a],
+                           [0x690a2a91, 0xfa4acef1, 0xd3de6dd0, 0x973031d9],
+                           [0xb392e62a, 0x22b0d3f2, 0x0e975a86, 0x14d6dcb3],
+                           [0x5e002202, 0xc80e236e, 0x0b484e02, 0x00035f47],
+                           [0x4fc0f301, 0x8ec0d33d, 0xe71a12dd, 0xe799731f],
+                           [0x278c9096, 0xec7fa833, 0x2094d81f, 0x52e21165],
+                           [0xd55238a8, 0xf040101a, 0x1152b6fe, 0x661c9e64],
+                           [0x3699d16e, 0x89d9f2d7, 0x9ad59597, 0x7361ee21],
+                           [0x1419c93c, 0x91b75784, 0x18f7121d, 0xec2c6b78],
+                           [0x07c435da, 0x05f18557, 0xf28ce1e0, 0x43cadcba],
+                           [0x2015269d, 0x52cad948, 0xd6485611, 0x06fe33d7],
+                           [0x0cea56f3, 0x82c30841, 0x9b2a8cab, 0x8a6f07cb],
+                           [0x81f82aa9, 0x233060d5, 0x00f4171e, 0xe14c0c2a],
+                           [0x9b2f8b08, 0x7d091eac, 0x09dcb2c3, 0xa7670405],
+                           [0x99c97f75, 0xf91c6b12, 0xfbad7705, 0x1c6e6f27],
+                           [0xc762b89c, 0xbf44a194, 0xb2a54dc2, 0xae2103e4],
+                           [0xba4f52ed, 0xe35aff77, 0x50d8c9d3, 0xeb382d32],
+                           [0x9bc9d9a0, 0x7cb4c594, 0xbc1af6f4, 0x1f718229],
+                           [0x5f19eea2, 0x6260982e, 0x393fb360, 0x71abe746],
+                           [0xd13f2fcc, 0x88a6a714, 0xf4f53d55, 0xf42b11ba],
+                           [0x4208b476, 0xaf06ffce, 0x38e59bfe, 0x588567a2],
+                           [0xbedfb7b7, 0x8300a39d, 0x964a3c0f, 0x577d52d7],
+                           [0x18e5a6f2, 0x7ec85996, 0x27694f30, 0x7717748a],
+                           [0xb5e6d70f, 0xc43261bb, 0xd4e6ae7c, 0xcc11f79c],
+                           [0xc808cba7, 0xbb042416, 0x2f01ebe1, 0x7d176a38],
+                           [0x03353805, 0x4b6e9d66, 0x25933123, 0x4213aaf7],
+                           [0x189a6da5, 0x04a4cbe6, 0xea3c9d09, 0x153fdee2],
+                           [0x41f8ac6b, 0xb476356b, 0xc70b67d0, 0x28caf359],
+                           [0x4514b6a4, 0x788545ff, 0x4ee9139b, 0xa45bedf9],
+                           [0x2a39be04, 0xac9921cb, 0x685c1bf9, 0x904bdab2],
+                           [0x2c18f3ef, 0x416c0335, 0x0face768, 0x1b9d5cd2],
+                           [0x898cd63f, 0x60af727f, 0x6bdf1be6, 0x0df05cfe],
+                           [0x8a06787b, 0x7cee2f8b, 0xdc8aac77, 0x2e0e740a],
+                           [0x3d340571, 0xbf1c8d4c, 0xddc23f69, 0xd1903942],
+                           [0x7d179e85, 0x54048c4d, 0xba047d33, 0x2e9e5edb],
+                           [0x65e26600, 0x87c8421d, 0xa77e2c6c, 0x32b4971a],
+                           [0x69041052, 0xa4858c7b, 0x904d84f7, 0xb4ad3dcf],
+                           [0x3ea0246d, 0x533e752d, 0x1d55798a, 0x30e17e72],
+                           [0x4254a700, 0x07365f23, 0x0f9da313, 0xaecd38ce],
+                           [0xa5756d9d, 0x79f31387, 0x0ded3654, 0xa7299663],
+                           [0x4ef027c9, 0xeebb1383, 0x26a55289, 0x3746969d],
+                           [0xdc6acadf, 0x23e1b6e1, 0x07fcdc26, 0x9914b684],
+                           [0x52bb8b80, 0x1a5688ae, 0xd429662d, 0x1cc1485d],
+                           [0x76b35f59, 0x24b64e5b, 0xbcbeaee7, 0xf568a832],
+                           [0x0756d15f, 0x9cc288bf, 0x9f882a3c, 0xfe7c7161],
+                           [0x0503113a, 0x95e716ff, 0x304cf65e, 0x490725e8],
+                           [0x7db7ba62, 0x08e4e77d, 0xc9db6413, 0xea3f1a39],
+                           [0x7cef6d67, 0xc94867e6, 0x5c674de6, 0x5eb74081],
+                           [0x7573b799, 0x069d4f03, 0x63b537a1, 0xdfe25db6],
+                           [0xc401e705, 0x834828bc, 0xd99da4a1, 0xd0f3bee8],
+                           [0x02817844, 0xada6433e, 0x31761e98, 0x901ccf68],
+                           [0x8f9432b4, 0x9f860957, 0xcba54c86, 0x8beb8209],
+                           [0x6a46e58c, 0x7d299228, 0x5c001d12, 0xd8db2a00],
+                           [0x0c12586d, 0x866d8ca9, 0x849bbb17, 0x5af63ea2],
+                           [0xe48671b6, 0xc4377063, 0xc4d03c02, 0x621bd894],
+                           [0x5f7f82eb, 0xcdb5abf5, 0x325f2d9d, 0x24a5d200],
+                           [0xec6b6fe7, 0x347316c4, 0x6241904a, 0x4e2497a5],
+                           [0xf661b7fd, 0xa00e2fc7, 0x90e11456, 0x507fef21],
+                           [0x77c7addd, 0x67148dce, 0x1cd27059, 0xefbf4abf],
+                           [0x11270d9c, 0xb352779d, 0x81f21055, 0xae93a8b6],
+                           [0x3d1f0aaf, 0x3b4aa6d8, 0xca1c160c, 0x6fe4f2bd],
+                           [0x17c6bec4, 0x54b568cd, 0xd19c78d6, 0x9a3d897a],
+                           [0xc4ab4ca6, 0xbf3b2573, 0xb4d837dd, 0x4dfab799],
+                           [0x6fd5645d, 0xa34978b2, 0x6696dd1a, 0x665ca09b],
+                           [0x87984bb9, 0xd4d3bc30, 0x7f8bb7a8, 0x2d83b303],
+                           [0x21fb5d58, 0x1ee47d1a, 0x97200d83, 0x1d596a88],
+                           [0x2656f329, 0x497693be, 0xca971ddf, 0x410d4092],
+                           [0xd285c512, 0xfc1ed632, 0x63c43ec2, 0xac5766d1],
+                           [0x46fb80ee, 0xcfeecdaa, 0x7237a433, 0x5708ff56],
+                           [0x4fccd9c8, 0x7b1a4f31, 0x51516a80, 0x27bf3cae],
+                           [0xd649d2f5, 0xebadf1f7, 0x6b34e8ce, 0xb87e82f1],
+                           [0x6eb0aec6, 0xfbe9cb51, 0x39e695b4, 0xa6e46e70]]));
     }
 }