Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: source/libvpx/vp8/encoder/treewriter.h

Issue 1302353004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/libvpx/vp8/encoder/temporal_filter.c ('k') | source/libvpx/vp8/encoder/vp8_quantize.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/libvpx/vp8/encoder/treewriter.h
diff --git a/source/libvpx/vp8/encoder/treewriter.h b/source/libvpx/vp8/encoder/treewriter.h
index cfb2730ab3b20e5baed681b3443ef8a2114e79cb..2debf9276cba65f873a5e5f26e3c5ac506422db6 100644
--- a/source/libvpx/vp8/encoder/treewriter.h
+++ b/source/libvpx/vp8/encoder/treewriter.h
@@ -15,6 +15,7 @@
/* Trees map alphabets into huffman-like codes suitable for an arithmetic
bit coder. Timothy S Murphy 11 October 2004 */
+#include "./vpx_config.h"
#include "vp8/common/treecoder.h"
#include "boolhuff.h" /* for now */
@@ -46,7 +47,7 @@ typedef BOOL_CODER vp8_writer;
/* Both of these return bits, not scaled bits. */
-static unsigned int vp8_cost_branch(const unsigned int ct[2], vp8_prob p)
+static INLINE unsigned int vp8_cost_branch(const unsigned int ct[2], vp8_prob p)
{
/* Imitate existing calculation */
@@ -76,7 +77,7 @@ static void vp8_treed_write
}
while (n);
}
-static void vp8_write_token
+static INLINE void vp8_write_token
(
vp8_writer *const w,
vp8_tree t,
@@ -107,7 +108,7 @@ static int vp8_treed_cost(
return c;
}
-static int vp8_cost_token
+static INLINE int vp8_cost_token
(
vp8_tree t,
const vp8_prob *const p,
« no previous file with comments | « source/libvpx/vp8/encoder/temporal_filter.c ('k') | source/libvpx/vp8/encoder/vp8_quantize.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698