Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
29
TMessagesProj/jni/voip/libtgvoip/video/VideoRenderer.cpp
Normal file
29
TMessagesProj/jni/voip/libtgvoip/video/VideoRenderer.cpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
//
|
||||
// Created by Grishka on 10.08.2018.
|
||||
//
|
||||
|
||||
#include "VideoRenderer.h"
|
||||
|
||||
#ifdef __ANDROID__
|
||||
#include "../os/android/VideoRendererAndroid.h"
|
||||
#elif defined(__APPLE__) && !defined(TARGET_OSX32)
|
||||
#include "../os/darwin/SampleBufferDisplayLayerRenderer.h"
|
||||
#endif
|
||||
|
||||
std::vector<uint32_t> tgvoip::video::VideoRenderer::GetAvailableDecoders(){
|
||||
#ifdef __ANDROID__
|
||||
return VideoRendererAndroid::availableDecoders;
|
||||
#elif defined(__APPLE__)
|
||||
return SampleBufferDisplayLayerRenderer::GetAvailableDecoders();
|
||||
#endif
|
||||
return std::vector<uint32_t>();
|
||||
}
|
||||
|
||||
int tgvoip::video::VideoRenderer::GetMaximumResolution(){
|
||||
#ifdef __ANDROID__
|
||||
return VideoRendererAndroid::maxResolution;
|
||||
#elif defined(__APPLE__) && !defined(TARGET_OSX32)
|
||||
return SampleBufferDisplayLayerRenderer::GetMaximumResolution();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue