Nagram/TMessagesProj/jni/libtgvoip3/video/VideoRenderer.cpp
2020-04-24 12:21:58 +03:00

32 lines
844 B
C++

//
// Created by Grishka on 10.08.2018.
//
#include "VideoRenderer.h"
#ifdef __ANDROID__
#include "../os/android/VideoRendererAndroid.h"
#elif defined(__APPLE__) && !defined(TARGET_OSX)
#include "../os/darwin/SampleBufferDisplayLayerRenderer.h"
#endif
std::vector<std::uint32_t> tgvoip::video::VideoRenderer::GetAvailableDecoders()
{
#ifdef __ANDROID__
return VideoRendererAndroid::availableDecoders;
#elif defined(__APPLE__) && !defined(TARGET_OSX)
return SampleBufferDisplayLayerRenderer::GetAvailableDecoders();
#endif
return std::vector<std::uint32_t>();
}
int tgvoip::video::VideoRenderer::GetMaximumResolution()
{
#ifdef __ANDROID__
return VideoRendererAndroid::maxResolution;
#elif defined(__APPLE__) && !defined(TARGET_OSX)
return SampleBufferDisplayLayerRenderer::GetMaximumResolution();
#endif
return 0;
}