diff options
author | Deb Mukherjee <debargha@google.com> | 2014-09-30 14:29:34 -0700 |
---|---|---|
committer | Deb Mukherjee <debargha@google.com> | 2014-09-30 19:44:17 -0700 |
commit | 872b207b78f62c56e9ec2be5bbf1ef1c68f83099 (patch) | |
tree | 904a5388ef34b77afae5edaa3e7ca6542b878a29 /vp9/common/vp9_common.h | |
parent | c87f32c7fd1e6ecfc834171df12d7c05cf877a68 (diff) | |
download | libvpx-872b207b78f62c56e9ec2be5bbf1ef1c68f83099.tar libvpx-872b207b78f62c56e9ec2be5bbf1ef1c68f83099.tar.gz libvpx-872b207b78f62c56e9ec2be5bbf1ef1c68f83099.tar.bz2 libvpx-872b207b78f62c56e9ec2be5bbf1ef1c68f83099.zip |
Moves transform type defines to vp9_common
Moves transform type defines to vp9_common.h from vp9_idct.h
so that they can be included in vp9_rtcd_defs.pl safely.
Change-Id: Id5106227bee5934f7ce8b06f2eb9fa8a9a2e0ddb
Diffstat (limited to 'vp9/common/vp9_common.h')
-rw-r--r-- | vp9/common/vp9_common.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vp9/common/vp9_common.h b/vp9/common/vp9_common.h index 8305e7fa6..530d86f34 100644 --- a/vp9/common/vp9_common.h +++ b/vp9/common/vp9_common.h @@ -77,8 +77,22 @@ static INLINE uint16_t clip_pixel_high(int val, int bd) { } } +// Note: +// tran_low_t is the datatype used for final transform coefficients. +// tran_high_t is the datatype used for intermediate transform stages. +typedef int64_t tran_high_t; +typedef int32_t tran_low_t; + #define CONVERT_TO_SHORTPTR(x) ((uint16_t*)(((uintptr_t)x) << 1)) #define CONVERT_TO_BYTEPTR(x) ((uint8_t*)(((uintptr_t)x) >> 1 )) + +#else + +// Note: +// tran_low_t is the datatype used for final transform coefficients. +// tran_high_t is the datatype used for intermediate transform stages. +typedef int32_t tran_high_t; +typedef int16_t tran_low_t; #endif // CONFIG_VP9_HIGHBITDEPTH #if CONFIG_DEBUG |