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

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

Issue 10833022: [Chromoting] Add a unit test to verify that the VP8 codec doesn't change color values too much. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Calculate errors using squares instead of abs. Created 8 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/base/codec_test.cc » ('j') | remoting/base/codec_test.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BASE_CODEC_TEST_H_ 5 #ifndef REMOTING_BASE_CODEC_TEST_H_
6 #define REMOTING_BASE_CODEC_TEST_H_ 6 #define REMOTING_BASE_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"
(...skipping 14 matching lines...) Expand all
25 // If |strict| is set to true then this routine will make sure the updated 25 // If |strict| is set to true then this routine will make sure the updated
26 // rects match dirty rects. 26 // rects match dirty rects.
27 void TestEncoder(Encoder* encoder, bool strict); 27 void TestEncoder(Encoder* encoder, bool strict);
28 28
29 // Generate test data and test the encoder and decoder pair. 29 // Generate test data and test the encoder and decoder pair.
30 // 30 //
31 // If |strict| is set to true, this routine will make sure the updated rects 31 // If |strict| is set to true, this routine will make sure the updated rects
32 // are correct. 32 // are correct.
33 void TestEncoderDecoder(Encoder* encoder, Decoder* decoder, bool strict); 33 void TestEncoderDecoder(Encoder* encoder, Decoder* decoder, bool strict);
34 34
35 // Generate a frame containing a gradient, and test the encoder and decoder
36 // pair.
37 void TestEncoderDecoderGradient(Encoder* encoder, Decoder* decoder,
38 double max_error_limit,
39 double mean_error_limit);
40
35 } // namespace remoting 41 } // namespace remoting
36 42
37 #endif // REMOTING_BASE_CODEC_TEST_H_ 43 #endif // REMOTING_BASE_CODEC_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/base/codec_test.cc » ('j') | remoting/base/codec_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698