OLD | NEW |
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 Loading... |
40 #include "webrtc/modules/video_coding/utility/ivf_file_writer.h" | 40 #include "webrtc/modules/video_coding/utility/ivf_file_writer.h" |
41 #include "webrtc/rtc_base/checks.h" | 41 #include "webrtc/rtc_base/checks.h" |
42 #include "webrtc/rtc_base/file.h" | 42 #include "webrtc/rtc_base/file.h" |
43 #include "webrtc/rtc_base/logging.h" | 43 #include "webrtc/rtc_base/logging.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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 VideoCodec* codec_settings, | 640 VideoCodec* codec_settings, |
640 VideoCodecType codec_type, | 641 VideoCodecType codec_type, |
641 int num_temporal_layers, | 642 int num_temporal_layers, |
642 bool error_concealment_on, | 643 bool error_concealment_on, |
643 bool denoising_on, | 644 bool denoising_on, |
644 bool frame_dropper_on, | 645 bool frame_dropper_on, |
645 bool spatial_resize_on, | 646 bool spatial_resize_on, |
646 bool resilience_on, | 647 bool resilience_on, |
647 int width, | 648 int width, |
648 int height) { | 649 int height) { |
649 VideoCodingModule::Codec(codec_type, codec_settings); | 650 webrtc::test::CodecSettings(codec_type, codec_settings); |
650 config->codec_settings = codec_settings; | 651 config->codec_settings = codec_settings; |
651 config->codec_settings->width = width; | 652 config->codec_settings->width = width; |
652 config->codec_settings->height = height; | 653 config->codec_settings->height = height; |
653 switch (config->codec_settings->codecType) { | 654 switch (config->codec_settings->codecType) { |
654 case kVideoCodecH264: | 655 case kVideoCodecH264: |
655 config->codec_settings->H264()->frameDroppingOn = frame_dropper_on; | 656 config->codec_settings->H264()->frameDroppingOn = frame_dropper_on; |
656 config->codec_settings->H264()->keyFrameInterval = | 657 config->codec_settings->H264()->keyFrameInterval = |
657 kBaseKeyFrameInterval; | 658 kBaseKeyFrameInterval; |
658 break; | 659 break; |
659 case kVideoCodecVP8: | 660 case kVideoCodecVP8: |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 int start_frame_rate_; | 764 int start_frame_rate_; |
764 | 765 |
765 // Codec and network settings. | 766 // Codec and network settings. |
766 int num_temporal_layers_; | 767 int num_temporal_layers_; |
767 }; | 768 }; |
768 | 769 |
769 } // namespace test | 770 } // namespace test |
770 } // namespace webrtc | 771 } // namespace webrtc |
771 | 772 |
772 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_INTEGRATIONTES
T_H_ | 773 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_INTEGRATIONTES
T_H_ |
OLD | NEW |