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

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

Issue 2845333002: Revert of Delete deprecated and transitional stuff related to video frame refactoring. (Closed)
Patch Set: 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"
14 #include "webrtc/modules/video_coding/include/video_error_codes.h" 13 #include "webrtc/modules/video_coding/include/video_error_codes.h"
15 #include "webrtc/test/frame_utils.h" 14 #include "webrtc/test/frame_utils.h"
16 #include "webrtc/test/testsupport/fileutils.h" 15 #include "webrtc/test/testsupport/fileutils.h"
17 16
18 static const int kEncodeTimeoutMs = 100; 17 static const int kEncodeTimeoutMs = 100;
19 static const int kDecodeTimeoutMs = 25; 18 static const int kDecodeTimeoutMs = 25;
20 // Set bitrate to get higher quality. 19 // Set bitrate to get higher quality.
21 static const int kStartBitrate = 300; 20 static const int kStartBitrate = 300;
22 static const int kTargetBitrate = 2000; 21 static const int kTargetBitrate = 2000;
23 static const int kMaxBitrate = 4000; 22 static const int kMaxBitrate = 4000;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 codec_inst.width = kWidth; 106 codec_inst.width = kWidth;
108 codec_inst.height = kHeight; 107 codec_inst.height = kHeight;
109 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, 108 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK,
110 encoder_->InitEncode(&codec_inst, 1 /* number of cores */, 109 encoder_->InitEncode(&codec_inst, 1 /* number of cores */,
111 0 /* max payload size (unused) */)); 110 0 /* max payload size (unused) */));
112 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, 111 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK,
113 decoder_->InitDecode(&codec_inst, 1 /* number of cores */)); 112 decoder_->InitDecode(&codec_inst, 1 /* number of cores */));
114 } 113 }
115 114
116 } // namespace webrtc 115 } // 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