[x265] [PATCH] ipfilter.cpp, added code to support luma coefficients too

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Oct 18 12:23:26 CEST 2013


# HG changeset patch
# User Praveen Tiwari
# Date 1382091791 -19800
# Node ID 13a699cc2b32bae7a532deabd69312e79144c16c
# Parent  f5e146c46979ac3e2ed2a1a2adb32d90e63a79df
ipfilter.cpp, added code to support luma coefficients too

diff -r f5e146c46979 -r 13a699cc2b32 source/common/ipfilter.cpp
--- a/source/common/ipfilter.cpp	Fri Oct 18 15:43:54 2013 +0530
+++ b/source/common/ipfilter.cpp	Fri Oct 18 15:53:11 2013 +0530
@@ -448,7 +448,7 @@
 template<int N, int width, int height>
 void interp_horiz_pp_c(pixel *src, intptr_t srcStride, pixel *dst, intptr_t dstStride, int coeffIdx)
 {
-    int16_t const * coeff = g_chromaFilter[coeffIdx];
+    int16_t const * coeff = (N == 4) ? g_chromaFilter[coeffIdx] : g_lumaFilter[coeffIdx];
     int headRoom = IF_INTERNAL_PREC - X265_DEPTH;
     int offset =  (1 << (headRoom - 1));
     int16_t maxVal = (1 << X265_DEPTH) - 1;


More information about the x265-devel mailing list