|
MythTV master
|
#include <libmythui/mythdisplaymode.h>
Public Member Functions | |
| bool | operator< (const MythDisplayMode &Other) const |
| bool | operator== (const MythDisplayMode &Other) const |
| MythDisplayMode ()=default | |
| MythDisplayMode (QSize Resolution, QSize PhysicalSize, double AspectRatio, double RefreshRate) | |
| MythDisplayMode (int Width, int Height, int MMWidth, int MMHeight, double AspectRatio, double RefreshRate) | |
| void | Init () |
| QString | ToString () const |
| QSize | Resolution () const |
| int | Width () const |
| int | Height () const |
| int | WidthMM () const |
| int | HeightMM () const |
| double | AspectRatio () const |
| double | RefreshRate () const |
| void | SetAspectRatio (double AspectRatio) |
| void | AddRefreshRate (double Rate) |
| void | ClearRefreshRates () |
| void | SetRefreshRate (double Rate) |
| const MythDisplayRates & | RefreshRates () const |
Static Public Member Functions | |
| static int | FindBestMatch (const MythDisplayModes &Modes, const MythDisplayMode &Mode, double &TargetRate) |
| static uint64_t | CalcKey (QSize Size, double Rate) |
| static bool | CompareRates (double First, double Second, double Precision=0.01) |
| Determine whether two rates are considered equal with the given precision. More... | |
| static uint64_t | FindBestScreen (const DisplayModeMap &Map, int Width, int Height, double Rate) |
Private Attributes | |
| int | m_width { 0 } |
| int | m_height { 0 } |
| int | m_widthMM { 0 } |
| int | m_heightMM { 0 } |
| double | m_aspect { -1.0 } |
| MythDisplayRates | m_refreshRates |
Definition at line 22 of file mythdisplaymode.h.
|
default |
| MythDisplayMode::MythDisplayMode | ( | QSize | Resolution, |
| QSize | PhysicalSize, | ||
| double | AspectRatio, | ||
| double | RefreshRate | ||
| ) |
Definition at line 11 of file mythdisplaymode.cpp.
| MythDisplayMode::MythDisplayMode | ( | int | Width, |
| int | Height, | ||
| int | MMWidth, | ||
| int | MMHeight, | ||
| double | AspectRatio, | ||
| double | RefreshRate | ||
| ) |
Definition at line 22 of file mythdisplaymode.cpp.
| void MythDisplayMode::AddRefreshRate | ( | double | Rate | ) |
Definition at line 110 of file mythdisplaymode.cpp.
Referenced by SetRefreshRate().
| double MythDisplayMode::AspectRatio | ( | ) | const |
Definition at line 84 of file mythdisplaymode.cpp.
Referenced by MythDisplayMode(), SetAspectRatio(), and MythDisplay::SwitchToVideo().
|
static |
Definition at line 127 of file mythdisplaymode.cpp.
Referenced by MythDisplayDRM::GetVideoModes(), MythDisplayX11::GetVideoModes(), MythDisplayMutter::GetVideoModes(), MythDisplayOSX::GetVideoModes(), MythDisplayRPI::GetVideoModes(), MythDisplay::Initialise(), MythDisplayDRM::SwitchToVideoMode(), MythDisplayMutter::SwitchToVideoMode(), MythDisplayOSX::SwitchToVideoMode(), MythDisplayX11::SwitchToVideoMode(), and MythDisplayRPI::SwitchToVideoMode().
| void MythDisplayMode::ClearRefreshRates | ( | ) |
Definition at line 116 of file mythdisplaymode.cpp.
Referenced by SetRefreshRate().
|
static |
Determine whether two rates are considered equal with the given precision.
Definition at line 135 of file mythdisplaymode.cpp.
Referenced by FindBestMatch(), FindBestScreen(), and MythDisplay::SwitchToVideo().
|
static |
Definition at line 140 of file mythdisplaymode.cpp.
Referenced by MythDisplay::GetRefreshRates(), GuiVidModeResolution(), MythDisplay::SwitchToVideo(), MythDisplayDRM::SwitchToVideoMode(), MythDisplayMutter::SwitchToVideoMode(), MythDisplayOSX::SwitchToVideoMode(), MythDisplayX11::SwitchToVideoMode(), and MythDisplayRPI::SwitchToVideoMode().
|
static |
Definition at line 225 of file mythdisplaymode.cpp.
Referenced by MythDisplay::SwitchToVideo().
| int MythDisplayMode::Height | ( | ) | const |
Definition at line 64 of file mythdisplaymode.cpp.
Referenced by FindBestScreen(), MythDisplay::SwitchToGUI(), and MythDisplay::SwitchToVideo().
| int MythDisplayMode::HeightMM | ( | ) | const |
Definition at line 74 of file mythdisplaymode.cpp.
Referenced by SetAspectRatio().
| void MythDisplayMode::Init | ( | void | ) |
Definition at line 48 of file mythdisplaymode.cpp.
| bool MythDisplayMode::operator< | ( | const MythDisplayMode & | Other | ) | const |
Definition at line 34 of file mythdisplaymode.cpp.
| bool MythDisplayMode::operator== | ( | const MythDisplayMode & | Other | ) | const |
Definition at line 43 of file mythdisplaymode.cpp.
| double MythDisplayMode::RefreshRate | ( | ) | const |
Definition at line 95 of file mythdisplaymode.cpp.
Referenced by MythDisplayMode(), MythDisplay::SwitchToDesktop(), MythDisplay::SwitchToGUI(), and MythDisplay::SwitchToVideo().
| const MythDisplayRates & MythDisplayMode::RefreshRates | ( | ) | const |
Definition at line 79 of file mythdisplaymode.cpp.
| QSize MythDisplayMode::Resolution | ( | ) | const |
Definition at line 54 of file mythdisplaymode.cpp.
Referenced by MythDisplay::GetGUIResolution(), MythDisplay::SwitchToDesktop(), MythDisplay::SwitchToGUI(), and MythDisplay::SwitchToVideo().
| void MythDisplayMode::SetAspectRatio | ( | double | AspectRatio | ) |
Definition at line 102 of file mythdisplaymode.cpp.
Referenced by MythDisplayMode().
| void MythDisplayMode::SetRefreshRate | ( | double | Rate | ) |
Definition at line 121 of file mythdisplaymode.cpp.
Referenced by MythDisplay::SwitchToVideo().
| QString MythDisplayMode::ToString | ( | ) | const |
Definition at line 272 of file mythdisplaymode.cpp.
| int MythDisplayMode::Width | ( | ) | const |
Definition at line 59 of file mythdisplaymode.cpp.
Referenced by FindBestMatch(), FindBestScreen(), MythDisplay::SwitchToGUI(), and MythDisplay::SwitchToVideo().
| int MythDisplayMode::WidthMM | ( | ) | const |
Definition at line 69 of file mythdisplaymode.cpp.
|
private |
Definition at line 59 of file mythdisplaymode.h.
Referenced by AspectRatio(), Init(), and SetAspectRatio().
|
private |
Definition at line 56 of file mythdisplaymode.h.
Referenced by Height(), Init(), operator<(), operator==(), Resolution(), and ToString().
|
private |
Definition at line 58 of file mythdisplaymode.h.
Referenced by AspectRatio(), HeightMM(), Init(), and SetAspectRatio().
|
private |
Definition at line 60 of file mythdisplaymode.h.
Referenced by AddRefreshRate(), ClearRefreshRates(), MythDisplayMode(), RefreshRate(), RefreshRates(), and ToString().
|
private |
Definition at line 55 of file mythdisplaymode.h.
Referenced by Init(), operator<(), operator==(), Resolution(), ToString(), and Width().
|
private |
Definition at line 57 of file mythdisplaymode.h.
Referenced by AspectRatio(), Init(), SetAspectRatio(), and WidthMM().