| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 VCMFrameBuffer* Back() const; | 69 VCMFrameBuffer* Back() const; |
| 70 int RecycleFramesUntilKeyFrame(FrameList::iterator* key_frame_it, | 70 int RecycleFramesUntilKeyFrame(FrameList::iterator* key_frame_it, |
| 71 UnorderedFrameList* free_frames); | 71 UnorderedFrameList* free_frames); |
| 72 void CleanUpOldOrEmptyFrames(VCMDecodingState* decoding_state, | 72 void CleanUpOldOrEmptyFrames(VCMDecodingState* decoding_state, |
| 73 UnorderedFrameList* free_frames); | 73 UnorderedFrameList* free_frames); |
| 74 void Reset(UnorderedFrameList* free_frames); | 74 void Reset(UnorderedFrameList* free_frames); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 class VCMJitterBuffer { | 77 class VCMJitterBuffer { |
| 78 public: | 78 public: |
| 79 VCMJitterBuffer(Clock* clock, | 79 VCMJitterBuffer(Clock* clock, rtc::scoped_ptr<EventWrapper> event); |
| 80 EventFactory* event_factory); | 80 |
| 81 ~VCMJitterBuffer(); | 81 ~VCMJitterBuffer(); |
| 82 | 82 |
| 83 // Initializes and starts jitter buffer. | 83 // Initializes and starts jitter buffer. |
| 84 void Start(); | 84 void Start(); |
| 85 | 85 |
| 86 // Signals all internal events and stops the jitter buffer. | 86 // Signals all internal events and stops the jitter buffer. |
| 87 void Stop(); | 87 void Stop(); |
| 88 | 88 |
| 89 // Returns true if the jitter buffer is running. | 89 // Returns true if the jitter buffer is running. |
| 90 bool Running() const; | 90 bool Running() const; |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 // Estimated rolling average of packets per frame | 354 // Estimated rolling average of packets per frame |
| 355 float average_packets_per_frame_; | 355 float average_packets_per_frame_; |
| 356 // average_packets_per_frame converges fast if we have fewer than this many | 356 // average_packets_per_frame converges fast if we have fewer than this many |
| 357 // frames. | 357 // frames. |
| 358 int frame_counter_; | 358 int frame_counter_; |
| 359 DISALLOW_COPY_AND_ASSIGN(VCMJitterBuffer); | 359 DISALLOW_COPY_AND_ASSIGN(VCMJitterBuffer); |
| 360 }; | 360 }; |
| 361 } // namespace webrtc | 361 } // namespace webrtc |
| 362 | 362 |
| 363 #endif // WEBRTC_MODULES_VIDEO_CODING_MAIN_SOURCE_JITTER_BUFFER_H_ | 363 #endif // WEBRTC_MODULES_VIDEO_CODING_MAIN_SOURCE_JITTER_BUFFER_H_ |
| OLD | NEW |