aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ppc/dsputil_ppc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-01-16 21:54:55 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-01-16 21:54:55 +0000
commitdb40a39aba6a22729279ac8915b52b182473f209 (patch)
treebd67103c33705c172f5cac6838edc4899a1bfc80 /libavcodec/ppc/dsputil_ppc.c
parentf44a2df04fb553ef076594daca3ed4ccab315123 (diff)
downloadffmpeg-db40a39aba6a22729279ac8915b52b182473f209.tar.gz
AltiVec perf (take 2), plus a couple AltiVec functions by (Romain Dolbeau <dolbeau at irisa dot fr>)
Originally committed as revision 1464 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc/dsputil_ppc.c')
-rw-r--r--libavcodec/ppc/dsputil_ppc.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/libavcodec/ppc/dsputil_ppc.c b/libavcodec/ppc/dsputil_ppc.c
index 055a8f09fc..ec2dda4690 100644
--- a/libavcodec/ppc/dsputil_ppc.c
+++ b/libavcodec/ppc/dsputil_ppc.c
@@ -60,11 +60,27 @@ void dsputil_init_ppc(DSPContext* c, unsigned mask)
c->pix_sum = pix_sum_altivec;
c->diff_pixels = diff_pixels_altivec;
c->get_pixels = get_pixels_altivec;
-// next one disabled as it it untested.
+// next two disabled as they're untested.
#if 0
c->add_bytes= add_bytes_altivec;
+ c->put_pixels_clamped = put_pixels_clamped_altivec;
#endif
+ c->put_pixels_tab[0][0] = put_pixels16_altivec;
+ c->avg_pixels_tab[0][0] = avg_pixels16_altivec;
c->gmc1 = gmc1_altivec;
+
+#ifdef ALTIVEC_TBL_PERFORMANCE_REPORT
+ {
+ int i;
+ for (i = 0 ; i < altivec_perf_total ; i++)
+ {
+ perfdata[i][altivec_data_min] = 0xFFFFFFFFFFFFFFFF;
+ perfdata[i][altivec_data_max] = 0x0000000000000000;
+ perfdata[i][altivec_data_sum] = 0x0000000000000000;
+ perfdata[i][altivec_data_num] = 0x0000000000000000;
+ }
+ }
+#endif
} else
#endif
{