| #include "VideoCapturerInterface.h" |
| 6 |
| 7 | namespace tgcalls { |
| 8 |
| 9 | class DesktopInterface : public PlatformInterface { |
| 10 | public: |
| 11 | std::unique_ptr<webrtc::VideoEncoderFactory> makeVideoEncoderFactory(bool preferHardwareEncoding = false, bool isScreencast = false) override; |
| 12 | std::unique_ptr<webrtc::VideoDecoderFactory> makeVideoDecoderFactory() override; |
| 13 | bool supportsEncoding(const std::string &codecName) override; |
| 14 | rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> makeVideoSource(rtc::Thread *signalingThread, rtc::Thread *workerThread) override; |
| 15 | void adaptVideoSource(rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> videoSource, int width, int height, int fps) override; |
| 16 | std::unique_ptr<VideoCapturerInterface> makeVideoCapturer(rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> source, std::string deviceId, std::function<void(VideoState)> stateUpdated, std::function<void(PlatformCaptureInfo)> captureInfoUpdated, std::shared_ptr<PlatformContext> platformContext, std::pair<int, int> &outResolution) override; |
| 17 |
| 18 | }; |
| 19 |
| 20 | } // namespace tgcalls |
| 21 |
| 22 | #endif // TGCALLS_DESKTOP_INTERFACE_H |
| 23 |