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

#include <Resolution.h>

Static Public Member Functions

static RESOLUTION ChooseBestResolution (float fps, int width, int height, bool is3D)
 
static bool HasWhitelist ()
 
static void PrintWhitelist ()
 
static void GetMaxAllowedScreenResolution (unsigned int &width, unsigned int &height)
 Get the max allowed screen resolution, if fullscreen.
 

Static Protected Member Functions

static void FindResolutionFromWhitelist (float fps, int width, int height, bool is3D, RESOLUTION &resolution)
 
static bool FindResolutionFromOverride (float fps, int width, bool is3D, RESOLUTION &resolution, float &weight, bool fallback)
 
static float RefreshWeight (float refresh, float fps)
 

Member Function Documentation

◆ ChooseBestResolution()

RESOLUTION CResolutionUtils::ChooseBestResolution ( float  fps,
int  width,
int  height,
bool  is3D 
)
static

◆ FindResolutionFromOverride()

bool CResolutionUtils::FindResolutionFromOverride ( float  fps,
int  width,
bool  is3D,
RESOLUTION resolution,
float &  weight,
bool  fallback 
)
staticprotected

◆ FindResolutionFromWhitelist()

void CResolutionUtils::FindResolutionFromWhitelist ( float  fps,
int  width,
int  height,
bool  is3D,
RESOLUTION resolution 
)
staticprotected

◆ GetMaxAllowedScreenResolution()

void CResolutionUtils::GetMaxAllowedScreenResolution ( unsigned int width,
unsigned int height 
)
static

Get the max allowed screen resolution, if fullscreen.

Parameters
width[OUT] Max width resolution
height[OUT] Max height resolution

◆ HasWhitelist()

bool CResolutionUtils::HasWhitelist ( )
static

◆ PrintWhitelist()

void CResolutionUtils::PrintWhitelist ( )
static

◆ RefreshWeight()

float CResolutionUtils::RefreshWeight ( float  refresh,
float  fps 
)
staticprotected

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