summaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/constants.h
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2015-10-12 19:37:44 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-10-13 01:10:34 +0200
commite9a68b0316ab127098ac4c24a6762ce68980bd23 (patch)
treec981ce654068e58b938e134e3557ff57e6b0eca4 /libavcodec/x86/constants.h
parent93e6b23c9f489c1e0745769ae2ba00469f7cfb91 (diff)
downloadffmpeg-streaming-e9a68b0316ab127098ac4c24a6762ce68980bd23.zip
ffmpeg-streaming-e9a68b0316ab127098ac4c24a6762ce68980bd23.tar.gz
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 <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/x86/constants.h')
-rw-r--r--libavcodec/x86/constants.h16
1 files changed, 16 insertions, 0 deletions
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 */
OpenPOWER on IntegriCloud