mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-13 23:09:24 +00:00
32 lines
979 B
C++
32 lines
979 B
C++
#ifndef CODECS_APPLE_H
|
|
#define CODECS_APPLE_H
|
|
|
|
#include "rtc_base/thread.h"
|
|
#include "api/video_codecs/video_encoder_factory.h"
|
|
#include "api/video_codecs/video_decoder_factory.h"
|
|
#include "api/media_stream_interface.h"
|
|
|
|
#ifdef TGVOIP_NAMESPACE
|
|
namespace TGVOIP_NAMESPACE {
|
|
#endif
|
|
|
|
class VideoCapturerInterface {
|
|
public:
|
|
virtual ~VideoCapturerInterface();
|
|
|
|
virtual void setIsEnabled(bool isEnabled) = 0;
|
|
};
|
|
|
|
void configurePlatformAudio();
|
|
std::unique_ptr<webrtc::VideoEncoderFactory> makeVideoEncoderFactory();
|
|
std::unique_ptr<webrtc::VideoDecoderFactory> makeVideoDecoderFactory();
|
|
bool supportsH265Encoding();
|
|
rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> makeVideoSource(rtc::Thread *signalingThread, rtc::Thread *workerThread);
|
|
std::unique_ptr<VideoCapturerInterface> makeVideoCapturer(rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> source, bool useFrontCamera, std::function<void(bool)> isActiveUpdated);
|
|
|
|
#ifdef TGVOIP_NAMESPACE
|
|
}
|
|
#endif
|
|
|
|
#endif
|