diff options
author | Dmitry Kovalev <dkovalev@google.com> | 2013-02-27 16:43:04 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@gerrit.golo.chromium.org> | 2013-02-27 16:43:04 -0800 |
commit | c6421433c84df13bfd7021118c7512e65916227e (patch) | |
tree | 3a9468f366b43f52cf0db855bb4b7a84ba6a06d1 /vp9/common/vp9_idct.h | |
parent | 889ce833903f5d5bc848d286507f723427e16554 (diff) | |
parent | 347f3a0aa8d0b047ef84bd65b4466fc96cc0f3a6 (diff) | |
download | libvpx-c6421433c84df13bfd7021118c7512e65916227e.tar libvpx-c6421433c84df13bfd7021118c7512e65916227e.tar.gz libvpx-c6421433c84df13bfd7021118c7512e65916227e.tar.bz2 libvpx-c6421433c84df13bfd7021118c7512e65916227e.zip |
Merge "Code cleanup." into experimental
Diffstat (limited to 'vp9/common/vp9_idct.h')
-rw-r--r-- | vp9/common/vp9_idct.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/vp9/common/vp9_idct.h b/vp9/common/vp9_idct.h index 3e0ee4b63..95028997b 100644 --- a/vp9/common/vp9_idct.h +++ b/vp9/common/vp9_idct.h @@ -8,8 +8,8 @@ * be found in the AUTHORS file in the root of the source tree. */ -#ifndef VP9_COMMON_VP9_IDCT_H -#define VP9_COMMON_VP9_IDCT_H +#ifndef VP9_COMMON_VP9_IDCT_H_ +#define VP9_COMMON_VP9_IDCT_H_ #include "./vpx_config.h" @@ -75,4 +75,17 @@ static INLINE int dct_32_round(int input) { return rv; } -#endif +typedef void (*transform_1d)(int16_t*, int16_t*); + +typedef struct { + transform_1d cols, rows; // vertical and horizontal +} transform_2d; + +#define ROUND_POWER_OF_TWO(value, n) (((value) + (1 << ((n) - 1))) >> (n)) + +/* If we don't want to use ROUND_POWER_OF_TWO macro +static INLINE int16_t round_power_of_two(int16_t value, int n) { + return (value + (1 << (n - 1))) >> n; +}*/ + +#endif // VP9_COMMON_VP9_IDCT_H_ |