diff options
author | Mans Rullgard <mans@mansr.com> | 2011-07-21 02:31:57 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-07-21 18:10:58 +0100 |
commit | 874f1a901d9f2d1d6825be309ed046abc7672b03 (patch) | |
tree | 7638258077e3888e35e86ed7f8242ae2e9cc77a4 /libavcodec/arm | |
parent | 5cc2600964c72dad995efb18c918a63e0965f8db (diff) | |
download | ffmpeg-874f1a901d9f2d1d6825be309ed046abc7672b03.tar.gz |
dsputil: template get_pixels() for different bit depths
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/arm')
-rw-r--r-- | libavcodec/arm/dsputil_init_armv6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/arm/dsputil_init_armv6.c b/libavcodec/arm/dsputil_init_armv6.c index d442415aec..07124c2773 100644 --- a/libavcodec/arm/dsputil_init_armv6.c +++ b/libavcodec/arm/dsputil_init_armv6.c @@ -106,8 +106,9 @@ void av_cold ff_dsputil_init_armv6(DSPContext* c, AVCodecContext *avctx) c->avg_pixels_tab[1][0] = ff_avg_pixels8_armv6; } + if (!high_bit_depth) + c->get_pixels = ff_get_pixels_armv6; c->add_pixels_clamped = ff_add_pixels_clamped_armv6; - c->get_pixels = ff_get_pixels_armv6; c->diff_pixels = ff_diff_pixels_armv6; c->pix_abs[0][0] = ff_pix_abs16_armv6; |