Mercurial > libavcodec.hg
comparison arm/dsputil_init_armv6.c @ 11108:0f845e20982a libavcodec
ARMv6 optimised put_pixels functions except xy2 variants
author | mru |
---|---|
date | Tue, 09 Feb 2010 16:13:21 +0000 |
parents | e55d957ef1a2 |
children | 9f00412b0bc8 |
comparison
equal
deleted
inserted
replaced
11107:5ca4eb4a1a3f | 11108:0f845e20982a |
---|---|
16 * You should have received a copy of the GNU Lesser General Public | 16 * You should have received a copy of the GNU Lesser General Public |
17 * License along with FFmpeg; if not, write to the Free Software | 17 * License along with FFmpeg; if not, write to the Free Software |
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
19 */ | 19 */ |
20 | 20 |
21 #include <stdint.h> | |
22 | |
23 #include "libavcodec/avcodec.h" | |
21 #include "libavcodec/dsputil.h" | 24 #include "libavcodec/dsputil.h" |
22 #include "dsputil_arm.h" | 25 #include "dsputil_arm.h" |
23 | 26 |
24 void ff_simple_idct_armv6(DCTELEM *data); | 27 void ff_simple_idct_armv6(DCTELEM *data); |
25 void ff_simple_idct_put_armv6(uint8_t *dest, int line_size, DCTELEM *data); | 28 void ff_simple_idct_put_armv6(uint8_t *dest, int line_size, DCTELEM *data); |
26 void ff_simple_idct_add_armv6(uint8_t *dest, int line_size, DCTELEM *data); | 29 void ff_simple_idct_add_armv6(uint8_t *dest, int line_size, DCTELEM *data); |
30 | |
31 void ff_put_pixels16_armv6(uint8_t *, const uint8_t *, int, int); | |
32 void ff_put_pixels16_x2_armv6(uint8_t *, const uint8_t *, int, int); | |
33 void ff_put_pixels16_y2_armv6(uint8_t *, const uint8_t *, int, int); | |
34 | |
35 void ff_put_pixels16_x2_no_rnd_armv6(uint8_t *, const uint8_t *, int, int); | |
36 void ff_put_pixels16_y2_no_rnd_armv6(uint8_t *, const uint8_t *, int, int); | |
37 | |
38 void ff_avg_pixels16_armv6(uint8_t *, const uint8_t *, int, int); | |
39 | |
40 void ff_put_pixels8_armv6(uint8_t *, const uint8_t *, int, int); | |
41 void ff_put_pixels8_x2_armv6(uint8_t *, const uint8_t *, int, int); | |
42 void ff_put_pixels8_y2_armv6(uint8_t *, const uint8_t *, int, int); | |
43 | |
44 void ff_put_pixels8_x2_no_rnd_armv6(uint8_t *, const uint8_t *, int, int); | |
45 void ff_put_pixels8_y2_no_rnd_armv6(uint8_t *, const uint8_t *, int, int); | |
46 | |
47 void ff_avg_pixels8_armv6(uint8_t *, const uint8_t *, int, int); | |
27 | 48 |
28 void ff_add_pixels_clamped_armv6(const DCTELEM *block, | 49 void ff_add_pixels_clamped_armv6(const DCTELEM *block, |
29 uint8_t *restrict pixels, | 50 uint8_t *restrict pixels, |
30 int line_size); | 51 int line_size); |
31 | 52 |
37 c->idct_add = ff_simple_idct_add_armv6; | 58 c->idct_add = ff_simple_idct_add_armv6; |
38 c->idct = ff_simple_idct_armv6; | 59 c->idct = ff_simple_idct_armv6; |
39 c->idct_permutation_type = FF_LIBMPEG2_IDCT_PERM; | 60 c->idct_permutation_type = FF_LIBMPEG2_IDCT_PERM; |
40 } | 61 } |
41 | 62 |
63 c->put_pixels_tab[0][0] = ff_put_pixels16_armv6; | |
64 c->put_pixels_tab[0][1] = ff_put_pixels16_x2_armv6; | |
65 c->put_pixels_tab[0][2] = ff_put_pixels16_y2_armv6; | |
66 /* c->put_pixels_tab[0][3] = ff_put_pixels16_xy2_armv6; */ | |
67 c->put_pixels_tab[1][0] = ff_put_pixels8_armv6; | |
68 c->put_pixels_tab[1][1] = ff_put_pixels8_x2_armv6; | |
69 c->put_pixels_tab[1][2] = ff_put_pixels8_y2_armv6; | |
70 /* c->put_pixels_tab[1][3] = ff_put_pixels8_xy2_armv6; */ | |
71 | |
72 c->put_no_rnd_pixels_tab[0][0] = ff_put_pixels16_armv6; | |
73 c->put_no_rnd_pixels_tab[0][1] = ff_put_pixels16_x2_no_rnd_armv6; | |
74 c->put_no_rnd_pixels_tab[0][2] = ff_put_pixels16_y2_no_rnd_armv6; | |
75 /* c->put_no_rnd_pixels_tab[0][3] = ff_put_pixels16_xy2_no_rnd_armv6; */ | |
76 c->put_no_rnd_pixels_tab[1][0] = ff_put_pixels8_armv6; | |
77 c->put_no_rnd_pixels_tab[1][1] = ff_put_pixels8_x2_no_rnd_armv6; | |
78 c->put_no_rnd_pixels_tab[1][2] = ff_put_pixels8_y2_no_rnd_armv6; | |
79 /* c->put_no_rnd_pixels_tab[1][3] = ff_put_pixels8_xy2_no_rnd_armv6; */ | |
80 | |
81 c->avg_pixels_tab[0][0] = ff_avg_pixels16_armv6; | |
82 c->avg_pixels_tab[1][0] = ff_avg_pixels8_armv6; | |
83 | |
42 c->add_pixels_clamped = ff_add_pixels_clamped_armv6; | 84 c->add_pixels_clamped = ff_add_pixels_clamped_armv6; |
43 } | 85 } |