2015-02-23 11:18:48 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
* This file is part of Kvazaar HEVC encoder.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013-2015 Tampere University of Technology and others (see
|
|
|
|
* COPYING file).
|
|
|
|
*
|
|
|
|
* Kvazaar is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 2.1 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* Kvazaar is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with Kvazaar. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
****************************************************************************/
|
|
|
|
|
2014-01-31 12:35:37 +00:00
|
|
|
#include "greatest/greatest.h"
|
2013-09-20 14:06:53 +00:00
|
|
|
|
2014-07-28 12:49:51 +00:00
|
|
|
#include "test_strategies.h"
|
2013-09-20 14:06:53 +00:00
|
|
|
|
2014-01-31 12:35:37 +00:00
|
|
|
GREATEST_MAIN_DEFS();
|
2015-08-12 08:36:32 +00:00
|
|
|
#if KVZ_BIT_DEPTH == 8
|
2014-01-31 12:35:37 +00:00
|
|
|
extern SUITE(sad_tests);
|
2014-06-16 15:01:55 +00:00
|
|
|
extern SUITE(intra_sad_tests);
|
2014-07-14 09:57:18 +00:00
|
|
|
extern SUITE(satd_tests);
|
2014-07-28 09:31:26 +00:00
|
|
|
extern SUITE(speed_tests);
|
2014-08-11 12:41:22 +00:00
|
|
|
extern SUITE(dct_tests);
|
2015-08-12 08:36:32 +00:00
|
|
|
#endif //KVZ_BIT_DEPTH == 8
|
2013-09-20 14:06:53 +00:00
|
|
|
|
2014-01-31 12:35:37 +00:00
|
|
|
int main(int argc, char **argv)
|
2013-09-20 14:06:53 +00:00
|
|
|
{
|
2014-01-31 12:35:37 +00:00
|
|
|
GREATEST_MAIN_BEGIN();
|
2014-07-28 12:49:51 +00:00
|
|
|
|
2014-10-29 13:02:35 +00:00
|
|
|
init_test_strategies(1);
|
2015-08-12 08:36:32 +00:00
|
|
|
#if KVZ_BIT_DEPTH == 8
|
2014-01-31 12:35:37 +00:00
|
|
|
RUN_SUITE(sad_tests);
|
2014-06-16 15:01:55 +00:00
|
|
|
RUN_SUITE(intra_sad_tests);
|
2014-07-14 09:57:18 +00:00
|
|
|
RUN_SUITE(satd_tests);
|
2014-08-11 12:41:22 +00:00
|
|
|
RUN_SUITE(dct_tests);
|
2014-07-28 09:31:26 +00:00
|
|
|
|
|
|
|
if (greatest_info.suite_filter &&
|
|
|
|
greatest_name_match("speed", greatest_info.suite_filter))
|
|
|
|
{
|
|
|
|
RUN_SUITE(speed_tests);
|
|
|
|
}
|
2015-08-12 08:36:32 +00:00
|
|
|
#else
|
|
|
|
printf("10-bit tests are not yet supported\n");
|
|
|
|
#endif //KVZ_BIT_DEPTH == 8
|
2014-06-12 12:04:48 +00:00
|
|
|
GREATEST_MAIN_END();
|
2013-09-20 13:21:11 +00:00
|
|
|
}
|