2 * This file is part of FFmpeg.
4 * FFmpeg is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * FFmpeg is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with FFmpeg; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #include "libavutil/attributes.h"
22 #include "libavcodec/vc1dsp.h"
25 void ff_vc1_inv_trans_8x8_neon(int16_t *block);
26 void ff_vc1_inv_trans_4x8_neon(uint8_t *dest, int linesize, int16_t *block);
27 void ff_vc1_inv_trans_8x4_neon(uint8_t *dest, int linesize, int16_t *block);
28 void ff_vc1_inv_trans_4x4_neon(uint8_t *dest, int linesize, int16_t *block);
30 void ff_vc1_inv_trans_8x8_dc_neon(uint8_t *dest, int linesize, int16_t *block);
31 void ff_vc1_inv_trans_4x8_dc_neon(uint8_t *dest, int linesize, int16_t *block);
32 void ff_vc1_inv_trans_8x4_dc_neon(uint8_t *dest, int linesize, int16_t *block);
33 void ff_vc1_inv_trans_4x4_dc_neon(uint8_t *dest, int linesize, int16_t *block);
35 void ff_put_pixels8x8_neon(uint8_t *block, const uint8_t *pixels,
36 ptrdiff_t line_size, int rnd);
38 void ff_put_vc1_mspel_mc10_neon(uint8_t *dst, const uint8_t *src,
39 ptrdiff_t stride, int rnd);
40 void ff_put_vc1_mspel_mc20_neon(uint8_t *dst, const uint8_t *src,
41 ptrdiff_t stride, int rnd);
42 void ff_put_vc1_mspel_mc30_neon(uint8_t *dst, const uint8_t *src,
43 ptrdiff_t stride, int rnd);
45 void ff_put_vc1_mspel_mc01_neon(uint8_t *dst, const uint8_t *src,
46 ptrdiff_t stride, int rnd);
47 void ff_put_vc1_mspel_mc02_neon(uint8_t *dst, const uint8_t *src,
48 ptrdiff_t stride, int rnd);
49 void ff_put_vc1_mspel_mc03_neon(uint8_t *dst, const uint8_t *src,
50 ptrdiff_t stride, int rnd);
52 void ff_put_vc1_mspel_mc11_neon(uint8_t *dst, const uint8_t *src,
53 ptrdiff_t stride, int rnd);
54 void ff_put_vc1_mspel_mc12_neon(uint8_t *dst, const uint8_t *src,
55 ptrdiff_t stride, int rnd);
56 void ff_put_vc1_mspel_mc13_neon(uint8_t *dst, const uint8_t *src,
57 ptrdiff_t stride, int rnd);
59 void ff_put_vc1_mspel_mc21_neon(uint8_t *dst, const uint8_t *src,
60 ptrdiff_t stride, int rnd);
61 void ff_put_vc1_mspel_mc22_neon(uint8_t *dst, const uint8_t *src,
62 ptrdiff_t stride, int rnd);
63 void ff_put_vc1_mspel_mc23_neon(uint8_t *dst, const uint8_t *src,
64 ptrdiff_t stride, int rnd);
66 void ff_put_vc1_mspel_mc31_neon(uint8_t *dst, const uint8_t *src,
67 ptrdiff_t stride, int rnd);
68 void ff_put_vc1_mspel_mc32_neon(uint8_t *dst, const uint8_t *src,
69 ptrdiff_t stride, int rnd);
70 void ff_put_vc1_mspel_mc33_neon(uint8_t *dst, const uint8_t *src,
71 ptrdiff_t stride, int rnd);
73 void ff_put_vc1_chroma_mc8_neon(uint8_t *dst, uint8_t *src, int stride, int h,
75 void ff_avg_vc1_chroma_mc8_neon(uint8_t *dst, uint8_t *src, int stride, int h,
77 void ff_put_vc1_chroma_mc4_neon(uint8_t *dst, uint8_t *src, int stride, int h,
79 void ff_avg_vc1_chroma_mc4_neon(uint8_t *dst, uint8_t *src, int stride, int h,
82 av_cold void ff_vc1dsp_init_neon(VC1DSPContext *dsp)
84 dsp->vc1_inv_trans_8x8 = ff_vc1_inv_trans_8x8_neon;
85 dsp->vc1_inv_trans_4x8 = ff_vc1_inv_trans_4x8_neon;
86 dsp->vc1_inv_trans_8x4 = ff_vc1_inv_trans_8x4_neon;
87 dsp->vc1_inv_trans_4x4 = ff_vc1_inv_trans_4x4_neon;
88 dsp->vc1_inv_trans_8x8_dc = ff_vc1_inv_trans_8x8_dc_neon;
89 dsp->vc1_inv_trans_4x8_dc = ff_vc1_inv_trans_4x8_dc_neon;
90 dsp->vc1_inv_trans_8x4_dc = ff_vc1_inv_trans_8x4_dc_neon;
91 dsp->vc1_inv_trans_4x4_dc = ff_vc1_inv_trans_4x4_dc_neon;
93 dsp->put_vc1_mspel_pixels_tab[ 0] = ff_put_pixels8x8_neon;
94 dsp->put_vc1_mspel_pixels_tab[ 1] = ff_put_vc1_mspel_mc10_neon;
95 dsp->put_vc1_mspel_pixels_tab[ 2] = ff_put_vc1_mspel_mc20_neon;
96 dsp->put_vc1_mspel_pixels_tab[ 3] = ff_put_vc1_mspel_mc30_neon;
97 dsp->put_vc1_mspel_pixels_tab[ 4] = ff_put_vc1_mspel_mc01_neon;
98 dsp->put_vc1_mspel_pixels_tab[ 5] = ff_put_vc1_mspel_mc11_neon;
99 dsp->put_vc1_mspel_pixels_tab[ 6] = ff_put_vc1_mspel_mc21_neon;
100 dsp->put_vc1_mspel_pixels_tab[ 7] = ff_put_vc1_mspel_mc31_neon;
101 dsp->put_vc1_mspel_pixels_tab[ 8] = ff_put_vc1_mspel_mc02_neon;
102 dsp->put_vc1_mspel_pixels_tab[ 9] = ff_put_vc1_mspel_mc12_neon;
103 dsp->put_vc1_mspel_pixels_tab[10] = ff_put_vc1_mspel_mc22_neon;
104 dsp->put_vc1_mspel_pixels_tab[11] = ff_put_vc1_mspel_mc32_neon;
105 dsp->put_vc1_mspel_pixels_tab[12] = ff_put_vc1_mspel_mc03_neon;
106 dsp->put_vc1_mspel_pixels_tab[13] = ff_put_vc1_mspel_mc13_neon;
107 dsp->put_vc1_mspel_pixels_tab[14] = ff_put_vc1_mspel_mc23_neon;
108 dsp->put_vc1_mspel_pixels_tab[15] = ff_put_vc1_mspel_mc33_neon;
110 dsp->put_no_rnd_vc1_chroma_pixels_tab[0] = ff_put_vc1_chroma_mc8_neon;
111 dsp->avg_no_rnd_vc1_chroma_pixels_tab[0] = ff_avg_vc1_chroma_mc8_neon;
112 dsp->put_no_rnd_vc1_chroma_pixels_tab[1] = ff_put_vc1_chroma_mc4_neon;
113 dsp->avg_no_rnd_vc1_chroma_pixels_tab[1] = ff_avg_vc1_chroma_mc4_neon;