OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004 the ffmpeg project | 2 * Copyright (C) 2004 the ffmpeg project |
3 * | 3 * |
4 * This file is part of FFmpeg. | 4 * This file is part of FFmpeg. |
5 * | 5 * |
6 * FFmpeg is free software; you can redistribute it and/or | 6 * FFmpeg is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2.1 of the License, or (at your option) any later version. | 9 * version 2.1 of the License, or (at your option) any later version. |
10 * | 10 * |
11 * FFmpeg is distributed in the hope that it will be useful, | 11 * FFmpeg is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 * Lesser General Public License for more details. | 14 * Lesser General Public License for more details. |
15 * | 15 * |
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 /** | 21 /** |
22 * @file libavcodec/x86/vp3dsp_sse2.c | 22 * @file libavcodec/x86/vp3dsp_sse2.c |
23 * SSE2-optimized functions cribbed from the original VP3 source code. | 23 * SSE2-optimized functions cribbed from the original VP3 source code. |
24 */ | 24 */ |
25 | 25 |
26 #include "libavcodec/dsputil.h" | 26 #include "libavcodec/dsputil.h" |
27 #include "dsputil_mmx.h" | 27 #include "dsputil_mmx.h" |
| 28 #include "vp3dsp_sse2.h" |
28 | 29 |
29 DECLARE_ALIGNED_16(const uint16_t, ff_vp3_idct_data)[7 * 8] = | 30 DECLARE_ALIGNED(16, const uint16_t, ff_vp3_idct_data)[7 * 8] = |
30 { | 31 { |
31 64277,64277,64277,64277,64277,64277,64277,64277, | 32 64277,64277,64277,64277,64277,64277,64277,64277, |
32 60547,60547,60547,60547,60547,60547,60547,60547, | 33 60547,60547,60547,60547,60547,60547,60547,60547, |
33 54491,54491,54491,54491,54491,54491,54491,54491, | 34 54491,54491,54491,54491,54491,54491,54491,54491, |
34 46341,46341,46341,46341,46341,46341,46341,46341, | 35 46341,46341,46341,46341,46341,46341,46341,46341, |
35 36410,36410,36410,36410,36410,36410,36410,36410, | 36 36410,36410,36410,36410,36410,36410,36410,36410, |
36 25080,25080,25080,25080,25080,25080,25080,25080, | 37 25080,25080,25080,25080,25080,25080,25080,25080, |
37 12785,12785,12785,12785,12785,12785,12785,12785 | 38 12785,12785,12785,12785,12785,12785,12785,12785 |
38 }; | 39 }; |
39 | 40 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 { | 178 { |
178 ff_vp3_idct_sse2(block); | 179 ff_vp3_idct_sse2(block); |
179 put_signed_pixels_clamped_mmx(block, dest, line_size); | 180 put_signed_pixels_clamped_mmx(block, dest, line_size); |
180 } | 181 } |
181 | 182 |
182 void ff_vp3_idct_add_sse2(uint8_t *dest, int line_size, DCTELEM *block) | 183 void ff_vp3_idct_add_sse2(uint8_t *dest, int line_size, DCTELEM *block) |
183 { | 184 { |
184 ff_vp3_idct_sse2(block); | 185 ff_vp3_idct_sse2(block); |
185 add_pixels_clamped_mmx(block, dest, line_size); | 186 add_pixels_clamped_mmx(block, dest, line_size); |
186 } | 187 } |
OLD | NEW |