| 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_; |
| 207 // To keep track of if we have excluded the first key frame from packet loss: | 208 // To keep track of if we have excluded the first key frame from packet loss: |
| 208 bool first_key_frame_has_been_excluded_; | 209 bool first_key_frame_has_been_excluded_; |
| 209 // To tell the decoder previous frame have been dropped due to packet loss: | 210 // To tell the decoder previous frame have been dropped due to packet loss: |
| 210 bool last_frame_missing_; | 211 bool last_frame_missing_; |
| 211 // If Init() has executed successfully. | 212 // If Init() has executed successfully. |
| 212 bool initialized_; | 213 bool initialized_; |
| 213 size_t encoded_frame_size_; | 214 size_t encoded_frame_size_; |
| 214 FrameType encoded_frame_type_; | 215 FrameType encoded_frame_type_; |
| 215 int prev_time_stamp_; | 216 int prev_time_stamp_; |
| 216 int num_dropped_frames_; | 217 int num_dropped_frames_; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 | 254 |
| 254 private: | 255 private: |
| 255 VideoProcessorImpl* video_processor_; | 256 VideoProcessorImpl* video_processor_; |
| 256 }; | 257 }; |
| 257 }; | 258 }; |
| 258 | 259 |
| 259 } // namespace test | 260 } // namespace test |
| 260 } // namespace webrtc | 261 } // namespace webrtc |
| 261 | 262 |
| 262 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ | 263 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ |
| OLD | NEW |