webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
TestVideoCapturer Class Reference
Inheritance diagram for TestVideoCapturer:
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<>

Public Member Functions

 TestVideoCapturer (bool is_screencast)
 
void TestWithoutCameraFormats ()
 
virtual cricket::CaptureState Start (const cricket::VideoFormat &capture_format)
 
virtual bool GetBestCaptureFormat (const cricket::VideoFormat &desired, cricket::VideoFormat *best_format)
 
- Public Member Functions inherited from cricket::FakeVideoCapturer
 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)
 
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)
 
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
 
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 ()
 

Additional Inherited Members

- Public Attributes inherited from cricket::FakeVideoCapturer
sigslot::signal1< FakeVideoCapturer * > SignalDestroyed
 
- 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

◆ TestVideoCapturer()

TestVideoCapturer::TestVideoCapturer ( bool  is_screencast)
inlineexplicit

Member Function Documentation

◆ GetBestCaptureFormat()

virtual bool TestVideoCapturer::GetBestCaptureFormat ( const cricket::VideoFormat desired,
cricket::VideoFormat best_format 
)
inlinevirtual

Reimplemented from cricket::VideoCapturer.

◆ Start()

virtual cricket::CaptureState TestVideoCapturer::Start ( const cricket::VideoFormat capture_format)
inlinevirtual

Reimplemented from cricket::FakeVideoCapturer.

◆ TestWithoutCameraFormats()

void TestVideoCapturer::TestWithoutCameraFormats ( )
inline

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