Mercurial > libavcodec.hg
diff arm/dsputil_neon.c @ 8492:639169d7fad5 libavcodec
ARM: NEON optimised float_to_int16
author | mru |
---|---|
date | Fri, 26 Dec 2008 19:52:52 +0000 |
parents | 0ca0e3c98ed5 |
children | 23f7711e777e |
line wrap: on
line diff
--- a/arm/dsputil_neon.c Fri Dec 26 18:42:26 2008 +0000 +++ b/arm/dsputil_neon.c Fri Dec 26 19:52:52 2008 +0000 @@ -104,6 +104,9 @@ DCTELEM *block, int stride, const uint8_t nnzc[6*8]); +void ff_float_to_int16_neon(int16_t *, const float *, long); +void ff_float_to_int16_interleave_neon(int16_t *, const float **, long, int); + void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx) { c->put_pixels_tab[0][0] = ff_put_pixels16_neon; @@ -178,4 +181,9 @@ c->h264_idct_add16 = ff_h264_idct_add16_neon; c->h264_idct_add16intra = ff_h264_idct_add16intra_neon; c->h264_idct_add8 = ff_h264_idct_add8_neon; + + if (!(avctx->flags & CODEC_FLAG_BITEXACT)) { + c->float_to_int16 = ff_float_to_int16_neon; + c->float_to_int16_interleave = ff_float_to_int16_interleave_neon; + } }