/*1* AltiVec-enhanced yuv2yuvX2*3* Copyright (C) 2004 Romain Dolbeau <[email protected]>4* based on the equivalent C code in swscale.c5*6* This file is part of FFmpeg.7*8* FFmpeg is free software; you can redistribute it and/or9* modify it under the terms of the GNU Lesser General Public10* License as published by the Free Software Foundation; either11* version 2.1 of the License, or (at your option) any later version.12*13* FFmpeg is distributed in the hope that it will be useful,14* but WITHOUT ANY WARRANTY; without even the implied warranty of15* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU16* Lesser General Public License for more details.17*18* You should have received a copy of the GNU Lesser General Public19* License along with FFmpeg; if not, write to the Free Software20* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA21*/2223#ifndef SWSCALE_PPC_YUV2RGB_ALTIVEC_H24#define SWSCALE_PPC_YUV2RGB_ALTIVEC_H2526#include <stdint.h>2728#include "libswscale/swscale_internal.h"2930#define YUV2PACKEDX_HEADER(suffix) \31void ff_yuv2 ## suffix ## _X_altivec(SwsContext *c, \32const int16_t *lumFilter, \33const int16_t **lumSrc, \34int lumFilterSize, \35const int16_t *chrFilter, \36const int16_t **chrUSrc, \37const int16_t **chrVSrc, \38int chrFilterSize, \39const int16_t **alpSrc, \40uint8_t *dest, \41int dstW, int dstY);4243YUV2PACKEDX_HEADER(abgr);44YUV2PACKEDX_HEADER(bgra);45YUV2PACKEDX_HEADER(argb);46YUV2PACKEDX_HEADER(rgba);47YUV2PACKEDX_HEADER(rgb24);48YUV2PACKEDX_HEADER(bgr24);4950#endif /* SWSCALE_PPC_YUV2RGB_ALTIVEC_H */515253