[x265] [PATCH 3 of 4] Adding support for pixel instance of templated weightUnidir primitive
shazeb at multicorewareinc.com
shazeb at multicorewareinc.com
Tue Oct 1 09:51:46 CEST 2013
# HG changeset patch
# User Shazeb Nawaz Khan <shazeb at multicorewareinc.com>
# Date 1380607714 -19800
# Tue Oct 01 11:38:34 2013 +0530
# Node ID 0da50ad39b4137976e4e2b295c32e1a710843b60
# Parent 07d712e6265cb6f052a55fe7a1448d48b5339acc
Adding support for pixel instance of templated weightUnidir primitive
diff -r 07d712e6265c -r 0da50ad39b41 source/test/pixelharness.cpp
--- a/source/test/pixelharness.cpp Tue Oct 01 11:36:00 2013 +0530
+++ b/source/test/pixelharness.cpp Tue Oct 01 11:38:34 2013 +0530
@@ -604,6 +604,15 @@
}
}
+ if (opt.weightpUniPixel)
+ {
+ if (!check_weightpUni(ref.weightpUniPixel, opt.weightpUniPixel))
+ {
+ printf("Weighted Prediction for Unidir failed!\n");
+ return false;
+ }
+ }
+
if (opt.weightpUni)
{
if (!check_weightpUni(ref.weightpUni, opt.weightpUni))
@@ -751,6 +760,12 @@
REPORT_SPEEDUP(opt.blockcpy_sc, ref.blockcpy_sc, 64, 64, (short*)pbuf1, FENC_STRIDE, (uint8_t*)pbuf2, STRIDE);
}
+ if (opt.weightpUniPixel)
+ {
+ printf("WeightpUni");
+ REPORT_SPEEDUP(opt.weightpUniPixel, ref.weightpUniPixel, sbuf1, pbuf1, 64, 64, 32, 32, 128, 1 << 9, 10, 100);
+ }
+
if (opt.weightpUni)
{
printf("WeightpUni");
More information about the x265-devel
mailing list