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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 CriticalSectionWrapper* crit_sect_; | 300 CriticalSectionWrapper* crit_sect_; |
301 // Event to signal when we have a frame ready for decoder. | 301 // Event to signal when we have a frame ready for decoder. |
302 rtc::scoped_ptr<EventWrapper> frame_event_; | 302 rtc::scoped_ptr<EventWrapper> frame_event_; |
303 // Number of allocated frames. | 303 // Number of allocated frames. |
304 int max_number_of_frames_; | 304 int max_number_of_frames_; |
305 UnorderedFrameList free_frames_ GUARDED_BY(crit_sect_); | 305 UnorderedFrameList free_frames_ GUARDED_BY(crit_sect_); |
306 FrameList decodable_frames_ GUARDED_BY(crit_sect_); | 306 FrameList decodable_frames_ GUARDED_BY(crit_sect_); |
307 FrameList incomplete_frames_ GUARDED_BY(crit_sect_); | 307 FrameList incomplete_frames_ GUARDED_BY(crit_sect_); |
308 VCMDecodingState last_decoded_state_ GUARDED_BY(crit_sect_); | 308 VCMDecodingState last_decoded_state_ GUARDED_BY(crit_sect_); |
309 bool first_packet_since_reset_; | 309 bool first_packet_since_reset_; |
| 310 // Contains last received frame's temporal information for non-flexible mode. |
| 311 GofInfoVP9 last_gof_; |
| 312 uint32_t last_gof_timestamp_; |
| 313 bool last_gof_valid_; |
310 | 314 |
311 // Statistics. | 315 // Statistics. |
312 VCMReceiveStatisticsCallback* stats_callback_ GUARDED_BY(crit_sect_); | 316 VCMReceiveStatisticsCallback* stats_callback_ GUARDED_BY(crit_sect_); |
313 // Frame counts for each type (key, delta, ...) | 317 // Frame counts for each type (key, delta, ...) |
314 FrameCounts receive_statistics_; | 318 FrameCounts receive_statistics_; |
315 // Latest calculated frame rates of incoming stream. | 319 // Latest calculated frame rates of incoming stream. |
316 unsigned int incoming_frame_rate_; | 320 unsigned int incoming_frame_rate_; |
317 unsigned int incoming_frame_count_; | 321 unsigned int incoming_frame_count_; |
318 int64_t time_last_incoming_frame_count_; | 322 int64_t time_last_incoming_frame_count_; |
319 unsigned int incoming_bit_count_; | 323 unsigned int incoming_bit_count_; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 // Estimated rolling average of packets per frame | 358 // Estimated rolling average of packets per frame |
355 float average_packets_per_frame_; | 359 float average_packets_per_frame_; |
356 // average_packets_per_frame converges fast if we have fewer than this many | 360 // average_packets_per_frame converges fast if we have fewer than this many |
357 // frames. | 361 // frames. |
358 int frame_counter_; | 362 int frame_counter_; |
359 DISALLOW_COPY_AND_ASSIGN(VCMJitterBuffer); | 363 DISALLOW_COPY_AND_ASSIGN(VCMJitterBuffer); |
360 }; | 364 }; |
361 } // namespace webrtc | 365 } // namespace webrtc |
362 | 366 |
363 #endif // WEBRTC_MODULES_VIDEO_CODING_MAIN_SOURCE_JITTER_BUFFER_H_ | 367 #endif // WEBRTC_MODULES_VIDEO_CODING_MAIN_SOURCE_JITTER_BUFFER_H_ |
OLD | NEW |