]> granicus.if.org Git - libvpx/commitdiff
Moves transform type defines to vp9_common
authorDeb Mukherjee <debargha@google.com>
Tue, 30 Sep 2014 21:29:34 +0000 (14:29 -0700)
committerDeb Mukherjee <debargha@google.com>
Wed, 1 Oct 2014 02:44:17 +0000 (19:44 -0700)
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

vp9/common/vp9_common.h
vp9/common/vp9_idct.h
vp9/common/vp9_rtcd_defs.pl

index 8305e7fa67289d6e95aba9ff27c179101c5c8d1a..530d86f3476afeb86312c39a9dd0d4005cd9c460 100644 (file)
@@ -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
index 694be3cf94bf0991dc33ef473bcdb29fc54485f0..1d619824a575d6cfca12b22f01ac14feca38b258 100644 (file)
@@ -36,17 +36,6 @@ extern "C" {
 #define dual_set_epi16(a, b) \
   _mm_set_epi16(b, b, b, b, a, a, a, a)
 
-// 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
-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
-
 // Constants:
 //  for (int i = 1; i< 32; ++i)
 //    printf("static const int cospi_%d_64 = %.0f;\n", i,
index 0e95141aa9bcb08b4a3ed358b23ef6b3ee1797c9..838ec44d6103f42f1bbf317b91bb43c714405586 100644 (file)
@@ -5,8 +5,8 @@ print <<EOF
  */
 
 #include "vpx/vpx_integer.h"
+#include "vp9/common/vp9_common.h"
 #include "vp9/common/vp9_enums.h"
-#include "vp9/common/vp9_idct.h"
 
 struct macroblockd;