altivec optimizations patch by (Brian Foley <bfoley at compsoc dot nuigalway dot...
[libav.git] / libavcodec / ppc / dsputil_altivec.h
CommitLineData
05c4072b
MN
1/*
2 * Copyright (c) 2002 Brian Foley
3 * Copyright (c) 2002 Dieter Shirley
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
f2677d6b
BF
19
20extern int pix_abs16x16_x2_altivec(uint8_t *pix1, uint8_t *pix2, int line_size);
21extern int pix_abs16x16_y2_altivec(uint8_t *pix1, uint8_t *pix2, int line_size);
22extern int pix_abs16x16_xy2_altivec(uint8_t *pix1, uint8_t *pix2, int line_size);
ab6c65f6
BF
23extern int pix_abs16x16_altivec(uint8_t *pix1, uint8_t *pix2, int line_size);
24extern int pix_abs8x8_altivec(uint8_t *pix1, uint8_t *pix2, int line_size);
f2677d6b 25extern int pix_norm1_altivec(uint8_t *pix, int line_size);
ab6c65f6 26extern int pix_sum_altivec(UINT8 * pix, int line_size);
05c4072b
MN
27extern void diff_pixels_altivec(DCTELEM* block, const UINT8* s1, const UINT8* s2, int stride);
28extern void get_pixels_altivec(DCTELEM* block, const UINT8 * pixels, int line_size);
ab6c65f6
BF
29
30extern int has_altivec(void);