OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 David Conrad | 2 * Copyright (C) 2009 David Conrad |
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 #include "libavcodec/dsputil.h" | 21 #include "libavcodec/dsputil.h" |
22 #include "util_altivec.h" | 22 #include "util_altivec.h" |
23 #include "types_altivec.h" | 23 #include "types_altivec.h" |
| 24 #include "dsputil_altivec.h" |
24 | 25 |
25 static const vec_s16 constants = | 26 static const vec_s16 constants = |
26 {0, 64277, 60547, 54491, 46341, 36410, 25080, 12785}; | 27 {0, 64277, 60547, 54491, 46341, 36410, 25080, 12785}; |
27 static const vec_u8 interleave_high = | 28 static const vec_u8 interleave_high = |
28 {0, 1, 16, 17, 4, 5, 20, 21, 8, 9, 24, 25, 12, 13, 28, 29}; | 29 {0, 1, 16, 17, 4, 5, 20, 21, 8, 9, 24, 25, 12, 13, 28, 29}; |
29 | 30 |
30 #define IDCT_START \ | 31 #define IDCT_START \ |
31 vec_s16 A, B, C, D, Ad, Bd, Cd, Dd, E, F, G, H;\ | 32 vec_s16 A, B, C, D, Ad, Bd, Cd, Dd, E, F, G, H;\ |
32 vec_s16 Ed, Gd, Add, Bdd, Fd, Hd;\ | 33 vec_s16 Ed, Gd, Add, Bdd, Fd, Hd;\ |
33 vec_s16 eight = vec_splat_s16(8);\ | 34 vec_s16 eight = vec_splat_s16(8);\ |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 176 |
176 ADD(b0) dst += stride; | 177 ADD(b0) dst += stride; |
177 ADD(b1) dst += stride; | 178 ADD(b1) dst += stride; |
178 ADD(b2) dst += stride; | 179 ADD(b2) dst += stride; |
179 ADD(b3) dst += stride; | 180 ADD(b3) dst += stride; |
180 ADD(b4) dst += stride; | 181 ADD(b4) dst += stride; |
181 ADD(b5) dst += stride; | 182 ADD(b5) dst += stride; |
182 ADD(b6) dst += stride; | 183 ADD(b6) dst += stride; |
183 ADD(b7) | 184 ADD(b7) |
184 } | 185 } |
OLD | NEW |