21#include <pc/video_track_source.h>
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_;
BitmapTrackSource(bool remote)
Definition BitmapTrackSource.cpp:28
virtual rtc::VideoSourceInterface< webrtc::VideoFrame > * source()=0
VideoFilter(std::unique_ptr< T > source)
Definition VideoFilter.h:48
SourceState state() const override
Definition VideoFilter.h:51
static rtc::scoped_refptr< VideoFilter > Create(rtc::scoped_refptr< BitmapTrackSourceInterface > video_source, const std::map< std::string, std::string > &opts)
Definition VideoFilter.h:37
bool GetStats(Stats *stats) override
Definition VideoFilter.h:52
Definition BitmapTrackSource.cpp:26
Definition PinholeCameraIntrinsic.cpp:16