mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Add missing files.
This commit is contained in:
parent
0a9c425afb
commit
150a47435d
28
tests/test_strategies.c
Normal file
28
tests/test_strategies.c
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
#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.
|
||||||
|
strategyselector_init();
|
||||||
|
|
||||||
|
// 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;
|
||||||
|
}
|
||||||
|
}
|
10
tests/test_strategies.h
Normal file
10
tests/test_strategies.h
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#ifndef TEST_STRATEGIES_H_
|
||||||
|
#define TEST_STRATEGIES_H_
|
||||||
|
|
||||||
|
#include "src/strategyselector.h"
|
||||||
|
|
||||||
|
extern strategy_list strategies;
|
||||||
|
|
||||||
|
void init_test_strategies();
|
||||||
|
|
||||||
|
#endif // TEST_STRATEGIES_H_
|
Loading…
Reference in a new issue