2018-11-09 16:44:01 +01:00
|
|
|
//
|
|
|
|
// 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)
|
2019-03-10 23:12:09 +01:00
|
|
|
#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-03-15 13:38:48 +01:00
|
|
|
#elif defined(__APPLE__) && !defined(TARGET_OSX32)
|
2019-03-10 23:12:09 +01:00
|
|
|
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)
|
2019-03-10 23:12:09 +01:00
|
|
|
return SampleBufferDisplayLayerRenderer::GetMaximumResolution();
|
2019-02-05 12:41:00 +01:00
|
|
|
#endif
|
|
|
|
return 0;
|
|
|
|
}
|