Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Unified Diff: remoting/codec/codec_test.h

Issue 349223007: Add manual tests to benchmark VP8 & VP9 encode performance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove exclusions for enable_remoting_host==0 Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/codec/codec_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/codec_test.h
diff --git a/remoting/codec/codec_test.h b/remoting/codec/codec_test.h
index e7e055f12dafcbb24e0ae93801c7a7b3fa16f7f0..9c9ec7bf83b20c5d8ab2c9e500964f7f1e9b7962 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,16 @@ 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);
+float MeasureVideoEncoderFpsWithFrames(
+ VideoEncoder* encoder,
+ const std::list<webrtc::DesktopFrame*>& frames);
+
} // namespace remoting
#endif // REMOTING_CODEC_CODEC_TEST_H_
« no previous file with comments | « no previous file | remoting/codec/codec_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698