]> granicus.if.org Git - libvpx/commitdiff
Add operator<< to a struct in yuv_temporal_filter_test.cc
authorchiyotsai <chiyotsai@google.com>
Mon, 4 Feb 2019 22:18:59 +0000 (14:18 -0800)
committerchiyotsai <chiyotsai@google.com>
Mon, 4 Feb 2019 22:24:24 +0000 (14:24 -0800)
This should resolve valgrind's warning on aceessing uninitialized
values.

BUG=webm:1591

Change-Id: I678cadf448c12b598c9ea09490a7eb4e13e4118c

test/yuv_temporal_filter_test.cc

index e8d19672de55763fdd9a8cc92978128e53ca1083..9fb170bc359ddc2c95cb1aa646f816a352e8c84d 100644 (file)
@@ -38,6 +38,10 @@ struct TemporalFilterWithBd {
   int bd;
 };
 
+std::ostream &operator<<(std::ostream &os, const TemporalFilterWithBd &tf) {
+  return os << "Bitdepth: " << tf.bd;
+}
+
 int GetFilterWeight(unsigned int row, unsigned int col,
                     unsigned int block_height, unsigned int block_width,
                     const int *const blk_fw, int use_32x32) {