[x265] [PATCH 5 of 5] test: Move dst/idst tests out of DctConf struct
Kevin Wu
kevin at multicorewareinc.com
Fri Jan 9 07:53:52 CET 2015
# HG changeset patch
# User Kevin Wu <kevin at multicorewareinc.com>
# Date 1420739137 21600
# Thu Jan 08 11:45:37 2015 -0600
# Node ID a74bee9f03b9573cdcf1e9d71b4eaf6b2a6e9b2e
# Parent 15f12fbbb33c06da5071171923bf130d88d0cdbf
test: Move dst/idst tests out of DctConf struct
diff -r 15f12fbbb33c -r a74bee9f03b9 source/test/mbdstharness.cpp
--- a/source/test/mbdstharness.cpp Wed Jan 07 17:41:45 2015 -0600
+++ b/source/test/mbdstharness.cpp Thu Jan 08 11:45:37 2015 -0600
@@ -37,7 +37,6 @@
const DctConf dctInfo[] =
{
- { "dst4x4\t", 4 },
{ "dct4x4\t", 4 },
{ "dct8x8\t", 8 },
{ "dct16x16", 16 },
@@ -46,7 +45,6 @@
const DctConf idctInfo[] =
{
- { "idst4x4\t", 4 },
{ "idct4x4\t", 4 },
{ "idct8x8\t", 8 },
{ "idct16x16", 16 },
@@ -386,6 +384,24 @@
}
}
+ if(opt.dst4x4)
+ {
+ if(!check_dct_primitive(ref.dst4x4, opt.dst4x4, 4))
+ {
+ printf("dst4x4: Failed\n");
+ return false;
+ }
+ }
+
+ if(opt.idst4x4)
+ {
+ if(!check_idct_primitive(ref.idst4x4, opt.idst4x4, 4))
+ {
+ printf("idst4x4: Failed\n");
+ return false;
+ }
+ }
+
if (opt.dequant_normal)
{
if (!check_dequant_primitive(ref.dequant_normal, opt.dequant_normal))
More information about the x265-devel
mailing list