2011-06-03 05:04:04 +02:00
|
|
|
/*
|
|
|
|
* AltiVec-enhanced yuv2yuvX
|
|
|
|
*
|
|
|
|
* Copyright (C) 2004 Romain Dolbeau <romain@dolbeau.org>
|
|
|
|
* based on the equivalent C code in swscale.c
|
|
|
|
*
|
2011-06-04 06:31:35 +02:00
|
|
|
* This file is part of FFmpeg.
|
2011-06-03 05:04:04 +02:00
|
|
|
*
|
2011-06-04 06:31:35 +02:00
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2011-06-03 05:04:04 +02:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
2011-06-04 06:31:35 +02:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2011-06-03 05:04:04 +02:00
|
|
|
* 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
|
2011-06-04 06:31:35 +02:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2011-06-03 05:04:04 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
2012-01-03 10:29:19 +01:00
|
|
|
#ifndef SWSCALE_PPC_YUV2RGB_ALTIVEC_H
|
|
|
|
#define SWSCALE_PPC_YUV2RGB_ALTIVEC_H
|
2011-06-03 05:04:04 +02:00
|
|
|
|
2012-02-08 11:01:41 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "libswscale/swscale_internal.h"
|
|
|
|
|
2011-12-30 18:37:16 +01:00
|
|
|
#define YUV2PACKEDX_HEADER(suffix) \
|
|
|
|
void ff_yuv2 ## suffix ## _X_altivec(SwsContext *c, \
|
|
|
|
const int16_t *lumFilter, \
|
|
|
|
const int16_t **lumSrc, \
|
|
|
|
int lumFilterSize, \
|
|
|
|
const int16_t *chrFilter, \
|
|
|
|
const int16_t **chrUSrc, \
|
|
|
|
const int16_t **chrVSrc, \
|
|
|
|
int chrFilterSize, \
|
|
|
|
const int16_t **alpSrc, \
|
|
|
|
uint8_t *dest, \
|
|
|
|
int dstW, int dstY);
|
2011-06-03 05:04:04 +02:00
|
|
|
|
2011-06-16 18:04:24 +02:00
|
|
|
YUV2PACKEDX_HEADER(abgr);
|
|
|
|
YUV2PACKEDX_HEADER(bgra);
|
|
|
|
YUV2PACKEDX_HEADER(argb);
|
|
|
|
YUV2PACKEDX_HEADER(rgba);
|
|
|
|
YUV2PACKEDX_HEADER(rgb24);
|
|
|
|
YUV2PACKEDX_HEADER(bgr24);
|
|
|
|
|
2012-01-03 10:29:19 +01:00
|
|
|
#endif /* SWSCALE_PPC_YUV2RGB_ALTIVEC_H */
|