[x265] [PATCH 1 of 2] intrapred: fix bug in HIGH_BIT_DEPTH=1
Min Chen
chenm003 at 163.com
Mon Jul 22 14:19:25 CEST 2013
# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1374495505 -28800
# Node ID 2127f69cac7b05aa028761aa301be5cf68b6ea9e
# Parent 18447bd07244696ae179f0ed6e23653a9ac8ad54
intrapred: fix bug in HIGH_BIT_DEPTH=1
diff -r 18447bd07244 -r 2127f69cac7b source/Lib/TLibEncoder/TEncSearch.cpp
--- a/source/Lib/TLibEncoder/TEncSearch.cpp Sun Jul 21 11:25:51 2013 +0800
+++ b/source/Lib/TLibEncoder/TEncSearch.cpp Mon Jul 22 20:18:25 2013 +0800
@@ -2018,8 +2018,15 @@
x265::primitives.scale2D_64to32(buf_scale, fenc, stride);
x265::primitives.transpose[3](buf_trans, buf_scale, 32);
+#if HIGH_BIT_DEPTH
+ Pel _above[4 * 32 + 1];
+ Pel _left[4 * 32 + 1];
+ Pel *const above = _above + 2 * 32;
+ Pel *const left = _left + 2 * 32;
+#else
Pel above[2 * 32 + 1];
Pel left[2 * 32 + 1];
+#endif
above[0] = left[0] = pAbove0[0];
x265::primitives.scale1D_128to64(above + 1, pAbove0 + 1, 0);
More information about the x265-devel
mailing list