comparison arm/dsputil_init_armv6.c @ 11117:ad6d17b36a3a libavcodec

ARMv6 optimised pix_sum
author mru
date Tue, 09 Feb 2010 16:13:52 +0000
parents 0198e3582544
children
comparison
equal deleted inserted replaced
11116:0198e3582544 11117:ad6d17b36a3a
66 66
67 int ff_sse16_armv6(void *s, uint8_t *blk1, uint8_t *blk2, 67 int ff_sse16_armv6(void *s, uint8_t *blk1, uint8_t *blk2,
68 int line_size, int h); 68 int line_size, int h);
69 69
70 int ff_pix_norm1_armv6(uint8_t *pix, int line_size); 70 int ff_pix_norm1_armv6(uint8_t *pix, int line_size);
71 int ff_pix_sum_armv6(uint8_t *pix, int line_size);
71 72
72 void av_cold ff_dsputil_init_armv6(DSPContext* c, AVCodecContext *avctx) 73 void av_cold ff_dsputil_init_armv6(DSPContext* c, AVCodecContext *avctx)
73 { 74 {
74 if (!avctx->lowres && (avctx->idct_algo == FF_IDCT_AUTO || 75 if (!avctx->lowres && (avctx->idct_algo == FF_IDCT_AUTO ||
75 avctx->idct_algo == FF_IDCT_SIMPLEARMV6)) { 76 avctx->idct_algo == FF_IDCT_SIMPLEARMV6)) {
114 c->sad[1] = ff_pix_abs8_armv6; 115 c->sad[1] = ff_pix_abs8_armv6;
115 116
116 c->sse[0] = ff_sse16_armv6; 117 c->sse[0] = ff_sse16_armv6;
117 118
118 c->pix_norm1 = ff_pix_norm1_armv6; 119 c->pix_norm1 = ff_pix_norm1_armv6;
120 c->pix_sum = ff_pix_sum_armv6;
119 } 121 }