aboutsummaryrefslogtreecommitdiff
path: root/tests/block_utils.cc
diff options
context:
space:
mode:
authorBoyuan Yang <byang@debian.org>2022-07-14 15:56:57 -0400
committerBoyuan Yang <byang@debian.org>2022-07-14 15:56:57 -0400
commitd4dbf19f6b0181ee78034bfe4caf189d1c016998 (patch)
tree47d5d28d2ab770a10e6c48788725c51dffeb84a9 /tests/block_utils.cc
parent320ef65362608ee1148c299d8d5d7618af34e470 (diff)
downloadlibgav1-d4dbf19f6b0181ee78034bfe4caf189d1c016998.tar.gz
libgav1-d4dbf19f6b0181ee78034bfe4caf189d1c016998.tar.bz2
libgav1-d4dbf19f6b0181ee78034bfe4caf189d1c016998.zip
New upstream version 0.18.0
Diffstat (limited to 'tests/block_utils.cc')
-rw-r--r--tests/block_utils.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/block_utils.cc b/tests/block_utils.cc
index 07337c4..a68ae64 100644
--- a/tests/block_utils.cc
+++ b/tests/block_utils.cc
@@ -55,7 +55,6 @@ void PrintBlockDiff(const Pixel* block1, const Pixel* block2, int width,
block2 += stride2;
}
}
-#undef LIBGAV1_DEBUG_FORMAT_CODE
} // namespace
@@ -68,15 +67,16 @@ void PrintBlock(const Pixel* block, int width, int height, int stride,
printf("[%2d] ", y);
for (int x = 0; x < print_width; ++x) {
if (x >= width) {
- printf("[%*d] ", field_width, block[x]);
+ printf("[%*" LIBGAV1_DEBUG_FORMAT_CODE "] ", field_width, block[x]);
} else {
- printf("%*d ", field_width, block[x]);
+ printf("%*" LIBGAV1_DEBUG_FORMAT_CODE " ", field_width, block[x]);
}
}
printf("\n");
block += stride;
}
}
+#undef LIBGAV1_DEBUG_FORMAT_CODE
template void PrintBlock(const uint8_t* block, int width, int height,
int stride, bool print_padding /*= false*/);