From 690971898b5fbf8e4d94190a77bf81ff83ed3b0c Mon Sep 17 00:00:00 2001 From: Johann Date: Tue, 25 Aug 2015 16:06:36 -0700 Subject: [PATCH] Clean up unused function warnings in vp8 decoder Mark functions in dboolhuff.h and treereader.h with INLINE. Change-Id: Ifc1008de0713c8d43f4fec83a8c2b836622be365 --- vp8/decoder/dboolhuff.h | 6 +++--- vp8/decoder/treereader.h | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/vp8/decoder/dboolhuff.h b/vp8/decoder/dboolhuff.h index 51c5adc28..cc9eaaf43 100644 --- a/vp8/decoder/dboolhuff.h +++ b/vp8/decoder/dboolhuff.h @@ -15,7 +15,7 @@ #include #include -#include "vpx_config.h" +#include "./vpx_config.h" #include "vpx_ports/mem.h" #include "vpx/vp8dx.h" #include "vpx/vpx_integer.h" @@ -95,7 +95,7 @@ static int vp8dx_decode_bool(BOOL_DECODER *br, int probability) { return bit; } -static int vp8_decode_value(BOOL_DECODER *br, int bits) +static INLINE int vp8_decode_value(BOOL_DECODER *br, int bits) { int z = 0; int bit; @@ -108,7 +108,7 @@ static int vp8_decode_value(BOOL_DECODER *br, int bits) return z; } -static int vp8dx_bool_error(BOOL_DECODER *br) +static INLINE int vp8dx_bool_error(BOOL_DECODER *br) { /* Check if we have reached the end of the buffer. * diff --git a/vp8/decoder/treereader.h b/vp8/decoder/treereader.h index 35ee69600..f7d23c369 100644 --- a/vp8/decoder/treereader.h +++ b/vp8/decoder/treereader.h @@ -12,6 +12,7 @@ #ifndef VP8_DECODER_TREEREADER_H_ #define VP8_DECODER_TREEREADER_H_ +#include "./vpx_config.h" #include "vp8/common/treecoder.h" #include "dboolhuff.h" @@ -28,7 +29,7 @@ typedef BOOL_DECODER vp8_reader; /* Intent of tree data structure is to make decoding trivial. */ -static int vp8_treed_read( +static INLINE int vp8_treed_read( vp8_reader *const r, /* !!! must return a 0 or 1 !!! */ vp8_tree t, const vp8_prob *const p -- 2.49.0