| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 protected: | 85 protected: |
| 86 virtual ~VCMSendStatisticsCallback() {} | 86 virtual ~VCMSendStatisticsCallback() {} |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 // Callback class used for informing the user of the incoming bit rate and frame | 89 // Callback class used for informing the user of the incoming bit rate and frame |
| 90 // rate. | 90 // rate. |
| 91 class VCMReceiveStatisticsCallback { | 91 class VCMReceiveStatisticsCallback { |
| 92 public: | 92 public: |
| 93 virtual void OnReceiveRatesUpdated(uint32_t bitRate, uint32_t frameRate) = 0; | 93 virtual void OnReceiveRatesUpdated(uint32_t bitRate, uint32_t frameRate) = 0; |
| 94 virtual void OnCompleteFrame(bool is_keyframe, size_t size_bytes) = 0; |
| 94 virtual void OnDiscardedPacketsUpdated(int discarded_packets) = 0; | 95 virtual void OnDiscardedPacketsUpdated(int discarded_packets) = 0; |
| 95 virtual void OnFrameCountsUpdated(const FrameCounts& frame_counts) = 0; | 96 virtual void OnFrameCountsUpdated(const FrameCounts& frame_counts) = 0; |
| 97 virtual void OnFrameBufferTimingsUpdated(int decode_ms, |
| 98 int max_decode_ms, |
| 99 int current_delay_ms, |
| 100 int target_delay_ms, |
| 101 int jitter_buffer_ms, |
| 102 int min_playout_delay_ms, |
| 103 int render_delay_ms) = 0; |
| 96 | 104 |
| 97 protected: | 105 protected: |
| 98 virtual ~VCMReceiveStatisticsCallback() {} | 106 virtual ~VCMReceiveStatisticsCallback() {} |
| 99 }; | 107 }; |
| 100 | 108 |
| 101 // Callback class used for informing the user of decode timing info. | 109 // Callback class used for informing the user of decode timing info. |
| 102 class VCMDecoderTimingCallback { | 110 class VCMDecoderTimingCallback { |
| 103 public: | 111 public: |
| 104 virtual void OnDecoderTiming(int decode_ms, | 112 virtual void OnDecoderTiming(int decode_ms, |
| 105 int max_decode_ms, | 113 int max_decode_ms, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 public: | 175 public: |
| 168 virtual void RequestKeyFrame() = 0; | 176 virtual void RequestKeyFrame() = 0; |
| 169 | 177 |
| 170 protected: | 178 protected: |
| 171 virtual ~KeyFrameRequestSender() {} | 179 virtual ~KeyFrameRequestSender() {} |
| 172 }; | 180 }; |
| 173 | 181 |
| 174 } // namespace webrtc | 182 } // namespace webrtc |
| 175 | 183 |
| 176 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ | 184 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ |
| OLD | NEW |