Chromium Code Reviews| 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 <list> | |
| 9 | |
| 8 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 9 | 11 |
| 10 namespace webrtc { | 12 namespace webrtc { |
| 13 class DesktopFrame; | |
| 11 class DesktopSize; | 14 class DesktopSize; |
| 12 } | 15 } |
| 13 | 16 |
| 14 namespace remoting { | 17 namespace remoting { |
| 15 | 18 |
| 16 class VideoDecoder; | 19 class VideoDecoder; |
| 17 class VideoEncoder; | 20 class VideoEncoder; |
| 18 | 21 |
| 19 // Generate test data and test the encoder for a regular encoding sequence. | 22 // Generate test data and test the encoder for a regular encoding sequence. |
| 20 // This will test encoder test and the sequence of messages sent. | 23 // This will test encoder test and the sequence of messages sent. |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 33 | 36 |
| 34 // Generate a frame containing a gradient, and test the encoder and decoder | 37 // Generate a frame containing a gradient, and test the encoder and decoder |
| 35 // pair. | 38 // pair. |
| 36 void TestVideoEncoderDecoderGradient(VideoEncoder* encoder, | 39 void TestVideoEncoderDecoderGradient(VideoEncoder* encoder, |
| 37 VideoDecoder* decoder, | 40 VideoDecoder* decoder, |
| 38 const webrtc::DesktopSize& screen_size, | 41 const webrtc::DesktopSize& screen_size, |
| 39 const webrtc::DesktopSize& view_size, | 42 const webrtc::DesktopSize& view_size, |
| 40 double max_error_limit, | 43 double max_error_limit, |
| 41 double mean_error_limit); | 44 double mean_error_limit); |
| 42 | 45 |
| 46 // Run sufficient encoding iterations to measure the FPS of the specified | |
| 47 // encoder. The caller may supply one or more DesktopFrames to encode, which | |
| 48 // will be cycled through until timing is complete. If the caller does not | |
| 49 // supply any frames then a single full-frame of randomized pixels is used. | |
| 50 float MeasureVideoEncoderFpsWithSize( | |
| 51 VideoEncoder* encoder, const webrtc::DesktopSize& size); | |
|
Sergey Ulanov
2014/06/24 00:58:25
one argument per line please
Wez
2014/06/24 01:52:48
Done.
| |
| 52 float MeasureVideoEncoderFpsWithFrames( | |
| 53 VideoEncoder* encoder, const std::list<webrtc::DesktopFrame*>& frames); | |
| 54 | |
| 43 } // namespace remoting | 55 } // namespace remoting |
| 44 | 56 |
| 45 #endif // REMOTING_CODEC_CODEC_TEST_H_ | 57 #endif // REMOTING_CODEC_CODEC_TEST_H_ |
| OLD | NEW |