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

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

Issue 2362683002: New helper function test::ReadI420Buffer, refactor FrameReader to use it. (Closed)
Patch Set: Another try to fix the 64-bit windows build. Created 4 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
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 webrtc::VideoEncoder* encoder_; 192 webrtc::VideoEncoder* encoder_;
193 webrtc::VideoDecoder* decoder_; 193 webrtc::VideoDecoder* decoder_;
194 FrameReader* frame_reader_; 194 FrameReader* frame_reader_;
195 FrameWriter* frame_writer_; 195 FrameWriter* frame_writer_;
196 PacketManipulator* packet_manipulator_; 196 PacketManipulator* packet_manipulator_;
197 const TestConfig& config_; 197 const TestConfig& config_;
198 Stats* stats_; 198 Stats* stats_;
199 199
200 EncodedImageCallback* encode_callback_; 200 EncodedImageCallback* encode_callback_;
201 DecodedImageCallback* decode_callback_; 201 DecodedImageCallback* decode_callback_;
202 // Buffer used for reading the source video file:
203 uint8_t* source_buffer_;
204 // Keep track of the last successful frame, since we need to write that 202 // Keep track of the last successful frame, since we need to write that
205 // when decoding fails: 203 // when decoding fails:
206 uint8_t* last_successful_frame_buffer_; 204 uint8_t* last_successful_frame_buffer_;
207 webrtc::VideoFrame source_frame_; 205 webrtc::VideoFrame source_frame_;
208 // To keep track of if we have excluded the first key frame from packet loss: 206 // To keep track of if we have excluded the first key frame from packet loss:
209 bool first_key_frame_has_been_excluded_; 207 bool first_key_frame_has_been_excluded_;
210 // To tell the decoder previous frame have been dropped due to packet loss: 208 // To tell the decoder previous frame have been dropped due to packet loss:
211 bool last_frame_missing_; 209 bool last_frame_missing_;
212 // If Init() has executed successfully. 210 // If Init() has executed successfully.
213 bool initialized_; 211 bool initialized_;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 252
255 private: 253 private:
256 VideoProcessorImpl* video_processor_; 254 VideoProcessorImpl* video_processor_;
257 }; 255 };
258 }; 256 };
259 257
260 } // namespace test 258 } // namespace test
261 } // namespace webrtc 259 } // namespace webrtc
262 260
263 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 261 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
OLDNEW
« no previous file with comments | « webrtc/common_video/libyuv/libyuv_unittest.cc ('k') | webrtc/modules/video_coding/codecs/test/videoprocessor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698