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 #ifndef REMOTING_CODEC_CODEC_TEST_H_ | 5 #ifndef REMOTING_CODEC_CODEC_TEST_H_ |
6 #define REMOTING_CODEC_CODEC_TEST_H_ | 6 #define REMOTING_CODEC_CODEC_TEST_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "media/base/video_frame.h" | 9 |
10 #include "media/video/capture/screen/screen_capture_data.h" | 10 namespace webrtc { |
| 11 class DesktopSize; |
| 12 } |
11 | 13 |
12 namespace remoting { | 14 namespace remoting { |
13 | 15 |
14 class VideoDecoder; | 16 class VideoDecoder; |
15 class VideoEncoder; | 17 class VideoEncoder; |
16 | 18 |
17 // Generate test data and test the encoder for a regular encoding sequence. | 19 // Generate test data and test the encoder for a regular encoding sequence. |
18 // This will test encoder test and the sequence of messages sent. | 20 // This will test encoder test and the sequence of messages sent. |
19 // | 21 // |
20 // If |strict| is set to true then this routine will make sure the updated | 22 // If |strict| is set to true then this routine will make sure the updated |
21 // rects match dirty rects. | 23 // rects match dirty rects. |
22 void TestVideoEncoder(VideoEncoder* encoder, bool strict); | 24 void TestVideoEncoder(VideoEncoder* encoder, bool strict); |
23 | 25 |
24 // Generate test data and test the encoder and decoder pair. | 26 // Generate test data and test the encoder and decoder pair. |
25 // | 27 // |
26 // If |strict| is set to true, this routine will make sure the updated rects | 28 // If |strict| is set to true, this routine will make sure the updated rects |
27 // are correct. | 29 // are correct. |
28 void TestVideoEncoderDecoder(VideoEncoder* encoder, | 30 void TestVideoEncoderDecoder(VideoEncoder* encoder, |
29 VideoDecoder* decoder, | 31 VideoDecoder* decoder, |
30 bool strict); | 32 bool strict); |
31 | 33 |
32 // Generate a frame containing a gradient, and test the encoder and decoder | 34 // Generate a frame containing a gradient, and test the encoder and decoder |
33 // pair. | 35 // pair. |
34 void TestVideoEncoderDecoderGradient(VideoEncoder* encoder, | 36 void TestVideoEncoderDecoderGradient(VideoEncoder* encoder, |
35 VideoDecoder* decoder, | 37 VideoDecoder* decoder, |
36 const SkISize& screen_size, | 38 const webrtc::DesktopSize& screen_size, |
37 const SkISize& view_size, | 39 const webrtc::DesktopSize& view_size, |
38 double max_error_limit, | 40 double max_error_limit, |
39 double mean_error_limit); | 41 double mean_error_limit); |
40 | 42 |
41 } // namespace remoting | 43 } // namespace remoting |
42 | 44 |
43 #endif // REMOTING_CODEC_CODEC_TEST_H_ | 45 #endif // REMOTING_CODEC_CODEC_TEST_H_ |
OLD | NEW |