From e788146247d47e0e24ad92259f6f016ffcf7b55a Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 15 Oct 2012 10:52:13 -0700 Subject: 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/onyx_int.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vp8/encoder/onyx_int.h') diff --git a/vp8/encoder/onyx_int.h b/vp8/encoder/onyx_int.h index 696da14ed..1e7494039 100644 --- a/vp8/encoder/onyx_int.h +++ b/vp8/encoder/onyx_int.h @@ -805,6 +805,7 @@ void vp8_activity_masking(VP8_COMP *cpi, MACROBLOCK *x); int rd_cost_intra_mb(MACROBLOCKD *x); void vp8_tokenize_mb(VP8_COMP *, MACROBLOCKD *, TOKENEXTRA **, int dry_run); +void vp8_stuff_mb(VP8_COMP *cpi, MACROBLOCKD *xd, TOKENEXTRA **t, int dry_run); void vp8_set_speed_features(VP8_COMP *cpi); -- cgit v1.2.3