[x265] [PATCH] testbench : test bench correction for chroma_p2s
nabajit at multicorewareinc.com
nabajit at multicorewareinc.com
Mon Feb 17 13:46:51 CET 2014
# HG changeset patch
# User Nabajit Deka
# Date 1392641200 -19800
# Mon Feb 17 18:16:40 2014 +0530
# Node ID 33640c5d8abd33a8d165bb5f32dfab9d478b4c1b
# Parent f5275ca8f2985bb0daf563738e6071b81967c2cd
testbench : test bench correction for chroma_p2s
diff -r f5275ca8f298 -r 33640c5d8abd source/test/ipfilterharness.cpp
--- a/source/test/ipfilterharness.cpp Mon Feb 17 18:13:57 2014 +0530
+++ b/source/test/ipfilterharness.cpp Mon Feb 17 18:16:40 2014 +0530
@@ -604,17 +604,16 @@
}
}
- /*if (opt.chroma_p2s)
- {
- if (!check_IPFilter_primitive(ref.chroma_p2s[X265_CSP_I420], opt.chroma_p2s[X265_CSP_I420], 1))
- {
- printf("chroma_p2s failed\n");
- return false;
- }
- }*/
-
for (int csp = X265_CSP_I420; csp < X265_CSP_COUNT; csp++)
{
+ if (opt.chroma_p2s[csp])
+ {
+ if (!check_IPFilter_primitive(ref.chroma_p2s[csp], opt.chroma_p2s[csp], 1))
+ {
+ printf("chroma_p2s[%s]", x265_source_csp_names[csp]);
+ return false;
+ }
+ }
for (int value = 0; value < NUM_CHROMA_PARTITIONS; value++)
{
if (opt.chroma[csp].filter_hpp[value])
@@ -743,16 +742,15 @@
}
}
- /*if (opt.chroma_p2s)
- {
- printf("chroma_p2s\t");
- REPORT_SPEEDUP(opt.chroma_p2s[X265_CSP_I420], ref.chroma_p2s[X265_CSP_I420],
- pixel_buff, srcStride, IPF_vec_output_s, width, height);
- }*/
-
for (int csp = X265_CSP_I420; csp < X265_CSP_COUNT; csp++)
{
printf("= Color Space %s =\n", x265_source_csp_names[csp]);
+ if (opt.chroma_p2s[csp])
+ {
+ printf("chroma_p2s\t");
+ REPORT_SPEEDUP(opt.chroma_p2s[csp], ref.chroma_p2s[csp],
+ pixel_buff, srcStride, IPF_vec_output_s, width, height);
+ }
for (int value = 0; value < NUM_CHROMA_PARTITIONS; value++)
{
if (opt.chroma[csp].filter_hpp[value])
More information about the x265-devel
mailing list