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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 FrameWriter* frame_writer_; | 197 FrameWriter* frame_writer_; |
198 PacketManipulator* packet_manipulator_; | 198 PacketManipulator* packet_manipulator_; |
199 const TestConfig& config_; | 199 const TestConfig& config_; |
200 Stats* stats_; | 200 Stats* stats_; |
201 | 201 |
202 EncodedImageCallback* encode_callback_; | 202 EncodedImageCallback* encode_callback_; |
203 DecodedImageCallback* decode_callback_; | 203 DecodedImageCallback* decode_callback_; |
204 // Keep track of the last successful frame, since we need to write that | 204 // Keep track of the last successful frame, since we need to write that |
205 // when decoding fails: | 205 // when decoding fails: |
206 uint8_t* last_successful_frame_buffer_; | 206 uint8_t* last_successful_frame_buffer_; |
207 webrtc::VideoFrame source_frame_; | |
208 // To keep track of if we have excluded the first key frame from packet loss: | 207 // To keep track of if we have excluded the first key frame from packet loss: |
209 bool first_key_frame_has_been_excluded_; | 208 bool first_key_frame_has_been_excluded_; |
210 // To tell the decoder previous frame have been dropped due to packet loss: | 209 // To tell the decoder previous frame have been dropped due to packet loss: |
211 bool last_frame_missing_; | 210 bool last_frame_missing_; |
212 // If Init() has executed successfully. | 211 // If Init() has executed successfully. |
213 bool initialized_; | 212 bool initialized_; |
214 size_t encoded_frame_size_; | 213 size_t encoded_frame_size_; |
215 FrameType encoded_frame_type_; | 214 FrameType encoded_frame_type_; |
216 int prev_time_stamp_; | 215 int prev_time_stamp_; |
217 int num_dropped_frames_; | 216 int num_dropped_frames_; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 | 253 |
255 private: | 254 private: |
256 VideoProcessorImpl* video_processor_; | 255 VideoProcessorImpl* video_processor_; |
257 }; | 256 }; |
258 }; | 257 }; |
259 | 258 |
260 } // namespace test | 259 } // namespace test |
261 } // namespace webrtc | 260 } // namespace webrtc |
262 | 261 |
263 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ | 262 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ |
OLD | NEW |