Mercurial > libavcodec.hg
comparison ppc/dsputil_ppc.c @ 3537:f52e3f60481b libavcodec
Some AltiVec optimizations for VC-1
author | kostya |
---|---|
date | Thu, 03 Aug 2006 05:02:31 +0000 |
parents | 95e2e92328c0 |
children | bdbe52f38868 |
comparison
equal
deleted
inserted
replaced
3536:545a15c19c91 | 3537:f52e3f60481b |
---|---|
249 { | 249 { |
250 return 0; | 250 return 0; |
251 } | 251 } |
252 #endif | 252 #endif |
253 | 253 |
254 #ifdef HAVE_ALTIVEC | |
255 void vc1dsp_init_altivec(DSPContext* c, AVCodecContext *avctx); | |
256 #endif | |
257 | |
254 void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) | 258 void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) |
255 { | 259 { |
256 // Common optimizations whether Altivec is available or not | 260 // Common optimizations whether Altivec is available or not |
257 | 261 |
258 switch (check_dcbzl_effect()) { | 262 switch (check_dcbzl_effect()) { |
308 | 312 |
309 c->horizontal_compose97i = ff_snow_horizontal_compose97i_altivec; | 313 c->horizontal_compose97i = ff_snow_horizontal_compose97i_altivec; |
310 c->vertical_compose97i = ff_snow_vertical_compose97i_altivec; | 314 c->vertical_compose97i = ff_snow_vertical_compose97i_altivec; |
311 c->inner_add_yblock = ff_snow_inner_add_yblock_altivec; | 315 c->inner_add_yblock = ff_snow_inner_add_yblock_altivec; |
312 | 316 |
317 vc1dsp_init_altivec(c, avctx); | |
313 #ifdef CONFIG_ENCODERS | 318 #ifdef CONFIG_ENCODERS |
314 if (avctx->dct_algo == FF_DCT_AUTO || | 319 if (avctx->dct_algo == FF_DCT_AUTO || |
315 avctx->dct_algo == FF_DCT_ALTIVEC) | 320 avctx->dct_algo == FF_DCT_ALTIVEC) |
316 { | 321 { |
317 c->fdct = fdct_altivec; | 322 c->fdct = fdct_altivec; |