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

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

Issue 304653002: Extend VideoControl to allow clients to request lossless modes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/codec/video_encoder.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_vpx.h" 5 #include "remoting/codec/video_decoder_vpx.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_vpx.h" 9 #include "remoting/codec/video_encoder_vpx.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 27 matching lines...) Expand all
38 protected: 38 protected:
39 VideoDecoderVp8Test() { 39 VideoDecoderVp8Test() {
40 encoder_ = VideoEncoderVpx::CreateForVP8(); 40 encoder_ = VideoEncoderVpx::CreateForVP8();
41 decoder_ = VideoDecoderVpx::CreateForVP8(); 41 decoder_ = VideoDecoderVpx::CreateForVP8();
42 } 42 }
43 }; 43 };
44 44
45 class VideoDecoderVp9Test : public VideoDecoderVpxTest { 45 class VideoDecoderVp9Test : public VideoDecoderVpxTest {
46 protected: 46 protected:
47 VideoDecoderVp9Test() { 47 VideoDecoderVp9Test() {
48 encoder_ = VideoEncoderVpx::CreateForVP9I420(); 48 encoder_ = VideoEncoderVpx::CreateForVP9();
49 decoder_ = VideoDecoderVpx::CreateForVP9(); 49 decoder_ = VideoDecoderVpx::CreateForVP9();
50 } 50 }
51 }; 51 };
52 52
53 } // namespace 53 } // namespace
54 54
55 // 55 //
56 // Test the VP8 codec. 56 // Test the VP8 codec.
57 // 57 //
58 58
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 TEST_F(VideoDecoderVp9Test, GradientScaleDownOddToEven) { 147 TEST_F(VideoDecoderVp9Test, GradientScaleDownOddToEven) {
148 TestGradient(321, 241, 160, 120, 0.04, 0.02); 148 TestGradient(321, 241, 160, 120, 0.04, 0.02);
149 } 149 }
150 150
151 TEST_F(VideoDecoderVp9Test, GradientScaleDownOddToOdd) { 151 TEST_F(VideoDecoderVp9Test, GradientScaleDownOddToOdd) {
152 TestGradient(321, 241, 161, 121, 0.04, 0.02); 152 TestGradient(321, 241, 161, 121, 0.04, 0.02);
153 } 153 }
154 154
155 } // namespace remoting 155 } // namespace remoting
OLDNEW
« no previous file with comments | « no previous file | remoting/codec/video_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698