Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
42
TMessagesProj/jni/voip/tgcalls/VideoCapturerInterface.h
Normal file
42
TMessagesProj/jni/voip/tgcalls/VideoCapturerInterface.h
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
#ifndef TGCALLS_VIDEO_CAPTURER_INTERFACE_H
|
||||
#define TGCALLS_VIDEO_CAPTURER_INTERFACE_H
|
||||
|
||||
#include "Instance.h"
|
||||
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
|
||||
namespace rtc {
|
||||
template <typename VideoFrameT>
|
||||
class VideoSinkInterface;
|
||||
} // namespace rtc
|
||||
|
||||
namespace webrtc {
|
||||
class VideoFrame;
|
||||
} // namespace webrtc
|
||||
|
||||
namespace tgcalls {
|
||||
|
||||
class VideoCapturerInterface {
|
||||
public:
|
||||
virtual ~VideoCapturerInterface() = default;
|
||||
|
||||
virtual void setState(VideoState state) = 0;
|
||||
virtual void setPreferredCaptureAspectRatio(float aspectRatio) = 0;
|
||||
virtual void setUncroppedOutput(std::shared_ptr<rtc::VideoSinkInterface<webrtc::VideoFrame>> sink) = 0;
|
||||
virtual int getRotation() = 0;
|
||||
virtual void setOnFatalError(std::function<void()> error) {
|
||||
// TODO: make this function pure virtual when everybody implements it.
|
||||
}
|
||||
virtual void setOnPause(std::function<void(bool)> pause) {
|
||||
// TODO: make this function pure virtual when everybody implements it.
|
||||
}
|
||||
virtual void withNativeImplementation(std::function<void(void *)> completion) {
|
||||
completion(nullptr);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
} // namespace tgcalls
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue