arxel-vid: fix motion vector value
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 12 Nov 2022 16:18:40 +0000 (17:18 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 12 Nov 2022 16:18:40 +0000 (17:18 +0100)
nihav-game/src/codecs/arxel_vid.rs

index b2d6815d923ef18220d1245a5975916e46d2386b..c97512a02367f4cee406773b4d8c937925829423 100644 (file)
@@ -8,7 +8,7 @@ const MV_2BIT: [(i8, i8); 4] = [(-1, 0), (-1, -1), (1, -1), (0, -2)];
 const MV_4BIT: [(i8, i8); 16] = [
     (-2, -3), ( 2, -3), (-1, -4), ( 1, -4),
     (-1, -2), ( 1, -2), ( 0, -3), ( 0, -4),
-    (-2,  0), (-2, -1), ( 1, -1), (-2, -2),
+    (-2,  0), (-2, -1), ( 2, -1), (-2, -2),
     ( 2, -2), (-1, -3), ( 1, -3), ( 0, -5)
 ];
 
@@ -177,6 +177,6 @@ mod test {
         game_register_all_decoders(&mut dec_reg);
 
         test_decoding("arxel-cnm", "arxel-video", "assets/Game/logo.cnm", Some(10), &dmx_reg, &dec_reg,
-                      ExpectedTestResult::MD5([0xcf12f83a, 0xfdce1ed2, 0x2d183394, 0xa265f164]));
+                      ExpectedTestResult::MD5([0x9b1fc970, 0x1fe86e2c, 0x44dd9255, 0x3920c49b]));
     }
 }