Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-05-12 04:26:22 +0400
committerMichael Niedermayer <michaelni@gmx.at>2011-05-12 04:49:18 +0400
commit1cafc23288b9d860b9f309c86a5f148b73c07270 (patch)
treed7b4a2e1f06e19b6b577d56e3b406d5de1dc4916 /libswscale/ppc/yuv2rgb_altivec.c
parent83630f79eca40e0d662ce157585a6f4c961c5c14 (diff)
sws-PPC: fix after VOFW change.
It seems sws-PPC did hardcode 2048 at various places instead of using VOFW. This also means that all past VOFW benchmarks on PPC are meaningless Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/ppc/yuv2rgb_altivec.c')
-rw-r--r--libswscale/ppc/yuv2rgb_altivec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/ppc/yuv2rgb_altivec.c b/libswscale/ppc/yuv2rgb_altivec.c
index bf605bc757..2b58eb27c9 100644
--- a/libswscale/ppc/yuv2rgb_altivec.c
+++ b/libswscale/ppc/yuv2rgb_altivec.c
@@ -817,7 +817,7 @@ ff_yuv2packedX_altivec(SwsContext *c,
for (j=0; j<chrFilterSize; j++) {
X = vec_ld (0, &chrSrc[j][i/2]);
U = vec_mradds (X, CCoeffs[j], U);
- X = vec_ld (0, &chrSrc[j][i/2+2048]);
+ X = vec_ld (0, &chrSrc[j][i/2+VOFW]);
V = vec_mradds (X, CCoeffs[j], V);
}
@@ -895,7 +895,7 @@ ff_yuv2packedX_altivec(SwsContext *c,
for (j=0; j<chrFilterSize; j++) {
X = vec_ld (0, &chrSrc[j][i/2]);
U = vec_mradds (X, CCoeffs[j], U);
- X = vec_ld (0, &chrSrc[j][i/2+2048]);
+ X = vec_ld (0, &chrSrc[j][i/2+VOFW]);
V = vec_mradds (X, CCoeffs[j], V);
}