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

#include <videocapturer.h>

Inheritance diagram for cricket::VideoCapturer:
sigslot::has_slots<> rtc::VideoSourceInterface< webrtc::VideoFrame > sigslot::has_slots<> rtc::VideoSourceInterface< webrtc::VideoFrame > sigslot::has_slots_interface sigslot::has_slots_interface sigslot::has_slots_interface sigslot::has_slots_interface cricket::FakeVideoCapturer cricket::FakeVideoCapturer cricket::WebRtcVideoCapturer cricket::WebRtcVideoCapturer webrtc::AVFoundationVideoCapturer webrtc::AVFoundationVideoCapturer TestVideoCapturer webrtc::FakePeriodicVideoCapturer webrtc::FakePeriodicVideoCapturer TestVideoCapturer webrtc::FakePeriodicVideoCapturer webrtc::FakePeriodicVideoCapturer

Public Member Functions

 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)
 
virtual CaptureState Start (const VideoFormat &capture_format)=0
 
const VideoFormatGetCaptureFormat () const
 
virtual void Stop ()=0
 
virtual bool IsRunning ()=0
 
CaptureState capture_state () const
 
virtual bool apply_rotation ()
 
virtual bool IsScreencast () const =0
 
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)
 
virtual CaptureState Start (const VideoFormat &capture_format)=0
 
const VideoFormatGetCaptureFormat () const
 
virtual void Stop ()=0
 
virtual bool IsRunning ()=0
 
CaptureState capture_state () const
 
virtual bool apply_rotation ()
 
virtual bool IsScreencast () const =0
 
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::signal2< VideoCapturer *, CaptureStateSignalStateChange
 

Protected Member Functions

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)
 
virtual bool GetPreferredFourccs (std::vector< uint32_t > *fourccs)=0
 
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)
 
virtual bool GetPreferredFourccs (std::vector< uint32_t > *fourccs)=0
 
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

◆ VideoCapturer() [1/2]

cricket::VideoCapturer::VideoCapturer ( )

◆ ~VideoCapturer() [1/2]

virtual cricket::VideoCapturer::~VideoCapturer ( )
inlinevirtual

◆ VideoCapturer() [2/2]

cricket::VideoCapturer::VideoCapturer ( )

◆ ~VideoCapturer() [2/2]

virtual cricket::VideoCapturer::~VideoCapturer ( )
inlinevirtual

Member Function Documentation

◆ AdaptFrame() [1/2]

bool cricket::VideoCapturer::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 
)
protected

◆ AdaptFrame() [2/2]

bool cricket::VideoCapturer::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 
)
protected

◆ AddOrUpdateSink() [1/2]

void cricket::VideoCapturer::AddOrUpdateSink ( rtc::VideoSinkInterface< webrtc::VideoFrame > *  sink,
const rtc::VideoSinkWants wants 
)
overridevirtual

◆ AddOrUpdateSink() [2/2]

void cricket::VideoCapturer::AddOrUpdateSink ( rtc::VideoSinkInterface< webrtc::VideoFrame > *  sink,
const rtc::VideoSinkWants wants 
)
overridevirtual

◆ apply_rotation() [1/2]

virtual bool cricket::VideoCapturer::apply_rotation ( )
inlinevirtual

◆ apply_rotation() [2/2]

virtual bool cricket::VideoCapturer::apply_rotation ( )
inlinevirtual

◆ capture_state() [1/2]

CaptureState cricket::VideoCapturer::capture_state ( ) const
inline

◆ capture_state() [2/2]

CaptureState cricket::VideoCapturer::capture_state ( ) const
inline

◆ ConstrainSupportedFormats() [1/2]

void cricket::VideoCapturer::ConstrainSupportedFormats ( const VideoFormat max_format)

◆ ConstrainSupportedFormats() [2/2]

void cricket::VideoCapturer::ConstrainSupportedFormats ( const VideoFormat max_format)

◆ enable_camera_list() [1/2]

bool cricket::VideoCapturer::enable_camera_list ( )
inline

◆ enable_camera_list() [2/2]

bool cricket::VideoCapturer::enable_camera_list ( )
inline

◆ enable_video_adapter() [1/2]

bool cricket::VideoCapturer::enable_video_adapter ( ) const
inline

◆ enable_video_adapter() [2/2]

bool cricket::VideoCapturer::enable_video_adapter ( ) const
inline

◆ GetBestCaptureFormat() [1/2]

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

◆ GetBestCaptureFormat() [2/2]

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

◆ GetCaptureFormat() [1/2]

const VideoFormat* cricket::VideoCapturer::GetCaptureFormat ( ) const
inline

◆ GetCaptureFormat() [2/2]

const VideoFormat* cricket::VideoCapturer::GetCaptureFormat ( ) const
inline

◆ GetId() [1/2]

const std::string& cricket::VideoCapturer::GetId ( ) const
inline

◆ GetId() [2/2]

const std::string& cricket::VideoCapturer::GetId ( ) const
inline

◆ GetInputSize() [1/2]

bool cricket::VideoCapturer::GetInputSize ( int *  width,
int *  height 
)

◆ GetInputSize() [2/2]

bool cricket::VideoCapturer::GetInputSize ( int *  width,
int *  height 
)

◆ GetPreferredFourccs() [1/2]

virtual bool cricket::VideoCapturer::GetPreferredFourccs ( std::vector< uint32_t > *  fourccs)
protectedpure virtual

◆ GetPreferredFourccs() [2/2]

virtual bool cricket::VideoCapturer::GetPreferredFourccs ( std::vector< uint32_t > *  fourccs)
protectedpure virtual

◆ GetSupportedFormats() [1/2]

const std::vector< VideoFormat > * cricket::VideoCapturer::GetSupportedFormats ( ) const

◆ GetSupportedFormats() [2/2]

const std::vector<VideoFormat>* cricket::VideoCapturer::GetSupportedFormats ( ) const

◆ IsRunning() [1/2]

virtual bool cricket::VideoCapturer::IsRunning ( )
pure virtual

◆ IsRunning() [2/2]

virtual bool cricket::VideoCapturer::IsRunning ( )
pure virtual

◆ IsScreencast() [1/2]

virtual bool cricket::VideoCapturer::IsScreencast ( ) const
pure virtual

◆ IsScreencast() [2/2]

virtual bool cricket::VideoCapturer::IsScreencast ( ) const
pure virtual

◆ OnFrame() [1/2]

void cricket::VideoCapturer::OnFrame ( const webrtc::VideoFrame frame,
int  orig_width,
int  orig_height 
)
protected

◆ OnFrame() [2/2]

void cricket::VideoCapturer::OnFrame ( const webrtc::VideoFrame frame,
int  orig_width,
int  orig_height 
)
protected

◆ OnSinkWantsChanged() [1/2]

void cricket::VideoCapturer::OnSinkWantsChanged ( const rtc::VideoSinkWants wants)
protectedvirtual

◆ OnSinkWantsChanged() [2/2]

virtual void cricket::VideoCapturer::OnSinkWantsChanged ( const rtc::VideoSinkWants wants)
protectedvirtual

◆ RemoveSink() [1/2]

void cricket::VideoCapturer::RemoveSink ( rtc::VideoSinkInterface< webrtc::VideoFrame > *  sink)
overridevirtual

◆ RemoveSink() [2/2]

void cricket::VideoCapturer::RemoveSink ( rtc::VideoSinkInterface< webrtc::VideoFrame > *  sink)
overridevirtual

◆ set_enable_camera_list() [1/2]

void cricket::VideoCapturer::set_enable_camera_list ( bool  enable_camera_list)
inline

◆ set_enable_camera_list() [2/2]

void cricket::VideoCapturer::set_enable_camera_list ( bool  enable_camera_list)
inline

◆ set_enable_video_adapter() [1/2]

void cricket::VideoCapturer::set_enable_video_adapter ( bool  enable_video_adapter)
inline

◆ set_enable_video_adapter() [2/2]

void cricket::VideoCapturer::set_enable_video_adapter ( bool  enable_video_adapter)
inline

◆ SetCaptureFormat() [1/2]

void cricket::VideoCapturer::SetCaptureFormat ( const VideoFormat format)
inlineprotected

◆ SetCaptureFormat() [2/2]

void cricket::VideoCapturer::SetCaptureFormat ( const VideoFormat format)
inlineprotected

◆ SetCaptureState() [1/2]

void cricket::VideoCapturer::SetCaptureState ( CaptureState  state)
protected

◆ SetCaptureState() [2/2]

void cricket::VideoCapturer::SetCaptureState ( CaptureState  state)
protected

◆ SetId() [1/2]

void cricket::VideoCapturer::SetId ( const std::string id)
inlineprotected

◆ SetId() [2/2]

void cricket::VideoCapturer::SetId ( const std::string id)
inlineprotected

◆ SetSupportedFormats() [1/2]

void cricket::VideoCapturer::SetSupportedFormats ( const std::vector< VideoFormat > &  formats)
protected

◆ SetSupportedFormats() [2/2]

void cricket::VideoCapturer::SetSupportedFormats ( const std::vector< VideoFormat > &  formats)
protected

◆ Start() [1/2]

virtual CaptureState cricket::VideoCapturer::Start ( const VideoFormat capture_format)
pure virtual

◆ Start() [2/2]

virtual CaptureState cricket::VideoCapturer::Start ( const VideoFormat capture_format)
pure virtual

◆ StartCapturing() [1/2]

bool cricket::VideoCapturer::StartCapturing ( const VideoFormat capture_format)

◆ StartCapturing() [2/2]

bool cricket::VideoCapturer::StartCapturing ( const VideoFormat capture_format)

◆ Stop() [1/2]

virtual void cricket::VideoCapturer::Stop ( )
pure virtual

◆ Stop() [2/2]

virtual void cricket::VideoCapturer::Stop ( )
pure virtual

◆ video_adapter() [1/2]

VideoAdapter* cricket::VideoCapturer::video_adapter ( )
inlineprotected

◆ video_adapter() [2/2]

VideoAdapter* cricket::VideoCapturer::video_adapter ( )
inlineprotected

Member Data Documentation

◆ SignalStateChange

sigslot::signal2< VideoCapturer *, CaptureState > cricket::VideoCapturer::SignalStateChange

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