OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 // succeeds most of the time, which leads to grabbing a fourth lock. | 343 // succeeds most of the time, which leads to grabbing a fourth lock. |
344 if (rtp_stream_sync_.GetStreamSyncOffsetInMs(video_frame, &sync_offset_ms)) { | 344 if (rtp_stream_sync_.GetStreamSyncOffsetInMs(video_frame, &sync_offset_ms)) { |
345 // TODO(tommi): OnSyncOffsetUpdated grabs a lock. | 345 // TODO(tommi): OnSyncOffsetUpdated grabs a lock. |
346 stats_proxy_.OnSyncOffsetUpdated(sync_offset_ms); | 346 stats_proxy_.OnSyncOffsetUpdated(sync_offset_ms); |
347 } | 347 } |
348 | 348 |
349 // config_.renderer must never be null if we're getting this callback. | 349 // config_.renderer must never be null if we're getting this callback. |
350 config_.renderer->OnFrame(video_frame); | 350 config_.renderer->OnFrame(video_frame); |
351 | 351 |
352 // TODO(tommi): OnRenderFrame grabs a lock too. | 352 // TODO(tommi): OnRenderFrame grabs a lock too. |
353 stats_proxy_.OnRenderedFrame(video_frame.width(), video_frame.height()); | 353 stats_proxy_.OnRenderedFrame(video_frame); |
354 } | 354 } |
355 | 355 |
356 // TODO(asapersson): Consider moving callback from video_encoder.h or | 356 // TODO(asapersson): Consider moving callback from video_encoder.h or |
357 // creating a different callback. | 357 // creating a different callback. |
358 EncodedImageCallback::Result VideoReceiveStream::OnEncodedImage( | 358 EncodedImageCallback::Result VideoReceiveStream::OnEncodedImage( |
359 const EncodedImage& encoded_image, | 359 const EncodedImage& encoded_image, |
360 const CodecSpecificInfo* codec_specific_info, | 360 const CodecSpecificInfo* codec_specific_info, |
361 const RTPFragmentationHeader* fragmentation) { | 361 const RTPFragmentationHeader* fragmentation) { |
362 stats_proxy_.OnPreDecode(encoded_image, codec_specific_info); | 362 stats_proxy_.OnPreDecode(encoded_image, codec_specific_info); |
363 if (config_.pre_decode_callback) { | 363 if (config_.pre_decode_callback) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 const std::vector<uint16_t>& sequence_numbers) { | 396 const std::vector<uint16_t>& sequence_numbers) { |
397 rtp_stream_receiver_.RequestPacketRetransmit(sequence_numbers); | 397 rtp_stream_receiver_.RequestPacketRetransmit(sequence_numbers); |
398 } | 398 } |
399 | 399 |
400 void VideoReceiveStream::RequestKeyFrame() { | 400 void VideoReceiveStream::RequestKeyFrame() { |
401 rtp_stream_receiver_.RequestKeyFrame(); | 401 rtp_stream_receiver_.RequestKeyFrame(); |
402 } | 402 } |
403 | 403 |
404 } // namespace internal | 404 } // namespace internal |
405 } // namespace webrtc | 405 } // namespace webrtc |
OLD | NEW |