rv6: fix typo in chroma filtering loop
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 25 Oct 2022 16:31:19 +0000 (18:31 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 26 Oct 2022 12:57:36 +0000 (14:57 +0200)
Spotted by Peter Ross

nihav-realmedia/src/codecs/rv60.rs
nihav-realmedia/src/codecs/rv60dsp.rs

index bedebc9ac2161641ddb6b9f41692cc64c1a40267..ca04fb1f958373575b96711b556f5d92f6f8cd18 100644 (file)
@@ -1583,13 +1583,13 @@ mod test {
                             [0x2b1f1807, 0x09edef33, 0x0e6c78c1, 0x3b3c8179],
                             [0xb04e2626, 0x976e16f5, 0xc41a7a78, 0x2d8765da],
                             [0xf4f30d97, 0x7f2876eb, 0x265ffad4, 0x3542a7c4],
-                            [0xa5082524, 0x38a86952, 0x35bf1fee, 0xfc830d3f],
-                            [0x75eab1a2, 0x62e2222f, 0xe96a20d9, 0x652140b4],
-                            [0x7590fa49, 0x78c83490, 0x239eeff9, 0x64282ac7],
-                            [0x70b19e9f, 0x66c1f866, 0xb8d7142a, 0xf3e424b2],
-                            [0xc2934123, 0x3bf72fc4, 0x12d8d123, 0x1f39525b],
-                            [0x13344919, 0xecd01190, 0x2f69079b, 0xbf4d7026],
-                            [0xcefb3284, 0xa9b36d4d, 0xf1aa6752, 0xaae17d44],
-                            [0x57f01275, 0xf8e883ea, 0x4865752e, 0xc760a777]]));
+                            [0x7fd46b65, 0x9e56b770, 0xffa13e3b, 0x73d47eb6],
+                            [0xa3ec74e1, 0xc33617ab, 0xb49c744b, 0x7d1c8127],
+                            [0x830d85c2, 0x1df398c3, 0x40f33a4f, 0x445d95b3],
+                            [0xa5471116, 0x9299e39f, 0x98da1680, 0x1aabeed5],
+                            [0xd89ef645, 0x66c684fe, 0x6d5e4207, 0x5e480550],
+                            [0xdf434d0c, 0xf0018799, 0x935aa650, 0xcfc702fc],
+                            [0x9770cae6, 0x8a7caa6a, 0x87b6438d, 0x7b161519],
+                            [0x9a2dfade, 0x3ff56dbe, 0x5fbc6999, 0x827770e9]]));
     }
 }
index 7fa893397f2f9c354bc9b70aa7e73d2d0b179dd1..3a90123f44d9571a24acc747e43d530385bfdac3 100644 (file)
@@ -543,7 +543,7 @@ impl RV60DSP {
             filter_luma_edge(frame.data, offset, 1, stride, mode_l, mode_r, lim1, lim2);
         }
         if ((str_l | str_r) >= 2) && deblock_chroma {
-            for comp in 1..2 {
+            for comp in 1..3 {
                 let stride = frame.stride[comp];
                 let offset = frame.offset[comp] + (xpos >> 1) + (ypos >> 1) * stride;
                 filter_chroma_edge(frame.data, offset, 1, stride, mode_l, mode_r, lim1, lim2);
@@ -568,7 +568,7 @@ impl RV60DSP {
             filter_luma_edge(frame.data, offset, stride, 1, mode_t, mode_d, lim1, lim2);
         }
         if ((str_t | str_d) >= 2) && deblock_chroma {
-            for comp in 1..2 {
+            for comp in 1..3 {
                 let stride = frame.stride[comp];
                 let offset = frame.offset[comp] + (xpos >> 1) + (ypos >> 1) * stride;
                 filter_chroma_edge(frame.data, offset, stride, 1, mode_t, mode_d, lim1, lim2);