21 #include <pc/video_track_source.h>
26 namespace visualization {
27 namespace webrtc_server {
37 static rtc::scoped_refptr<VideoFilter>
Create(
38 rtc::scoped_refptr<BitmapTrackSourceInterface> video_source,
39 const std::map<std::string, std::string>& opts) {
40 std::unique_ptr<T> source = absl::WrapUnique(
new T(video_source, opts));
44 return new rtc::RefCountedObject<VideoFilter>(std::move(source));
51 SourceState
state()
const override {
return kLive; }
54 T* source = source_.get();
56 stats->input_height = source->height();
57 stats->input_width = source->width();
64 rtc::VideoSourceInterface<webrtc::VideoFrame>* source()
override {
67 std::unique_ptr<T> source_;
VideoFilter is a templated class for video frame processing.
VideoFilter(std::unique_ptr< T > source)
static rtc::scoped_refptr< VideoFilter > Create(rtc::scoped_refptr< BitmapTrackSourceInterface > video_source, const std::map< std::string, std::string > &opts)
bool GetStats(Stats *stats) override
SourceState state() const override
Generic file read and write utility for python interface.