Mercurial > libavcodec.hg
comparison arm/dsputil_init_armv6.c @ 11116:0198e3582544 libavcodec
ARMv6 optimised pix_norm1
author | mru |
---|---|
date | Tue, 09 Feb 2010 16:13:49 +0000 |
parents | 3fba8a5c6288 |
children | ad6d17b36a3a |
comparison
equal
deleted
inserted
replaced
11115:3fba8a5c6288 | 11116:0198e3582544 |
---|---|
65 int line_size, int h); | 65 int line_size, int h); |
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); | |
71 | |
70 void av_cold ff_dsputil_init_armv6(DSPContext* c, AVCodecContext *avctx) | 72 void av_cold ff_dsputil_init_armv6(DSPContext* c, AVCodecContext *avctx) |
71 { | 73 { |
72 if (!avctx->lowres && (avctx->idct_algo == FF_IDCT_AUTO || | 74 if (!avctx->lowres && (avctx->idct_algo == FF_IDCT_AUTO || |
73 avctx->idct_algo == FF_IDCT_SIMPLEARMV6)) { | 75 avctx->idct_algo == FF_IDCT_SIMPLEARMV6)) { |
74 c->idct_put = ff_simple_idct_put_armv6; | 76 c->idct_put = ff_simple_idct_put_armv6; |
110 | 112 |
111 c->sad[0] = ff_pix_abs16_armv6; | 113 c->sad[0] = ff_pix_abs16_armv6; |
112 c->sad[1] = ff_pix_abs8_armv6; | 114 c->sad[1] = ff_pix_abs8_armv6; |
113 | 115 |
114 c->sse[0] = ff_sse16_armv6; | 116 c->sse[0] = ff_sse16_armv6; |
117 | |
118 c->pix_norm1 = ff_pix_norm1_armv6; | |
115 } | 119 } |