diff options
author | Boyuan Yang <byang@debian.org> | 2021-11-07 08:50:20 -0500 |
---|---|---|
committer | Boyuan Yang <byang@debian.org> | 2021-11-07 08:50:20 -0500 |
commit | 513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44 (patch) | |
tree | 249280ac94eb2b871de89cd1b166fff4ee00ab09 /tests/block_utils.cc | |
parent | 3c21ceac2f6a5adfab07d3d458880561543d0a31 (diff) | |
parent | 320ef65362608ee1148c299d8d5d7618af34e470 (diff) | |
download | libgav1-513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44.tar.gz libgav1-513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44.tar.bz2 libgav1-513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44.zip |
Update upstream source from tag 'upstream/0.17.0'
Update to upstream version '0.17.0'
with Debian dir 5b612b6a2d67788b0c85bac59e50edc1545bfd7e
Diffstat (limited to 'tests/block_utils.cc')
-rw-r--r-- | tests/block_utils.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/block_utils.cc b/tests/block_utils.cc index 96833a2..07337c4 100644 --- a/tests/block_utils.cc +++ b/tests/block_utils.cc @@ -23,6 +23,7 @@ namespace libgav1 { namespace test_utils { namespace { +#define LIBGAV1_DEBUG_FORMAT_CODE "x" template <typename Pixel> void PrintBlockDiff(const Pixel* block1, const Pixel* block2, int width, int height, int stride1, int stride2, @@ -35,15 +36,17 @@ void PrintBlockDiff(const Pixel* block1, const Pixel* block2, int width, for (int x = 0; x < print_width; ++x) { if (x >= width) { if (block1[x] == block2[x]) { - printf("[%*d] ", field_width, block1[x]); + printf("[%*" LIBGAV1_DEBUG_FORMAT_CODE "] ", field_width, block1[x]); } else { - printf("[*%*d] ", field_width - 1, block1[x]); + printf("[*%*" LIBGAV1_DEBUG_FORMAT_CODE "] ", field_width - 1, + block1[x]); } } else { if (block1[x] == block2[x]) { - printf("%*d ", field_width, block1[x]); + printf("%*" LIBGAV1_DEBUG_FORMAT_CODE " ", field_width, block1[x]); } else { - printf("*%*d ", field_width - 1, block1[x]); + printf("*%*" LIBGAV1_DEBUG_FORMAT_CODE " ", field_width - 1, + block1[x]); } } } @@ -52,6 +55,7 @@ void PrintBlockDiff(const Pixel* block1, const Pixel* block2, int width, block2 += stride2; } } +#undef LIBGAV1_DEBUG_FORMAT_CODE } // namespace |