Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: patched-ffmpeg-mt/libavcodec/ppc/fdct_altivec.c

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003 James Klicman <james@klicman.org> 2 * Copyright (C) 2003 James Klicman <james@klicman.org>
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 "config.h" 21 #include "config.h"
22 #if HAVE_ALTIVEC_H 22 #if HAVE_ALTIVEC_H
23 #include <altivec.h> 23 #include <altivec.h>
24 #endif 24 #endif
25 #include "libavutil/common.h" 25 #include "libavutil/common.h"
26 #include "libavcodec/dsputil.h" 26 #include "libavcodec/dsputil.h"
27 #include "dsputil_ppc.h" 27 #include "dsputil_ppc.h"
28 28 #include "dsputil_altivec.h"
29 29
30 #define vs16(v) ((vector signed short)(v)) 30 #define vs16(v) ((vector signed short)(v))
31 #define vs32(v) ((vector signed int)(v)) 31 #define vs32(v) ((vector signed int)(v))
32 #define vu8(v) ((vector unsigned char)(v)) 32 #define vu8(v) ((vector unsigned char)(v))
33 #define vu16(v) ((vector unsigned short)(v)) 33 #define vu16(v) ((vector unsigned short)(v))
34 #define vu32(v) ((vector unsigned int)(v)) 34 #define vu32(v) ((vector unsigned int)(v))
35 35
36 36
37 #define C1 0.98078525066375732421875000 /* cos(1*PI/16) */ 37 #define C1 0.98078525066375732421875000 /* cos(1*PI/16) */
38 #define C2 0.92387950420379638671875000 /* cos(2*PI/16) */ 38 #define C2 0.92387950420379638671875000 /* cos(2*PI/16) */
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 CTS(6); bp++; 485 CTS(6); bp++;
486 CTS(7); 486 CTS(7);
487 487
488 #undef CTS 488 #undef CTS
489 /* }}} */ 489 /* }}} */
490 490
491 POWERPC_PERF_STOP_COUNT(altivec_fdct, 1); 491 POWERPC_PERF_STOP_COUNT(altivec_fdct, 1);
492 } 492 }
493 493
494 /* vim:set foldmethod=marker foldlevel=0: */ 494 /* vim:set foldmethod=marker foldlevel=0: */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698