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

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

Issue 2471783002: Revert of Delete all use of cricket::VideoFrame and cricket::WebRtcVideoFrame. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « webrtc/media/devices/gtkvideorenderer.cc ('k') | webrtc/media/engine/webrtcvideocapturer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 #ifndef WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOCAPTURER_H_ 11 #ifndef WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOCAPTURER_H_
12 #define WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOCAPTURER_H_ 12 #define WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOCAPTURER_H_
13 13
14 #include <memory> 14 #include <memory>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/base/asyncinvoker.h" 18 #include "webrtc/base/asyncinvoker.h"
19 #include "webrtc/base/messagehandler.h" 19 #include "webrtc/base/messagehandler.h"
20 #include "webrtc/base/scoped_ref_ptr.h" 20 #include "webrtc/base/scoped_ref_ptr.h"
21 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" 21 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
22 #include "webrtc/media/base/device.h" 22 #include "webrtc/media/base/device.h"
23 #include "webrtc/media/base/videocapturer.h" 23 #include "webrtc/media/base/videocapturer.h"
24 #include "webrtc/media/engine/webrtcvideoframe.h"
24 #include "webrtc/modules/video_capture/video_capture.h" 25 #include "webrtc/modules/video_capture/video_capture.h"
25 26
26 namespace cricket { 27 namespace cricket {
27 28
28 // Factory to allow injection of a VCM impl into WebRtcVideoCapturer. 29 // Factory to allow injection of a VCM impl into WebRtcVideoCapturer.
29 // DeviceInfos do not have a Release() and therefore need an explicit Destroy(). 30 // DeviceInfos do not have a Release() and therefore need an explicit Destroy().
30 class WebRtcVcmFactoryInterface { 31 class WebRtcVcmFactoryInterface {
31 public: 32 public:
32 virtual ~WebRtcVcmFactoryInterface() {} 33 virtual ~WebRtcVcmFactoryInterface() {}
33 virtual rtc::scoped_refptr<webrtc::VideoCaptureModule> Create( 34 virtual rtc::scoped_refptr<webrtc::VideoCaptureModule> Create(
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 int captured_frames_; 83 int captured_frames_;
83 std::vector<uint8_t> capture_buffer_; 84 std::vector<uint8_t> capture_buffer_;
84 rtc::Thread* start_thread_; // Set in Start(), unset in Stop(); 85 rtc::Thread* start_thread_; // Set in Start(), unset in Stop();
85 86
86 std::unique_ptr<rtc::AsyncInvoker> async_invoker_; 87 std::unique_ptr<rtc::AsyncInvoker> async_invoker_;
87 }; 88 };
88 89
89 } // namespace cricket 90 } // namespace cricket
90 91
91 #endif // WEBRTC_MEDIA_WEBRTC_WEBRTCVIDEOCAPTURER_H_ 92 #endif // WEBRTC_MEDIA_WEBRTC_WEBRTCVIDEOCAPTURER_H_
OLDNEW
« no previous file with comments | « webrtc/media/devices/gtkvideorenderer.cc ('k') | webrtc/media/engine/webrtcvideocapturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698