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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 EncodingTimeObserver* encoding_time_observer); | 58 EncodingTimeObserver* encoding_time_observer); |
59 ~VideoCaptureInput(); | 59 ~VideoCaptureInput(); |
60 | 60 |
61 void IncomingCapturedFrame(const VideoFrame& video_frame) override; | 61 void IncomingCapturedFrame(const VideoFrame& video_frame) override; |
62 | 62 |
63 private: | 63 private: |
64 // Thread functions for deliver captured frames to receivers. | 64 // Thread functions for deliver captured frames to receivers. |
65 static bool EncoderThreadFunction(void* obj); | 65 static bool EncoderThreadFunction(void* obj); |
66 bool EncoderProcess(); | 66 bool EncoderProcess(); |
67 | 67 |
68 void DeliverI420Frame(VideoFrame* video_frame); | |
69 | |
70 rtc::scoped_ptr<CriticalSectionWrapper> capture_cs_; | 68 rtc::scoped_ptr<CriticalSectionWrapper> capture_cs_; |
71 ProcessThread* const module_process_thread_; | 69 ProcessThread* const module_process_thread_; |
72 | 70 |
73 VideoCaptureCallback* const frame_callback_; | 71 VideoCaptureCallback* const frame_callback_; |
74 VideoRenderer* const local_renderer_; | 72 VideoRenderer* const local_renderer_; |
75 SendStatisticsProxy* const stats_proxy_; | 73 SendStatisticsProxy* const stats_proxy_; |
76 | 74 |
77 // Frame used in IncomingFrameI420. | 75 // Frame used in IncomingFrameI420. |
78 rtc::scoped_ptr<CriticalSectionWrapper> incoming_frame_cs_; | 76 rtc::scoped_ptr<CriticalSectionWrapper> incoming_frame_cs_; |
79 VideoFrame incoming_frame_; | 77 VideoFrame incoming_frame_; |
(...skipping 10 matching lines...) Expand all Loading... |
90 const int64_t delta_ntp_internal_ms_; | 88 const int64_t delta_ntp_internal_ms_; |
91 | 89 |
92 rtc::scoped_ptr<OveruseFrameDetector> overuse_detector_; | 90 rtc::scoped_ptr<OveruseFrameDetector> overuse_detector_; |
93 EncodingTimeObserver* const encoding_time_observer_; | 91 EncodingTimeObserver* const encoding_time_observer_; |
94 }; | 92 }; |
95 | 93 |
96 } // namespace internal | 94 } // namespace internal |
97 } // namespace webrtc | 95 } // namespace webrtc |
98 | 96 |
99 #endif // WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_ | 97 #endif // WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_ |
OLD | NEW |