diff options
author | Ronald S. Bultje <rbultje@google.com> | 2012-10-14 15:29:56 -0700 |
---|---|---|
committer | Ronald S. Bultje <rbultje@google.com> | 2012-10-15 07:57:16 -0700 |
commit | 41e3a9ef14ce3e1da623e1e7e255e9376af3b7bd (patch) | |
tree | 58a245ac818531fc5be3dedb5390b6ff44cf6e2e /vp8/common | |
parent | 5cfff7ce88b0dcd6684f78644449644412472e3a (diff) | |
download | libvpx-41e3a9ef14ce3e1da623e1e7e255e9376af3b7bd.tar libvpx-41e3a9ef14ce3e1da623e1e7e255e9376af3b7bd.tar.gz libvpx-41e3a9ef14ce3e1da623e1e7e255e9376af3b7bd.tar.bz2 libvpx-41e3a9ef14ce3e1da623e1e7e255e9376af3b7bd.zip |
Add and consistently use PLANE_TYPE.
Change the macros PLANE_TYPE_{Y_NO_DC,Y2,UV,Y_WITH_DC} to a typed enum,
and use this typed enum consistently across all places where relevant.
In places where the type is implied (e.g. in functions that only handle
second order planes or chroma planes), remove it as a function argument
and instead hardcode the proper enum in the code directly.
Change-Id: I93652b4a36aa43163d49c732b0bf5c4442738c47
Diffstat (limited to 'vp8/common')
-rw-r--r-- | vp8/common/blockd.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/vp8/common/blockd.h b/vp8/common/blockd.h index a9f6f49d8..a4c618534 100644 --- a/vp8/common/blockd.h +++ b/vp8/common/blockd.h @@ -52,10 +52,12 @@ typedef struct { int r, c; } POS; -#define PLANE_TYPE_Y_NO_DC 0 -#define PLANE_TYPE_Y2 1 -#define PLANE_TYPE_UV 2 -#define PLANE_TYPE_Y_WITH_DC 3 +typedef enum PlaneType { + PLANE_TYPE_Y_NO_DC = 0, + PLANE_TYPE_Y2, + PLANE_TYPE_UV, + PLANE_TYPE_Y_WITH_DC, +} PLANE_TYPE; typedef char ENTROPY_CONTEXT; typedef struct { |