Move STAT_TYPE enum to source file.

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

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

Change-Id: I874a73a3cfe6bcb29aedea102077a52addc49af6
This commit is contained in:
Urvang Joshi
2016-10-17 16:38:05 -07:00
parent 526484482a
commit b5ed35008d
2 changed files with 8 additions and 2 deletions

View File

@@ -100,6 +100,10 @@ FILE *kf_list;
FILE *keyfile; FILE *keyfile;
#endif #endif
#if CONFIG_INTERNAL_STATS
typedef enum { Y, U, V, ALL } STAT_TYPE;
#endif // CONFIG_INTERNAL_STATS
static INLINE void Scale2Ratio(AOM_SCALING mode, int *hr, int *hs) { static INLINE void Scale2Ratio(AOM_SCALING mode, int *hr, int *hs) {
switch (mode) { switch (mode) {
case NORMAL: case NORMAL:

View File

@@ -307,13 +307,15 @@ typedef struct ActiveMap {
unsigned char *map; unsigned char *map;
} ActiveMap; } 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 { typedef struct IMAGE_STAT {
double stat[ALL + 1]; double stat[NUM_STAT_TYPES];
double worst; double worst;
} ImageStat; } ImageStat;
#undef NUM_STAT_TYPES
typedef struct { typedef struct {
int ref_count; int ref_count;
YV12_BUFFER_CONFIG buf; YV12_BUFFER_CONFIG buf;