diff options
author | Martin Storsjö <martin@martin.st> | 2020-01-31 23:35:04 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2020-02-04 09:33:26 +0300 |
commit | a285204a5df0f5ec32aab326fd188c942160b356 (patch) | |
tree | 7bfd90b94024bc2d49dc2f802516e36802c463de /include | |
parent | 7eaa7c9fee35759829298f77e30870837eafe362 (diff) |
arm: mc: Prepare the init file for higher bitdepths
Diffstat (limited to 'include')
-rw-r--r-- | include/common/bitdepth.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common/bitdepth.h b/include/common/bitdepth.h index 66c8eaf..33b32d0 100644 --- a/include/common/bitdepth.h +++ b/include/common/bitdepth.h @@ -49,6 +49,7 @@ typedef int16_t coef; #define iclip_pixel iclip_u8 #define PIX_HEX_FMT "%02x" #define bitfn(x) x##_8bpc +#define BF(x, suffix) x##_8bpc_##suffix #define PXSTRIDE(x) (x) #define highbd_only(x) #define HIGHBD_DECL_SUFFIX /* nothing */ @@ -72,6 +73,7 @@ static inline void pixel_set(pixel *const dst, const int val, const int num) { #define HIGHBD_TAIL_SUFFIX , bitdepth_max #define bitdepth_from_max(bitdepth_max) (32 - clz(bitdepth_max)) #define bitfn(x) x##_16bpc +#define BF(x, suffix) x##_16bpc_##suffix static inline ptrdiff_t PXSTRIDE(const ptrdiff_t x) { assert(!(x & 1)); return x >> 1; |