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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/video_codec_test.cc

Issue 2622263002: Delete deprecated and transitional stuff related to video frame refactoring. (Closed)
Patch Set: Fix include order. Add dependency in api/video_codecs/BUILD.gn. Created 3 years, 7 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/media/engine/webrtcvideoframe.h ('k') | webrtc/modules/video_coding/generic_decoder.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 /* 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/modules/video_coding/codecs/test/video_codec_test.h" 11 #include "webrtc/modules/video_coding/codecs/test/video_codec_test.h"
12 12
13 #include "webrtc/api/video/i420_buffer.h"
13 #include "webrtc/modules/video_coding/include/video_error_codes.h" 14 #include "webrtc/modules/video_coding/include/video_error_codes.h"
14 #include "webrtc/test/frame_utils.h" 15 #include "webrtc/test/frame_utils.h"
15 #include "webrtc/test/testsupport/fileutils.h" 16 #include "webrtc/test/testsupport/fileutils.h"
16 17
17 static const int kEncodeTimeoutMs = 100; 18 static const int kEncodeTimeoutMs = 100;
18 static const int kDecodeTimeoutMs = 25; 19 static const int kDecodeTimeoutMs = 25;
19 // Set bitrate to get higher quality. 20 // Set bitrate to get higher quality.
20 static const int kStartBitrate = 300; 21 static const int kStartBitrate = 300;
21 static const int kTargetBitrate = 2000; 22 static const int kTargetBitrate = 2000;
22 static const int kMaxBitrate = 4000; 23 static const int kMaxBitrate = 4000;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 codec_inst.width = kWidth; 107 codec_inst.width = kWidth;
107 codec_inst.height = kHeight; 108 codec_inst.height = kHeight;
108 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, 109 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK,
109 encoder_->InitEncode(&codec_inst, 1 /* number of cores */, 110 encoder_->InitEncode(&codec_inst, 1 /* number of cores */,
110 0 /* max payload size (unused) */)); 111 0 /* max payload size (unused) */));
111 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, 112 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK,
112 decoder_->InitDecode(&codec_inst, 1 /* number of cores */)); 113 decoder_->InitDecode(&codec_inst, 1 /* number of cores */));
113 } 114 }
114 115
115 } // namespace webrtc 116 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvideoframe.h ('k') | webrtc/modules/video_coding/generic_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698