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_;
core::Tensor result
Definition: VtkUtils.cpp:75
Definition: BitmapTrackSource.h:61
VideoFilter is a templated class for video frame processing.
Definition: VideoFilter.h:35
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: PinholeCameraIntrinsic.cpp:16