# HG changeset patch # User diego # Date 1191321297 0 # Node ID 784dcbdc910fb74b8d01c2b29d00765483b2e712 # Parent f4b916b6f5c5826f316f4e3251fac44cfd1fd9bb cosmetics: Fix AltiVec spelling. diff -r f4b916b6f5c5 -r 784dcbdc910f ppc/dsputil_altivec.c --- a/ppc/dsputil_altivec.c Tue Oct 02 10:26:42 2007 +0000 +++ b/ppc/dsputil_altivec.c Tue Oct 02 10:34:57 2007 +0000 @@ -216,7 +216,7 @@ pix3iv = vec_perm(tv[0], tv[1], vec_lvsl(0, &pix3[1])); /* - Note that Altivec does have vec_avg, but this works on vector pairs + Note that AltiVec does have vec_avg, but this works on vector pairs and rounds up. We could do avg(avg(a,b),avg(c,d)), but the rounding would mean that, for example, avg(3,0,0,1) = 2, when it should be 1. Instead, we have to split the pixel vectors into vectors of shorts, diff -r f4b916b6f5c5 -r 784dcbdc910f ppc/dsputil_ppc.c --- a/ppc/dsputil_ppc.c Tue Oct 02 10:26:42 2007 +0000 +++ b/ppc/dsputil_ppc.c Tue Oct 02 10:34:57 2007 +0000 @@ -257,7 +257,7 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) { - // Common optimizations whether Altivec is available or not + // Common optimizations whether AltiVec is available or not c->prefetch = prefetch_ppc; switch (check_dcbzl_effect()) { case 32: diff -r f4b916b6f5c5 -r 784dcbdc910f ppc/mpegvideo_ppc.c --- a/ppc/mpegvideo_ppc.c Tue Oct 02 10:26:42 2007 +0000 +++ b/ppc/mpegvideo_ppc.c Tue Oct 02 10:34:57 2007 +0000 @@ -51,14 +51,14 @@ (((long)(s->q_inter_matrix) & 0x0f) != 0)) { av_log(s->avctx, AV_LOG_INFO, "Internal Error: q-matrix blocks must be 16-byte aligned " - "to use Altivec DCT. Reverting to non-altivec version.\n"); + "to use AltiVec DCT. Reverting to non-AltiVec version.\n"); return; } if (((long)(s->intra_scantable.inverse) & 0x0f) != 0) { av_log(s->avctx, AV_LOG_INFO, "Internal Error: scan table blocks must be 16-byte aligned " - "to use Altivec DCT. Reverting to non-altivec version.\n"); + "to use AltiVec DCT. Reverting to non-AltiVec version.\n"); return; } diff -r f4b916b6f5c5 -r 784dcbdc910f ppc/snow_altivec.c --- a/ppc/snow_altivec.c Tue Oct 02 10:26:42 2007 +0000 +++ b/ppc/snow_altivec.c Tue Oct 02 10:34:57 2007 +0000 @@ -1,5 +1,5 @@ /* - * Altivec optimized snow DSP utils + * AltiVec-optimized snow DSP utils * Copyright (c) 2006 Luca Barbato * * This file is part of FFmpeg.