40 #include <pc/video_track_source.h>
45 namespace visualization {
46 namespace webrtc_server {
56 static rtc::scoped_refptr<VideoFilter>
Create(
57 rtc::scoped_refptr<BitmapTrackSourceInterface> video_source,
58 const std::map<std::string, std::string>& opts) {
59 std::unique_ptr<T> source = absl::WrapUnique(
new T(video_source, opts));
63 return new rtc::RefCountedObject<VideoFilter>(std::move(source));
70 SourceState
state()
const override {
return kLive; }
73 T* source = source_.get();
75 stats->input_height = source->height();
76 stats->input_width = source->width();
83 rtc::VideoSourceInterface<webrtc::VideoFrame>* source()
override {
86 std::unique_ptr<T> source_;
Definition: BitmapTrackSource.h:80
VideoFilter is a templated class for video frame processing.
Definition: VideoFilter.h:54
VideoFilter(std::unique_ptr< T > source)
Definition: VideoFilter.h:67
SourceState state() const override
Definition: VideoFilter.h:70
static rtc::scoped_refptr< VideoFilter > Create(rtc::scoped_refptr< BitmapTrackSourceInterface > video_source, const std::map< std::string, std::string > &opts)
Definition: VideoFilter.h:56
bool GetStats(Stats *stats) override
Definition: VideoFilter.h:71
Definition: PinholeCameraIntrinsic.cpp:35