[x265] [PATCH 2 of 2] Adding test bench code for luma hps filter functions

nabajit at multicorewareinc.com nabajit at multicorewareinc.com
Wed Nov 6 08:04:01 CET 2013


# HG changeset patch
# User Nabajit Deka
# Date 1383721126 -19800
#      Wed Nov 06 12:28:46 2013 +0530
# Node ID b8491e24c0d2c38518b5b1f7d0de33a541245267
# Parent  4745dfc5490381a906c8a87d057a75626f260c41
Adding test bench code for luma hps filter functions.

diff -r 4745dfc54903 -r b8491e24c0d2 source/test/ipfilterharness.cpp
--- a/source/test/ipfilterharness.cpp	Wed Nov 06 12:25:45 2013 +0530
+++ b/source/test/ipfilterharness.cpp	Wed Nov 06 12:28:46 2013 +0530
@@ -516,6 +516,14 @@
                 return false;
             }
         }
+        if (opt.luma_hps[value])
+        {
+            if (!check_IPFilterLuma_ps_primitive(ref.luma_hps[value], opt.luma_hps[value]))
+            {
+                printf("luma_hps[%s]", lumaPartStr[value]);
+                return false;
+            }
+        }
         if (opt.luma_vpp[value])
         {
             if (!check_IPFilterLuma_primitive(ref.luma_vpp[value], opt.luma_vpp[value]))
@@ -645,6 +653,14 @@
             REPORT_SPEEDUP(opt.luma_hpp[value], ref.luma_hpp[value],
                            pixel_buff + srcStride, srcStride, IPF_vec_output_p, dstStride, 1);
         }
+		
+        if (opt.luma_hps[value])
+        {
+            printf("luma_hps[%s]\t", lumaPartStr[value]);
+            REPORT_SPEEDUP(opt.luma_hps[value], ref.luma_hps[value],
+                           pixel_buff + maxVerticalfilterHalfDistance * srcStride, srcStride,
+                           IPF_vec_output_s, dstStride, 1);
+        }
 
         if (opt.luma_vpp[value])
         {
@@ -661,6 +677,7 @@
                            pixel_buff + maxVerticalfilterHalfDistance * srcStride, srcStride,
                            IPF_vec_output_s, dstStride, 1);
         }
+
         if (opt.luma_hvpp[value])
         {
             printf("luma_hv [%s]\t", lumaPartStr[value]);


More information about the x265-devel mailing list