Mercurial > libavcodec.hg
comparison ppc/vp8dsp_altivec.c @ 12473:06abedae2906 libavcodec
Merge has_altivec() function into mm_support(), remove it and use
mm_support() instead.
Reduce complexity and simplify pending move to libavutil.
author | stefano |
---|---|
date | Wed, 08 Sep 2010 10:02:40 +0000 |
parents | f96187e79438 |
children | 9fef0a8ddd63 |
comparison
equal
deleted
inserted
replaced
12472:9c9be94124f8 | 12473:06abedae2906 |
---|---|
263 put_pixels16_altivec(dst, src, stride, h); | 263 put_pixels16_altivec(dst, src, stride, h); |
264 } | 264 } |
265 | 265 |
266 av_cold void ff_vp8dsp_init_altivec(VP8DSPContext *c) | 266 av_cold void ff_vp8dsp_init_altivec(VP8DSPContext *c) |
267 { | 267 { |
268 if (!has_altivec()) | 268 if (!(mm_support() & AV_CPU_FLAG_ALTIVEC)) |
269 return; | 269 return; |
270 | 270 |
271 c->put_vp8_epel_pixels_tab[0][0][0] = put_vp8_pixels16_altivec; | 271 c->put_vp8_epel_pixels_tab[0][0][0] = put_vp8_pixels16_altivec; |
272 c->put_vp8_epel_pixels_tab[0][0][2] = put_vp8_epel16_h6_altivec; | 272 c->put_vp8_epel_pixels_tab[0][0][2] = put_vp8_epel16_h6_altivec; |
273 c->put_vp8_epel_pixels_tab[0][2][0] = put_vp8_epel16_v6_altivec; | 273 c->put_vp8_epel_pixels_tab[0][2][0] = put_vp8_epel16_v6_altivec; |