|
|
|
@ -88,20 +88,19 @@ static void clear_blocks_sse(int16_t *blocks) |
|
|
|
|
#endif /* HAVE_INLINE_ASM */ |
|
|
|
|
|
|
|
|
|
#if FF_API_XVMC |
|
|
|
|
av_cold void ff_blockdsp_init_x86(BlockDSPContext *c, unsigned high_bit_depth, |
|
|
|
|
av_cold void ff_blockdsp_init_x86(BlockDSPContext *c, |
|
|
|
|
AVCodecContext *avctx) |
|
|
|
|
#else |
|
|
|
|
av_cold void ff_blockdsp_init_x86(BlockDSPContext *c, unsigned high_bit_depth) |
|
|
|
|
av_cold void ff_blockdsp_init_x86(BlockDSPContext *c) |
|
|
|
|
#endif /* FF_API_XVMC */ |
|
|
|
|
{ |
|
|
|
|
#if HAVE_INLINE_ASM |
|
|
|
|
int cpu_flags = av_get_cpu_flags(); |
|
|
|
|
|
|
|
|
|
if (!high_bit_depth) { |
|
|
|
|
if (INLINE_MMX(cpu_flags)) { |
|
|
|
|
c->clear_block = clear_block_mmx; |
|
|
|
|
c->clear_blocks = clear_blocks_mmx; |
|
|
|
|
} |
|
|
|
|
if (INLINE_MMX(cpu_flags)) { |
|
|
|
|
c->clear_block = clear_block_mmx; |
|
|
|
|
c->clear_blocks = clear_blocks_mmx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if FF_API_XVMC |
|
|
|
|
FF_DISABLE_DEPRECATION_WARNINGS |
|
|
|
@ -111,10 +110,9 @@ FF_DISABLE_DEPRECATION_WARNINGS |
|
|
|
|
FF_ENABLE_DEPRECATION_WARNINGS |
|
|
|
|
#endif /* FF_API_XVMC */ |
|
|
|
|
|
|
|
|
|
if (INLINE_SSE(cpu_flags)) { |
|
|
|
|
c->clear_block = clear_block_sse; |
|
|
|
|
c->clear_blocks = clear_blocks_sse; |
|
|
|
|
} |
|
|
|
|
if (INLINE_SSE(cpu_flags)) { |
|
|
|
|
c->clear_block = clear_block_sse; |
|
|
|
|
c->clear_blocks = clear_blocks_sse; |
|
|
|
|
} |
|
|
|
|
#endif /* HAVE_INLINE_ASM */ |
|
|
|
|
} |
|
|
|
|