libswscale/ppc/yuv2rgb_altivec.h
Go to the documentation of this file.
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 SWSCALE_PPC_YUV2RGB_ALTIVEC_H
00025 #define SWSCALE_PPC_YUV2RGB_ALTIVEC_H
00026 
00027 #define YUV2PACKEDX_HEADER(suffix)                                  \
00028     void ff_yuv2 ## suffix ## _X_altivec(SwsContext *c,             \
00029                                          const int16_t *lumFilter,  \
00030                                          const int16_t **lumSrc,    \
00031                                          int lumFilterSize,         \
00032                                          const int16_t *chrFilter,  \
00033                                          const int16_t **chrUSrc,   \
00034                                          const int16_t **chrVSrc,   \
00035                                          int chrFilterSize,         \
00036                                          const int16_t **alpSrc,    \
00037                                          uint8_t *dest,             \
00038                                          int dstW, int dstY);
00039 
00040 YUV2PACKEDX_HEADER(abgr);
00041 YUV2PACKEDX_HEADER(bgra);
00042 YUV2PACKEDX_HEADER(argb);
00043 YUV2PACKEDX_HEADER(rgba);
00044 YUV2PACKEDX_HEADER(rgb24);
00045 YUV2PACKEDX_HEADER(bgr24);
00046 
00047 #endif /* SWSCALE_PPC_YUV2RGB_ALTIVEC_H */