diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-06 00:10:45 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-06 01:19:37 +0200 |
commit | ae57e82469c99538dd14adbe73df663709d71758 (patch) | |
tree | e95a9b84dd242e4ab7cd14350955ba06f5425870 /libavcodec/dsputil.c | |
parent | d2e237338db280ffcdc6ea6f290c58a3b055ba35 (diff) | |
download | ffmpeg-ae57e82469c99538dd14adbe73df663709d71758.tar.gz |
avcodec/dsputil: add 12bit simple idct
Will be needed for jpeg
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r-- | libavcodec/dsputil.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 53fd5720cd..17de1d4f6a 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -2720,6 +2720,11 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx) c->idct_add = ff_simple_idct_add_10; c->idct = ff_simple_idct_10; c->idct_permutation_type = FF_NO_IDCT_PERM; + } else if (avctx->bits_per_raw_sample == 12) { + c->idct_put = ff_simple_idct_put_12; + c->idct_add = ff_simple_idct_add_12; + c->idct = ff_simple_idct_12; + c->idct_permutation_type = FF_NO_IDCT_PERM; } else { if(avctx->idct_algo==FF_IDCT_INT){ c->idct_put= jref_idct_put; |