OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 int32_t VideoEncoderSoftwareFallbackWrapper::Release() { | 93 int32_t VideoEncoderSoftwareFallbackWrapper::Release() { |
94 if (fallback_encoder_) | 94 if (fallback_encoder_) |
95 return fallback_encoder_->Release(); | 95 return fallback_encoder_->Release(); |
96 return encoder_->Release(); | 96 return encoder_->Release(); |
97 } | 97 } |
98 | 98 |
99 int32_t VideoEncoderSoftwareFallbackWrapper::Encode( | 99 int32_t VideoEncoderSoftwareFallbackWrapper::Encode( |
100 const VideoFrame& frame, | 100 const VideoFrame& frame, |
101 const CodecSpecificInfo* codec_specific_info, | 101 const CodecSpecificInfo* codec_specific_info, |
102 const std::vector<VideoFrameType>* frame_types) { | 102 const std::vector<FrameType>* frame_types) { |
103 if (fallback_encoder_) | 103 if (fallback_encoder_) |
104 return fallback_encoder_->Encode(frame, codec_specific_info, frame_types); | 104 return fallback_encoder_->Encode(frame, codec_specific_info, frame_types); |
105 return encoder_->Encode(frame, codec_specific_info, frame_types); | 105 return encoder_->Encode(frame, codec_specific_info, frame_types); |
106 } | 106 } |
107 | 107 |
108 int32_t VideoEncoderSoftwareFallbackWrapper::SetChannelParameters( | 108 int32_t VideoEncoderSoftwareFallbackWrapper::SetChannelParameters( |
109 uint32_t packet_loss, | 109 uint32_t packet_loss, |
110 int64_t rtt) { | 110 int64_t rtt) { |
111 int32_t ret = encoder_->SetChannelParameters(packet_loss, rtt); | 111 int32_t ret = encoder_->SetChannelParameters(packet_loss, rtt); |
112 if (fallback_encoder_) | 112 if (fallback_encoder_) |
(...skipping 21 matching lines...) Expand all Loading... |
134 return encoder_->SupportsNativeHandle(); | 134 return encoder_->SupportsNativeHandle(); |
135 } | 135 } |
136 | 136 |
137 int VideoEncoderSoftwareFallbackWrapper::GetTargetFramerate() { | 137 int VideoEncoderSoftwareFallbackWrapper::GetTargetFramerate() { |
138 if (fallback_encoder_) | 138 if (fallback_encoder_) |
139 return fallback_encoder_->GetTargetFramerate(); | 139 return fallback_encoder_->GetTargetFramerate(); |
140 return encoder_->GetTargetFramerate(); | 140 return encoder_->GetTargetFramerate(); |
141 } | 141 } |
142 | 142 |
143 } // namespace webrtc | 143 } // namespace webrtc |
OLD | NEW |