Mercurial > mplayer.hg
comparison postproc/swscale_template.c @ 12698:d2aef091743c
altivec yuv->rgb converter
orginal patch by (Marc Hoffman <mmh at pleasantst dot com>)
critical fixes by (Reza Jelveh <reza.jelveh at tu-harburg dot de>)
known bugs/issues, which should be fixed ASAP by someone who has a ppc:
0..255 vs. 16..235
unneeded recalculation of tables
general cleaup, like removing double initalizing of variables
author | michael |
---|---|
date | Sun, 27 Jun 2004 00:07:15 +0000 |
parents | 2ef24558b732 |
children | 821f464b4d90 |
comparison
equal
deleted
inserted
replaced
12697:86ca4e017ac8 | 12698:d2aef091743c |
---|---|
941 ); | 941 ); |
942 } | 942 } |
943 break; | 943 break; |
944 #endif | 944 #endif |
945 default: | 945 default: |
946 #ifdef HAVE_ALTIVEC | |
947 altivec_yuv2packedX (c, lumFilter, lumSrc, lumFilterSize, | |
948 chrFilter, chrSrc, chrFilterSize, | |
949 dest, dstW, dstY); | |
950 #else | |
946 yuv2packedXinC(c, lumFilter, lumSrc, lumFilterSize, | 951 yuv2packedXinC(c, lumFilter, lumSrc, lumFilterSize, |
947 chrFilter, chrSrc, chrFilterSize, | 952 chrFilter, chrSrc, chrFilterSize, |
948 dest, dstW, dstY); | 953 dest, dstW, dstY); |
954 #endif | |
949 break; | 955 break; |
950 } | 956 } |
951 } | 957 } |
952 | 958 |
953 /** | 959 /** |