Unify highbd loopfilter function names

Rename aom_highbd_lpf_horizontal_edge_8() to aom_highbd_lpf_horizontal_16().
Rename aom_highbd_lpf_horizontal_edge_16() to aom_highbd_lpf_horizontal_16_dual().

based on the same change from libvpx:
7f1f35183 Unify loopfilter function names

Change-Id: I40cd587e74e0fe02bae23e6c10280c8e269df1d6
diff --git a/aom_dsp/aom_dsp_rtcd_defs.pl b/aom_dsp/aom_dsp_rtcd_defs.pl
index c4e8bd1..b115ea5 100755
--- a/aom_dsp/aom_dsp_rtcd_defs.pl
+++ b/aom_dsp/aom_dsp_rtcd_defs.pl
@@ -516,11 +516,11 @@
   add_proto qw/void aom_highbd_lpf_vertical_4_dual/, "uint16_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1, int bd";
   specialize qw/aom_highbd_lpf_vertical_4_dual sse2 avx2/;
 
-  add_proto qw/void aom_highbd_lpf_horizontal_edge_8/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
-  specialize qw/aom_highbd_lpf_horizontal_edge_8 sse2/;
+  add_proto qw/void aom_highbd_lpf_horizontal_16/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
+  specialize qw/aom_highbd_lpf_horizontal_16 sse2/;
 
-  add_proto qw/void aom_highbd_lpf_horizontal_edge_16/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
-  specialize qw/aom_highbd_lpf_horizontal_edge_16 sse2 avx2/;
+  add_proto qw/void aom_highbd_lpf_horizontal_16_dual/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
+  specialize qw/aom_highbd_lpf_horizontal_16_dual sse2 avx2/;
 
   add_proto qw/void aom_highbd_lpf_horizontal_8/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
   specialize qw/aom_highbd_lpf_horizontal_8 sse2/;
diff --git a/aom_dsp/loopfilter.c b/aom_dsp/loopfilter.c
index c214419..c8fa3f4 100644
--- a/aom_dsp/loopfilter.c
+++ b/aom_dsp/loopfilter.c
@@ -1258,14 +1258,13 @@
   }
 }
 
-void aom_highbd_lpf_horizontal_edge_8_c(uint16_t *s, int p,
-                                        const uint8_t *blimit,
-                                        const uint8_t *limit,
-                                        const uint8_t *thresh, int bd) {
+void aom_highbd_lpf_horizontal_16_c(uint16_t *s, int p, const uint8_t *blimit,
+                                    const uint8_t *limit, const uint8_t *thresh,
+                                    int bd) {
   highbd_mb_lpf_horizontal_edge_w(s, p, blimit, limit, thresh, 1, bd);
 }
 
-void aom_highbd_lpf_horizontal_edge_16_c(uint16_t *s, int p,
+void aom_highbd_lpf_horizontal_16_dual_c(uint16_t *s, int p,
                                          const uint8_t *blimit,
                                          const uint8_t *limit,
                                          const uint8_t *thresh, int bd) {
diff --git a/aom_dsp/x86/highbd_loopfilter_avx2.c b/aom_dsp/x86/highbd_loopfilter_avx2.c
index 8eede88..b904e09 100644
--- a/aom_dsp/x86/highbd_loopfilter_avx2.c
+++ b/aom_dsp/x86/highbd_loopfilter_avx2.c
@@ -204,11 +204,11 @@
 #endif  // #if !CONFIG_PARALLEL_DEBLOCKING
 
 #if CONFIG_PARALLEL_DEBLOCKING
-void aom_highbd_lpf_horizontal_edge_16_avx2(uint16_t *s, int p,
+void aom_highbd_lpf_horizontal_16_dual_avx2(uint16_t *s, int p,
                                             const uint8_t *blt,
                                             const uint8_t *lt,
                                             const uint8_t *thr, int bd) {
-  aom_highbd_lpf_horizontal_edge_16_sse2(s, p, blt, lt, thr, bd);
+  aom_highbd_lpf_horizontal_16_dual_sse2(s, p, blt, lt, thr, bd);
 }
 
 void aom_highbd_lpf_vertical_16_dual_avx2(uint16_t *s, int p,
@@ -249,7 +249,7 @@
                                       limit1, thresh1, bd);
 }
 #else
-void aom_highbd_lpf_horizontal_edge_16_avx2(uint16_t *s, int pitch,
+void aom_highbd_lpf_horizontal_16_dual_avx2(uint16_t *s, int pitch,
                                             const uint8_t *blt,
                                             const uint8_t *lt,
                                             const uint8_t *thr, int bd) {
@@ -415,7 +415,7 @@
   highbd_transpose16x16(s - 8, p, t_dst, 16);
 
   //  Loop filtering
-  aom_highbd_lpf_horizontal_edge_16_avx2(t_dst + 8 * 16, 16, blimit, limit,
+  aom_highbd_lpf_horizontal_16_dual_avx2(t_dst + 8 * 16, 16, blimit, limit,
                                          thresh, bd);
 
   //  Transpose back
diff --git a/aom_dsp/x86/highbd_loopfilter_sse2.c b/aom_dsp/x86/highbd_loopfilter_sse2.c
index d2ab76e..df76ec6 100644
--- a/aom_dsp/x86/highbd_loopfilter_sse2.c
+++ b/aom_dsp/x86/highbd_loopfilter_sse2.c
@@ -383,10 +383,10 @@
   highbd_lpf_horz_edge_8_internal(s, pitch, blt, lt, thr, bd, EIGHT_PIXELS);
 }
 
-void aom_highbd_lpf_horizontal_edge_8_sse2(uint16_t *s, int p,
-                                           const uint8_t *_blimit,
-                                           const uint8_t *_limit,
-                                           const uint8_t *_thresh, int bd) {
+void aom_highbd_lpf_horizontal_16_sse2(uint16_t *s, int p,
+                                       const uint8_t *_blimit,
+                                       const uint8_t *_limit,
+                                       const uint8_t *_thresh, int bd) {
 #if CONFIG_PARALLEL_DEBLOCKING
   highbd_lpf_horz_edge_8_4p(s, p, _blimit, _limit, _thresh, bd);
 #else
@@ -394,7 +394,7 @@
 #endif
 }
 
-void aom_highbd_lpf_horizontal_edge_16_sse2(uint16_t *s, int p,
+void aom_highbd_lpf_horizontal_16_dual_sse2(uint16_t *s, int p,
                                             const uint8_t *_blimit,
                                             const uint8_t *_limit,
                                             const uint8_t *_thresh, int bd) {
@@ -979,8 +979,8 @@
   highbd_transpose(src, p, dst, 8, 2);
 
   // Loop filtering
-  aom_highbd_lpf_horizontal_edge_8_sse2(t_dst + 8 * 8, 8, blimit, limit, thresh,
-                                        bd);
+  aom_highbd_lpf_horizontal_16_sse2(t_dst + 8 * 8, 8, blimit, limit, thresh,
+                                    bd);
   src[0] = t_dst;
   src[1] = t_dst + 8 * 8;
   dst[0] = s - 8;
@@ -1003,7 +1003,7 @@
 #if CONFIG_PARALLEL_DEBLOCKING
   highbd_lpf_horz_edge_8_8p(t_dst + 8 * 16, 16, blimit, limit, thresh, bd);
 #else
-  aom_highbd_lpf_horizontal_edge_16_sse2(t_dst + 8 * 16, 16, blimit, limit,
+  aom_highbd_lpf_horizontal_16_dual_sse2(t_dst + 8 * 16, 16, blimit, limit,
                                          thresh, bd);
 #endif
   //  Transpose back
diff --git a/av1/common/av1_loopfilter.c b/av1/common/av1_loopfilter.c
index 3da134b..f5b9e4a 100644
--- a/av1/common/av1_loopfilter.c
+++ b/av1/common/av1_loopfilter.c
@@ -830,12 +830,12 @@
     if (mask & 1) {
       if (mask_16x16 & 1) {
         if ((mask_16x16 & 3) == 3) {
-          aom_highbd_lpf_horizontal_edge_16(s, pitch, lfi->mblim, lfi->lim,
+          aom_highbd_lpf_horizontal_16_dual(s, pitch, lfi->mblim, lfi->lim,
                                             lfi->hev_thr, bd);
           count = 2;
         } else {
-          aom_highbd_lpf_horizontal_edge_8(s, pitch, lfi->mblim, lfi->lim,
-                                           lfi->hev_thr, bd);
+          aom_highbd_lpf_horizontal_16(s, pitch, lfi->mblim, lfi->lim,
+                                       lfi->hev_thr, bd);
         }
       } else if (mask_8x8 & 1) {
         if ((mask_8x8 & 3) == 3) {
@@ -2483,11 +2483,11 @@
           if (cm->use_highbitdepth)
 #if CONFIG_DEBLOCK_13TAP
             // TODO(olah): Remove _c once SIMD for 13-tap is available
-            aom_highbd_lpf_horizontal_edge_16_c(
+            aom_highbd_lpf_horizontal_16_dual_c(
                 CONVERT_TO_SHORTPTR(p), dst_stride, params.mblim, params.lim,
                 params.hev_thr, cm->bit_depth);
 #else
-            aom_highbd_lpf_horizontal_edge_16(
+            aom_highbd_lpf_horizontal_16_dual(
                 CONVERT_TO_SHORTPTR(p), dst_stride, params.mblim, params.lim,
                 params.hev_thr, cm->bit_depth);
 #endif
diff --git a/test/lpf_test.cc b/test/lpf_test.cc
index f7a0ef5..385a946 100644
--- a/test/lpf_test.cc
+++ b/test/lpf_test.cc
@@ -494,12 +494,12 @@
 #if !CONFIG_DEBLOCK_13TAP
   // Despite the name the following funcition is doing 15-tap filtering
   // which is changed to 13-tap and not yet implemented in SIMD
-  make_tuple(&aom_highbd_lpf_horizontal_edge_8_sse2,
-             &aom_highbd_lpf_horizontal_edge_8_c, 8),
+  make_tuple(&aom_highbd_lpf_horizontal_16_sse2,
+             &aom_highbd_lpf_horizontal_16_c, 8),
 #endif
 #if !CONFIG_DEBLOCK_13TAP  // No SIMD implementation for deblock_13tap yet
-  make_tuple(&aom_highbd_lpf_horizontal_edge_16_sse2,
-             &aom_highbd_lpf_horizontal_edge_16_c, 8),
+  make_tuple(&aom_highbd_lpf_horizontal_16_dual_sse2,
+             &aom_highbd_lpf_horizontal_16_dual_c, 8),
 #endif
   make_tuple(&aom_highbd_lpf_vertical_8_sse2, &aom_highbd_lpf_vertical_8_c, 8),
 #if !CONFIG_DEBLOCK_13TAP  // No SIMD implementation for deblock_13tap yet
@@ -514,12 +514,12 @@
 #if !CONFIG_DEBLOCK_13TAP
   // Despite the name the following funcition is doing 15-tap filtering
   // which is changed to 13-tap and not yet implemented in SIMD
-  make_tuple(&aom_highbd_lpf_horizontal_edge_8_sse2,
-             &aom_highbd_lpf_horizontal_edge_8_c, 10),
+  make_tuple(&aom_highbd_lpf_horizontal_16_sse2,
+             &aom_highbd_lpf_horizontal_16_c, 10),
 #endif
 #if !CONFIG_DEBLOCK_13TAP  // No SIMD implementation for deblock_13tap yet
-  make_tuple(&aom_highbd_lpf_horizontal_edge_16_sse2,
-             &aom_highbd_lpf_horizontal_edge_16_c, 10),
+  make_tuple(&aom_highbd_lpf_horizontal_16_dual_sse2,
+             &aom_highbd_lpf_horizontal_16_dual_c, 10),
 #endif
   make_tuple(&aom_highbd_lpf_vertical_8_sse2, &aom_highbd_lpf_vertical_8_c, 10),
 #if !CONFIG_DEBLOCK_13TAP  // No SIMD implementation for deblock_13tap yet
@@ -534,12 +534,12 @@
 #if !CONFIG_DEBLOCK_13TAP
   // Despite the name the following funcition is doing 15-tap filtering
   // which is changed to 13-tap and not yet implemented in SIMD
-  make_tuple(&aom_highbd_lpf_horizontal_edge_8_sse2,
-             &aom_highbd_lpf_horizontal_edge_8_c, 12),
+  make_tuple(&aom_highbd_lpf_horizontal_16_sse2,
+             &aom_highbd_lpf_horizontal_16_c, 12),
 #endif
 #if !CONFIG_DEBLOCK_13TAP  // No SIMD implementation for deblock_13tap yet
-  make_tuple(&aom_highbd_lpf_horizontal_edge_16_sse2,
-             &aom_highbd_lpf_horizontal_edge_16_c, 12),
+  make_tuple(&aom_highbd_lpf_horizontal_16_dual_sse2,
+             &aom_highbd_lpf_horizontal_16_dual_c, 12),
   make_tuple(&aom_highbd_lpf_vertical_16_sse2, &aom_highbd_lpf_vertical_16_c,
              12),
   make_tuple(&aom_highbd_lpf_vertical_16_dual_sse2,
@@ -587,12 +587,12 @@
 
 #if !CONFIG_DEBLOCK_13TAP  // No SIMD implementation for deblock_13tap yet
 const loop8_param_t kHbdLoop8Test6Avx2[] = {
-  make_tuple(&aom_highbd_lpf_horizontal_edge_16_avx2,
-             &aom_highbd_lpf_horizontal_edge_16_c, 8),
-  make_tuple(&aom_highbd_lpf_horizontal_edge_16_avx2,
-             &aom_highbd_lpf_horizontal_edge_16_c, 10),
-  make_tuple(&aom_highbd_lpf_horizontal_edge_16_avx2,
-             &aom_highbd_lpf_horizontal_edge_16_c, 12),
+  make_tuple(&aom_highbd_lpf_horizontal_16_dual_avx2,
+             &aom_highbd_lpf_horizontal_16_dual_c, 8),
+  make_tuple(&aom_highbd_lpf_horizontal_16_dual_avx2,
+             &aom_highbd_lpf_horizontal_16_dual_c, 10),
+  make_tuple(&aom_highbd_lpf_horizontal_16_dual_avx2,
+             &aom_highbd_lpf_horizontal_16_dual_c, 12),
   make_tuple(&aom_highbd_lpf_vertical_16_dual_avx2,
              &aom_highbd_lpf_vertical_16_dual_c, 8),
   make_tuple(&aom_highbd_lpf_vertical_16_dual_avx2,