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

Side by Side Diff: modules/video_coding/codecs/test/videoprocessor.h

Issue 3014623002: Adding test for SingleNalUnit mode (Closed)
Patch Set: Added codec_globals_headers to deps of video_codecs_test_framework Created 3 years, 2 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
11 #ifndef MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 11 #ifndef MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
12 #define MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 12 #define MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
13 13
14 #include <map> 14 #include <map>
15 #include <memory> 15 #include <memory>
16 #include <string> 16 #include <string>
17 #include <vector> 17 #include <vector>
18 18
19 #include "api/video/video_frame.h" 19 #include "api/video/video_frame.h"
20 #include "common_video/libyuv/include/webrtc_libyuv.h" 20 #include "common_video/libyuv/include/webrtc_libyuv.h"
21 #include "modules/video_coding/codecs/h264/include/h264_globals.h"
21 #include "modules/video_coding/codecs/test/packet_manipulator.h" 22 #include "modules/video_coding/codecs/test/packet_manipulator.h"
22 #include "modules/video_coding/codecs/test/stats.h" 23 #include "modules/video_coding/codecs/test/stats.h"
23 #include "modules/video_coding/include/video_codec_interface.h" 24 #include "modules/video_coding/include/video_codec_interface.h"
24 #include "modules/video_coding/utility/ivf_file_writer.h" 25 #include "modules/video_coding/utility/ivf_file_writer.h"
25 #include "modules/video_coding/utility/vp8_header_parser.h" 26 #include "modules/video_coding/utility/vp8_header_parser.h"
26 #include "modules/video_coding/utility/vp9_uncompressed_header_parser.h" 27 #include "modules/video_coding/utility/vp9_uncompressed_header_parser.h"
27 #include "rtc_base/buffer.h" 28 #include "rtc_base/buffer.h"
28 #include "rtc_base/checks.h" 29 #include "rtc_base/checks.h"
29 #include "rtc_base/constructormagic.h" 30 #include "rtc_base/constructormagic.h"
30 #include "rtc_base/sequenced_task_checker.h" 31 #include "rtc_base/sequenced_task_checker.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // If printing of information to stdout shall be performed during processing. 94 // If printing of information to stdout shall be performed during processing.
94 bool verbose = true; 95 bool verbose = true;
95 96
96 // Should hardware accelerated codecs be used? 97 // Should hardware accelerated codecs be used?
97 bool hw_encoder = false; 98 bool hw_encoder = false;
98 bool hw_decoder = false; 99 bool hw_decoder = false;
99 100
100 // Should the hardware codecs be wrapped in software fallbacks? 101 // Should the hardware codecs be wrapped in software fallbacks?
101 bool sw_fallback_encoder = false; 102 bool sw_fallback_encoder = false;
102 bool sw_fallback_decoder = false; 103 bool sw_fallback_decoder = false;
104
105 // RTP H264 packetization mode.
106 H264PacketizationMode packetization_mode =
107 H264PacketizationMode::NonInterleaved;
103 }; 108 };
104 109
105 // Handles encoding/decoding of video using the VideoEncoder/VideoDecoder 110 // Handles encoding/decoding of video using the VideoEncoder/VideoDecoder
106 // interfaces. This is done in a sequential manner in order to be able to 111 // interfaces. This is done in a sequential manner in order to be able to
107 // measure times properly. 112 // measure times properly.
108 // The class processes a frame at the time for the configured input file. 113 // The class processes a frame at the time for the configured input file.
109 // It maintains state of where in the source input file the processing is at. 114 // It maintains state of where in the source input file the processing is at.
110 // 115 //
111 // Regarding packet loss: Note that keyframes are excluded (first or all 116 // Regarding packet loss: Note that keyframes are excluded (first or all
112 // depending on the ExcludeFrameTypes setting). This is because if key frames 117 // depending on the ExcludeFrameTypes setting). This is because if key frames
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 308
304 rtc::SequencedTaskChecker sequence_checker_; 309 rtc::SequencedTaskChecker sequence_checker_;
305 310
306 RTC_DISALLOW_COPY_AND_ASSIGN(VideoProcessor); 311 RTC_DISALLOW_COPY_AND_ASSIGN(VideoProcessor);
307 }; 312 };
308 313
309 } // namespace test 314 } // namespace test
310 } // namespace webrtc 315 } // namespace webrtc
311 316
312 #endif // MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 317 #endif // MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
OLDNEW
« no previous file with comments | « modules/video_coding/codecs/test/stats.h ('k') | modules/video_coding/codecs/test/videoprocessor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698