[x265] [PATCH 5 of 5] fix pixelcmp testbench on 12bpp

Min Chen chenm003 at 163.com
Sat Jul 11 04:35:33 CEST 2015


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1436581262 25200
# Node ID 7bc46c4d93bf4ec5be5a7b721c69d6a1c50f033b
# Parent  3fcb23d2dd308a4fe57e8bc27a645da1cba97fc4
fix pixelcmp testbench on 12bpp
---
 source/test/mbdstharness.cpp |    2 +-
 source/test/testharness.h    |    7 +------
 2 files changed, 2 insertions(+), 7 deletions(-)

diff -r 3fcb23d2dd30 -r 7bc46c4d93bf source/test/mbdstharness.cpp
--- a/source/test/mbdstharness.cpp	Fri Jul 10 19:20:59 2015 -0700
+++ b/source/test/mbdstharness.cpp	Fri Jul 10 19:21:02 2015 -0700
@@ -53,7 +53,7 @@
 
 MBDstHarness::MBDstHarness()
 {
-    const int idct_max = (1 << (BIT_DEPTH + 4)) - 1;
+    const int idct_max = (1 << (X265_DEPTH + 4)) - 1;
 
     /* [0] --- Random values
      * [1] --- Minimum
diff -r 3fcb23d2dd30 -r 7bc46c4d93bf source/test/testharness.h
--- a/source/test/testharness.h	Fri Jul 10 19:20:59 2015 -0700
+++ b/source/test/testharness.h	Fri Jul 10 19:21:02 2015 -0700
@@ -31,12 +31,7 @@
 #pragma warning(disable: 4324) // structure was padded due to __declspec(align())
 #endif
 
-#if HIGH_BIT_DEPTH
-#define BIT_DEPTH 10
-#else
-#define BIT_DEPTH 8
-#endif
-#define PIXEL_MAX ((1 << BIT_DEPTH) - 1)
+#define PIXEL_MAX ((1 << X265_DEPTH) - 1)
 #define PIXEL_MIN 0
 #define SHORT_MAX  32767
 #define SHORT_MIN -32767



More information about the x265-devel mailing list