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