#include <DisplayResScreen.h>
Public Member Functions | |
| DisplayResScreen () | |
| DisplayResScreen (int w, int h, int mw, int mh, double aspectRatio, double refreshRate) | |
| DisplayResScreen (int w, int h, int mw, int mh, const std::vector< double > &refreshRates) | |
| DisplayResScreen (int w, int h, int mw, int mh, const std::vector< double > &refreshRates, const std::map< double, short > &realrates) | |
| DisplayResScreen (int w, int h, int mw, int mh, const double *refreshRates, uint rr_length) | |
| DisplayResScreen (int w, int h, int mw, int mh, const short *refreshRates, uint rr_length) | |
| DisplayResScreen (const QString &str) | |
| void | Init () |
| int | Width () const |
| int | Height () const |
| int | Width_mm () const |
| int | Height_mm () const |
| bool | Custom () const |
| double | AspectRatio () const |
| double | RefreshRate () const |
| const std::vector< double > & | RefreshRates () const |
| void | SetAspectRatio (double a) |
| void | AddRefreshRate (double rr) |
| void | ClearRefreshRates (void) |
| void | SetCustom (bool b) |
| QString | toString () const |
| bool | operator< (const DisplayResScreen &b) const |
| bool | operator== (const DisplayResScreen &b) const |
Static Public Member Functions | |
| static QStringList | Convert (const DisplayResVector &dsr) |
| static DisplayResVector | Convert (const QStringList &slist) |
| static int | FindBestMatch (const DisplayResVector &dsr, const DisplayResScreen &d, double &target_rate) |
| static uint64_t | CalcKey (int w, int h, double rate) |
| static bool | compare_rates (double f1, double f2, double precision=0.01) |
| static uint64_t | FindBestScreen (const DisplayResMap &resmap, int iwidth, int iheight, double frate) |
Public Attributes | |
| std::map< double, short > | realRates |
Private Attributes | |
| int | width |
| int | height |
| int | width_mm |
| int | height_mm |
| double | aspect |
| std::vector< double > | refreshRates |
| bool | custom |
Definition at line 24 of file DisplayResScreen.h.
| DisplayResScreen::DisplayResScreen | ( | ) | [inline] |
Definition at line 28 of file DisplayResScreen.h.
| DisplayResScreen::DisplayResScreen | ( | int | w, | |
| int | h, | |||
| int | mw, | |||
| int | mh, | |||
| double | aspectRatio, | |||
| double | refreshRate | |||
| ) |
Definition at line 11 of file DisplayResScreen.cpp.
| DisplayResScreen::DisplayResScreen | ( | int | w, | |
| int | h, | |||
| int | mw, | |||
| int | mh, | |||
| const std::vector< double > & | refreshRates | |||
| ) |
Definition at line 20 of file DisplayResScreen.cpp.
| DisplayResScreen::DisplayResScreen | ( | int | w, | |
| int | h, | |||
| int | mw, | |||
| int | mh, | |||
| const std::vector< double > & | refreshRates, | |||
| const std::map< double, short > & | realrates | |||
| ) |
Definition at line 27 of file DisplayResScreen.cpp.
| DisplayResScreen::DisplayResScreen | ( | int | w, | |
| int | h, | |||
| int | mw, | |||
| int | mh, | |||
| const double * | refreshRates, | |||
| uint | rr_length | |||
| ) |
Definition at line 36 of file DisplayResScreen.cpp.
| DisplayResScreen::DisplayResScreen | ( | int | w, | |
| int | h, | |||
| int | mw, | |||
| int | mh, | |||
| const short * | refreshRates, | |||
| uint | rr_length | |||
| ) |
Definition at line 47 of file DisplayResScreen.cpp.
| DisplayResScreen::DisplayResScreen | ( | const QString & | str | ) |
Definition at line 57 of file DisplayResScreen.cpp.
| void DisplayResScreen::Init | ( | void | ) | [inline] |
Definition at line 93 of file DisplayResScreen.h.
Referenced by DisplayRes::Initialize().
| int DisplayResScreen::Width | ( | ) | const [inline] |
Definition at line 46 of file DisplayResScreen.h.
Referenced by FindBestMatch(), DisplayResX::GetVideoModes(), DisplayRes::SwitchToGUI(), and DisplayRes::SwitchToVideo().
| int DisplayResScreen::Height | ( | ) | const [inline] |
Definition at line 47 of file DisplayResScreen.h.
Referenced by FindBestMatch(), DisplayResX::GetVideoModes(), DisplayRes::SwitchToGUI(), and DisplayRes::SwitchToVideo().
| int DisplayResScreen::Width_mm | ( | ) | const [inline] |
Definition at line 48 of file DisplayResScreen.h.
Referenced by DisplayResX::GetVideoModes(), and SetAspectRatio().
| int DisplayResScreen::Height_mm | ( | ) | const [inline] |
Definition at line 49 of file DisplayResScreen.h.
Referenced by DisplayResX::GetVideoModes(), and SetAspectRatio().
| bool DisplayResScreen::Custom | ( | ) | const [inline] |
Definition at line 50 of file DisplayResScreen.h.
| double DisplayResScreen::AspectRatio | ( | ) | const [inline] |
Definition at line 99 of file DisplayResScreen.h.
| double DisplayResScreen::RefreshRate | ( | ) | const [inline] |
Definition at line 110 of file DisplayResScreen.h.
Referenced by FindBestMatch(), DisplayRes::SwitchToGUI(), and DisplayRes::SwitchToVideo().
| const std::vector<double>& DisplayResScreen::RefreshRates | ( | ) | const [inline] |
Definition at line 54 of file DisplayResScreen.h.
Referenced by DisplayResX::GetVideoModes().
| void DisplayResScreen::SetAspectRatio | ( | double | a | ) |
Definition at line 76 of file DisplayResScreen.cpp.
Referenced by DisplayResScreen().
| void DisplayResScreen::AddRefreshRate | ( | double | rr | ) | [inline] |
Definition at line 58 of file DisplayResScreen.h.
Referenced by DisplayRes::SwitchToVideo().
| void DisplayResScreen::ClearRefreshRates | ( | void | ) | [inline] |
Definition at line 63 of file DisplayResScreen.h.
| void DisplayResScreen::SetCustom | ( | bool | b | ) | [inline] |
Definition at line 64 of file DisplayResScreen.h.
| QString DisplayResScreen::toString | ( | void | ) | const |
Definition at line 84 of file DisplayResScreen.cpp.
Referenced by Convert().
| bool DisplayResScreen::operator< | ( | const DisplayResScreen & | b | ) | const [inline] |
Definition at line 117 of file DisplayResScreen.h.
| bool DisplayResScreen::operator== | ( | const DisplayResScreen & | b | ) | const [inline] |
Definition at line 126 of file DisplayResScreen.h.
| QStringList DisplayResScreen::Convert | ( | const DisplayResVector & | dsr | ) | [static] |
Definition at line 93 of file DisplayResScreen.cpp.
| DisplayResVector DisplayResScreen::Convert | ( | const QStringList & | slist | ) | [static] |
Definition at line 101 of file DisplayResScreen.cpp.
| int DisplayResScreen::FindBestMatch | ( | const DisplayResVector & | dsr, | |
| const DisplayResScreen & | d, | |||
| double & | target_rate | |||
| ) | [static] |
Definition at line 119 of file DisplayResScreen.cpp.
Referenced by DisplayRes::GetRefreshRates(), GuiVidModeResolution(), DisplayRes::SwitchToGUI(), DisplayRes::SwitchToVideo(), and DisplayResX::SwitchToVideoMode().
| uint64_t DisplayResScreen::CalcKey | ( | int | w, | |
| int | h, | |||
| double | rate | |||
| ) | [inline, static] |
Definition at line 131 of file DisplayResScreen.h.
Referenced by GetNvidiaRates(), DisplayResX::GetVideoModes(), DisplayResOSX::GetVideoModes(), and DisplayRes::Initialize().
| bool DisplayResScreen::compare_rates | ( | double | f1, | |
| double | f2, | |||
| double | precision = 0.01 | |||
| ) | [static] |
Definition at line 110 of file DisplayResScreen.cpp.
Referenced by FindBestMatch(), FindBestScreen(), DisplayRes::SwitchToGUI(), and DisplayRes::SwitchToVideo().
| uint64_t DisplayResScreen::FindBestScreen | ( | const DisplayResMap & | resmap, | |
| int | iwidth, | |||
| int | iheight, | |||
| double | frate | |||
| ) | [static] |
Definition at line 202 of file DisplayResScreen.cpp.
Referenced by DisplayRes::SwitchToVideo().
| std::map<double, short> DisplayResScreen::realRates |
Definition at line 67 of file DisplayResScreen.h.
int DisplayResScreen::width [private] |
Definition at line 86 of file DisplayResScreen.h.
Referenced by DisplayResScreen(), Init(), operator<(), operator==(), and toString().
int DisplayResScreen::height [private] |
Definition at line 86 of file DisplayResScreen.h.
Referenced by DisplayResScreen(), Init(), operator<(), operator==(), and toString().
int DisplayResScreen::width_mm [private] |
Definition at line 87 of file DisplayResScreen.h.
Referenced by AspectRatio(), DisplayResScreen(), Init(), and toString().
int DisplayResScreen::height_mm [private] |
Definition at line 87 of file DisplayResScreen.h.
Referenced by AspectRatio(), DisplayResScreen(), Init(), and toString().
double DisplayResScreen::aspect [private] |
Definition at line 88 of file DisplayResScreen.h.
Referenced by AspectRatio(), DisplayResScreen(), Init(), SetAspectRatio(), and toString().
std::vector<double> DisplayResScreen::refreshRates [private] |
Definition at line 89 of file DisplayResScreen.h.
Referenced by DisplayResScreen(), RefreshRate(), and toString().
bool DisplayResScreen::custom [private] |
Definition at line 90 of file DisplayResScreen.h.
1.6.3