Use of clearer expression. draft
authorISHIKAWA, Chiaki <ishikawa@yk.rim.or.jp>
Sat, 09 Nov 2019 11:00:30 +0900
changeset 81080 0c88b04a1a7bc6d233eb0185b40ffa2c6b9f82a3
parent 81079 e9d66487de46fc4f2a46c221ec2474ae5cf76fe9
child 81081 42b107454e323b072d9245146c824f4d0df5d367
push id9744
push userishikawa@yk.rim.or.jp
push dateSat, 09 Nov 2019 02:01:06 +0000
treeherdertry-comm-central@56c83244ac0e [default view] [failures only]
Use of clearer expression.
mozilla-M-C-018-vp9_loopfilter-clearer-code.patch
new file mode 100644
--- /dev/null
+++ b/mozilla-M-C-018-vp9_loopfilter-clearer-code.patch
@@ -0,0 +1,27 @@
+# HG changeset patch
+# User ISHIKAWA, Chiaki <ishikawa@yk.rim.or.jp>
+# Parent  0a7ecf01ce299523a40435e573d99a0b3ec59955
+Use of clearer expression.
+
+diff --git a/media/libvpx/libvpx/vp9/common/vp9_loopfilter.c b/media/libvpx/libvpx/vp9/common/vp9_loopfilter.c
+--- a/media/libvpx/libvpx/vp9/common/vp9_loopfilter.c
++++ b/media/libvpx/libvpx/vp9/common/vp9_loopfilter.c
+@@ -1169,17 +1169,17 @@ void vp9_filter_block_plane_non420(VP9_C
+         }
+ 
+         if (!skip_this && tx_size < TX_8X8 && !skip_border_4x4_c)
+           mask_4x4_int[r] |= 1 << (c >> ss_x);
+       }
+     }
+ 
+     // Disable filtering on the leftmost column
+-    border_mask = ~(mi_col == 0);
++    border_mask = (mi_col == 0) ? ~1 : ~0;
+ #if CONFIG_VP9_HIGHBITDEPTH
+     if (cm->use_highbitdepth) {
+       highbd_filter_selectively_vert(
+           CONVERT_TO_SHORTPTR(dst->buf), dst->stride,
+           mask_16x16_c & border_mask, mask_8x8_c & border_mask,
+           mask_4x4_c & border_mask, mask_4x4_int[r], cm->lf_info.lfthr,
+           &lfl[r << 3], (int)cm->bit_depth);
+     } else {