From e9a68b0316ab127098ac4c24a6762ce68980bd23 Mon Sep 17 00:00:00 2001 From: Christophe Gisquet Date: Mon, 12 Oct 2015 19:37:44 +0200 Subject: x86: prores: templatize 10 bits simple_idct This should be reused for a generic simple_idct10 function. Requires a bit of trickery to declare common constants in C. Signed-off-by: Michael Niedermayer --- libavcodec/x86/constants.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'libavcodec/x86/constants.h') diff --git a/libavcodec/x86/constants.h b/libavcodec/x86/constants.h index ee8422e..3605b63 100644 --- a/libavcodec/x86/constants.h +++ b/libavcodec/x86/constants.h @@ -67,4 +67,20 @@ extern const ymm_reg ff_pd_16; extern const ymm_reg ff_pd_32; extern const ymm_reg ff_pd_65535; +# if ARCH_X86_64 +/* simple_idct10, used by prores and dnxhd */ +extern const xmm_reg ff_w4_plus_w2; +extern const xmm_reg ff_w4_min_w2; +extern const xmm_reg ff_w4_plus_w6; +extern const xmm_reg ff_w4_min_w6; +extern const xmm_reg ff_w1_plus_w3; +extern const xmm_reg ff_w3_min_w1; +extern const xmm_reg ff_w7_plus_w3; +extern const xmm_reg ff_w3_min_w7; +extern const xmm_reg ff_w1_plus_w5; +extern const xmm_reg ff_w5_min_w1; +extern const xmm_reg ff_w5_plus_w7; +extern const xmm_reg ff_w7_min_w5; +# endif + #endif /* AVCODEC_X86_CONSTANTS_H */ -- cgit v1.1