niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
mikhal@webrtc.org | a2031d5 | 2012-07-31 15:53:44 +0000 | [diff] [blame] | 2 | * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 11 | #include "modules/video_coding/generic_decoder.h" |
tommi | 5b7fc8c | 2017-07-05 16:45:57 -0700 | [diff] [blame] | 12 | |
ilnik | 2edc684 | 2017-07-06 03:06:50 -0700 | [diff] [blame] | 13 | #include <algorithm> |
| 14 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 15 | #include "modules/video_coding/include/video_coding.h" |
| 16 | #include "modules/video_coding/internal_defines.h" |
| 17 | #include "rtc_base/checks.h" |
| 18 | #include "rtc_base/logging.h" |
| 19 | #include "rtc_base/timeutils.h" |
| 20 | #include "rtc_base/trace_event.h" |
| 21 | #include "system_wrappers/include/clock.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 22 | |
| 23 | namespace webrtc { |
| 24 | |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 25 | VCMDecodedFrameCallback::VCMDecodedFrameCallback(VCMTiming* timing, |
stefan@webrtc.org | a678a3b | 2013-01-21 07:42:11 +0000 | [diff] [blame] | 26 | Clock* clock) |
tommi | d0a71ba | 2017-03-14 04:16:20 -0700 | [diff] [blame] | 27 | : _clock(clock), |
Peter Boström | b7d9a97 | 2015-12-18 16:01:11 +0100 | [diff] [blame] | 28 | _timing(timing), |
| 29 | _timestampMap(kDecoderFrameMemoryLength), |
ilnik | 04f4d12 | 2017-06-19 07:18:55 -0700 | [diff] [blame] | 30 | _lastReceivedPictureID(0) { |
| 31 | ntp_offset_ = |
| 32 | _clock->CurrentNtpInMilliseconds() - _clock->TimeInMilliseconds(); |
| 33 | } |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 34 | |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 35 | VCMDecodedFrameCallback::~VCMDecodedFrameCallback() { |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 36 | } |
| 37 | |
stefan@webrtc.org | 06887ae | 2011-10-10 14:17:46 +0000 | [diff] [blame] | 38 | void VCMDecodedFrameCallback::SetUserReceiveCallback( |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 39 | VCMReceiveCallback* receiveCallback) { |
tommi | d0a71ba | 2017-03-14 04:16:20 -0700 | [diff] [blame] | 40 | RTC_DCHECK(construction_thread_.CalledOnValidThread()); |
| 41 | RTC_DCHECK((!_receiveCallback && receiveCallback) || |
| 42 | (_receiveCallback && !receiveCallback)); |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 43 | _receiveCallback = receiveCallback; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 44 | } |
| 45 | |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 46 | VCMReceiveCallback* VCMDecodedFrameCallback::UserReceiveCallback() { |
tommi | d0a71ba | 2017-03-14 04:16:20 -0700 | [diff] [blame] | 47 | // Called on the decode thread via VCMCodecDataBase::GetDecoder. |
| 48 | // The callback must always have been set before this happens. |
| 49 | RTC_DCHECK(_receiveCallback); |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 50 | return _receiveCallback; |
wuchengli@chromium.org | 0d94c2f | 2013-08-12 14:20:49 +0000 | [diff] [blame] | 51 | } |
| 52 | |
Miguel Casas-Sanchez | 4765070 | 2015-05-29 17:21:40 -0700 | [diff] [blame] | 53 | int32_t VCMDecodedFrameCallback::Decoded(VideoFrame& decodedImage) { |
Per | 327d8ba | 2015-11-10 14:00:27 +0100 | [diff] [blame] | 54 | return Decoded(decodedImage, -1); |
| 55 | } |
| 56 | |
| 57 | int32_t VCMDecodedFrameCallback::Decoded(VideoFrame& decodedImage, |
| 58 | int64_t decode_time_ms) { |
sakal | cc452e1 | 2017-02-09 04:53:45 -0800 | [diff] [blame] | 59 | Decoded(decodedImage, |
| 60 | decode_time_ms >= 0 ? rtc::Optional<int32_t>(decode_time_ms) |
| 61 | : rtc::Optional<int32_t>(), |
| 62 | rtc::Optional<uint8_t>()); |
| 63 | return WEBRTC_VIDEO_CODEC_OK; |
| 64 | } |
| 65 | |
| 66 | void VCMDecodedFrameCallback::Decoded(VideoFrame& decodedImage, |
| 67 | rtc::Optional<int32_t> decode_time_ms, |
| 68 | rtc::Optional<uint8_t> qp) { |
tommi | d0a71ba | 2017-03-14 04:16:20 -0700 | [diff] [blame] | 69 | RTC_DCHECK(_receiveCallback) << "Callback must not be null at this point"; |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 70 | TRACE_EVENT_INSTANT1("webrtc", "VCMDecodedFrameCallback::Decoded", |
| 71 | "timestamp", decodedImage.timestamp()); |
| 72 | // TODO(holmer): We should improve this so that we can handle multiple |
| 73 | // callbacks from one call to Decode(). |
guidou | c337258 | 2017-04-04 07:16:21 -0700 | [diff] [blame] | 74 | VCMFrameInformation* frameInfo; |
| 75 | { |
| 76 | rtc::CritScope cs(&lock_); |
| 77 | frameInfo = _timestampMap.Pop(decodedImage.timestamp()); |
| 78 | } |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 79 | |
| 80 | if (frameInfo == NULL) { |
Mirko Bonadei | 675513b | 2017-11-09 11:09:25 +0100 | [diff] [blame] | 81 | RTC_LOG(LS_WARNING) << "Too many frames backed up in the decoder, dropping " |
| 82 | "this one."; |
sakal | cc452e1 | 2017-02-09 04:53:45 -0800 | [diff] [blame] | 83 | return; |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 84 | } |
| 85 | |
| 86 | const int64_t now_ms = _clock->TimeInMilliseconds(); |
sakal | cc452e1 | 2017-02-09 04:53:45 -0800 | [diff] [blame] | 87 | if (!decode_time_ms) { |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 88 | decode_time_ms = |
sakal | cc452e1 | 2017-02-09 04:53:45 -0800 | [diff] [blame] | 89 | rtc::Optional<int32_t>(now_ms - frameInfo->decodeStartTimeMs); |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 90 | } |
sakal | cc452e1 | 2017-02-09 04:53:45 -0800 | [diff] [blame] | 91 | _timing->StopDecodeTimer(decodedImage.timestamp(), *decode_time_ms, now_ms, |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 92 | frameInfo->renderTimeMs); |
| 93 | |
ilnik | 04f4d12 | 2017-06-19 07:18:55 -0700 | [diff] [blame] | 94 | // Report timing information. |
sprang | ba050a6 | 2017-08-18 02:51:12 -0700 | [diff] [blame] | 95 | if (frameInfo->timing.flags != TimingFrameFlags::kInvalid) { |
ilnik | 2edc684 | 2017-07-06 03:06:50 -0700 | [diff] [blame] | 96 | int64_t capture_time_ms = decodedImage.ntp_time_ms() - ntp_offset_; |
ilnik | 04f4d12 | 2017-06-19 07:18:55 -0700 | [diff] [blame] | 97 | // Convert remote timestamps to local time from ntp timestamps. |
| 98 | frameInfo->timing.encode_start_ms -= ntp_offset_; |
| 99 | frameInfo->timing.encode_finish_ms -= ntp_offset_; |
| 100 | frameInfo->timing.packetization_finish_ms -= ntp_offset_; |
| 101 | frameInfo->timing.pacer_exit_ms -= ntp_offset_; |
| 102 | frameInfo->timing.network_timestamp_ms -= ntp_offset_; |
| 103 | frameInfo->timing.network2_timestamp_ms -= ntp_offset_; |
ilnik | 2edc684 | 2017-07-06 03:06:50 -0700 | [diff] [blame] | 104 | |
| 105 | int64_t sender_delta_ms = 0; |
| 106 | if (decodedImage.ntp_time_ms() < 0) { |
| 107 | // Sender clock is not estimated yet. Make sure that sender times are all |
| 108 | // negative to indicate that. Yet they still should be relatively correct. |
| 109 | sender_delta_ms = |
| 110 | std::max({capture_time_ms, frameInfo->timing.encode_start_ms, |
| 111 | frameInfo->timing.encode_finish_ms, |
| 112 | frameInfo->timing.packetization_finish_ms, |
| 113 | frameInfo->timing.pacer_exit_ms, |
| 114 | frameInfo->timing.network_timestamp_ms, |
| 115 | frameInfo->timing.network2_timestamp_ms}) + |
| 116 | 1; |
| 117 | } |
| 118 | |
| 119 | TimingFrameInfo timing_frame_info; |
| 120 | |
| 121 | timing_frame_info.capture_time_ms = capture_time_ms - sender_delta_ms; |
| 122 | timing_frame_info.encode_start_ms = |
| 123 | frameInfo->timing.encode_start_ms - sender_delta_ms; |
| 124 | timing_frame_info.encode_finish_ms = |
| 125 | frameInfo->timing.encode_finish_ms - sender_delta_ms; |
| 126 | timing_frame_info.packetization_finish_ms = |
| 127 | frameInfo->timing.packetization_finish_ms - sender_delta_ms; |
| 128 | timing_frame_info.pacer_exit_ms = |
| 129 | frameInfo->timing.pacer_exit_ms - sender_delta_ms; |
| 130 | timing_frame_info.network_timestamp_ms = |
| 131 | frameInfo->timing.network_timestamp_ms - sender_delta_ms; |
| 132 | timing_frame_info.network2_timestamp_ms = |
| 133 | frameInfo->timing.network2_timestamp_ms - sender_delta_ms; |
| 134 | timing_frame_info.receive_start_ms = frameInfo->timing.receive_start_ms; |
| 135 | timing_frame_info.receive_finish_ms = frameInfo->timing.receive_finish_ms; |
| 136 | timing_frame_info.decode_start_ms = frameInfo->decodeStartTimeMs; |
| 137 | timing_frame_info.decode_finish_ms = now_ms; |
| 138 | timing_frame_info.render_time_ms = frameInfo->renderTimeMs; |
| 139 | timing_frame_info.rtp_timestamp = decodedImage.timestamp(); |
sprang | ba050a6 | 2017-08-18 02:51:12 -0700 | [diff] [blame] | 140 | timing_frame_info.flags = frameInfo->timing.flags; |
ilnik | 2edc684 | 2017-07-06 03:06:50 -0700 | [diff] [blame] | 141 | |
| 142 | _timing->SetTimingFrameInfo(timing_frame_info); |
ilnik | 04f4d12 | 2017-06-19 07:18:55 -0700 | [diff] [blame] | 143 | } |
| 144 | |
nisse | 1c0dea8 | 2017-01-30 02:43:18 -0800 | [diff] [blame] | 145 | decodedImage.set_timestamp_us( |
| 146 | frameInfo->renderTimeMs * rtc::kNumMicrosecsPerMillisec); |
sakal | 55d932b | 2016-09-30 06:19:08 -0700 | [diff] [blame] | 147 | decodedImage.set_rotation(frameInfo->rotation); |
ilnik | 00d802b | 2017-04-11 10:34:31 -0700 | [diff] [blame] | 148 | _receiveCallback->FrameToRender(decodedImage, qp, frameInfo->content_type); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 149 | } |
| 150 | |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 151 | int32_t VCMDecodedFrameCallback::ReceivedDecodedReferenceFrame( |
| 152 | const uint64_t pictureId) { |
tommi | d0a71ba | 2017-03-14 04:16:20 -0700 | [diff] [blame] | 153 | return _receiveCallback->ReceivedDecodedReferenceFrame(pictureId); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 154 | } |
| 155 | |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 156 | int32_t VCMDecodedFrameCallback::ReceivedDecodedFrame( |
| 157 | const uint64_t pictureId) { |
| 158 | _lastReceivedPictureID = pictureId; |
| 159 | return 0; |
| 160 | } |
| 161 | |
| 162 | uint64_t VCMDecodedFrameCallback::LastReceivedPictureID() const { |
| 163 | return _lastReceivedPictureID; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 164 | } |
| 165 | |
Peter Boström | b7d9a97 | 2015-12-18 16:01:11 +0100 | [diff] [blame] | 166 | void VCMDecodedFrameCallback::OnDecoderImplementationName( |
| 167 | const char* implementation_name) { |
tommi | d0a71ba | 2017-03-14 04:16:20 -0700 | [diff] [blame] | 168 | _receiveCallback->OnDecoderImplementationName(implementation_name); |
Peter Boström | b7d9a97 | 2015-12-18 16:01:11 +0100 | [diff] [blame] | 169 | } |
| 170 | |
pbos | 1968d3f | 2015-09-28 08:52:18 -0700 | [diff] [blame] | 171 | void VCMDecodedFrameCallback::Map(uint32_t timestamp, |
| 172 | VCMFrameInformation* frameInfo) { |
guidou | c337258 | 2017-04-04 07:16:21 -0700 | [diff] [blame] | 173 | rtc::CritScope cs(&lock_); |
pbos | 1968d3f | 2015-09-28 08:52:18 -0700 | [diff] [blame] | 174 | _timestampMap.Add(timestamp, frameInfo); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 175 | } |
| 176 | |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 177 | int32_t VCMDecodedFrameCallback::Pop(uint32_t timestamp) { |
guidou | c337258 | 2017-04-04 07:16:21 -0700 | [diff] [blame] | 178 | rtc::CritScope cs(&lock_); |
| 179 | if (_timestampMap.Pop(timestamp) == NULL) { |
| 180 | return VCM_GENERAL_ERROR; |
| 181 | } |
| 182 | return VCM_OK; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 183 | } |
| 184 | |
Magnus Jedvert | 46a2765 | 2017-11-13 14:10:02 +0100 | [diff] [blame] | 185 | VCMGenericDecoder::VCMGenericDecoder(std::unique_ptr<VideoDecoder> decoder) |
| 186 | : VCMGenericDecoder(decoder.release(), false /* isExternal */) {} |
| 187 | |
Peter Boström | 187db63 | 2015-12-01 17:20:01 +0100 | [diff] [blame] | 188 | VCMGenericDecoder::VCMGenericDecoder(VideoDecoder* decoder, bool isExternal) |
| 189 | : _callback(NULL), |
| 190 | _frameInfos(), |
| 191 | _nextFrameInfoIdx(0), |
tommi | 5b7fc8c | 2017-07-05 16:45:57 -0700 | [diff] [blame] | 192 | decoder_(decoder), |
Peter Boström | 187db63 | 2015-12-01 17:20:01 +0100 | [diff] [blame] | 193 | _codecType(kVideoCodecUnknown), |
guidou | c337258 | 2017-04-04 07:16:21 -0700 | [diff] [blame] | 194 | _isExternal(isExternal), |
tommi | 5b7fc8c | 2017-07-05 16:45:57 -0700 | [diff] [blame] | 195 | _last_keyframe_content_type(VideoContentType::UNSPECIFIED) { |
| 196 | RTC_DCHECK(decoder_); |
| 197 | } |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 198 | |
tommi | 5b7fc8c | 2017-07-05 16:45:57 -0700 | [diff] [blame] | 199 | VCMGenericDecoder::~VCMGenericDecoder() { |
| 200 | decoder_->Release(); |
| 201 | if (_isExternal) |
| 202 | decoder_.release(); |
tommi | 058aa71 | 2017-07-15 11:33:35 -0700 | [diff] [blame] | 203 | RTC_DCHECK(_isExternal || decoder_); |
tommi | 5b7fc8c | 2017-07-05 16:45:57 -0700 | [diff] [blame] | 204 | } |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 205 | |
pbos@webrtc.org | 7b859cc | 2013-04-02 15:54:38 +0000 | [diff] [blame] | 206 | int32_t VCMGenericDecoder::InitDecode(const VideoCodec* settings, |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 207 | int32_t numberOfCores) { |
| 208 | TRACE_EVENT0("webrtc", "VCMGenericDecoder::InitDecode"); |
| 209 | _codecType = settings->codecType; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 210 | |
tommi | 5b7fc8c | 2017-07-05 16:45:57 -0700 | [diff] [blame] | 211 | return decoder_->InitDecode(settings, numberOfCores); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 212 | } |
| 213 | |
pbos | d9eec76 | 2015-11-17 06:03:43 -0800 | [diff] [blame] | 214 | int32_t VCMGenericDecoder::Decode(const VCMEncodedFrame& frame, int64_t nowMs) { |
guidou | c337258 | 2017-04-04 07:16:21 -0700 | [diff] [blame] | 215 | TRACE_EVENT1("webrtc", "VCMGenericDecoder::Decode", "timestamp", |
| 216 | frame.EncodedImage()._timeStamp); |
| 217 | _frameInfos[_nextFrameInfoIdx].decodeStartTimeMs = nowMs; |
| 218 | _frameInfos[_nextFrameInfoIdx].renderTimeMs = frame.RenderTimeMs(); |
| 219 | _frameInfos[_nextFrameInfoIdx].rotation = frame.rotation(); |
ilnik | 04f4d12 | 2017-06-19 07:18:55 -0700 | [diff] [blame] | 220 | _frameInfos[_nextFrameInfoIdx].timing = frame.video_timing(); |
ilnik | 00d802b | 2017-04-11 10:34:31 -0700 | [diff] [blame] | 221 | // Set correctly only for key frames. Thus, use latest key frame |
| 222 | // content type. If the corresponding key frame was lost, decode will fail |
| 223 | // and content type will be ignored. |
| 224 | if (frame.FrameType() == kVideoFrameKey) { |
| 225 | _frameInfos[_nextFrameInfoIdx].content_type = frame.contentType(); |
| 226 | _last_keyframe_content_type = frame.contentType(); |
| 227 | } else { |
| 228 | _frameInfos[_nextFrameInfoIdx].content_type = _last_keyframe_content_type; |
| 229 | } |
guidou | c337258 | 2017-04-04 07:16:21 -0700 | [diff] [blame] | 230 | _callback->Map(frame.TimeStamp(), &_frameInfos[_nextFrameInfoIdx]); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 231 | |
guidou | c337258 | 2017-04-04 07:16:21 -0700 | [diff] [blame] | 232 | _nextFrameInfoIdx = (_nextFrameInfoIdx + 1) % kDecoderFrameMemoryLength; |
| 233 | const RTPFragmentationHeader dummy_header; |
tommi | 5b7fc8c | 2017-07-05 16:45:57 -0700 | [diff] [blame] | 234 | int32_t ret = decoder_->Decode(frame.EncodedImage(), frame.MissingFrame(), |
guidou | c337258 | 2017-04-04 07:16:21 -0700 | [diff] [blame] | 235 | &dummy_header, |
| 236 | frame.CodecSpecific(), frame.RenderTimeMs()); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 237 | |
tommi | 5b7fc8c | 2017-07-05 16:45:57 -0700 | [diff] [blame] | 238 | _callback->OnDecoderImplementationName(decoder_->ImplementationName()); |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 239 | if (ret < WEBRTC_VIDEO_CODEC_OK) { |
Mirko Bonadei | 675513b | 2017-11-09 11:09:25 +0100 | [diff] [blame] | 240 | RTC_LOG(LS_WARNING) << "Failed to decode frame with timestamp " |
| 241 | << frame.TimeStamp() << ", error code: " << ret; |
| 242 | _callback->Pop(frame.TimeStamp()); |
| 243 | return ret; |
guidou | c337258 | 2017-04-04 07:16:21 -0700 | [diff] [blame] | 244 | } else if (ret == WEBRTC_VIDEO_CODEC_NO_OUTPUT || |
| 245 | ret == WEBRTC_VIDEO_CODEC_REQUEST_SLI) { |
| 246 | // No output |
| 247 | _callback->Pop(frame.TimeStamp()); |
stefan@webrtc.org | 06887ae | 2011-10-10 14:17:46 +0000 | [diff] [blame] | 248 | } |
guidou | c337258 | 2017-04-04 07:16:21 -0700 | [diff] [blame] | 249 | return ret; |
| 250 | } |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 251 | |
Peter Boström | 187db63 | 2015-12-01 17:20:01 +0100 | [diff] [blame] | 252 | int32_t VCMGenericDecoder::RegisterDecodeCompleteCallback( |
| 253 | VCMDecodedFrameCallback* callback) { |
| 254 | _callback = callback; |
tommi | 5b7fc8c | 2017-07-05 16:45:57 -0700 | [diff] [blame] | 255 | return decoder_->RegisterDecodeCompleteCallback(callback); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 256 | } |
| 257 | |
perkj | 796cfaf | 2015-12-10 09:27:38 -0800 | [diff] [blame] | 258 | bool VCMGenericDecoder::PrefersLateDecoding() const { |
tommi | 5b7fc8c | 2017-07-05 16:45:57 -0700 | [diff] [blame] | 259 | return decoder_->PrefersLateDecoding(); |
perkj | 796cfaf | 2015-12-10 09:27:38 -0800 | [diff] [blame] | 260 | } |
| 261 | |
philipel | 9d3ab61 | 2015-12-21 04:12:39 -0800 | [diff] [blame] | 262 | } // namespace webrtc |