mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
Put some altivec code under COMPILE_ALTIVEC, and not HAVE_ALTIVEC.
Originally committed as revision 29484 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
parent
df226e6369
commit
184410e60b
@ -2853,7 +2853,7 @@ SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int d
|
|||||||
(flags&SWS_BICUBLIN) ? (flags|SWS_BILINEAR) : flags,
|
(flags&SWS_BICUBLIN) ? (flags|SWS_BILINEAR) : flags,
|
||||||
srcFilter->chrV, dstFilter->chrV, c->param);
|
srcFilter->chrV, dstFilter->chrV, c->param);
|
||||||
|
|
||||||
#if HAVE_ALTIVEC
|
#ifdef COMPILE_ALTIVEC
|
||||||
c->vYCoeffsBank = av_malloc(sizeof (vector signed short)*c->vLumFilterSize*c->dstH);
|
c->vYCoeffsBank = av_malloc(sizeof (vector signed short)*c->vLumFilterSize*c->dstH);
|
||||||
c->vCCoeffsBank = av_malloc(sizeof (vector signed short)*c->vChrFilterSize*c->chrDstH);
|
c->vCCoeffsBank = av_malloc(sizeof (vector signed short)*c->vChrFilterSize*c->chrDstH);
|
||||||
|
|
||||||
@ -3487,7 +3487,7 @@ void sws_freeContext(SwsContext *c){
|
|||||||
av_freep(&c->vChrFilter);
|
av_freep(&c->vChrFilter);
|
||||||
av_freep(&c->hLumFilter);
|
av_freep(&c->hLumFilter);
|
||||||
av_freep(&c->hChrFilter);
|
av_freep(&c->hChrFilter);
|
||||||
#if HAVE_ALTIVEC
|
#ifdef COMPILE_ALTIVEC
|
||||||
av_freep(&c->vYCoeffsBank);
|
av_freep(&c->vYCoeffsBank);
|
||||||
av_freep(&c->vCCoeffsBank);
|
av_freep(&c->vCCoeffsBank);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user