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

#include <webrtcvideocapturer.h>

Inheritance diagram for cricket::WebRtcVideoCapturer:
cricket::VideoCapturer rtc::VideoSinkInterface< webrtc::VideoFrame > cricket::VideoCapturer rtc::VideoSinkInterface< webrtc::VideoFrame > 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

 WebRtcVideoCapturer ()
 
 WebRtcVideoCapturer (WebRtcVcmFactoryInterface *factory)
 
virtual ~WebRtcVideoCapturer ()
 
bool Init (const Device &device)
 
bool Init (const rtc::scoped_refptr< webrtc::VideoCaptureModule > &module)
 
bool GetBestCaptureFormat (const VideoFormat &desired, VideoFormat *best_format) override
 
CaptureState Start (const VideoFormat &capture_format) override
 
void Stop () override
 
bool IsRunning () override
 
bool IsScreencast () const override
 
 WebRtcVideoCapturer ()
 
 WebRtcVideoCapturer (WebRtcVcmFactoryInterface *factory)
 
virtual ~WebRtcVideoCapturer ()
 
bool Init (const Device &device)
 
bool Init (const rtc::scoped_refptr< webrtc::VideoCaptureModule > &module)
 
bool GetBestCaptureFormat (const VideoFormat &desired, VideoFormat *best_format) override
 
CaptureState Start (const VideoFormat &capture_format) override
 
void Stop () override
 
bool IsRunning () override
 
bool IsScreencast () const override
 
- Public Member Functions inherited from cricket::VideoCapturer
 VideoCapturer ()
 
virtual ~VideoCapturer ()
 
const std::stringGetId () const
 
const std::vector< VideoFormat > * GetSupportedFormats () const
 
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
 
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 ()
 
- Public Member Functions inherited from rtc::VideoSinkInterface< webrtc::VideoFrame >
virtual ~VideoSinkInterface ()
 
virtual ~VideoSinkInterface ()
 

Protected Member Functions

void OnSinkWantsChanged (const rtc::VideoSinkWants &wants) override
 
bool GetPreferredFourccs (std::vector< uint32_t > *fourccs) override
 
void OnSinkWantsChanged (const rtc::VideoSinkWants &wants) override
 
bool GetPreferredFourccs (std::vector< uint32_t > *fourccs) override
 
- Protected Member Functions inherited from cricket::VideoCapturer
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)
 
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 ()
 

Additional Inherited Members

- Public Attributes inherited from cricket::VideoCapturer
sigslot::signal2< VideoCapturer *, CaptureStateSignalStateChange
 

Constructor & Destructor Documentation

◆ WebRtcVideoCapturer() [1/4]

cricket::WebRtcVideoCapturer::WebRtcVideoCapturer ( )

◆ WebRtcVideoCapturer() [2/4]

cricket::WebRtcVideoCapturer::WebRtcVideoCapturer ( WebRtcVcmFactoryInterface factory)
explicit

◆ ~WebRtcVideoCapturer() [1/2]

cricket::WebRtcVideoCapturer::~WebRtcVideoCapturer ( )
virtual

◆ WebRtcVideoCapturer() [3/4]

cricket::WebRtcVideoCapturer::WebRtcVideoCapturer ( )

◆ WebRtcVideoCapturer() [4/4]

cricket::WebRtcVideoCapturer::WebRtcVideoCapturer ( WebRtcVcmFactoryInterface factory)
explicit

◆ ~WebRtcVideoCapturer() [2/2]

virtual cricket::WebRtcVideoCapturer::~WebRtcVideoCapturer ( )
virtual

Member Function Documentation

◆ GetBestCaptureFormat() [1/2]

bool cricket::WebRtcVideoCapturer::GetBestCaptureFormat ( const VideoFormat desired,
VideoFormat best_format 
)
overridevirtual

Reimplemented from cricket::VideoCapturer.

◆ GetBestCaptureFormat() [2/2]

bool cricket::WebRtcVideoCapturer::GetBestCaptureFormat ( const VideoFormat desired,
VideoFormat best_format 
)
overridevirtual

Reimplemented from cricket::VideoCapturer.

◆ GetPreferredFourccs() [1/2]

bool cricket::WebRtcVideoCapturer::GetPreferredFourccs ( std::vector< uint32_t > *  fourccs)
overrideprotectedvirtual

◆ GetPreferredFourccs() [2/2]

bool cricket::WebRtcVideoCapturer::GetPreferredFourccs ( std::vector< uint32_t > *  fourccs)
overrideprotectedvirtual

◆ Init() [1/4]

bool cricket::WebRtcVideoCapturer::Init ( const Device device)

◆ Init() [2/4]

bool cricket::WebRtcVideoCapturer::Init ( const Device device)

◆ Init() [3/4]

bool cricket::WebRtcVideoCapturer::Init ( const rtc::scoped_refptr< webrtc::VideoCaptureModule > &  module)

◆ Init() [4/4]

bool cricket::WebRtcVideoCapturer::Init ( const rtc::scoped_refptr< webrtc::VideoCaptureModule > &  module)

◆ IsRunning() [1/2]

bool cricket::WebRtcVideoCapturer::IsRunning ( )
overridevirtual

◆ IsRunning() [2/2]

bool cricket::WebRtcVideoCapturer::IsRunning ( )
overridevirtual

◆ IsScreencast() [1/2]

bool cricket::WebRtcVideoCapturer::IsScreencast ( ) const
inlineoverridevirtual

◆ IsScreencast() [2/2]

bool cricket::WebRtcVideoCapturer::IsScreencast ( ) const
inlineoverridevirtual

◆ OnSinkWantsChanged() [1/2]

void cricket::WebRtcVideoCapturer::OnSinkWantsChanged ( const rtc::VideoSinkWants wants)
overrideprotectedvirtual

Reimplemented from cricket::VideoCapturer.

◆ OnSinkWantsChanged() [2/2]

void cricket::WebRtcVideoCapturer::OnSinkWantsChanged ( const rtc::VideoSinkWants wants)
overrideprotectedvirtual

Reimplemented from cricket::VideoCapturer.

◆ Start() [1/2]

CaptureState cricket::WebRtcVideoCapturer::Start ( const VideoFormat capture_format)
overridevirtual

◆ Start() [2/2]

CaptureState cricket::WebRtcVideoCapturer::Start ( const VideoFormat capture_format)
overridevirtual

◆ Stop() [1/2]

void cricket::WebRtcVideoCapturer::Stop ( )
overridevirtual

◆ Stop() [2/2]

void cricket::WebRtcVideoCapturer::Stop ( )
overridevirtual

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