Commit b5ed3500 authored by Urvang Joshi's avatar Urvang Joshi
Browse files

Move STAT_TYPE enum to source file.

In the header, all we need is number of stat types, not the names for actual

Removing it avoids names like 'Y', 'U', 'V' and 'ALL' being visible
in all files that include the encoder.h header.

Change-Id: I874a73a3cfe6bcb29aedea102077a52addc49af6
parent 52648448
......@@ -100,6 +100,10 @@ FILE *kf_list;
FILE *keyfile;
typedef enum { Y, U, V, ALL } STAT_TYPE;
static INLINE void Scale2Ratio(AOM_SCALING mode, int *hr, int *hs) {
switch (mode) {
case NORMAL:
......@@ -307,13 +307,15 @@ typedef struct ActiveMap {
unsigned char *map;
} ActiveMap;
typedef enum { Y, U, V, ALL } STAT_TYPE;
#define NUM_STAT_TYPES 4 // types of stats: Y, U, V and ALL
typedef struct IMAGE_STAT {
double stat[ALL + 1];
double stat[NUM_STAT_TYPES];
double worst;
} ImageStat;
typedef struct {
int ref_count;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment