From: chiyotsai Date: Mon, 4 Feb 2019 22:18:59 +0000 (-0800) Subject: Add operator<< to a struct in yuv_temporal_filter_test.cc X-Git-Tag: v1.8.1~263^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2020b170b8f7679d2f91ef92c998ab5a6d4643e4;p=platform%2Fupstream%2Flibvpx.git Add operator<< to a struct in yuv_temporal_filter_test.cc This should resolve valgrind's warning on aceessing uninitialized values. BUG=webm:1591 Change-Id: I678cadf448c12b598c9ea09490a7eb4e13e4118c --- diff --git a/test/yuv_temporal_filter_test.cc b/test/yuv_temporal_filter_test.cc index e8d1967..9fb170b 100644 --- a/test/yuv_temporal_filter_test.cc +++ b/test/yuv_temporal_filter_test.cc @@ -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) {