| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef VP9_COMMON_VP9_IDCT_H_ | 11 #ifndef VP9_COMMON_VP9_IDCT_H_ |
| 12 #define VP9_COMMON_VP9_IDCT_H_ | 12 #define VP9_COMMON_VP9_IDCT_H_ |
| 13 | 13 |
| 14 #include <assert.h> | 14 #include <assert.h> |
| 15 | 15 |
| 16 #include "./vpx_config.h" | 16 #include "./vpx_config.h" |
| 17 #include "vpx_ports/mem.h" |
| 17 #include "vp9/common/vp9_common.h" | 18 #include "vp9/common/vp9_common.h" |
| 18 #include "vp9/common/vp9_enums.h" | 19 #include "vp9/common/vp9_enums.h" |
| 19 | 20 |
| 20 #ifdef __cplusplus | 21 #ifdef __cplusplus |
| 21 extern "C" { | 22 extern "C" { |
| 22 #endif | 23 #endif |
| 23 | 24 |
| 24 // Constants and Macros used by all idct/dct functions | 25 // Constants and Macros used by all idct/dct functions |
| 25 #define DCT_CONST_BITS 14 | 26 #define DCT_CONST_BITS 14 |
| 26 #define DCT_CONST_ROUNDING (1 << (DCT_CONST_BITS - 1)) | 27 #define DCT_CONST_ROUNDING (1 << (DCT_CONST_BITS - 1)) |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 int bd) { | 203 int bd) { |
| 203 trans = WRAPLOW(trans, bd); | 204 trans = WRAPLOW(trans, bd); |
| 204 return clip_pixel_highbd(WRAPLOW(dest + trans, bd), bd); | 205 return clip_pixel_highbd(WRAPLOW(dest + trans, bd), bd); |
| 205 } | 206 } |
| 206 #endif // CONFIG_VP9_HIGHBITDEPTH | 207 #endif // CONFIG_VP9_HIGHBITDEPTH |
| 207 #ifdef __cplusplus | 208 #ifdef __cplusplus |
| 208 } // extern "C" | 209 } // extern "C" |
| 209 #endif | 210 #endif |
| 210 | 211 |
| 211 #endif // VP9_COMMON_VP9_IDCT_H_ | 212 #endif // VP9_COMMON_VP9_IDCT_H_ |
| OLD | NEW |