Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(473)

Side by Side Diff: webrtc/media/engine/webrtcvideocapturer.h

Issue 2258933003: Refactor WebRtcVideoCapturer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase, and revert HAVE_WEBRTC_VIDEO hack. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 std::unique_ptr<WebRtcVcmFactoryInterface> factory_; 81 std::unique_ptr<WebRtcVcmFactoryInterface> factory_;
82 rtc::scoped_refptr<webrtc::VideoCaptureModule> module_; 82 rtc::scoped_refptr<webrtc::VideoCaptureModule> module_;
83 int captured_frames_; 83 int captured_frames_;
84 std::vector<uint8_t> capture_buffer_; 84 std::vector<uint8_t> capture_buffer_;
85 rtc::Thread* start_thread_; // Set in Start(), unset in Stop(); 85 rtc::Thread* start_thread_; // Set in Start(), unset in Stop();
86 86
87 std::unique_ptr<rtc::AsyncInvoker> async_invoker_; 87 std::unique_ptr<rtc::AsyncInvoker> async_invoker_;
88 }; 88 };
89 89
90 struct WebRtcCapturedFrame : public CapturedFrame {
91 public:
92 WebRtcCapturedFrame(const webrtc::VideoFrame& frame,
93 void* buffer,
94 size_t length);
95 };
96
97 } // namespace cricket 90 } // namespace cricket
98 91
99 #endif // WEBRTC_MEDIA_WEBRTC_WEBRTCVIDEOCAPTURER_H_ 92 #endif // WEBRTC_MEDIA_WEBRTC_WEBRTCVIDEOCAPTURER_H_
OLDNEW
« no previous file with comments | « webrtc/media/engine/fakewebrtcvideocapturemodule.h ('k') | webrtc/media/engine/webrtcvideocapturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698