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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 virtual int ProtectionRequest(const FecProtectionParams* delta_params, | 119 virtual int ProtectionRequest(const FecProtectionParams* delta_params, |
120 const FecProtectionParams* key_params, | 120 const FecProtectionParams* key_params, |
121 uint32_t* sent_video_rate_bps, | 121 uint32_t* sent_video_rate_bps, |
122 uint32_t* sent_nack_rate_bps, | 122 uint32_t* sent_nack_rate_bps, |
123 uint32_t* sent_fec_rate_bps) = 0; | 123 uint32_t* sent_fec_rate_bps) = 0; |
124 | 124 |
125 protected: | 125 protected: |
126 virtual ~VCMProtectionCallback() {} | 126 virtual ~VCMProtectionCallback() {} |
127 }; | 127 }; |
128 | 128 |
129 class VideoEncoderRateObserver { | |
130 public: | |
131 virtual ~VideoEncoderRateObserver() {} | |
132 virtual void OnSetRates(uint32_t bitrate_bps, int framerate) = 0; | |
133 }; | |
134 | |
135 // Callback class used for telling the user about what frame type needed to | 129 // Callback class used for telling the user about what frame type needed to |
136 // continue decoding. | 130 // continue decoding. |
137 // Typically a key frame when the stream has been corrupted in some way. | 131 // Typically a key frame when the stream has been corrupted in some way. |
138 class VCMFrameTypeCallback { | 132 class VCMFrameTypeCallback { |
139 public: | 133 public: |
140 virtual int32_t RequestKeyFrame() = 0; | 134 virtual int32_t RequestKeyFrame() = 0; |
141 virtual int32_t SliceLossIndicationRequest(const uint64_t pictureId) { | 135 virtual int32_t SliceLossIndicationRequest(const uint64_t pictureId) { |
142 return -1; | 136 return -1; |
143 } | 137 } |
144 | 138 |
(...skipping 27 matching lines...) Expand all Loading... |
172 public: | 166 public: |
173 virtual void RequestKeyFrame() = 0; | 167 virtual void RequestKeyFrame() = 0; |
174 | 168 |
175 protected: | 169 protected: |
176 virtual ~KeyFrameRequestSender() {} | 170 virtual ~KeyFrameRequestSender() {} |
177 }; | 171 }; |
178 | 172 |
179 } // namespace webrtc | 173 } // namespace webrtc |
180 | 174 |
181 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ | 175 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ |
OLD | NEW |