summaryrefslogtreecommitdiff
path: root/libavcodec/alpha/dsputil_alpha.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-07-21 02:31:57 +0100
committerMans Rullgard <mans@mansr.com>2011-07-21 18:10:58 +0100
commit874f1a901d9f2d1d6825be309ed046abc7672b03 (patch)
tree7638258077e3888e35e86ed7f8242ae2e9cc77a4 /libavcodec/alpha/dsputil_alpha.c
parent5cc2600964c72dad995efb18c918a63e0965f8db (diff)
downloadffmpeg-874f1a901d9f2d1d6825be309ed046abc7672b03.tar.gz
dsputil: template get_pixels() for different bit depths
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/alpha/dsputil_alpha.c')
-rw-r--r--libavcodec/alpha/dsputil_alpha.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/alpha/dsputil_alpha.c b/libavcodec/alpha/dsputil_alpha.c
index 039608b9ed..3efcf096b4 100644
--- a/libavcodec/alpha/dsputil_alpha.c
+++ b/libavcodec/alpha/dsputil_alpha.c
@@ -321,7 +321,8 @@ void dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx)
c->put_pixels_clamped = put_pixels_clamped_mvi_asm;
c->add_pixels_clamped = add_pixels_clamped_mvi_asm;
- c->get_pixels = get_pixels_mvi;
+ if (!high_bit_depth)
+ c->get_pixels = get_pixels_mvi;
c->diff_pixels = diff_pixels_mvi;
c->sad[0] = pix_abs16x16_mvi_asm;
c->sad[1] = pix_abs8x8_mvi;