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

Side by Side 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, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/codec/codec_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(VideoEncoder* encoder,
51 const webrtc::DesktopSize& size);
52 float MeasureVideoEncoderFpsWithFrames(
53 VideoEncoder* encoder,
54 const std::list<webrtc::DesktopFrame*>& frames);
55
43 } // namespace remoting 56 } // namespace remoting
44 57
45 #endif // REMOTING_CODEC_CODEC_TEST_H_ 58 #endif // REMOTING_CODEC_CODEC_TEST_H_
OLDNEW
« 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