From 0fe2171b599c7fff258cb9ebd0537763f1ff0093 Mon Sep 17 00:00:00 2001 From: "stefan@webrtc.org" Date: Wed, 22 Feb 2012 11:21:18 +0000 Subject: [PATCH] Relax libyuv test threshold and upgrade to libyuv r182. BUG=http://code.google.com/p/webrtc/issues/detail?id=267 TEST= Review URL: https://webrtc-codereview.appspot.com/391018 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1742 4adac7df-926f-26a2-2b94-8c16560cd09d --- DEPS | 2 +- src/common_video/libyuv/libyuv_unittest.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DEPS b/DEPS index 4b9bf60dc..744d43838 100644 --- a/DEPS +++ b/DEPS @@ -72,7 +72,7 @@ deps = { # TODO(andrew): roll to 164 after fixing: # http://code.google.com/p/webrtc/issues/detail?id=267 "trunk/third_party/libyuv": - (Var("googlecode_url") % "libyuv") + "/trunk@121", + (Var("googlecode_url") % "libyuv") + "/trunk@182", # Used by tools/quality_tracking/dashboard and tools/python_charts "trunk/third_party/google-visualization-python": diff --git a/src/common_video/libyuv/libyuv_unittest.cc b/src/common_video/libyuv/libyuv_unittest.cc index 22d999ac2..07225ec8c 100644 --- a/src/common_video/libyuv/libyuv_unittest.cc +++ b/src/common_video/libyuv/libyuv_unittest.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. + * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source @@ -130,7 +130,7 @@ TEST_F(TestLibYuv, ConvertTest) { fwrite(res_i420_buffer, frame_length_, 1, output_file); psnr = I420PSNR(orig_buffer, res_i420_buffer, width_, height_); // Optimization Speed- quality trade-off => 45 dB only (platform dependant). - EXPECT_GT(ceil(psnr), 45); + EXPECT_GT(ceil(psnr), 44); j++; delete [] res_rgb_buffer2;