diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-11-02 11:28:08 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-11-02 11:28:08 +0000 |
commit | 05c4072b45f3cde1185de6eccfe7febf91d9f8fd (patch) | |
tree | 164979e7e556e44f5678d5599a40810bbf89fed8 /libavcodec/ppc/dsputil_ppc.c | |
parent | 26b35efb3a0d02a1ef6a8af804e6c59c1a190fa3 (diff) | |
download | ffmpeg-05c4072b45f3cde1185de6eccfe7febf91d9f8fd.tar.gz |
Altivec Patch (Mark III) by (Dieter Shirley <dieters at schemasoft dot com>)
Originally committed as revision 1147 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc/dsputil_ppc.c')
-rw-r--r-- | libavcodec/ppc/dsputil_ppc.c | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/libavcodec/ppc/dsputil_ppc.c b/libavcodec/ppc/dsputil_ppc.c index d9c8ba86e0..28c56ee94a 100644 --- a/libavcodec/ppc/dsputil_ppc.c +++ b/libavcodec/ppc/dsputil_ppc.c @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2002 Brian Foley + * Copyright (c) 2002 Dieter Shirley + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #include "../dsputil.h" #ifdef HAVE_ALTIVEC @@ -6,14 +25,23 @@ void dsputil_init_ppc(void) { + // Common optimisations whether Altivec or not + + // ... pending ... + #if HAVE_ALTIVEC if (has_altivec()) { + // Altivec specific optimisations pix_abs16x16 = pix_abs16x16_altivec; pix_abs8x8 = pix_abs8x8_altivec; pix_sum = pix_sum_altivec; + diff_pixels = diff_pixels_altivec; + get_pixels = get_pixels_altivec; } else #endif { - /* Non-AltiVec PPC optimisations here */ + // Non-AltiVec PPC optimisations + + // ... pending ... } } |