Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
8491:902c43f89d92 | 8492:639169d7fad5 |
---|---|
102 const uint8_t nnzc[6*8]); | 102 const uint8_t nnzc[6*8]); |
103 void ff_h264_idct_add8_neon(uint8_t **dest, const int *block_offset, | 103 void ff_h264_idct_add8_neon(uint8_t **dest, const int *block_offset, |
104 DCTELEM *block, int stride, | 104 DCTELEM *block, int stride, |
105 const uint8_t nnzc[6*8]); | 105 const uint8_t nnzc[6*8]); |
106 | 106 |
107 void ff_float_to_int16_neon(int16_t *, const float *, long); | |
108 void ff_float_to_int16_interleave_neon(int16_t *, const float **, long, int); | |
109 | |
107 void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx) | 110 void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx) |
108 { | 111 { |
109 c->put_pixels_tab[0][0] = ff_put_pixels16_neon; | 112 c->put_pixels_tab[0][0] = ff_put_pixels16_neon; |
110 c->put_pixels_tab[0][1] = ff_put_pixels16_x2_neon; | 113 c->put_pixels_tab[0][1] = ff_put_pixels16_x2_neon; |
111 c->put_pixels_tab[0][2] = ff_put_pixels16_y2_neon; | 114 c->put_pixels_tab[0][2] = ff_put_pixels16_y2_neon; |
176 c->h264_idct_add = ff_h264_idct_add_neon; | 179 c->h264_idct_add = ff_h264_idct_add_neon; |
177 c->h264_idct_dc_add = ff_h264_idct_dc_add_neon; | 180 c->h264_idct_dc_add = ff_h264_idct_dc_add_neon; |
178 c->h264_idct_add16 = ff_h264_idct_add16_neon; | 181 c->h264_idct_add16 = ff_h264_idct_add16_neon; |
179 c->h264_idct_add16intra = ff_h264_idct_add16intra_neon; | 182 c->h264_idct_add16intra = ff_h264_idct_add16intra_neon; |
180 c->h264_idct_add8 = ff_h264_idct_add8_neon; | 183 c->h264_idct_add8 = ff_h264_idct_add8_neon; |
184 | |
185 if (!(avctx->flags & CODEC_FLAG_BITEXACT)) { | |
186 c->float_to_int16 = ff_float_to_int16_neon; | |
187 c->float_to_int16_interleave = ff_float_to_int16_interleave_neon; | |
188 } | |
181 } | 189 } |