1
0
mirror of https://github.com/danog/libtgvoip.git synced 2024-12-11 16:49:52 +01:00
libtgvoip/video/VideoRenderer.cpp

30 lines
814 B
C++
Raw Normal View History

//
// Created by Grishka on 10.08.2018.
//
#include "VideoRenderer.h"
2019-02-05 12:41:00 +01:00
#ifdef __ANDROID__
#include "../os/android/VideoRendererAndroid.h"
2019-05-28 13:30:27 +02:00
#elif defined(__APPLE__) && !defined(TARGET_OSX)
#include "../os/darwin/SampleBufferDisplayLayerRenderer.h"
2019-02-05 12:41:00 +01:00
#endif
std::vector<uint32_t> tgvoip::video::VideoRenderer::GetAvailableDecoders(){
#ifdef __ANDROID__
return VideoRendererAndroid::availableDecoders;
2019-05-28 13:30:27 +02:00
#elif defined(__APPLE__) && !defined(TARGET_OSX)
return SampleBufferDisplayLayerRenderer::GetAvailableDecoders();
2019-02-05 12:41:00 +01:00
#endif
return std::vector<uint32_t>();
}
int tgvoip::video::VideoRenderer::GetMaximumResolution(){
#ifdef __ANDROID__
return VideoRendererAndroid::maxResolution;
2019-05-28 13:30:27 +02:00
#elif defined(__APPLE__) && !defined(TARGET_OSX)
return SampleBufferDisplayLayerRenderer::GetMaximumResolution();
2019-02-05 12:41:00 +01:00
#endif
return 0;
}