[mythtv-commits] mythtv commit: r25255 by jyavenard

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Fri Jul 2 14:36:57 UTC 2010


      Author: jyavenard
        Date: 2010-07-02 14:36:57 +0000 (Fri, 02 Jul 2010)
New Revision: 25255
   Changeset: http://svn.mythtv.org/trac/changeset/25255

Modified:

   trunk/mythtv/libs/libmythui/DisplayRes.cpp
   trunk/mythtv/libs/libmythui/DisplayRes.h
   trunk/mythtv/libs/libmythui/DisplayResOSX.cpp
   trunk/mythtv/libs/libmythui/DisplayResScreen.cpp
   trunk/mythtv/libs/libmythui/DisplayResScreen.h
   trunk/mythtv/libs/libmythui/DisplayResX.cpp
   trunk/mythtv/libs/libmythui/util-nvctrl.cpp

Log:

Follow-up on r25210 ; expand custom override resolution screen matching.

Stop using the map/key search mechanisms; move key to a 64 bits integer as a 32 bit value couldn't contain the required range (frequency was limited to 64Hz).
As we are using floatting refresh rate, searching via a unique key was too inaccurate; so instead loop through the screen map, with a 10E-2 accuracy.

Look through the custom screens as follow:
1. search for exact match (width, height, rate)
2. search for resolution, ignoring rate
3. search for matching height and rate (or any rate if specified rate = 0)
4. search for 2x rate
5. search for 1x rate

As such, you can define a custom resolution for a given refresh rate.




More information about the mythtv-commits mailing list