2014-07-30 12:26:20 +00:00
|
|
|
#include "test_strategies.h"
|
|
|
|
|
|
|
|
#include "src/strategyselector.h"
|
|
|
|
|
|
|
|
|
|
|
|
strategy_list strategies;
|
|
|
|
|
|
|
|
|
|
|
|
void init_test_strategies()
|
|
|
|
{
|
|
|
|
strategies.allocated = 0;
|
|
|
|
strategies.count = 0;
|
|
|
|
strategies.strategies = NULL;
|
|
|
|
|
|
|
|
// Init strategyselector because it sets hardware flags.
|
2014-10-29 13:02:35 +00:00
|
|
|
strategyselector_init(1);
|
2014-07-30 12:26:20 +00:00
|
|
|
|
|
|
|
// Collect all strategies to be tested.
|
|
|
|
if (!strategy_register_picture(&strategies)) {
|
|
|
|
fprintf(stderr, "strategy_register_picture failed!\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!strategy_register_dct(&strategies)) {
|
|
|
|
fprintf(stderr, "strategy_register_partial_butterfly failed!\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|