Commit 86d66c1a authored by mellum's avatar mellum

Implement sad8x8 and sad16x16 with pix_abs.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1428 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f7e3089c
...@@ -285,6 +285,16 @@ void put_pixels16_axp_asm(uint8_t *block, const uint8_t *pixels, ...@@ -285,6 +285,16 @@ void put_pixels16_axp_asm(uint8_t *block, const uint8_t *pixels,
put_pixels_axp_asm(block + 8, pixels + 8, line_size, h); 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) void dsputil_init_alpha(DSPContext* c, unsigned mask)
{ {
c->put_pixels_tab[0][0] = put_pixels16_axp_asm; c->put_pixels_tab[0][0] = put_pixels16_axp_asm;
...@@ -336,6 +346,8 @@ void dsputil_init_alpha(DSPContext* c, unsigned mask) ...@@ -336,6 +346,8 @@ void dsputil_init_alpha(DSPContext* c, unsigned mask)
c->get_pixels = get_pixels_mvi; c->get_pixels = get_pixels_mvi;
c->diff_pixels = diff_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_abs8x8 = pix_abs8x8_mvi;
c->pix_abs16x16 = pix_abs16x16_mvi_asm; c->pix_abs16x16 = pix_abs16x16_mvi_asm;
c->pix_abs16x16_x2 = pix_abs16x16_x2_mvi; c->pix_abs16x16_x2 = pix_abs16x16_x2_mvi;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment