Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2019-06-20 23:38:06 +0300
committerMartin Storsjö <martin@martin.st>2019-06-25 00:16:28 +0300
commitc950e7101bdf5f7117bfca816984a21e550509f0 (patch)
tree393edc2cfd70340ec063549a79c55a3f71ec2d31 /include/common
parent46980237595c3065f15106b0c3483cdd57fd3153 (diff)
checkasm: Add functions for printing pixel buffers
Diffstat (limited to 'include/common')
-rw-r--r--include/common/bitdepth.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/common/bitdepth.h b/include/common/bitdepth.h
index f13d8ca..1d608eb 100644
--- a/include/common/bitdepth.h
+++ b/include/common/bitdepth.h
@@ -40,6 +40,8 @@ typedef void coef;
#elif BITDEPTH == 8
typedef uint8_t pixel;
typedef int16_t coef;
+#define PIXEL_TYPE uint8_t
+#define COEF_TYPE int16_t
#define pixel_copy memcpy
#define pixel_set memset
#define iclip_pixel iclip_u8
@@ -54,6 +56,8 @@ typedef int16_t coef;
#elif BITDEPTH == 16
typedef uint16_t pixel;
typedef int32_t coef;
+#define PIXEL_TYPE uint16_t
+#define COEF_TYPE int32_t
#define pixel_copy(a, b, c) memcpy(a, b, (c) << 1)
static inline void pixel_set(pixel *const dst, const int val, const int num) {
for (int n = 0; n < num; n++)