[x265] [PATCH] Test bench code for vertical luma filter

nabajit at multicorewareinc.com nabajit at multicorewareinc.com
Fri Oct 25 08:42:12 CEST 2013


# HG changeset patch
# User Nabajit Deka
# Date 1382683291 -19800
#      Fri Oct 25 12:11:31 2013 +0530
# Node ID c45766284244989b8d4835716505c16db4a67887
# Parent  4125c74ff21d9b26ff697b30675460808953052b
Test bench code for vertical luma filter.

diff -r 4125c74ff21d -r c45766284244 source/common/primitives.h
--- a/source/common/primitives.h	Fri Oct 25 01:15:58 2013 -0500
+++ b/source/common/primitives.h	Fri Oct 25 12:11:31 2013 +0530
@@ -234,6 +234,7 @@
     filter_pp_t     chroma_hpp[NUM_CHROMA_PARTITIONS];
     filter_pp_t     luma_hpp[NUM_LUMA_PARTITIONS];
     filter_pp_t     chroma_vpp[NUM_CHROMA_PARTITIONS];
+    filter_pp_t     luma_vpp[NUM_LUMA_PARTITIONS];
 
     intra_dc_t      intra_pred_dc;
     intra_planar_t  intra_pred_planar;
diff -r 4125c74ff21d -r c45766284244 source/test/ipfilterharness.cpp
--- a/source/test/ipfilterharness.cpp	Fri Oct 25 01:15:58 2013 -0500
+++ b/source/test/ipfilterharness.cpp	Fri Oct 25 12:11:31 2013 +0530
@@ -391,6 +391,14 @@
                 return false;
             }
         }
+        if (opt.luma_vpp[value])
+        {
+            if (!check_IPFilterLuma_primitive(ref.luma_vpp[value], opt.luma_vpp[value]))
+            {
+                printf("luma_vpp[%s]", lumaPartStr[value]);
+                return false;
+            }
+        }
     }
 
     for (int value = 0; value < NUM_CHROMA_PARTITIONS; value++)
@@ -474,10 +482,17 @@
     {
         if (opt.luma_hpp[value])
         {
-            printf("  luma_hpp[%s]", lumaPartStr[value]);
+            printf("luma_hpp[%s]\t", lumaPartStr[value]);
             REPORT_SPEEDUP(opt.luma_hpp[value], ref.luma_hpp[value],
                            pixel_buff + srcStride, srcStride, IPF_vec_output_p, dstStride, 1);
         }
+        if (opt.luma_vpp[value])
+        {
+            printf("luma_vpp[%s]\t", lumaPartStr[value]);
+            REPORT_SPEEDUP(opt.luma_vpp[value], ref.luma_vpp[value],
+                           pixel_buff + maxVerticalfilterHalfDistance * srcStride, srcStride,
+                           IPF_vec_output_p, dstStride, 1);
+        }
     }
 
     for (int value = 0; value < NUM_CHROMA_PARTITIONS; value++)


More information about the x265-devel mailing list