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-07-30 12:26:20 +00:00
|
|
|
#include "test_strategies.h"
|
|
|
|
|
|
|
|
#include "src/strategyselector.h"
|
|
|
|
|
|
|
|
|
2015-03-04 14:23:04 +00:00
|
|
|
strategy_list_t strategies;
|
2014-07-30 12:26:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
void init_test_strategies()
|
|
|
|
{
|
|
|
|
strategies.allocated = 0;
|
|
|
|
strategies.count = 0;
|
|
|
|
strategies.strategies = NULL;
|
|
|
|
|
|
|
|
// Init strategyselector because it sets hardware flags.
|
2015-08-26 08:50:27 +00:00
|
|
|
kvz_strategyselector_init(1, KVZ_BIT_DEPTH);
|
2014-07-30 12:26:20 +00:00
|
|
|
|
|
|
|
// Collect all strategies to be tested.
|
2015-08-26 08:50:27 +00:00
|
|
|
if (!kvz_strategy_register_picture(&strategies, KVZ_BIT_DEPTH)) {
|
2014-07-30 12:26:20 +00:00
|
|
|
fprintf(stderr, "strategy_register_picture failed!\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2015-08-26 08:50:27 +00:00
|
|
|
if (!kvz_strategy_register_dct(&strategies, KVZ_BIT_DEPTH)) {
|
2015-10-05 16:41:23 +00:00
|
|
|
fprintf(stderr, "strategy_register_dct failed!\n");
|
2014-07-30 12:26:20 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|