14 typedef int DisplayMode;
15 #define DM_WINDOWED -1 16 #define DM_FULLSCREEN 0 35 left = top = right = bottom = 0;
39 left = os.left; top = os.top;
40 right = os.right; bottom = os.bottom;
44 bool operator==(
const OVERSCAN& other)
46 return left == other.left && right == other.right && top == other.top && bottom == other.bottom;
48 bool operator!=(
const OVERSCAN& other)
50 return left != other.left || right != other.right || top != other.top || bottom != other.bottom;
62 EdgeInsets(
float l,
float t,
float r,
float b);
114 RESOLUTION_INFO(
int width = 1280,
int height = 720,
float aspect = 0,
const std::string &mode =
"");
115 float DisplayRatio()
const;
123 static RESOLUTION ChooseBestResolution(
float fps,
int width,
int height,
bool is3D);
124 static bool HasWhitelist();
125 static void PrintWhitelist();
132 static void GetMaxAllowedScreenResolution(
unsigned int& width,
unsigned int& height);
135 static void FindResolutionFromWhitelist(
float fps,
int width,
int height,
bool is3D, RESOLUTION &resolution);
136 static bool FindResolutionFromOverride(
float fps,
int width,
bool is3D, RESOLUTION &resolution,
float& weight,
bool fallback);
137 static float RefreshWeight(
float refresh,
float fps);
uint32_t dwFlags
Pixel aspect ratio.
Definition: Resolution.h:96
bool bFullScreen
Width GUI resolution, may differ from the screen value if GUI resolution limit or 3D is set...
Definition: Resolution.h:75
std::string strMode
Resolution output description.
Definition: Resolution.h:105
EdgeInsets guiInsets
Specify if it is a fullscreen resolution, otherwise windowed.
Definition: Resolution.h:72
OVERSCAN Overscan
< Screen overscan boundary
Definition: Resolution.h:69
Definition: Resolution.h:120
int iScreenHeight
The vertical subtitle baseline position, may be changed by Video calibration.
Definition: Resolution.h:90
float fPixelRatio
Refresh rate.
Definition: Resolution.h:99
int iScreenWidth
Screen height.
Definition: Resolution.h:87
int iBlanking
Screen width.
Definition: Resolution.h:84
int iSubtitles
Properties of the resolution e.g. interlaced mode.
Definition: Resolution.h:93
Provide info of a resolution.
Definition: Resolution.h:66
int iWidth
Height GUI resolution, may differ from the screen value if GUI resolution limit or 3D is set...
Definition: Resolution.h:78
Definition: Resolution.h:26
Definition: Resolution.h:54
float fRefreshRate
Resolution mode description.
Definition: Resolution.h:102
std::string strOutput
Resolution ID.
Definition: Resolution.h:108
int iHeight
Number of pixels of padding between stereoscopic frames.
Definition: Resolution.h:81