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

Side by Side Diff: webrtc/modules/video_coding/video_codec_initializer_unittest.cc

Issue 2794033002: Revert of Move video_encoder.h and video_decoder.h to /api and create GN targets for them (Closed)
Patch Set: Created 3 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
« no previous file with comments | « webrtc/modules/video_coding/utility/quality_scaler.h ('k') | webrtc/pc/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/api/video_codecs/video_encoder.h"
12 #include "webrtc/common_video/include/video_bitrate_allocator.h" 11 #include "webrtc/common_video/include/video_bitrate_allocator.h"
13 #include "webrtc/common_types.h" 12 #include "webrtc/common_types.h"
14 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h" 13 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h"
15 #include "webrtc/modules/video_coding/include/video_codec_initializer.h" 14 #include "webrtc/modules/video_coding/include/video_codec_initializer.h"
16 #include "webrtc/test/gtest.h" 15 #include "webrtc/test/gtest.h"
16 #include "webrtc/video_encoder.h"
17 17
18 namespace webrtc { 18 namespace webrtc {
19 19
20 namespace { 20 namespace {
21 static const char* kVp8PayloadName = "VP8"; 21 static const char* kVp8PayloadName = "VP8";
22 static const int kVp8PayloadType = 100; 22 static const int kVp8PayloadType = 100;
23 static const int kDefaultWidth = 1280; 23 static const int kDefaultWidth = 1280;
24 static const int kDefaultHeight = 720; 24 static const int kDefaultHeight = 720;
25 static const int kDefaultFrameRate = 30; 25 static const int kDefaultFrameRate = 30;
26 static const uint32_t kDefaultMinBitrateBps = 60000; 26 static const uint32_t kDefaultMinBitrateBps = 60000;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 EXPECT_EQ(static_cast<uint32_t>(streams_[0].target_bitrate_bps), 208 EXPECT_EQ(static_cast<uint32_t>(streams_[0].target_bitrate_bps),
209 bitrate_allocation.GetSpatialLayerSum(0)); 209 bitrate_allocation.GetSpatialLayerSum(0));
210 EXPECT_EQ(static_cast<uint32_t>(streams_[1].max_bitrate_bps), 210 EXPECT_EQ(static_cast<uint32_t>(streams_[1].max_bitrate_bps),
211 bitrate_allocation.GetSpatialLayerSum(1)); 211 bitrate_allocation.GetSpatialLayerSum(1));
212 EXPECT_EQ(kHighScreenshareTl0Bps, bitrate_allocation.GetBitrate(1, 0)); 212 EXPECT_EQ(kHighScreenshareTl0Bps, bitrate_allocation.GetBitrate(1, 0));
213 EXPECT_EQ(kHighScreenshareTl1Bps - kHighScreenshareTl0Bps, 213 EXPECT_EQ(kHighScreenshareTl1Bps - kHighScreenshareTl0Bps,
214 bitrate_allocation.GetBitrate(1, 1)); 214 bitrate_allocation.GetBitrate(1, 1));
215 } 215 }
216 216
217 } // namespace webrtc 217 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/utility/quality_scaler.h ('k') | webrtc/pc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698