[x265] [PATCH] Add comment for luma_hps and chroma_hps test bench code

nabajit at multicorewareinc.com nabajit at multicorewareinc.com
Tue Dec 10 14:31:38 CET 2013


# HG changeset patch
# User Nabajit Deka
# Date 1386682285 -19800
#      Tue Dec 10 19:01:25 2013 +0530
# Node ID 34694c6343dd8c065eb7222105fbf813f04b07a8
# Parent  e4c13676c4b5a4702a1b70ca91af242a74f4c1a5
Add comment for luma_hps and chroma_hps test bench code.

diff -r e4c13676c4b5 -r 34694c6343dd source/test/ipfilterharness.cpp
--- a/source/test/ipfilterharness.cpp	Tue Dec 10 20:51:47 2013 +0550
+++ b/source/test/ipfilterharness.cpp	Tue Dec 10 19:01:25 2013 +0530
@@ -323,7 +323,8 @@
     for (int i = 0; i <= 100; i++)
     {
         rand_coeffIdx = rand() % 8;                 // Random coeffIdex in the filter
-        rand_isRowExt = rand() % 2;
+        rand_isRowExt = rand() % 2;                 // 0 : Interpolate W x H
+                                                    // 1 : Interpolate W x (H + 3)
 
         rand_srcStride = rand() % 100;              // Randomly generated srcStride
         rand_dstStride = rand() % 100;              // Randomly generated dstStride
@@ -474,7 +475,8 @@
     for (int i = 0; i <= 1000; i++)
     {
         rand_coeffIdx = rand() % 3;                // Random coeffIdex in the filter
-        rand_isRowExt = rand() % 2;
+        rand_isRowExt = rand() % 2;                // 0 : Interpolate W x H
+                                                   // 1 : Interpolate W x (H + 7)
 
         rand_srcStride = rand() % 100;             // Randomly generated srcStride
         rand_dstStride = rand() % 100 + 64;        // Randomly generated dstStride


More information about the x265-devel mailing list