|
|
@ -29,6 +29,11 @@ void ff_clear_block_avx(int16_t *block); |
|
|
|
void ff_clear_blocks_sse(int16_t *blocks); |
|
|
|
void ff_clear_blocks_sse(int16_t *blocks); |
|
|
|
void ff_clear_blocks_avx(int16_t *blocks); |
|
|
|
void ff_clear_blocks_avx(int16_t *blocks); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ff_fill_block_tab_16_sse2(uint8_t *block, uint8_t value, ptrdiff_t line_size, int h); |
|
|
|
|
|
|
|
void ff_fill_block_tab_8_sse2(uint8_t *block, uint8_t value, ptrdiff_t line_size, int h); |
|
|
|
|
|
|
|
void ff_fill_block_tab_16_avx2(uint8_t *block, uint8_t value, ptrdiff_t line_size, int h); |
|
|
|
|
|
|
|
void ff_fill_block_tab_8_avx2(uint8_t *block, uint8_t value, ptrdiff_t line_size, int h); |
|
|
|
|
|
|
|
|
|
|
|
av_cold void ff_blockdsp_init_x86(BlockDSPContext *c) |
|
|
|
av_cold void ff_blockdsp_init_x86(BlockDSPContext *c) |
|
|
|
{ |
|
|
|
{ |
|
|
|
#if HAVE_X86ASM |
|
|
|
#if HAVE_X86ASM |
|
|
@ -38,9 +43,17 @@ av_cold void ff_blockdsp_init_x86(BlockDSPContext *c) |
|
|
|
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; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (EXTERNAL_SSE2(cpu_flags)) { |
|
|
|
|
|
|
|
c->fill_block_tab[0] = ff_fill_block_tab_16_sse2; |
|
|
|
|
|
|
|
c->fill_block_tab[1] = ff_fill_block_tab_8_sse2; |
|
|
|
|
|
|
|
} |
|
|
|
if (EXTERNAL_AVX_FAST(cpu_flags)) { |
|
|
|
if (EXTERNAL_AVX_FAST(cpu_flags)) { |
|
|
|
c->clear_block = ff_clear_block_avx; |
|
|
|
c->clear_block = ff_clear_block_avx; |
|
|
|
c->clear_blocks = ff_clear_blocks_avx; |
|
|
|
c->clear_blocks = ff_clear_blocks_avx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (EXTERNAL_AVX2(cpu_flags)) { |
|
|
|
|
|
|
|
c->fill_block_tab[0] = ff_fill_block_tab_16_avx2; |
|
|
|
|
|
|
|
c->fill_block_tab[1] = ff_fill_block_tab_8_avx2; |
|
|
|
|
|
|
|
} |
|
|
|
#endif /* HAVE_X86ASM */ |
|
|
|
#endif /* HAVE_X86ASM */ |
|
|
|
} |
|
|
|
} |
|
|
|