OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "remoting/codec/video_decoder_vpx.h" | 5 #include "remoting/codec/video_decoder_vpx.h" |
6 | 6 |
7 #include "media/base/video_frame.h" | 7 #include "media/base/video_frame.h" |
8 #include "remoting/codec/codec_test.h" | 8 #include "remoting/codec/codec_test.h" |
9 #include "remoting/codec/video_encoder_vpx.h" | 9 #include "remoting/codec/video_encoder_vpx.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 protected: | 38 protected: |
39 VideoDecoderVp8Test() { | 39 VideoDecoderVp8Test() { |
40 encoder_ = VideoEncoderVpx::CreateForVP8(); | 40 encoder_ = VideoEncoderVpx::CreateForVP8(); |
41 decoder_ = VideoDecoderVpx::CreateForVP8(); | 41 decoder_ = VideoDecoderVpx::CreateForVP8(); |
42 } | 42 } |
43 }; | 43 }; |
44 | 44 |
45 class VideoDecoderVp9Test : public VideoDecoderVpxTest { | 45 class VideoDecoderVp9Test : public VideoDecoderVpxTest { |
46 protected: | 46 protected: |
47 VideoDecoderVp9Test() { | 47 VideoDecoderVp9Test() { |
48 encoder_ = VideoEncoderVpx::CreateForVP9I420(); | 48 encoder_ = VideoEncoderVpx::CreateForVP9(); |
49 decoder_ = VideoDecoderVpx::CreateForVP9(); | 49 decoder_ = VideoDecoderVpx::CreateForVP9(); |
50 } | 50 } |
51 }; | 51 }; |
52 | 52 |
53 } // namespace | 53 } // namespace |
54 | 54 |
55 // | 55 // |
56 // Test the VP8 codec. | 56 // Test the VP8 codec. |
57 // | 57 // |
58 | 58 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 TEST_F(VideoDecoderVp9Test, GradientScaleDownOddToEven) { | 147 TEST_F(VideoDecoderVp9Test, GradientScaleDownOddToEven) { |
148 TestGradient(321, 241, 160, 120, 0.04, 0.02); | 148 TestGradient(321, 241, 160, 120, 0.04, 0.02); |
149 } | 149 } |
150 | 150 |
151 TEST_F(VideoDecoderVp9Test, GradientScaleDownOddToOdd) { | 151 TEST_F(VideoDecoderVp9Test, GradientScaleDownOddToOdd) { |
152 TestGradient(321, 241, 161, 121, 0.04, 0.02); | 152 TestGradient(321, 241, 161, 121, 0.04, 0.02); |
153 } | 153 } |
154 | 154 |
155 } // namespace remoting | 155 } // namespace remoting |
OLD | NEW |