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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |