OLD | NEW |
1 /* | 1 /* |
2 * idct for sh4 | 2 * idct for sh4 |
3 * | 3 * |
4 * Copyright (c) 2001-2003 BERO <bero@geocities.co.jp> | 4 * Copyright (c) 2001-2003 BERO <bero@geocities.co.jp> |
5 * | 5 * |
6 * This file is part of FFmpeg. | 6 * This file is part of FFmpeg. |
7 * | 7 * |
8 * FFmpeg is free software; you can redistribute it and/or | 8 * FFmpeg is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
11 * version 2.1 of the License, or (at your option) any later version. | 11 * version 2.1 of the License, or (at your option) any later version. |
12 * | 12 * |
13 * FFmpeg is distributed in the hope that it will be useful, | 13 * FFmpeg is distributed in the hope that it will be useful, |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 * Lesser General Public License for more details. | 16 * Lesser General Public License for more details. |
17 * | 17 * |
18 * You should have received a copy of the GNU Lesser General Public | 18 * You should have received a copy of the GNU Lesser General Public |
19 * License along with FFmpeg; if not, write to the Free Software | 19 * License along with FFmpeg; if not, write to the Free Software |
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
21 */ | 21 */ |
22 | 22 |
23 #include "libavcodec/dsputil.h" | 23 #include "libavcodec/dsputil.h" |
| 24 #include "dsputil_sh4.h" |
24 #include "sh4.h" | 25 #include "sh4.h" |
25 | 26 |
26 #define c1 1.38703984532214752434 /* sqrt(2)*cos(1*pi/16) */ | 27 #define c1 1.38703984532214752434 /* sqrt(2)*cos(1*pi/16) */ |
27 #define c2 1.30656296487637657577 /* sqrt(2)*cos(2*pi/16) */ | 28 #define c2 1.30656296487637657577 /* sqrt(2)*cos(2*pi/16) */ |
28 #define c3 1.17587560241935884520 /* sqrt(2)*cos(3*pi/16) */ | 29 #define c3 1.17587560241935884520 /* sqrt(2)*cos(3*pi/16) */ |
29 #define c4 1.00000000000000000000 /* sqrt(2)*cos(4*pi/16) */ | 30 #define c4 1.00000000000000000000 /* sqrt(2)*cos(4*pi/16) */ |
30 #define c5 0.78569495838710234903 /* sqrt(2)*cos(5*pi/16) */ | 31 #define c5 0.78569495838710234903 /* sqrt(2)*cos(5*pi/16) */ |
31 #define c6 0.54119610014619712324 /* sqrt(2)*cos(6*pi/16) */ | 32 #define c6 0.54119610014619712324 /* sqrt(2)*cos(6*pi/16) */ |
32 #define c7 0.27589937928294311353 /* sqrt(2)*cos(7*pi/16) */ | 33 #define c7 0.27589937928294311353 /* sqrt(2)*cos(7*pi/16) */ |
33 | 34 |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 block[8*1] = DESCALE(t1 + fr1,3); | 353 block[8*1] = DESCALE(t1 + fr1,3); |
353 block[8*6] = DESCALE(t1 - fr1,3); | 354 block[8*6] = DESCALE(t1 - fr1,3); |
354 block[8*2] = DESCALE(t2 + fr2,3); | 355 block[8*2] = DESCALE(t2 + fr2,3); |
355 block[8*5] = DESCALE(t2 - fr2,3); | 356 block[8*5] = DESCALE(t2 - fr2,3); |
356 block[8*3] = DESCALE(t3 + fr3,3); | 357 block[8*3] = DESCALE(t3 + fr3,3); |
357 block[8*4] = DESCALE(t3 - fr3,3); | 358 block[8*4] = DESCALE(t3 - fr3,3); |
358 block++; | 359 block++; |
359 } while(--i); | 360 } while(--i); |
360 } | 361 } |
361 #endif | 362 #endif |
OLD | NEW |