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

Side by Side Diff: remoting/codec/video_decoder_vp8_unittest.cc

Issue 13474013: Use libyuv for non-scaling RGB<->YUV conversions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Increase Gradient test thresholds. Created 7 years, 8 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 | « remoting/base/util.cc ('k') | remoting/remoting.gyp » ('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 #include "remoting/codec/video_decoder_vp8.h" 5 #include "remoting/codec/video_decoder_vp8.h"
6 6
7 #include "media/base/video_frame.h" 7 #include "media/base/video_frame.h"
8 #include "remoting/codec/codec_test.h" 8 #include "remoting/codec/codec_test.h"
9 #include "remoting/codec/video_encoder_vp8.h" 9 #include "remoting/codec/video_encoder_vp8.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 16 matching lines...) Expand all
27 }; 27 };
28 28
29 TEST_F(VideoDecoderVp8Test, VideoEncodeAndDecode) { 29 TEST_F(VideoDecoderVp8Test, VideoEncodeAndDecode) {
30 TestVideoEncoderDecoder(&encoder_, &decoder_, false); 30 TestVideoEncoderDecoder(&encoder_, &decoder_, false);
31 } 31 }
32 32
33 // Check that encoding and decoding a particular frame doesn't change the 33 // Check that encoding and decoding a particular frame doesn't change the
34 // frame too much. The frame used is a gradient, which does not contain sharp 34 // frame too much. The frame used is a gradient, which does not contain sharp
35 // transitions, so encoding lossiness should not be too high. 35 // transitions, so encoding lossiness should not be too high.
36 TEST_F(VideoDecoderVp8Test, Gradient) { 36 TEST_F(VideoDecoderVp8Test, Gradient) {
37 TestGradient(320, 240, 320, 240, 0.03, 0.01); 37 TestGradient(320, 240, 320, 240, 0.04, 0.02);
38 } 38 }
39 39
40 TEST_F(VideoDecoderVp8Test, GradientScaleUpEvenToEven) { 40 TEST_F(VideoDecoderVp8Test, GradientScaleUpEvenToEven) {
41 TestGradient(320, 240, 640, 480, 0.04, 0.02); 41 TestGradient(320, 240, 640, 480, 0.04, 0.02);
42 } 42 }
43 43
44 TEST_F(VideoDecoderVp8Test, GradientScaleUpEvenToOdd) { 44 TEST_F(VideoDecoderVp8Test, GradientScaleUpEvenToOdd) {
45 TestGradient(320, 240, 641, 481, 0.04, 0.02); 45 TestGradient(320, 240, 641, 481, 0.04, 0.02);
46 } 46 }
47 47
(...skipping 18 matching lines...) Expand all
66 66
67 TEST_F(VideoDecoderVp8Test, GradientScaleDownOddToEven) { 67 TEST_F(VideoDecoderVp8Test, GradientScaleDownOddToEven) {
68 TestGradient(321, 241, 160, 120, 0.04, 0.02); 68 TestGradient(321, 241, 160, 120, 0.04, 0.02);
69 } 69 }
70 70
71 TEST_F(VideoDecoderVp8Test, GradientScaleDownOddToOdd) { 71 TEST_F(VideoDecoderVp8Test, GradientScaleDownOddToOdd) {
72 TestGradient(321, 241, 161, 121, 0.04, 0.02); 72 TestGradient(321, 241, 161, 121, 0.04, 0.02);
73 } 73 }
74 74
75 } // namespace remoting 75 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/base/util.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698