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

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

Issue 2020593002: Refactor scaling. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Trivial rebase. Created 4 years, 6 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 WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
12 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 12 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
13 13
14 #include <string> 14 #include <string>
15 15
16 #include "webrtc/base/checks.h" 16 #include "webrtc/base/checks.h"
17 #include "webrtc/common_video/libyuv/include/scaler.h"
18 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" 17 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
19 #include "webrtc/modules/video_coding/include/video_codec_interface.h" 18 #include "webrtc/modules/video_coding/include/video_codec_interface.h"
20 #include "webrtc/modules/video_coding/codecs/test/packet_manipulator.h" 19 #include "webrtc/modules/video_coding/codecs/test/packet_manipulator.h"
21 #include "webrtc/modules/video_coding/codecs/test/stats.h" 20 #include "webrtc/modules/video_coding/codecs/test/stats.h"
22 #include "webrtc/test/testsupport/frame_reader.h" 21 #include "webrtc/test/testsupport/frame_reader.h"
23 #include "webrtc/test/testsupport/frame_writer.h" 22 #include "webrtc/test/testsupport/frame_writer.h"
24 #include "webrtc/video_frame.h" 23 #include "webrtc/video_frame.h"
25 24
26 namespace webrtc { 25 namespace webrtc {
27 namespace test { 26 namespace test {
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 bool last_frame_missing_; 211 bool last_frame_missing_;
213 // If Init() has executed successfully. 212 // If Init() has executed successfully.
214 bool initialized_; 213 bool initialized_;
215 size_t encoded_frame_size_; 214 size_t encoded_frame_size_;
216 FrameType encoded_frame_type_; 215 FrameType encoded_frame_type_;
217 int prev_time_stamp_; 216 int prev_time_stamp_;
218 int num_dropped_frames_; 217 int num_dropped_frames_;
219 int num_spatial_resizes_; 218 int num_spatial_resizes_;
220 int last_encoder_frame_width_; 219 int last_encoder_frame_width_;
221 int last_encoder_frame_height_; 220 int last_encoder_frame_height_;
222 Scaler scaler_;
223 221
224 // Statistics 222 // Statistics
225 double bit_rate_factor_; // multiply frame length with this to get bit rate 223 double bit_rate_factor_; // multiply frame length with this to get bit rate
226 int64_t encode_start_ns_; 224 int64_t encode_start_ns_;
227 int64_t decode_start_ns_; 225 int64_t decode_start_ns_;
228 226
229 // Callback class required to implement according to the VideoEncoder API. 227 // Callback class required to implement according to the VideoEncoder API.
230 class VideoProcessorEncodeCompleteCallback 228 class VideoProcessorEncodeCompleteCallback
231 : public webrtc::EncodedImageCallback { 229 : public webrtc::EncodedImageCallback {
232 public: 230 public:
(...skipping 23 matching lines...) Expand all
256 254
257 private: 255 private:
258 VideoProcessorImpl* video_processor_; 256 VideoProcessorImpl* video_processor_;
259 }; 257 };
260 }; 258 };
261 259
262 } // namespace test 260 } // namespace test
263 } // namespace webrtc 261 } // namespace webrtc
264 262
265 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 263 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698