comparison postproc/swscale_template.c @ 17641:fbf94ea858f1

don't call altivec_yuv2packedX() with a dstFormat that it doesn't support; instead fall back on yuv2packedXinC
author pacman
date Sat, 18 Feb 2006 00:41:28 +0000
parents 401b440a6d76
children 7b408d60de9e
comparison
equal deleted inserted replaced
17640:6b69c5b4b92a 17641:fbf94ea858f1
965 } 965 }
966 break; 966 break;
967 #endif 967 #endif
968 default: 968 default:
969 #ifdef HAVE_ALTIVEC 969 #ifdef HAVE_ALTIVEC
970 altivec_yuv2packedX (c, lumFilter, lumSrc, lumFilterSize, 970 /* The following list of supported dstFormat values should
971 chrFilter, chrSrc, chrFilterSize, 971 match what's found in the body of altivec_yuv2packedX() */
972 dest, dstW, dstY); 972 if(c->dstFormat==IMGFMT_ABGR || c->dstFormat==IMGFMT_BGRA ||
973 #else 973 c->dstFormat==IMGFMT_BGR24 || c->dstFormat==IMGFMT_RGB24 ||
974 yuv2packedXinC(c, lumFilter, lumSrc, lumFilterSize, 974 c->dstFormat==IMGFMT_RGBA || c->dstFormat==IMGFMT_ARGB)
975 chrFilter, chrSrc, chrFilterSize, 975 altivec_yuv2packedX (c, lumFilter, lumSrc, lumFilterSize,
976 dest, dstW, dstY); 976 chrFilter, chrSrc, chrFilterSize,
977 #endif 977 dest, dstW, dstY);
978 else
979 #endif
980 yuv2packedXinC(c, lumFilter, lumSrc, lumFilterSize,
981 chrFilter, chrSrc, chrFilterSize,
982 dest, dstW, dstY);
978 break; 983 break;
979 } 984 }
980 } 985 }
981 986
982 /** 987 /**