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/mlib/dsputil_mlib.c | |
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/mlib/dsputil_mlib.c')
-rw-r--r-- | libavcodec/mlib/dsputil_mlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mlib/dsputil_mlib.c b/libavcodec/mlib/dsputil_mlib.c index c0f2c036c6..b915ffeb20 100644 --- a/libavcodec/mlib/dsputil_mlib.c +++ b/libavcodec/mlib/dsputil_mlib.c @@ -423,11 +423,12 @@ void dsputil_init_mlib(DSPContext* c, AVCodecContext *avctx) { const int high_bit_depth = avctx->codec_id == CODEC_ID_H264 && avctx->bits_per_raw_sample > 8; - c->get_pixels = get_pixels_mlib; c->diff_pixels = diff_pixels_mlib; c->add_pixels_clamped = add_pixels_clamped_mlib; if (!high_bit_depth) { + c->get_pixels = get_pixels_mlib; + c->put_pixels_tab[0][0] = put_pixels16_mlib; c->put_pixels_tab[0][1] = put_pixels16_x2_mlib; c->put_pixels_tab[0][2] = put_pixels16_y2_mlib; |