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

#include <fakevideocapturer.h>

Inheritance diagram for cricket::FakeVideoCapturer:
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<> TestVideoCapturer webrtc::FakePeriodicVideoCapturer webrtc::FakePeriodicVideoCapturer

Public Member Functions

 FakeVideoCapturer (bool is_screencast)
 
 FakeVideoCapturer ()
 
 ~FakeVideoCapturer ()
 
void ResetSupportedFormats (const std::vector< cricket::VideoFormat > &formats)
 
bool CaptureFrame ()
 
bool CaptureCustomFrame (int width, int height, uint32_t fourcc)
 
bool CaptureCustomFrame (int width, int height, int64_t timestamp_interval, uint32_t fourcc)
 
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
 
void SetRotation (webrtc::VideoRotation rotation)
 
webrtc::VideoRotation GetRotation ()
 
 FakeVideoCapturer (bool is_screencast)
 
 FakeVideoCapturer ()
 
 ~FakeVideoCapturer ()
 
void ResetSupportedFormats (const std::vector< cricket::VideoFormat > &formats)
 
bool CaptureFrame ()
 
bool CaptureCustomFrame (int width, int height, uint32_t fourcc)
 
bool CaptureCustomFrame (int width, int height, int64_t timestamp_interval, uint32_t fourcc)
 
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
 
void SetRotation (webrtc::VideoRotation rotation)
 
webrtc::VideoRotation GetRotation ()
 
- 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 ()
 

Public Attributes

sigslot::signal1< FakeVideoCapturer * > SignalDestroyed
 
- Public Attributes inherited from cricket::VideoCapturer
sigslot::signal2< VideoCapturer *, CaptureStateSignalStateChange
 

Additional Inherited Members

- 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

◆ FakeVideoCapturer() [1/4]

cricket::FakeVideoCapturer::FakeVideoCapturer ( bool  is_screencast)
inlineexplicit

◆ FakeVideoCapturer() [2/4]

cricket::FakeVideoCapturer::FakeVideoCapturer ( )
inline

◆ ~FakeVideoCapturer() [1/2]

cricket::FakeVideoCapturer::~FakeVideoCapturer ( )
inline

◆ FakeVideoCapturer() [3/4]

cricket::FakeVideoCapturer::FakeVideoCapturer ( bool  is_screencast)
inlineexplicit

◆ FakeVideoCapturer() [4/4]

cricket::FakeVideoCapturer::FakeVideoCapturer ( )
inline

◆ ~FakeVideoCapturer() [2/2]

cricket::FakeVideoCapturer::~FakeVideoCapturer ( )
inline

Member Function Documentation

◆ CaptureCustomFrame() [1/4]

bool cricket::FakeVideoCapturer::CaptureCustomFrame ( int  width,
int  height,
uint32_t  fourcc 
)
inline

◆ CaptureCustomFrame() [2/4]

bool cricket::FakeVideoCapturer::CaptureCustomFrame ( int  width,
int  height,
uint32_t  fourcc 
)
inline

◆ CaptureCustomFrame() [3/4]

bool cricket::FakeVideoCapturer::CaptureCustomFrame ( int  width,
int  height,
int64_t  timestamp_interval,
uint32_t  fourcc 
)
inline

◆ CaptureCustomFrame() [4/4]

bool cricket::FakeVideoCapturer::CaptureCustomFrame ( int  width,
int  height,
int64_t  timestamp_interval,
uint32_t  fourcc 
)
inline

◆ CaptureFrame() [1/2]

bool cricket::FakeVideoCapturer::CaptureFrame ( )
inline

◆ CaptureFrame() [2/2]

bool cricket::FakeVideoCapturer::CaptureFrame ( )
inline

◆ GetPreferredFourccs() [1/2]

bool cricket::FakeVideoCapturer::GetPreferredFourccs ( std::vector< uint32_t > *  fourccs)
inlineoverridevirtual

◆ GetPreferredFourccs() [2/2]

bool cricket::FakeVideoCapturer::GetPreferredFourccs ( std::vector< uint32_t > *  fourccs)
inlineoverridevirtual

◆ GetRotation() [1/2]

webrtc::VideoRotation cricket::FakeVideoCapturer::GetRotation ( )
inline

◆ GetRotation() [2/2]

webrtc::VideoRotation cricket::FakeVideoCapturer::GetRotation ( )
inline

◆ IsRunning() [1/2]

bool cricket::FakeVideoCapturer::IsRunning ( )
inlineoverridevirtual

◆ IsRunning() [2/2]

bool cricket::FakeVideoCapturer::IsRunning ( )
inlineoverridevirtual

◆ IsScreencast() [1/2]

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

◆ IsScreencast() [2/2]

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

◆ ResetSupportedFormats() [1/2]

void cricket::FakeVideoCapturer::ResetSupportedFormats ( const std::vector< cricket::VideoFormat > &  formats)
inline

◆ ResetSupportedFormats() [2/2]

void cricket::FakeVideoCapturer::ResetSupportedFormats ( const std::vector< cricket::VideoFormat > &  formats)
inline

◆ SetRotation() [1/2]

void cricket::FakeVideoCapturer::SetRotation ( webrtc::VideoRotation  rotation)
inline

◆ SetRotation() [2/2]

void cricket::FakeVideoCapturer::SetRotation ( webrtc::VideoRotation  rotation)
inline

◆ Start() [1/2]

cricket::CaptureState cricket::FakeVideoCapturer::Start ( const cricket::VideoFormat format)
inlineoverridevirtual

◆ Start() [2/2]

cricket::CaptureState cricket::FakeVideoCapturer::Start ( const cricket::VideoFormat format)
inlineoverridevirtual

◆ Stop() [1/2]

void cricket::FakeVideoCapturer::Stop ( )
inlineoverridevirtual

◆ Stop() [2/2]

void cricket::FakeVideoCapturer::Stop ( )
inlineoverridevirtual

Member Data Documentation

◆ SignalDestroyed

sigslot::signal1< FakeVideoCapturer * > cricket::FakeVideoCapturer::SignalDestroyed

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