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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 return sender_->SendCodecBlocking(); | 126 return sender_->SendCodecBlocking(); |
127 } | 127 } |
128 | 128 |
129 int32_t RegisterExternalEncoder(VideoEncoder* externalEncoder, | 129 int32_t RegisterExternalEncoder(VideoEncoder* externalEncoder, |
130 uint8_t payloadType, | 130 uint8_t payloadType, |
131 bool internalSource) override { | 131 bool internalSource) override { |
132 return sender_->RegisterExternalEncoder( | 132 return sender_->RegisterExternalEncoder( |
133 externalEncoder, payloadType, internalSource); | 133 externalEncoder, payloadType, internalSource); |
134 } | 134 } |
135 | 135 |
136 int32_t CodecConfigParameters(uint8_t* buffer, int32_t size) override { | |
137 return sender_->CodecConfigParameters(buffer, size); | |
138 } | |
139 | |
140 int Bitrate(unsigned int* bitrate) const override { | 136 int Bitrate(unsigned int* bitrate) const override { |
141 return sender_->Bitrate(bitrate); | 137 return sender_->Bitrate(bitrate); |
142 } | 138 } |
143 | 139 |
144 int FrameRate(unsigned int* framerate) const override { | 140 int FrameRate(unsigned int* framerate) const override { |
145 return sender_->FrameRate(framerate); | 141 return sender_->FrameRate(framerate); |
146 } | 142 } |
147 | 143 |
148 int32_t SetChannelParameters(uint32_t target_bitrate, // bits/s. | 144 int32_t SetChannelParameters(uint32_t target_bitrate, // bits/s. |
149 uint8_t lossRate, | 145 uint8_t lossRate, |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 return new VideoCodingModuleImpl(clock, event_factory, false, nullptr, | 350 return new VideoCodingModuleImpl(clock, event_factory, false, nullptr, |
355 nullptr); | 351 nullptr); |
356 } | 352 } |
357 | 353 |
358 void VideoCodingModule::Destroy(VideoCodingModule* module) { | 354 void VideoCodingModule::Destroy(VideoCodingModule* module) { |
359 if (module != NULL) { | 355 if (module != NULL) { |
360 delete static_cast<VideoCodingModuleImpl*>(module); | 356 delete static_cast<VideoCodingModuleImpl*>(module); |
361 } | 357 } |
362 } | 358 } |
363 } // namespace webrtc | 359 } // namespace webrtc |
OLD | NEW |