comparison arm/dsputil_init_armv6.c @ 11111:95b1fd6057d3 libavcodec

ARMv6 optimised pix_abs16_y2
author mru
date Tue, 09 Feb 2010 16:13:31 +0000
parents 45de2da90eaf
children ffe1ea72ea29
comparison
equal deleted inserted replaced
11110:45de2da90eaf 11111:95b1fd6057d3
52 52
53 int ff_pix_abs16_armv6(void *s, uint8_t *blk1, uint8_t *blk2, 53 int ff_pix_abs16_armv6(void *s, uint8_t *blk1, uint8_t *blk2,
54 int line_size, int h); 54 int line_size, int h);
55 int ff_pix_abs16_x2_armv6(void *s, uint8_t *blk1, uint8_t *blk2, 55 int ff_pix_abs16_x2_armv6(void *s, uint8_t *blk1, uint8_t *blk2,
56 int line_size, int h); 56 int line_size, int h);
57 int ff_pix_abs16_y2_armv6(void *s, uint8_t *blk1, uint8_t *blk2,
58 int line_size, int h);
57 59
58 void av_cold ff_dsputil_init_armv6(DSPContext* c, AVCodecContext *avctx) 60 void av_cold ff_dsputil_init_armv6(DSPContext* c, AVCodecContext *avctx)
59 { 61 {
60 if (!avctx->lowres && (avctx->idct_algo == FF_IDCT_AUTO || 62 if (!avctx->lowres && (avctx->idct_algo == FF_IDCT_AUTO ||
61 avctx->idct_algo == FF_IDCT_SIMPLEARMV6)) { 63 avctx->idct_algo == FF_IDCT_SIMPLEARMV6)) {
88 90
89 c->add_pixels_clamped = ff_add_pixels_clamped_armv6; 91 c->add_pixels_clamped = ff_add_pixels_clamped_armv6;
90 92
91 c->pix_abs[0][0] = ff_pix_abs16_armv6; 93 c->pix_abs[0][0] = ff_pix_abs16_armv6;
92 c->pix_abs[0][1] = ff_pix_abs16_x2_armv6; 94 c->pix_abs[0][1] = ff_pix_abs16_x2_armv6;
95 c->pix_abs[0][2] = ff_pix_abs16_y2_armv6;
93 96
94 c->sad[0] = ff_pix_abs16_armv6; 97 c->sad[0] = ff_pix_abs16_armv6;
95 } 98 }