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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 | 384 |
385 int VideoReceiveStream::RenderFrame(const uint32_t /*stream_id*/, | 385 int VideoReceiveStream::RenderFrame(const uint32_t /*stream_id*/, |
386 const VideoFrame& video_frame) { | 386 const VideoFrame& video_frame) { |
387 int64_t sync_offset_ms; | 387 int64_t sync_offset_ms; |
388 if (vie_sync_.GetStreamSyncOffsetInMs(video_frame, &sync_offset_ms)) | 388 if (vie_sync_.GetStreamSyncOffsetInMs(video_frame, &sync_offset_ms)) |
389 stats_proxy_.OnSyncOffsetUpdated(sync_offset_ms); | 389 stats_proxy_.OnSyncOffsetUpdated(sync_offset_ms); |
390 | 390 |
391 if (config_.renderer) | 391 if (config_.renderer) |
392 config_.renderer->OnFrame(video_frame); | 392 config_.renderer->OnFrame(video_frame); |
393 | 393 |
394 stats_proxy_.OnRenderedFrame(video_frame); | 394 stats_proxy_.OnRenderedFrame(video_frame.width(), video_frame.height()); |
395 | 395 |
396 return 0; | 396 return 0; |
397 } | 397 } |
398 | 398 |
399 // TODO(asapersson): Consider moving callback from video_encoder.h or | 399 // TODO(asapersson): Consider moving callback from video_encoder.h or |
400 // creating a different callback. | 400 // creating a different callback. |
401 int32_t VideoReceiveStream::Encoded( | 401 int32_t VideoReceiveStream::Encoded( |
402 const EncodedImage& encoded_image, | 402 const EncodedImage& encoded_image, |
403 const CodecSpecificInfo* codec_specific_info, | 403 const CodecSpecificInfo* codec_specific_info, |
404 const RTPFragmentationHeader* fragmentation) { | 404 const RTPFragmentationHeader* fragmentation) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 const std::vector<uint16_t>& sequence_numbers) { | 459 const std::vector<uint16_t>& sequence_numbers) { |
460 rtp_rtcp_->SendNack(sequence_numbers); | 460 rtp_rtcp_->SendNack(sequence_numbers); |
461 } | 461 } |
462 | 462 |
463 void VideoReceiveStream::RequestKeyFrame() { | 463 void VideoReceiveStream::RequestKeyFrame() { |
464 rtp_rtcp_->RequestKeyFrame(); | 464 rtp_rtcp_->RequestKeyFrame(); |
465 } | 465 } |
466 | 466 |
467 } // namespace internal | 467 } // namespace internal |
468 } // namespace webrtc | 468 } // namespace webrtc |
OLD | NEW |