| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 bool GetVideoFrame(VideoFrame* frame); | 47 bool GetVideoFrame(VideoFrame* frame); |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 rtc::CriticalSection crit_; | 50 rtc::CriticalSection crit_; |
| 51 | 51 |
| 52 rtc::VideoSinkInterface<VideoFrame>* const local_renderer_; | 52 rtc::VideoSinkInterface<VideoFrame>* const local_renderer_; |
| 53 SendStatisticsProxy* const stats_proxy_; | 53 SendStatisticsProxy* const stats_proxy_; |
| 54 rtc::Event* const capture_event_; | 54 rtc::Event* const capture_event_; |
| 55 | 55 |
| 56 VideoFrame captured_frame_ GUARDED_BY(crit_); | 56 std::unique_ptr<VideoFrame> captured_frame_ GUARDED_BY(crit_); |
| 57 Clock* const clock_; | 57 Clock* const clock_; |
| 58 // Used to make sure incoming time stamp is increasing for every frame. | 58 // Used to make sure incoming time stamp is increasing for every frame. |
| 59 int64_t last_captured_timestamp_; | 59 int64_t last_captured_timestamp_; |
| 60 // Delta used for translating between NTP and internal timestamps. | 60 // Delta used for translating between NTP and internal timestamps. |
| 61 const int64_t delta_ntp_internal_ms_; | 61 const int64_t delta_ntp_internal_ms_; |
| 62 | 62 |
| 63 OveruseFrameDetector* const overuse_detector_; | 63 OveruseFrameDetector* const overuse_detector_; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace internal | 66 } // namespace internal |
| 67 } // namespace webrtc | 67 } // namespace webrtc |
| 68 | 68 |
| 69 #endif // WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_ | 69 #endif // WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_ |
| OLD | NEW |