mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
Fix test compilation warnings.
- Turn global variables static. - Increase size of bufs array in intra_sad_tests.
This commit is contained in:
parent
af2b417809
commit
e3fbd6d2be
|
@ -36,8 +36,8 @@
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
// GLOBALS
|
// GLOBALS
|
||||||
int16_t * dct_bufs[NUM_TESTS] = { 0 }; // SIMD aligned pointers.
|
static int16_t * dct_bufs[NUM_TESTS] = { 0 }; // SIMD aligned pointers.
|
||||||
int16_t * dct_actual_bufs[NUM_TESTS] = { 0 }; // pointers returned by malloc.
|
static int16_t * dct_actual_bufs[NUM_TESTS] = { 0 }; // pointers returned by malloc.
|
||||||
|
|
||||||
static int16_t dct_result[NUM_SIZES][LCU_WIDTH*LCU_WIDTH] = { { 0 } };
|
static int16_t dct_result[NUM_SIZES][LCU_WIDTH*LCU_WIDTH] = { { 0 } };
|
||||||
static int16_t idct_result[NUM_SIZES][LCU_WIDTH*LCU_WIDTH] = { { 0 } };
|
static int16_t idct_result[NUM_SIZES][LCU_WIDTH*LCU_WIDTH] = { { 0 } };
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
// GLOBALS
|
// GLOBALS
|
||||||
kvz_pixel * bufs[NUM_TESTS][6][2];
|
static kvz_pixel * bufs[NUM_TESTS][7][2];
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
int log_width; // for selecting dim from bufs
|
int log_width; // for selecting dim from bufs
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
// GLOBALS
|
// GLOBALS
|
||||||
const uint8_t ref_data[64] = {
|
static const uint8_t ref_data[64] = {
|
||||||
1,2,2,2,2,2,2,3,
|
1,2,2,2,2,2,2,3,
|
||||||
4,5,5,5,5,5,5,6,
|
4,5,5,5,5,5,5,6,
|
||||||
4,5,5,5,5,5,5,6,
|
4,5,5,5,5,5,5,6,
|
||||||
|
@ -46,7 +46,7 @@ const uint8_t ref_data[64] = {
|
||||||
7,8,8,8,8,8,8,9
|
7,8,8,8,8,8,8,9
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t pic_data[64] = {
|
static const uint8_t pic_data[64] = {
|
||||||
1,1,1,1,1,1,1,1,
|
1,1,1,1,1,1,1,1,
|
||||||
1,1,1,1,1,1,1,1,
|
1,1,1,1,1,1,1,1,
|
||||||
1,1,1,1,1,1,1,1,
|
1,1,1,1,1,1,1,1,
|
||||||
|
@ -57,8 +57,8 @@ const uint8_t pic_data[64] = {
|
||||||
1,1,1,1,1,1,1,1
|
1,1,1,1,1,1,1,1
|
||||||
};
|
};
|
||||||
|
|
||||||
kvz_picture *g_pic = 0;
|
static kvz_picture *g_pic = 0;
|
||||||
kvz_picture *g_ref = 0;
|
static kvz_picture *g_ref = 0;
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
// SETUP, TEARDOWN AND HELPER FUNCTIONS
|
// SETUP, TEARDOWN AND HELPER FUNCTIONS
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
// GLOBALS
|
// GLOBALS
|
||||||
kvz_pixel * satd_bufs[NUM_TESTS][7][2];
|
static kvz_pixel * satd_bufs[NUM_TESTS][7][2];
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
int log_width; // for selecting dim from satd_bufs
|
int log_width; // for selecting dim from satd_bufs
|
||||||
|
|
|
@ -40,8 +40,8 @@
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
// GLOBALS
|
// GLOBALS
|
||||||
kvz_pixel * bufs[NUM_TESTS]; // SIMD aligned pointers.
|
static kvz_pixel * bufs[NUM_TESTS]; // SIMD aligned pointers.
|
||||||
kvz_pixel * actual_bufs[NUM_TESTS]; // pointers returned by malloc.
|
static kvz_pixel * actual_bufs[NUM_TESTS]; // pointers returned by malloc.
|
||||||
|
|
||||||
static struct test_env_t {
|
static struct test_env_t {
|
||||||
int log_width; // for selecting dim from bufs
|
int log_width; // for selecting dim from bufs
|
||||||
|
|
Loading…
Reference in a new issue