OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/base/video_frame.h" | 5 #include "media/base/video_frame.h" |
6 #include "remoting/base/codec_test.h" | 6 #include "remoting/base/codec_test.h" |
7 #include "remoting/base/decoder_vp8.h" | 7 #include "remoting/base/decoder_vp8.h" |
8 #include "remoting/base/encoder_vp8.h" | 8 #include "remoting/base/encoder_vp8.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 } | 49 } |
50 | 50 |
51 TEST_F(DecoderVp8Test, GradientScaleUpOddToOdd) { | 51 TEST_F(DecoderVp8Test, GradientScaleUpOddToOdd) { |
52 TestGradient(321, 241, 641, 481, 0.04, 0.02); | 52 TestGradient(321, 241, 641, 481, 0.04, 0.02); |
53 } | 53 } |
54 | 54 |
55 TEST_F(DecoderVp8Test, GradientScaleDownEvenToEven) { | 55 TEST_F(DecoderVp8Test, GradientScaleDownEvenToEven) { |
56 TestGradient(320, 240, 160, 120, 0.04, 0.02); | 56 TestGradient(320, 240, 160, 120, 0.04, 0.02); |
57 } | 57 } |
58 | 58 |
59 // TODO(simonmorris): win_tsan and mac_valgrind catch leaks in this test. | 59 TEST_F(DecoderVp8Test, GradientScaleDownEvenToOdd) { |
60 // The maximum error is non-deterministic. The mean error is not too high, | 60 // The maximum error is non-deterministic. The mean error is not too high, |
61 // which suggests that the problem is restricted to a small area of the output | 61 // which suggests that the problem is restricted to a small area of the output |
62 // image. See crbug.com/139437. | 62 // image. See crbug.com/139437 and crbug.com/139633. |
63 TEST_F(DecoderVp8Test, DISABLED_GradientScaleDownEvenToOdd) { | |
64 TestGradient(320, 240, 161, 121, 1.0, 0.02); | 63 TestGradient(320, 240, 161, 121, 1.0, 0.02); |
65 } | 64 } |
66 | 65 |
67 TEST_F(DecoderVp8Test, GradientScaleDownOddToEven) { | 66 TEST_F(DecoderVp8Test, GradientScaleDownOddToEven) { |
68 TestGradient(321, 241, 160, 120, 0.04, 0.02); | 67 TestGradient(321, 241, 160, 120, 0.04, 0.02); |
69 } | 68 } |
70 | 69 |
71 TEST_F(DecoderVp8Test, GradientScaleDownOddToOdd) { | 70 TEST_F(DecoderVp8Test, GradientScaleDownOddToOdd) { |
72 TestGradient(321, 241, 161, 121, 0.04, 0.02); | 71 TestGradient(321, 241, 161, 121, 0.04, 0.02); |
73 } | 72 } |
74 | 73 |
75 } // namespace remoting | 74 } // namespace remoting |
OLD | NEW |