aboutsummaryrefslogtreecommitdiff
path: root/tests/block_utils.cc
diff options
context:
space:
mode:
authorBoyuan Yang <byang@debian.org>2022-07-14 15:56:59 -0400
committerBoyuan Yang <byang@debian.org>2022-07-14 15:56:59 -0400
commit1a2e17bd28a068714658551c8c355171ce15dfa0 (patch)
treedb9e739007016850ee355365874a20b07034ef2c /tests/block_utils.cc
parenta08da9600832caf817125edee2c3206fe24cd5cb (diff)
parentd4dbf19f6b0181ee78034bfe4caf189d1c016998 (diff)
downloadlibgav1-1a2e17bd28a068714658551c8c355171ce15dfa0.tar.gz
libgav1-1a2e17bd28a068714658551c8c355171ce15dfa0.tar.bz2
libgav1-1a2e17bd28a068714658551c8c355171ce15dfa0.zip
Update upstream source from tag 'upstream/0.18.0'
Update to upstream version '0.18.0' with Debian dir a69c1f7f3e7109393a3f9f5f1a2e7a5c3d3eda9f
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*/);