Add and consistently use PLANE_TYPE.
authorRonald S. Bultje <rbultje@google.com>
Sun, 14 Oct 2012 22:29:56 +0000 (15:29 -0700)
committerRonald S. Bultje <rbultje@google.com>
Mon, 15 Oct 2012 14:57:16 +0000 (07:57 -0700)
commit41e3a9ef14ce3e1da623e1e7e255e9376af3b7bd
tree58a245ac818531fc5be3dedb5390b6ff44cf6e2e
parent5cfff7ce88b0dcd6684f78644449644412472e3a
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
vp8/common/blockd.h
vp8/decoder/detokenize.c
vp8/encoder/encodemb.c
vp8/encoder/rdopt.c
vp8/encoder/tokenize.c