Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CWinSystemAndroid Class Reference

#include <WinSystemAndroid.h>

Inheritance diagram for CWinSystemAndroid:
CWinSystemBase ITimerCallback CWinSystemAndroidGLESContext

Public Member Functions

 CWinSystemAndroid ()
 
 ~CWinSystemAndroid () override
 
bool InitWindowSystem () override
 
bool DestroyWindowSystem () override
 
bool CreateNewWindow (const std::string &name, bool fullScreen, RESOLUTION_INFO &res) override
 
bool DestroyWindow () override
 
void UpdateResolutions () override
 
void InitiateModeChange ()
 
bool IsHdmiModeTriggered () const
 
void SetHdmiState (bool connected)
 
void UpdateDisplayModes ()
 
bool HasCursor () override
 
bool Minimize () override
 
bool Hide () override
 
bool Show (bool raise=true) override
 
void Register (IDispResource *resource) override
 
void Unregister (IDispResource *resource) override
 
void MessagePush (XBMC_Event *newEvent)
 
bool MessagePump () override
 
bool IsHDRDisplay () override
 
CHDRCapabilities GetDisplayHDRCapabilities () const override
 
float GetGuiSdrPeakLuminance () const override
 
- Public Member Functions inherited from CWinSystemBase
 CWinSystemBase ()
 
virtual ~CWinSystemBase ()
 
virtual CRenderSystemBaseGetRenderSystem ()
 
virtual const std::string GetName ()
 
virtual bool ResizeWindow (int newWidth, int newHeight, int newLeft, int newTop)=0
 
virtual bool SetFullScreen (bool fullScreen, RESOLUTION_INFO &res, bool blankOtherDisplays)=0
 
virtual bool DisplayHardwareScalingEnabled ()
 
virtual void UpdateDisplayHardwareScaling (const RESOLUTION_INFO &resInfo)
 
virtual void SetDirtyRegions (const CDirtyRegionList &dirtyRegionsList)
 
virtual int GetBufferAge ()
 
virtual bool MoveWindow (int topLeft, int topRight)
 
virtual void FinishModeChange (RESOLUTION res)
 
virtual void FinishWindowResize (int newWidth, int newHeight)
 
virtual bool CenterWindow ()
 
virtual bool IsCreated ()
 
virtual void NotifyAppFocusChange (bool bGaining)
 
virtual void NotifyAppActiveChange (bool bActivated)
 
virtual void ShowOSMouse (bool show)
 
virtual bool HasInertialGestures ()
 
virtual bool UseLimitedColor ()
 
virtual int NoOfBuffers ()
 
virtual void ForceFullScreen (const RESOLUTION_INFO &resInfo)
 Forces the window to fullscreen provided the window resolution.
 
virtual float GetDisplayLatency ()
 Get average display latency.
 
virtual float GetFrameLatencyAdjustment ()
 Get time that should be subtracted from the display latency for this frame in milliseconds.
 
virtual bool Restore ()
 
virtual std::unique_ptr< CVideoSyncGetVideoSync (CVideoReferenceClock *clock)
 
virtual void OnMove (int x, int y)
 
virtual unsigned int GetScreenId (const std::string &screen)
 Get the screen ID provided the screen name.
 
virtual void MoveToScreen (unsigned int screenIdx)
 Window was requested to move to the given screen.
 
virtual void OnChangeScreen (unsigned int screenIdx)
 Used to signal the windowing system about the change of the current screen.
 
KODI::WINDOWING::COSScreenSaverManagerGetOSScreenSaver ()
 Get OS screen saver inhibit implementation if available.
 
unsigned int GetWidth ()
 
unsigned int GetHeight ()
 
virtual bool CanDoWindowed ()
 
bool IsFullScreen ()
 
virtual bool SupportsScreenMove ()
 Check if the windowing system supports moving windows across screens.
 
void SetWindowResolution (int width, int height)
 
std::vector< RESOLUTION_WHRScreenResolutions (float refreshrate)
 
std::vector< REFRESHRATERefreshRates (int width, int height, uint32_t dwFlags)
 
REFRESHRATE DefaultRefreshRate (const std::vector< REFRESHRATE > &rates)
 
virtual bool HasCalibration (const RESOLUTION_INFO &resInfo)
 
virtual std::string GetClipboardText (void)
 
void RegisterRenderLoop (IRenderLoop *client)
 
void UnregisterRenderLoop (IRenderLoop *client)
 
void DriveRenderLoop ()
 
virtual CGraphicContextGetGfxContext () const
 
virtual voidGetHWContext ()
 Get OS specific hardware context.
 
std::shared_ptr< CDPMSSupportGetDPMSManager ()
 
virtual bool SetHDR (const VideoPicture *videoPicture)
 Set the HDR metadata. Passing nullptr as the parameter should disable HDR.
 
virtual HDR_STATUS ToggleHDR ()
 
virtual HDR_STATUS GetOSHDRStatus ()
 
virtual bool HasSystemSdrPeakLuminance ()
 
virtual bool SupportsVideoSuperResolution ()
 System supports Video Super Resolution HW upscaler i.e.: "NVIDIA RTX Video Super Resolution" or "Intel Video Super Resolution".
 
virtual DEBUG_INFO_RENDER GetDebugInfo ()
 Gets debug info from video renderer for use in "Debug Info OSD" (Alt + O)
 
virtual std::vector< std::string > GetConnectedOutputs ()
 
bool IsHDRDisplaySettingEnabled ()
 Return true when HDR display is available and enabled in settings.
 
bool IsVideoSuperResolutionSettingEnabled ()
 Return true when "Video Super Resolution" is supported and enabled in settings.
 
bool IsHighPrecisionProcessingSettingEnabled ()
 Return true when setting "High Precision Processing" is enabled.
 
std::pair< bool, intGetDitherSettings ()
 Get dither settings.
 
virtual bool BindTextureUploadContext ()
 Binds a shared context to the current thread, in order to upload textures asynchronously.
 
virtual bool UnbindTextureUploadContext ()
 Unbinds the shared context.
 
virtual bool HasContext ()
 Checks if a graphics context is already bound to the current thread.
 
- Public Member Functions inherited from ITimerCallback
virtual ~ITimerCallback ()=default
 

Protected Member Functions

std::unique_ptr< KODI::WINDOWING::IOSScreenSaverGetOSScreenSaverImpl () override
 
void OnTimeout () override
 
- Protected Member Functions inherited from CWinSystemBase
void UpdateDesktopResolution (RESOLUTION_INFO &newRes, const std::string &output, int width, int height, float refreshRate, uint32_t dwFlags)
 
void UpdateDesktopResolution (RESOLUTION_INFO &newRes, const std::string &output, int width, int height, int screenWidth, int screenHeight, float refreshRate, uint32_t dwFlags)
 

Protected Attributes

CAndroidUtilsm_android
 
EGLDisplay m_nativeDisplay = EGL_NO_DISPLAY
 
std::shared_ptr< CNativeWindowm_nativeWindow
 
int m_displayWidth
 
int m_displayHeight
 
RENDER_STEREO_MODE m_stereo_mode
 
CTimerm_dispResetTimer
 
CCriticalSection m_resourceSection
 
std::vector< IDispResource * > m_resources
 
CDecoderFilterManagerm_decoderFilterManager
 
- Protected Attributes inherited from CWinSystemBase
int m_nWidth = 0
 
int m_nHeight = 0
 
int m_nTop = 0
 
int m_nLeft = 0
 
bool m_bWindowCreated = false
 
bool m_bFullScreen = false
 
bool m_bBlankOtherDisplay = false
 
float m_fRefreshRate = 0.0f
 
std::unique_ptr< KODI::WINDOWING::COSScreenSaverManagerm_screenSaverManager
 
CCriticalSection m_renderLoopSection
 
std::vector< IRenderLoop * > m_renderLoopClients
 
std::unique_ptr< IWinEventsm_winEvents
 
std::unique_ptr< CGraphicContextm_gfxContext
 
std::shared_ptr< CDPMSSupportm_dpms
 

Additional Inherited Members

- Static Public Member Functions inherited from CWinSystemBase
static std::unique_ptr< CWinSystemBaseCreateWinSystem ()
 
- Static Public Attributes inherited from CWinSystemBase
static const char * SETTING_WINSYSTEM_IS_HDR_DISPLAY = "winsystem.ishdrdisplay"
 

Constructor & Destructor Documentation

◆ CWinSystemAndroid()

CWinSystemAndroid::CWinSystemAndroid ( )

◆ ~CWinSystemAndroid()

CWinSystemAndroid::~CWinSystemAndroid ( )
override

Member Function Documentation

◆ CreateNewWindow()

bool CWinSystemAndroid::CreateNewWindow ( const std::string & name,
bool fullScreen,
RESOLUTION_INFO & res )
overridevirtual

Implements CWinSystemBase.

Reimplemented in CWinSystemAndroidGLESContext.

◆ DestroyWindow()

bool CWinSystemAndroid::DestroyWindow ( )
overridevirtual

Reimplemented from CWinSystemBase.

◆ DestroyWindowSystem()

bool CWinSystemAndroid::DestroyWindowSystem ( )
overridevirtual

Reimplemented from CWinSystemBase.

◆ GetDisplayHDRCapabilities()

CHDRCapabilities CWinSystemAndroid::GetDisplayHDRCapabilities ( ) const
overridevirtual

Reimplemented from CWinSystemBase.

◆ GetGuiSdrPeakLuminance()

float CWinSystemAndroid::GetGuiSdrPeakLuminance ( ) const
overridevirtual

Reimplemented from CWinSystemBase.

◆ GetOSScreenSaverImpl()

std::unique_ptr< WINDOWING::IOSScreenSaver > CWinSystemAndroid::GetOSScreenSaverImpl ( )
overrideprotectedvirtual

Reimplemented from CWinSystemBase.

◆ HasCursor()

bool CWinSystemAndroid::HasCursor ( )
inlineoverridevirtual

Reimplemented from CWinSystemBase.

◆ Hide()

bool CWinSystemAndroid::Hide ( )
overridevirtual

Reimplemented from CWinSystemBase.

◆ InitiateModeChange()

void CWinSystemAndroid::InitiateModeChange ( )

◆ InitWindowSystem()

bool CWinSystemAndroid::InitWindowSystem ( )
overridevirtual

Reimplemented from CWinSystemBase.

Reimplemented in CWinSystemAndroidGLESContext.

◆ IsHdmiModeTriggered()

bool CWinSystemAndroid::IsHdmiModeTriggered ( ) const
inline

◆ IsHDRDisplay()

bool CWinSystemAndroid::IsHDRDisplay ( )
overridevirtual

Reimplemented from CWinSystemBase.

Reimplemented in CWinSystemAndroidGLESContext.

◆ MessagePump()

bool CWinSystemAndroid::MessagePump ( )
overridevirtual

Reimplemented from CWinSystemBase.

◆ MessagePush()

void CWinSystemAndroid::MessagePush ( XBMC_Event * newEvent)

◆ Minimize()

bool CWinSystemAndroid::Minimize ( )
overridevirtual

Reimplemented from CWinSystemBase.

◆ OnTimeout()

void CWinSystemAndroid::OnTimeout ( )
overrideprotectedvirtual

Implements ITimerCallback.

◆ Register()

void CWinSystemAndroid::Register ( IDispResource * resource)
overridevirtual

Implements CWinSystemBase.

◆ SetHdmiState()

void CWinSystemAndroid::SetHdmiState ( bool connected)

◆ Show()

bool CWinSystemAndroid::Show ( bool raise = true)
overridevirtual

Reimplemented from CWinSystemBase.

◆ Unregister()

void CWinSystemAndroid::Unregister ( IDispResource * resource)
overridevirtual

Implements CWinSystemBase.

◆ UpdateDisplayModes()

void CWinSystemAndroid::UpdateDisplayModes ( )

◆ UpdateResolutions()

void CWinSystemAndroid::UpdateResolutions ( )
overridevirtual

Reimplemented from CWinSystemBase.

Member Data Documentation

◆ m_android

CAndroidUtils* CWinSystemAndroid::m_android
protected

◆ m_decoderFilterManager

CDecoderFilterManager* CWinSystemAndroid::m_decoderFilterManager
protected

◆ m_displayHeight

int CWinSystemAndroid::m_displayHeight
protected

◆ m_displayWidth

int CWinSystemAndroid::m_displayWidth
protected

◆ m_dispResetTimer

CTimer* CWinSystemAndroid::m_dispResetTimer
protected

◆ m_nativeDisplay

EGLDisplay CWinSystemAndroid::m_nativeDisplay = EGL_NO_DISPLAY
protected

◆ m_nativeWindow

std::shared_ptr<CNativeWindow> CWinSystemAndroid::m_nativeWindow
protected

◆ m_resources

std::vector<IDispResource*> CWinSystemAndroid::m_resources
protected

◆ m_resourceSection

CCriticalSection CWinSystemAndroid::m_resourceSection
protected

◆ m_stereo_mode

RENDER_STEREO_MODE CWinSystemAndroid::m_stereo_mode
protected

The documentation for this class was generated from the following files: