diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-10-05 11:39:16 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-10-06 12:32:34 +0200 |
commit | d9dccc03890a976dba59d66ed3b5aceeaa33d14c (patch) | |
tree | b23aba7e4a9c7392dac61ebd1596cf144d377fc0 /libavcodec | |
parent | be630b1e08ebe8f766b1798accd6b8e5e096f5aa (diff) | |
download | ffmpeg-d9dccc03890a976dba59d66ed3b5aceeaa33d14c.tar.gz |
hevc: x86: Refactor IDCT macro declarations
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/x86/hevc_idct.asm | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/libavcodec/x86/hevc_idct.asm b/libavcodec/x86/hevc_idct.asm index d662aa90ba..71e4607dd7 100644 --- a/libavcodec/x86/hevc_idct.asm +++ b/libavcodec/x86/hevc_idct.asm @@ -74,34 +74,22 @@ cglobal hevc_idct_%1x%1_dc_%2, 1, 2, 1, coeff, tmp RET %endmacro -; 8-bit +%macro INIT_IDCT_DC 1 INIT_MMX mmxext -IDCT_DC_NL 4, 8 -IDCT_DC 8, 2, 8 +IDCT_DC_NL 4, %1 +IDCT_DC 8, 2, %1 INIT_XMM sse2 -IDCT_DC_NL 8, 8 -IDCT_DC 16, 4, 8 -IDCT_DC 32, 16, 8 +IDCT_DC_NL 8, %1 +IDCT_DC 16, 4, %1 +IDCT_DC 32, 16, %1 %if HAVE_AVX2_EXTERNAL INIT_YMM avx2 -IDCT_DC 16, 2, 8 -IDCT_DC 32, 8, 8 +IDCT_DC 16, 2, %1 +IDCT_DC 32, 8, %1 %endif ;HAVE_AVX2_EXTERNAL +%endmacro -; 10-bit -INIT_MMX mmxext -IDCT_DC_NL 4, 10 -IDCT_DC 8, 2, 10 - -INIT_XMM sse2 -IDCT_DC_NL 8, 10 -IDCT_DC 16, 4, 10 -IDCT_DC 32, 16, 10 - -%if HAVE_AVX2_EXTERNAL -INIT_YMM avx2 -IDCT_DC 16, 2, 10 -IDCT_DC 32, 8, 10 -%endif ;HAVE_AVX2_EXTERNAL +INIT_IDCT_DC 8 +INIT_IDCT_DC 10 |