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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h

Issue 2993923002: Removing VCMCodecDataBase::Codec and VideoCodingModule::Codec. (Closed)
Patch Set: Remove deprate - let sprang handle when method is removed Created 3 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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
(...skipping 29 matching lines...) Expand all
40 #include "webrtc/rtc_base/checks.h" 40 #include "webrtc/rtc_base/checks.h"
41 #include "webrtc/rtc_base/file.h" 41 #include "webrtc/rtc_base/file.h"
42 #include "webrtc/rtc_base/logging.h" 42 #include "webrtc/rtc_base/logging.h"
43 #include "webrtc/rtc_base/ptr_util.h" 43 #include "webrtc/rtc_base/ptr_util.h"
44 #include "webrtc/test/gtest.h" 44 #include "webrtc/test/gtest.h"
45 #include "webrtc/test/testsupport/fileutils.h" 45 #include "webrtc/test/testsupport/fileutils.h"
46 #include "webrtc/test/testsupport/frame_reader.h" 46 #include "webrtc/test/testsupport/frame_reader.h"
47 #include "webrtc/test/testsupport/frame_writer.h" 47 #include "webrtc/test/testsupport/frame_writer.h"
48 #include "webrtc/test/testsupport/metrics/video_metrics.h" 48 #include "webrtc/test/testsupport/metrics/video_metrics.h"
49 #include "webrtc/test/testsupport/packet_reader.h" 49 #include "webrtc/test/testsupport/packet_reader.h"
50 #include "webrtc/test/video_codec_settings.h"
50 #include "webrtc/typedefs.h" 51 #include "webrtc/typedefs.h"
51 52
52 namespace webrtc { 53 namespace webrtc {
53 namespace test { 54 namespace test {
54 // Maximum number of rate updates (i.e., calls to encoder to change bitrate 55 // Maximum number of rate updates (i.e., calls to encoder to change bitrate
55 // and/or frame rate) for the current tests. 56 // and/or frame rate) for the current tests.
56 const int kMaxNumRateUpdates = 3; 57 const int kMaxNumRateUpdates = 3;
57 58
58 // Maximum number of temporal layers to use in tests. 59 // Maximum number of temporal layers to use in tests.
59 const int kMaxNumTemporalLayers = 3; 60 const int kMaxNumTemporalLayers = 3;
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 static void SetCodecSettings(test::TestConfig* config, 628 static void SetCodecSettings(test::TestConfig* config,
628 VideoCodecType codec_type, 629 VideoCodecType codec_type,
629 int num_temporal_layers, 630 int num_temporal_layers,
630 bool error_concealment_on, 631 bool error_concealment_on,
631 bool denoising_on, 632 bool denoising_on,
632 bool frame_dropper_on, 633 bool frame_dropper_on,
633 bool spatial_resize_on, 634 bool spatial_resize_on,
634 bool resilience_on, 635 bool resilience_on,
635 int width, 636 int width,
636 int height) { 637 int height) {
637 VideoCodingModule::Codec(codec_type, &config->codec_settings); 638 webrtc::test::CodecSettings(codec_type, &config->codec_settings);
638 config->codec_settings.width = width; 639 config->codec_settings.width = width;
639 config->codec_settings.height = height; 640 config->codec_settings.height = height;
640 switch (config->codec_settings.codecType) { 641 switch (config->codec_settings.codecType) {
641 case kVideoCodecH264: 642 case kVideoCodecH264:
642 config->codec_settings.H264()->frameDroppingOn = frame_dropper_on; 643 config->codec_settings.H264()->frameDroppingOn = frame_dropper_on;
643 config->codec_settings.H264()->keyFrameInterval = kBaseKeyFrameInterval; 644 config->codec_settings.H264()->keyFrameInterval = kBaseKeyFrameInterval;
644 break; 645 break;
645 case kVideoCodecVP8: 646 case kVideoCodecVP8:
646 config->codec_settings.VP8()->errorConcealmentOn = error_concealment_on; 647 config->codec_settings.VP8()->errorConcealmentOn = error_concealment_on;
647 config->codec_settings.VP8()->denoisingOn = denoising_on; 648 config->codec_settings.VP8()->denoisingOn = denoising_on;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 int start_frame_rate_; 749 int start_frame_rate_;
749 750
750 // Codec and network settings. 751 // Codec and network settings.
751 int num_temporal_layers_; 752 int num_temporal_layers_;
752 }; 753 };
753 754
754 } // namespace test 755 } // namespace test
755 } // namespace webrtc 756 } // namespace webrtc
756 757
757 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_INTEGRATIONTES T_H_ 758 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_INTEGRATIONTES T_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codec_database.cc ('k') | webrtc/modules/video_coding/codecs/test/videoprocessor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698