diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2018-09-24 16:16:04 +0300 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2018-09-24 19:10:07 +0300 |
commit | d18bd0d7a090109af552db32e23a607b8b63e8b7 (patch) | |
tree | 89b55fa3931021240769bf668b406997bd37e0e0 /include | |
parent | 8a015fd0f546734f42e7ac8a1046bcef4a712964 (diff) |
Fix stride in ac buffer from 32 to width in padding.
Fixes mismatch in issue #14.
Diffstat (limited to 'include')
-rw-r--r-- | include/common/dump.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/common/dump.h b/include/common/dump.h index a73824f..e76fe1f 100644 --- a/include/common/dump.h +++ b/include/common/dump.h @@ -72,4 +72,15 @@ static inline void coef_dump(const coef *buf, const int w, const int h, } } +static inline void ac_dump(const int16_t *buf, int w, int h, const char *what) +{ + printf("%s\n", what); + while (h--) { + for (int x = 0; x < w; x++) + printf(" %03d", buf[x]); + buf += w; + printf("\n"); + } +} + #endif /* __DAV1D_COMMON_DUMP_H__ */ |