OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // directly from OnIncomingCapturedFrame. | 71 // directly from OnIncomingCapturedFrame. |
72 // TODO(tommi): Remove this workaround when we've updated the WebRTC capturers | 72 // TODO(tommi): Remove this workaround when we've updated the WebRTC capturers |
73 // to follow the same contract. | 73 // to follow the same contract. |
74 void SignalFrameCapturedOnStartThread(const webrtc::VideoFrame& frame); | 74 void SignalFrameCapturedOnStartThread(const webrtc::VideoFrame& frame); |
75 | 75 |
76 std::unique_ptr<WebRtcVcmFactoryInterface> factory_; | 76 std::unique_ptr<WebRtcVcmFactoryInterface> factory_; |
77 rtc::scoped_refptr<webrtc::VideoCaptureModule> module_; | 77 rtc::scoped_refptr<webrtc::VideoCaptureModule> module_; |
78 int captured_frames_; | 78 int captured_frames_; |
79 std::vector<uint8_t> capture_buffer_; | 79 std::vector<uint8_t> capture_buffer_; |
80 rtc::Thread* start_thread_; // Set in Start(), unset in Stop(); | 80 rtc::Thread* start_thread_; // Set in Start(), unset in Stop(); |
81 | |
82 std::unique_ptr<rtc::AsyncInvoker> async_invoker_; | |
83 }; | 81 }; |
84 | 82 |
85 } // namespace cricket | 83 } // namespace cricket |
86 | 84 |
87 #endif // WEBRTC_MEDIA_WEBRTC_WEBRTCVIDEOCAPTURER_H_ | 85 #endif // WEBRTC_MEDIA_WEBRTC_WEBRTCVIDEOCAPTURER_H_ |
OLD | NEW |