From ebf258688e2dd20c9cdfd42d3572b3ad14f684ea Mon Sep 17 00:00:00 2001 From: James Zern <jzern@google.com> Date: Mon, 1 Feb 2016 23:47:35 -0800 Subject: [PATCH] vp10: remove unused (read|write)_uniform dead code since: 5d3327e Remove palette from VP10 Change-Id: I4a36575706ea6fffefe5bc778595112ef6ff37d8 --- vp10/decoder/decodemv.c | 13 ------------- vp10/encoder/bitstream.c | 13 ------------- vp10/encoder/rdopt.c | 10 ---------- 3 files changed, 36 deletions(-) diff --git a/vp10/decoder/decodemv.c b/vp10/decoder/decodemv.c index a28ae55927..01b796c106 100644 --- a/vp10/decoder/decodemv.c +++ b/vp10/decoder/decodemv.c @@ -24,19 +24,6 @@ #include "vpx_dsp/vpx_dsp_common.h" -static INLINE int read_uniform(vpx_reader *r, int n) { - int l = get_unsigned_bits(n); - int m = (1 << l) - n; - int v = vpx_read_literal(r, l-1); - - assert(l != 0); - - if (v < m) - return v; - else - return (v << 1) - m + vpx_read_literal(r, 1); -} - static PREDICTION_MODE read_intra_mode(vpx_reader *r, const vpx_prob *p) { return (PREDICTION_MODE)vpx_read_tree(r, vp10_intra_mode_tree, p); } diff --git a/vp10/encoder/bitstream.c b/vp10/encoder/bitstream.c index ede8bb3702..04ce61d55a 100644 --- a/vp10/encoder/bitstream.c +++ b/vp10/encoder/bitstream.c @@ -45,19 +45,6 @@ static const struct vp10_token partition_encodings[PARTITION_TYPES] = static const struct vp10_token inter_mode_encodings[INTER_MODES] = {{2, 2}, {6, 3}, {0, 1}, {7, 3}}; -static INLINE void write_uniform(vpx_writer *w, int n, int v) { - int l = get_unsigned_bits(n); - int m = (1 << l) - n; - if (l == 0) - return; - if (v < m) { - vpx_write_literal(w, v, l - 1); - } else { - vpx_write_literal(w, m + ((v - m) >> 1), l - 1); - vpx_write_literal(w, (v - m) & 1, 1); - } -} - static struct vp10_token ext_tx_encodings[TX_TYPES]; void vp10_encode_token_init() { diff --git a/vp10/encoder/rdopt.c b/vp10/encoder/rdopt.c index 90a716d2c8..b1077cb210 100644 --- a/vp10/encoder/rdopt.c +++ b/vp10/encoder/rdopt.c @@ -132,16 +132,6 @@ static const REF_DEFINITION vp10_ref_order[MAX_REFS] = { {{INTRA_FRAME, NONE}}, }; -static INLINE int write_uniform_cost(int n, int v) { - int l = get_unsigned_bits(n), m = (1 << l) - n; - if (l == 0) - return 0; - if (v < m) - return (l - 1) * vp10_cost_bit(128, 0); - else - return l * vp10_cost_bit(128, 0); -} - static void swap_block_ptr(MACROBLOCK *x, PICK_MODE_CONTEXT *ctx, int m, int n, int min_plane, int max_plane) { int i; -- GitLab