OLD | NEW |
---|---|
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
386 VideoSendStreamParameters parameters_ GUARDED_BY(lock_); | 386 VideoSendStreamParameters parameters_ GUARDED_BY(lock_); |
387 VideoEncoderSettings encoder_settings_ GUARDED_BY(lock_); | 387 VideoEncoderSettings encoder_settings_ GUARDED_BY(lock_); |
388 AllocatedEncoder allocated_encoder_ GUARDED_BY(lock_); | 388 AllocatedEncoder allocated_encoder_ GUARDED_BY(lock_); |
389 Dimensions last_dimensions_ GUARDED_BY(lock_); | 389 Dimensions last_dimensions_ GUARDED_BY(lock_); |
390 | 390 |
391 VideoCapturer* capturer_ GUARDED_BY(lock_); | 391 VideoCapturer* capturer_ GUARDED_BY(lock_); |
392 bool sending_ GUARDED_BY(lock_); | 392 bool sending_ GUARDED_BY(lock_); |
393 bool muted_ GUARDED_BY(lock_); | 393 bool muted_ GUARDED_BY(lock_); |
394 VideoFormat format_ GUARDED_BY(lock_); | 394 VideoFormat format_ GUARDED_BY(lock_); |
395 int old_adapt_changes_ GUARDED_BY(lock_); | 395 int old_adapt_changes_ GUARDED_BY(lock_); |
396 | |
397 // To align the delta timestamp with rtc time | |
pthatcher1
2015/07/15 17:53:07
I like the comment on the other value, and think t
qiangchen
2015/07/15 19:35:22
Done.
| |
398 int64_t base_timestamp_ms_ GUARDED_BY(lock_); | |
399 | |
400 // The timestamp of the last frame we received | |
401 // Used to generate timestamp for the black frame when capturer is removed | |
402 int64_t last_timestamp_ms_ GUARDED_BY(lock_); | |
396 }; | 403 }; |
397 | 404 |
398 // Wrapper for the receiver part, contains configs etc. that are needed to | 405 // Wrapper for the receiver part, contains configs etc. that are needed to |
399 // reconstruct the underlying VideoReceiveStream. Also serves as a wrapper | 406 // reconstruct the underlying VideoReceiveStream. Also serves as a wrapper |
400 // between webrtc::VideoRenderer and cricket::VideoRenderer. | 407 // between webrtc::VideoRenderer and cricket::VideoRenderer. |
401 class WebRtcVideoReceiveStream : public webrtc::VideoRenderer { | 408 class WebRtcVideoReceiveStream : public webrtc::VideoRenderer { |
402 public: | 409 public: |
403 WebRtcVideoReceiveStream( | 410 WebRtcVideoReceiveStream( |
404 webrtc::Call* call, | 411 webrtc::Call* call, |
405 const StreamParams& sp, | 412 const StreamParams& sp, |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
527 WebRtcVideoDecoderFactory* const external_decoder_factory_; | 534 WebRtcVideoDecoderFactory* const external_decoder_factory_; |
528 std::vector<VideoCodecSettings> recv_codecs_; | 535 std::vector<VideoCodecSettings> recv_codecs_; |
529 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; | 536 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; |
530 webrtc::Call::Config::BitrateConfig bitrate_config_; | 537 webrtc::Call::Config::BitrateConfig bitrate_config_; |
531 VideoOptions options_; | 538 VideoOptions options_; |
532 }; | 539 }; |
533 | 540 |
534 } // namespace cricket | 541 } // namespace cricket |
535 | 542 |
536 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_H_ | 543 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_H_ |
OLD | NEW |