|
|
@ -37,18 +37,18 @@ av_cold void ff_blockdsp_init_x86(BlockDSPContext *c, |
|
|
|
#if HAVE_YASM |
|
|
|
#if HAVE_YASM |
|
|
|
int cpu_flags = av_get_cpu_flags(); |
|
|
|
int cpu_flags = av_get_cpu_flags(); |
|
|
|
|
|
|
|
|
|
|
|
if (EXTERNAL_MMX(cpu_flags)) { |
|
|
|
if (EXTERNAL_MMX(cpu_flags)) { |
|
|
|
c->clear_block = ff_clear_block_mmx; |
|
|
|
c->clear_block = ff_clear_block_mmx; |
|
|
|
c->clear_blocks = ff_clear_blocks_mmx; |
|
|
|
c->clear_blocks = ff_clear_blocks_mmx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* XvMCCreateBlocks() may not allocate 16-byte aligned blocks */ |
|
|
|
/* XvMCCreateBlocks() may not allocate 16-byte aligned blocks */ |
|
|
|
if (CONFIG_XVMC && avctx->hwaccel && avctx->hwaccel->decode_mb) |
|
|
|
if (CONFIG_XVMC && avctx->hwaccel && avctx->hwaccel->decode_mb) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if (EXTERNAL_SSE(cpu_flags)) { |
|
|
|
if (EXTERNAL_SSE(cpu_flags)) { |
|
|
|
c->clear_block = ff_clear_block_sse; |
|
|
|
c->clear_block = ff_clear_block_sse; |
|
|
|
c->clear_blocks = ff_clear_blocks_sse; |
|
|
|
c->clear_blocks = ff_clear_blocks_sse; |
|
|
|
} |
|
|
|
} |
|
|
|
#endif /* HAVE_YASM */ |
|
|
|
#endif /* HAVE_YASM */ |
|
|
|
} |
|
|
|
} |
|
|
|