00001 /* 00002 * AltiVec-enhanced yuv2yuvX 00003 * 00004 * Copyright (C) 2004 Romain Dolbeau <romain@dolbeau.org> 00005 * based on the equivalent C code in swscale.c 00006 * 00007 * This file is part of FFmpeg. 00008 * 00009 * FFmpeg is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2.1 of the License, or (at your option) any later version. 00013 * 00014 * FFmpeg is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with FFmpeg; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00022 */ 00023 00024 #ifndef PPC_YUV2RGB_ALTIVEC_H 00025 #define PPC_YUV2RGB_ALTIVEC_H 1 00026 00027 #define YUV2PACKEDX_HEADER(suffix) \ 00028 void ff_yuv2 ## suffix ## _X_altivec(SwsContext *c, const int16_t *lumFilter, \ 00029 const int16_t **lumSrc, int lumFilterSize, \ 00030 const int16_t *chrFilter, const int16_t **chrUSrc, \ 00031 const int16_t **chrVSrc, int chrFilterSize, \ 00032 const int16_t **alpSrc, uint8_t *dest, \ 00033 int dstW, int dstY); 00034 00035 YUV2PACKEDX_HEADER(abgr); 00036 YUV2PACKEDX_HEADER(bgra); 00037 YUV2PACKEDX_HEADER(argb); 00038 YUV2PACKEDX_HEADER(rgba); 00039 YUV2PACKEDX_HEADER(rgb24); 00040 YUV2PACKEDX_HEADER(bgr24); 00041 00042 #endif /* PPC_YUV2RGB_ALTIVEC_H */