24#include "api/media_stream_interface.h"
25#include "api/video/recordable_encoded_frame.h"
26#include "api/video/video_broadcaster.h"
27#include "api/video/video_frame.h"
28#include "api/video/video_sink_interface.h"
29#include "api/video_track_source_constraints.h"
34namespace webrtc_streaming {
53 void OnFrame(std::shared_ptr<VideoFrameBuffer> frame, int64_t timestamp_us);
56 SourceState
state()
const override;
57 bool remote()
const override;
64 void AddOrUpdateSink(webrtc::VideoSinkInterface<webrtc::VideoFrame>* sink,
65 const webrtc::VideoSinkWants& wants)
override;
67 webrtc::VideoSinkInterface<webrtc::VideoFrame>* sink)
override;
77 bool GetStats(Stats* stats)
override;
82 webrtc::VideoSinkInterface<webrtc::RecordableEncodedFrame>* sink)
85 webrtc::VideoSinkInterface<webrtc::RecordableEncodedFrame>* sink)
88 const webrtc::VideoTrackSourceConstraints& constraints)
override;
109 webrtc::scoped_refptr<VideoTrackSourceImpl> obj)
112 void OnFrame(std::shared_ptr<VideoFrameBuffer> frame,
113 int64_t timestamp_us)
override {
Definition: video_sink.h:26
Definition: video_track_source_impl.h:104
VideoTrackSourceImplSinkWrapper(webrtc::scoped_refptr< VideoTrackSourceImpl > obj)
Definition: video_track_source_impl.h:108
virtual ~VideoTrackSourceImplSinkWrapper()=default
void OnFrame(std::shared_ptr< VideoFrameBuffer > frame, int64_t timestamp_us) override
Definition: video_track_source_impl.h:112
webrtc::scoped_refptr< VideoTrackSourceImpl > track_source_impl_
Definition: video_track_source_impl.h:118
Definition: video_track_source_impl.h:49
void RemoveSink(webrtc::VideoSinkInterface< webrtc::VideoFrame > *sink) override
Definition: video_track_source_impl.cpp:83
void AddEncodedSink(webrtc::VideoSinkInterface< webrtc::RecordableEncodedFrame > *sink) override
Definition: video_track_source_impl.h:81
void GenerateKeyFrame() override
Definition: video_track_source_impl.h:80
void AddOrUpdateSink(webrtc::VideoSinkInterface< webrtc::VideoFrame > *sink, const webrtc::VideoSinkWants &wants) override
Definition: video_track_source_impl.cpp:77
void OnFrame(std::shared_ptr< VideoFrameBuffer > frame, int64_t timestamp_us)
Definition: video_track_source_impl.cpp:41
const int height_
Definition: video_track_source_impl.h:92
const int width_
Definition: video_track_source_impl.h:91
void RegisterObserver(webrtc::ObserverInterface *observer) override
Definition: video_track_source_impl.cpp:71
VideoTrackSourceImpl(int width, int height)
Definition: video_track_source_impl.cpp:38
void UnregisterObserver(webrtc::ObserverInterface *observer) override
Definition: video_track_source_impl.cpp:74
void ProcessConstraints(const webrtc::VideoTrackSourceConstraints &constraints) override
Definition: video_track_source_impl.cpp:102
webrtc::VideoBroadcaster broadcaster_
Definition: video_track_source_impl.h:95
std::optional< bool > needs_denoising() const override
Definition: video_track_source_impl.cpp:90
bool GetStats(Stats *stats) override
Definition: video_track_source_impl.cpp:94
std::mutex timestamp_mutex_
Definition: video_track_source_impl.h:93
bool remote() const override
Definition: video_track_source_impl.cpp:69
void RemoveEncodedSink(webrtc::VideoSinkInterface< webrtc::RecordableEncodedFrame > *sink) override
Definition: video_track_source_impl.h:84
bool is_screencast() const override
Definition: video_track_source_impl.cpp:88
int64_t last_timestamp_us_
Definition: video_track_source_impl.h:94
bool SupportsEncodedOutput() const override
Definition: video_track_source_impl.cpp:100
SourceState state() const override
Definition: video_track_source_impl.cpp:65
Definition: alloc_driver.h:21