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

30 lines
794 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-03-12 18:35:42 +01:00
#elif defined(__APPLE__) && !defined(TARGET_OSX32)
#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;
#elif defined(__APPLE__)
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-03-12 18:35:42 +01:00
#elif defined(__APPLE__) && !defined(TARGET_OSX32)
return SampleBufferDisplayLayerRenderer::GetMaximumResolution();
2019-02-05 12:41:00 +01:00
#endif
return 0;
}