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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 | 374 |
375 int VideoReceiveStream::RenderFrame(const uint32_t /*stream_id*/, | 375 int VideoReceiveStream::RenderFrame(const uint32_t /*stream_id*/, |
376 const VideoFrame& video_frame) { | 376 const VideoFrame& video_frame) { |
377 int64_t sync_offset_ms; | 377 int64_t sync_offset_ms; |
378 if (vie_sync_.GetStreamSyncOffsetInMs(video_frame, &sync_offset_ms)) | 378 if (vie_sync_.GetStreamSyncOffsetInMs(video_frame, &sync_offset_ms)) |
379 stats_proxy_.OnSyncOffsetUpdated(sync_offset_ms); | 379 stats_proxy_.OnSyncOffsetUpdated(sync_offset_ms); |
380 | 380 |
381 if (config_.renderer) | 381 if (config_.renderer) |
382 config_.renderer->OnFrame(video_frame); | 382 config_.renderer->OnFrame(video_frame); |
383 | 383 |
384 stats_proxy_.OnRenderedFrame(video_frame.width(), video_frame.height()); | 384 stats_proxy_.OnRenderedFrame(video_frame); |
385 | 385 |
386 return 0; | 386 return 0; |
387 } | 387 } |
388 | 388 |
389 // TODO(asapersson): Consider moving callback from video_encoder.h or | 389 // TODO(asapersson): Consider moving callback from video_encoder.h or |
390 // creating a different callback. | 390 // creating a different callback. |
391 int32_t VideoReceiveStream::Encoded( | 391 int32_t VideoReceiveStream::Encoded( |
392 const EncodedImage& encoded_image, | 392 const EncodedImage& encoded_image, |
393 const CodecSpecificInfo* codec_specific_info, | 393 const CodecSpecificInfo* codec_specific_info, |
394 const RTPFragmentationHeader* fragmentation) { | 394 const RTPFragmentationHeader* fragmentation) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 const std::vector<uint16_t>& sequence_numbers) { | 434 const std::vector<uint16_t>& sequence_numbers) { |
435 rtp_rtcp_->SendNack(sequence_numbers); | 435 rtp_rtcp_->SendNack(sequence_numbers); |
436 } | 436 } |
437 | 437 |
438 void VideoReceiveStream::RequestKeyFrame() { | 438 void VideoReceiveStream::RequestKeyFrame() { |
439 rtp_rtcp_->RequestKeyFrame(); | 439 rtp_rtcp_->RequestKeyFrame(); |
440 } | 440 } |
441 | 441 |
442 } // namespace internal | 442 } // namespace internal |
443 } // namespace webrtc | 443 } // namespace webrtc |
OLD | NEW |