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

Side by Side Diff: remoting/codec/codec_test.h

Issue 10870071: Renamed Encoder -> VideoEncoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 3 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 "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "media/base/video_frame.h" 9 #include "media/base/video_frame.h"
10 #include "remoting/base/capture_data.h" 10 #include "remoting/base/capture_data.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 class VideoDecoder; 14 class VideoDecoder;
15 class Encoder; 15 class VideoEncoder;
16 16
17 // Generate test data and test the encoder for a regular encoding sequence. 17 // Generate test data and test the encoder for a regular encoding sequence.
18 // This will test encoder test and the sequence of messages sent. 18 // This will test encoder test and the sequence of messages sent.
19 // 19 //
20 // If |strict| is set to true then this routine will make sure the updated 20 // If |strict| is set to true then this routine will make sure the updated
21 // rects match dirty rects. 21 // rects match dirty rects.
22 void TestEncoder(Encoder* encoder, bool strict); 22 void TestVideoEncoder(VideoEncoder* encoder, bool strict);
23 23
24 // Generate test data and test the encoder and decoder pair. 24 // Generate test data and test the encoder and decoder pair.
25 // 25 //
26 // If |strict| is set to true, this routine will make sure the updated rects 26 // If |strict| is set to true, this routine will make sure the updated rects
27 // are correct. 27 // are correct.
28 void TestEncoderDecoder(Encoder* encoder, VideoDecoder* decoder, bool strict); 28 void TestVideoEncoderDecoder(VideoEncoder* encoder,
29 VideoDecoder* decoder,
30 bool strict);
29 31
30 // Generate a frame containing a gradient, and test the encoder and decoder 32 // Generate a frame containing a gradient, and test the encoder and decoder
31 // pair. 33 // pair.
32 void TestEncoderDecoderGradient(Encoder* encoder, VideoDecoder* decoder, 34 void TestVideoEncoderDecoderGradient(VideoEncoder* encoder,
33 const SkISize& screen_size, 35 VideoDecoder* decoder,
34 const SkISize& view_size, 36 const SkISize& screen_size,
35 double max_error_limit, 37 const SkISize& view_size,
36 double mean_error_limit); 38 double max_error_limit,
39 double mean_error_limit);
37 40
38 } // namespace remoting 41 } // namespace remoting
39 42
40 #endif // REMOTING_CODEC_CODEC_TEST_H_ 43 #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