summaryrefslogtreecommitdiff
path: root/vpx
diff options
context:
space:
mode:
Diffstat (limited to 'vpx')
-rw-r--r--vpx/vpx_integer.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/vpx/vpx_integer.h b/vpx/vpx_integer.h
index ffeefb819..8eee303f4 100644
--- a/vpx/vpx_integer.h
+++ b/vpx/vpx_integer.h
@@ -63,4 +63,15 @@ typedef size_t uintptr_t;
#include <inttypes.h>
#endif
+// Note:
+// tran_low_t is the datatype used for final transform coefficients.
+// tran_high_t is the datatype used for intermediate transform stages.
+#if CONFIG_VP9_HIGHBITDEPTH && CONFIG_VP9
+typedef int64_t tran_high_t;
+typedef int32_t tran_low_t;
+#else
+typedef int32_t tran_high_t;
+typedef int16_t tran_low_t;
+#endif
+
#endif // VPX_VPX_INTEGER_H_