changeset 986:be3ffaaf5a6d libavcodec

Implement sad8x8 and sad16x16 with pix_abs.
author mellum
date Fri, 10 Jan 2003 13:35:15 +0000
parents 42fdf7b24d2e
children 295ec9bebf93
files alpha/dsputil_alpha.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/alpha/dsputil_alpha.c	Thu Jan 09 22:10:57 2003 +0000
+++ b/alpha/dsputil_alpha.c	Fri Jan 10 13:35:15 2003 +0000
@@ -285,6 +285,16 @@
     put_pixels_axp_asm(block + 8, pixels + 8, line_size, h);
 }
 
+static int sad16x16_mvi(void *s, uint8_t *a, uint8_t *b, int stride)
+{
+    return pix_abs16x16_mvi_asm(a, b, stride);
+}
+
+static int sad8x8_mvi(void *s, uint8_t *a, uint8_t *b, int stride)
+{
+    return pix_abs8x8_mvi(a, b, stride);
+}
+
 void dsputil_init_alpha(DSPContext* c, unsigned mask)
 {
     c->put_pixels_tab[0][0] = put_pixels16_axp_asm;
@@ -336,6 +346,8 @@
 
         c->get_pixels       = get_pixels_mvi;
         c->diff_pixels      = diff_pixels_mvi;
+        c->sad[0]           = sad16x16_mvi;
+        c->sad[1]           = sad8x8_mvi;
         c->pix_abs8x8       = pix_abs8x8_mvi;
         c->pix_abs16x16     = pix_abs16x16_mvi_asm;
         c->pix_abs16x16_x2  = pix_abs16x16_x2_mvi;