]> granicus.if.org Git - libvpx/commit
Add a new token stuffing function vp8_stuff_mb().
authorRonald S. Bultje <rbultje@google.com>
Mon, 15 Oct 2012 17:52:13 +0000 (10:52 -0700)
committerRonald S. Bultje <rbultje@google.com>
Mon, 15 Oct 2012 17:56:39 +0000 (10:56 -0700)
commite788146247d47e0e24ad92259f6f016ffcf7b55a
tree8c75788a10daec09557ca59afa6b27f28fb51c05
parent41e3a9ef14ce3e1da623e1e7e255e9376af3b7bd
Add a new token stuffing function vp8_stuff_mb().

This way a caller doesn't need to implement the logic for which (and how
many) tokens to write out to stuff one macroblock worth of EOBs. Make
the actual function implementations static, since they are now only used
in tokenize.c; also do some minor stylistic changes so it follows the
style guide a little more closely; use PLANE_TYPE where appropriate,
remove old (stale) frame_type function arguments; hardcode plane type
where only a single one is possible (2nd order DC or U/V EOB stuffing);
support stuffing 8x8/4x4 transform EOBs with no 2nd order DC.

Change-Id: Ia448e251d19a4e3182eddeb9edd034bd7dc16fa3
vp8/encoder/encodeframe.c
vp8/encoder/onyx_int.h
vp8/encoder/tokenize.c