webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
webrtc::AVFoundationVideoCapturer Class Reference

#include <avfoundationvideocapturer.h>

Inheritance diagram for webrtc::AVFoundationVideoCapturer:
cricket::VideoCapturer cricket::VideoCapturer rtc::VideoSourceInterface< webrtc::VideoFrame > sigslot::has_slots<> rtc::VideoSourceInterface< webrtc::VideoFrame > sigslot::has_slots<> rtc::VideoSourceInterface< webrtc::VideoFrame > sigslot::has_slots<> rtc::VideoSourceInterface< webrtc::VideoFrame > sigslot::has_slots<>

Public Member Functions

 AVFoundationVideoCapturer ()
 
 ~AVFoundationVideoCapturer ()
 
cricket::CaptureState Start (const cricket::VideoFormat &format) override
 
void Stop () override
 
bool IsRunning () override
 
bool IsScreencast () const override
 
bool GetPreferredFourccs (std::vector< uint32_t > *fourccs) override
 
AVCaptureSession * GetCaptureSession ()
 
bool CanUseBackCamera () const
 
void SetUseBackCamera (bool useBackCamera)
 
bool GetUseBackCamera () const
 
void CaptureSampleBuffer (CMSampleBufferRef sample_buffer, webrtc::VideoRotation rotation)
 
void AdaptOutputFormat (int width, int height, int fps)
 
 AVFoundationVideoCapturer ()
 
 ~AVFoundationVideoCapturer ()
 
cricket::CaptureState Start (const cricket::VideoFormat &format) override
 
void Stop () override
 
bool IsRunning () override
 
bool IsScreencast () const override
 
bool GetPreferredFourccs (std::vector< uint32_t > *fourccs) override
 
AVCaptureSession * GetCaptureSession ()
 
bool CanUseBackCamera () const
 
void SetUseBackCamera (bool useBackCamera)
 
bool GetUseBackCamera () const
 
void CaptureSampleBuffer (CMSampleBufferRef sample_buffer, webrtc::VideoRotation rotation)
 
void AdaptOutputFormat (int width, int height, int fps)
 
- Public Member Functions inherited from cricket::VideoCapturer
 VideoCapturer ()
 
virtual ~VideoCapturer ()
 
const std::stringGetId () const
 
const std::vector< VideoFormat > * GetSupportedFormats () const
 
virtual bool GetBestCaptureFormat (const VideoFormat &desired, VideoFormat *best_format)
 
bool StartCapturing (const VideoFormat &capture_format)
 
const VideoFormatGetCaptureFormat () const
 
CaptureState capture_state () const
 
virtual bool apply_rotation ()
 
void ConstrainSupportedFormats (const VideoFormat &max_format)
 
void set_enable_camera_list (bool enable_camera_list)
 
bool enable_camera_list ()
 
bool enable_video_adapter () const
 
void set_enable_video_adapter (bool enable_video_adapter)
 
bool GetInputSize (int *width, int *height)
 
void AddOrUpdateSink (rtc::VideoSinkInterface< webrtc::VideoFrame > *sink, const rtc::VideoSinkWants &wants) override
 
void RemoveSink (rtc::VideoSinkInterface< webrtc::VideoFrame > *sink) override
 
 VideoCapturer ()
 
virtual ~VideoCapturer ()
 
const std::stringGetId () const
 
const std::vector< VideoFormat > * GetSupportedFormats () const
 
virtual bool GetBestCaptureFormat (const VideoFormat &desired, VideoFormat *best_format)
 
bool StartCapturing (const VideoFormat &capture_format)
 
const VideoFormatGetCaptureFormat () const
 
CaptureState capture_state () const
 
virtual bool apply_rotation ()
 
void ConstrainSupportedFormats (const VideoFormat &max_format)
 
void set_enable_camera_list (bool enable_camera_list)
 
bool enable_camera_list ()
 
bool enable_video_adapter () const
 
void set_enable_video_adapter (bool enable_video_adapter)
 
bool GetInputSize (int *width, int *height)
 
void AddOrUpdateSink (rtc::VideoSinkInterface< webrtc::VideoFrame > *sink, const rtc::VideoSinkWants &wants) override
 
void RemoveSink (rtc::VideoSinkInterface< webrtc::VideoFrame > *sink) override
 
- Public Member Functions inherited from sigslot::has_slots<>
 has_slots ()
 
 has_slots ()
 
 ~has_slots ()
 
 ~has_slots ()
 
- Public Member Functions inherited from sigslot::has_slots_interface
void signal_connect (_signal_base_interface *sender)
 
void signal_disconnect (_signal_base_interface *sender)
 
void disconnect_all ()
 
void signal_connect (_signal_base_interface *sender)
 
void signal_disconnect (_signal_base_interface *sender)
 
void disconnect_all ()
 

Additional Inherited Members

- Public Attributes inherited from cricket::VideoCapturer
sigslot::signal2< VideoCapturer *, CaptureStateSignalStateChange
 
- Protected Member Functions inherited from cricket::VideoCapturer
virtual void OnSinkWantsChanged (const rtc::VideoSinkWants &wants)
 
bool AdaptFrame (int width, int height, int64_t camera_time_us, int64_t system_time_us, int *out_width, int *out_height, int *crop_width, int *crop_height, int *crop_x, int *crop_y, int64_t *translated_camera_time_us)
 
void OnFrame (const webrtc::VideoFrame &frame, int orig_width, int orig_height)
 
VideoAdaptervideo_adapter ()
 
void SetCaptureState (CaptureState state)
 
void SetId (const std::string &id)
 
void SetCaptureFormat (const VideoFormat *format)
 
void SetSupportedFormats (const std::vector< VideoFormat > &formats)
 
virtual void OnSinkWantsChanged (const rtc::VideoSinkWants &wants)
 
bool AdaptFrame (int width, int height, int64_t camera_time_us, int64_t system_time_us, int *out_width, int *out_height, int *crop_width, int *crop_height, int *crop_x, int *crop_y, int64_t *translated_camera_time_us)
 
void OnFrame (const webrtc::VideoFrame &frame, int orig_width, int orig_height)
 
VideoAdaptervideo_adapter ()
 
void SetCaptureState (CaptureState state)
 
void SetId (const std::string &id)
 
void SetCaptureFormat (const VideoFormat *format)
 
void SetSupportedFormats (const std::vector< VideoFormat > &formats)
 
- Protected Member Functions inherited from sigslot::has_slots_interface
 has_slots_interface (signal_connect_t conn, signal_disconnect_t disc, disconnect_all_t disc_all)
 
virtual ~has_slots_interface ()
 
 has_slots_interface (signal_connect_t conn, signal_disconnect_t disc, disconnect_all_t disc_all)
 
virtual ~has_slots_interface ()
 
- Protected Member Functions inherited from rtc::VideoSourceInterface< webrtc::VideoFrame >
virtual ~VideoSourceInterface ()
 
virtual ~VideoSourceInterface ()
 

Constructor & Destructor Documentation

◆ AVFoundationVideoCapturer() [1/2]

webrtc::AVFoundationVideoCapturer::AVFoundationVideoCapturer ( )

◆ ~AVFoundationVideoCapturer() [1/2]

webrtc::AVFoundationVideoCapturer::~AVFoundationVideoCapturer ( )

◆ AVFoundationVideoCapturer() [2/2]

webrtc::AVFoundationVideoCapturer::AVFoundationVideoCapturer ( )

◆ ~AVFoundationVideoCapturer() [2/2]

webrtc::AVFoundationVideoCapturer::~AVFoundationVideoCapturer ( )

Member Function Documentation

◆ AdaptOutputFormat() [1/2]

void webrtc::AVFoundationVideoCapturer::AdaptOutputFormat ( int  width,
int  height,
int  fps 
)

◆ AdaptOutputFormat() [2/2]

void webrtc::AVFoundationVideoCapturer::AdaptOutputFormat ( int  width,
int  height,
int  fps 
)

◆ CanUseBackCamera() [1/2]

bool webrtc::AVFoundationVideoCapturer::CanUseBackCamera ( ) const

◆ CanUseBackCamera() [2/2]

bool webrtc::AVFoundationVideoCapturer::CanUseBackCamera ( ) const

◆ CaptureSampleBuffer() [1/2]

void webrtc::AVFoundationVideoCapturer::CaptureSampleBuffer ( CMSampleBufferRef  sample_buffer,
webrtc::VideoRotation  rotation 
)

◆ CaptureSampleBuffer() [2/2]

void webrtc::AVFoundationVideoCapturer::CaptureSampleBuffer ( CMSampleBufferRef  sample_buffer,
webrtc::VideoRotation  rotation 
)

◆ GetCaptureSession() [1/2]

AVCaptureSession* webrtc::AVFoundationVideoCapturer::GetCaptureSession ( )

◆ GetCaptureSession() [2/2]

AVCaptureSession * webrtc::AVFoundationVideoCapturer::GetCaptureSession ( )

◆ GetPreferredFourccs() [1/2]

bool webrtc::AVFoundationVideoCapturer::GetPreferredFourccs ( std::vector< uint32_t > *  fourccs)
inlineoverridevirtual

◆ GetPreferredFourccs() [2/2]

bool webrtc::AVFoundationVideoCapturer::GetPreferredFourccs ( std::vector< uint32_t > *  fourccs)
inlineoverridevirtual

◆ GetUseBackCamera() [1/2]

bool webrtc::AVFoundationVideoCapturer::GetUseBackCamera ( ) const

◆ GetUseBackCamera() [2/2]

bool webrtc::AVFoundationVideoCapturer::GetUseBackCamera ( ) const

◆ IsRunning() [1/2]

bool webrtc::AVFoundationVideoCapturer::IsRunning ( )
overridevirtual

◆ IsRunning() [2/2]

bool webrtc::AVFoundationVideoCapturer::IsRunning ( )
overridevirtual

◆ IsScreencast() [1/2]

bool webrtc::AVFoundationVideoCapturer::IsScreencast ( ) const
inlineoverridevirtual

◆ IsScreencast() [2/2]

bool webrtc::AVFoundationVideoCapturer::IsScreencast ( ) const
inlineoverridevirtual

◆ SetUseBackCamera() [1/2]

void webrtc::AVFoundationVideoCapturer::SetUseBackCamera ( bool  useBackCamera)

◆ SetUseBackCamera() [2/2]

void webrtc::AVFoundationVideoCapturer::SetUseBackCamera ( bool  useBackCamera)

◆ Start() [1/2]

cricket::CaptureState webrtc::AVFoundationVideoCapturer::Start ( const cricket::VideoFormat format)
overridevirtual

◆ Start() [2/2]

cricket::CaptureState webrtc::AVFoundationVideoCapturer::Start ( const cricket::VideoFormat format)
overridevirtual

◆ Stop() [1/2]

void webrtc::AVFoundationVideoCapturer::Stop ( )
overridevirtual

◆ Stop() [2/2]

void webrtc::AVFoundationVideoCapturer::Stop ( )
overridevirtual

The documentation for this class was generated from the following files: