tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

video_capture.h (1489B)


      1 /*
      2 *  Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
      3 *
      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
      6 *  tree. An additional intellectual property rights grant can be found
      7 *  in the file PATENTS.  All contributing project authors may
      8 *  be found in the AUTHORS file in the root of the source tree.
      9 */
     10 
     11 #ifndef MODULES_VIDEO_CAPTURE_OBJC_VIDEO_CAPTURE_H_
     12 #define MODULES_VIDEO_CAPTURE_OBJC_VIDEO_CAPTURE_H_
     13 
     14 #include "api/scoped_refptr.h"
     15 #include "modules/video_capture/video_capture_impl.h"
     16 #include "system_wrappers/include/clock.h"
     17 
     18 @class RTCVideoCaptureIosObjC;
     19 
     20 namespace webrtc::videocapturemodule {
     21 class VideoCaptureIos : public VideoCaptureImpl {
     22 public:
     23  VideoCaptureIos(Clock* _Nonnull clock);
     24  virtual ~VideoCaptureIos();
     25 
     26  static webrtc::scoped_refptr<VideoCaptureModule> Create(
     27      Clock* _Nonnull clock,
     28      const char* _Null_unspecified device_unique_id_utf8);
     29 
     30  // Implementation of VideoCaptureImpl.
     31  int32_t StartCapture(const VideoCaptureCapability& capability) override;
     32  int32_t StopCapture() override;
     33  bool CaptureStarted() override;
     34  int32_t CaptureSettings(VideoCaptureCapability& settings) override;
     35 
     36 private:
     37  RTCVideoCaptureIosObjC* _Null_unspecified capture_device_;
     38  bool is_capturing_;
     39  VideoCaptureCapability capability_;
     40 };
     41 
     42 }  // namespace webrtc::videocapturemodule
     43 
     44 #endif  // MODULES_VIDEO_CAPTURE_OBJC_VIDEO_CAPTURE_H_