diff options
author | Måns Rullgård <mans@mansr.com> | 2010-05-01 01:30:22 +0400 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-05-01 01:30:22 +0400 |
commit | 5e1ba34bbba7b50c45ef0d10350fe01a3cf63290 (patch) | |
tree | 08673c61fff9f1ff3efd5a17e2a2b44c65633711 /libavcodec/vp6.c | |
parent | ff866063e981ea6a51036c2ffd9bb152b8219437 (diff) |
VP56: move vp56_edge_filter to new VP56DSPContext
Using macro templates allows the vp[56]_adjust functions to be
inlined instead of called through function pointers. The new
function pointers enable optimised implementations of the filters.
4% faster VP6 decoding on Cortex-A8.
Originally committed as revision 22992 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp6.c')
-rw-r--r-- | libavcodec/vp6.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c index e4adb174f4..58c31f965b 100644 --- a/libavcodec/vp6.c +++ b/libavcodec/vp6.c @@ -481,19 +481,6 @@ static void vp6_parse_coeff(VP56Context *s) } } -static int vp6_adjust(int v, int t) -{ - int V = v, s = v >> 31; - V ^= s; - V -= s; - if (V-t-1 >= (unsigned)(t-1)) - return v; - V = 2*t - V; - V += s; - V ^= s; - return V; -} - static int vp6_block_variance(uint8_t *src, int stride) { int sum = 0, square_sum = 0; @@ -592,7 +579,6 @@ static av_cold int vp6_decode_init(AVCodecContext *avctx) avctx->codec->id == CODEC_ID_VP6A); s->vp56_coord_div = vp6_coord_div; s->parse_vector_adjustment = vp6_parse_vector_adjustment; - s->adjust = vp6_adjust; s->filter = vp6_filter; s->default_models_init = vp6_default_models_init; s->parse_vector_models = vp6_parse_vector_models; |