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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 const VideoFrame& video_frame) { | 379 const VideoFrame& video_frame) { |
380 // TODO(pbos): Wire up config_.render->IsTextureSupported() and convert if not | 380 // TODO(pbos): Wire up config_.render->IsTextureSupported() and convert if not |
381 // supported. Or provide methods for converting a texture frame in | 381 // supported. Or provide methods for converting a texture frame in |
382 // VideoFrame. | 382 // VideoFrame. |
383 | 383 |
384 if (config_.renderer != nullptr) | 384 if (config_.renderer != nullptr) |
385 config_.renderer->RenderFrame( | 385 config_.renderer->RenderFrame( |
386 video_frame, | 386 video_frame, |
387 video_frame.render_time_ms() - clock_->TimeInMilliseconds()); | 387 video_frame.render_time_ms() - clock_->TimeInMilliseconds()); |
388 | 388 |
389 stats_proxy_.OnRenderedFrame(video_frame.width(), video_frame.height()); | 389 stats_proxy_.OnRenderedFrame(video_frame); |
390 | 390 |
391 return 0; | 391 return 0; |
392 } | 392 } |
393 | 393 |
394 // TODO(asapersson): Consider moving callback from video_encoder.h or | 394 // TODO(asapersson): Consider moving callback from video_encoder.h or |
395 // creating a different callback. | 395 // creating a different callback. |
396 int32_t VideoReceiveStream::Encoded( | 396 int32_t VideoReceiveStream::Encoded( |
397 const EncodedImage& encoded_image, | 397 const EncodedImage& encoded_image, |
398 const CodecSpecificInfo* codec_specific_info, | 398 const CodecSpecificInfo* codec_specific_info, |
399 const RTPFragmentationHeader* fragmentation) { | 399 const RTPFragmentationHeader* fragmentation) { |
(...skipping 16 matching lines...) Expand all Loading... |
416 return true; | 416 return true; |
417 } | 417 } |
418 | 418 |
419 void VideoReceiveStream::Decode() { | 419 void VideoReceiveStream::Decode() { |
420 static const int kMaxDecodeWaitTimeMs = 50; | 420 static const int kMaxDecodeWaitTimeMs = 50; |
421 vcm_->Decode(kMaxDecodeWaitTimeMs); | 421 vcm_->Decode(kMaxDecodeWaitTimeMs); |
422 } | 422 } |
423 | 423 |
424 } // namespace internal | 424 } // namespace internal |
425 } // namespace webrtc | 425 } // namespace webrtc |
OLD | NEW |