Index: remoting/codec/codec_test.h |
diff --git a/remoting/codec/codec_test.h b/remoting/codec/codec_test.h |
index e7e055f12dafcbb24e0ae93801c7a7b3fa16f7f0..ff2fcf9d6d5e423c7f1f5e8e0bbf4c47b83c3bb2 100644 |
--- a/remoting/codec/codec_test.h |
+++ b/remoting/codec/codec_test.h |
@@ -5,9 +5,12 @@ |
#ifndef REMOTING_CODEC_CODEC_TEST_H_ |
#define REMOTING_CODEC_CODEC_TEST_H_ |
+#include <list> |
+ |
#include "base/memory/ref_counted.h" |
namespace webrtc { |
+class DesktopFrame; |
class DesktopSize; |
} |
@@ -40,6 +43,15 @@ void TestVideoEncoderDecoderGradient(VideoEncoder* encoder, |
double max_error_limit, |
double mean_error_limit); |
+// Run sufficient encoding iterations to measure the FPS of the specified |
+// encoder. The caller may supply one or more DesktopFrames to encode, which |
+// will be cycled through until timing is complete. If the caller does not |
+// supply any frames then a single full-frame of randomized pixels is used. |
+float MeasureVideoEncoderFpsWithSize( |
+ 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.
|
+float MeasureVideoEncoderFpsWithFrames( |
+ VideoEncoder* encoder, const std::list<webrtc::DesktopFrame*>& frames); |
+ |
} // namespace remoting |
#endif // REMOTING_CODEC_CODEC_TEST_H_ |