[mythtv-users] MythConfirmationDialog scaling incorrectly when in OSD

thomas at parker.iz34.com thomas at parker.iz34.com
Fri Aug 10 14:25:08 UTC 2012


Just an additional point. This seems to work ok when using the openGL
renderer, it breaks on the xv-blit.

It appears that the scaling is not happening correctly for this dialog
only. When using openGL, the dialogs are shown using the display
resolution, whereas with xv-blit, they use the resolution of the video.
This means they need to be scaled by a factor - it seems that it is still
trying to display that dialog using the native resolution of the screen.

I suspect it is a bug.

Thanks

Martin

On 10 August 2012 15:15, <thomas at parker.iz34.com> wrote:

> Hi,
>
> My MythConfirmationDialog is not scaling correctly when shown in an OSD.
>
> This is when I do: mythutil --message --message_text hello --timeout 30
> --bcastaddr 192.168.0.13
>
> http://www.rozel.net/mythscreen.jpg
>
> I used to be a developer on myth (a long time ago), contributing some minor
> tweaks to the scheduler. So I've been looking at some of the code. However,
> I'm now using the mythbuntu base distribution, on precise.
>
> Here is a partial log
>
> myth at nettop:/usr/share/mythtv/themes/MythCenter-wide$ mythfrontend
> --loglevel debug -v all |grep OSD
> 2012-08-10 14:59:34.700447 D  MSqlQuery::exec(DBManager1) SELECT data  FROM
> settings WHERE value = 'JumpToProgramOSD' AND hostname = 'nettop' <<<<
> Returns 1 row(s)
> 2012-08-10 14:59:34.942025 D  MSqlQuery::exec(DBManager1) SELECT data  FROM
> settings WHERE value = 'OSDCC708TextZoom' AND hostname = 'nettop' <<<<
> Returns 1 row(s)
> 2012-08-10 14:59:35.298862 W  ThemeInfo: Unable to open themeinfo.xml for
> /usr/share/mythtv/themes/BlackCurves-OSD/themeinfo.xml
> 2012-08-10 14:59:35.298922 E  ThemeInfo: The theme
> (/usr/share/mythtv/themes/BlackCurves-OSD) is missing a themeinfo.xml file.
> 2012-08-10 14:59:35.303294 W  ThemeInfo: Unable to open themeinfo.xml for
> /usr/share/mythtv/themes/Gray-OSD/themeinfo.xml
> 2012-08-10 14:59:35.303337 E  ThemeInfo: The theme
> (/usr/share/mythtv/themes/Gray-OSD) is missing a themeinfo.xml file.
> 2012-08-10 14:59:35.869860 D  MSqlQuery::exec(DBManager1) SELECT keylist,
> description FROM keybindings WHERE context = 'TV Playback' AND action =
> 'CLEAROSD' AND hostname = 'nettop' ; <<<< Returns 1 row(s)
> 2012-08-10 14:59:35.869950 D  MSqlQuery::next(DBManager1) Result: "keylist
> = Backspace, description = Clear OSD"
> 2012-08-10 14:59:36.120006 D  MSqlQuery::exec(DBManager1) SELECT keylist,
> description FROM keybindings WHERE context = 'TV Playback' AND action =
> 'DEBUGOSD' AND hostname = 'nettop' ; <<<< Returns 1 row(s)
> 2012-08-10 14:59:36.120099 D  MSqlQuery::next(DBManager1) Result: "keylist
> = , description = Toggle OSD playback information"
> ^[[A^[[A2012-08-10 14:59:44.716304 D  MSqlQuery::next(DBManager1) Result:
> "value = JumpToProgramOSD, data = 1, hostname = nettop"
> 2012-08-10 14:59:46.227192 I  OSD: Base theme size: 1280x720
> 2012-08-10 14:59:46.227333 I  OSD: Scaling factors: 0.5625x0.8
> 2012-08-10 14:59:46.245680 I  OSD: Loaded window osd_message
> 2012-08-10 14:59:46.259251 I  OSD: Loaded window osd_input
> 2012-08-10 14:59:46.310922 I  OSD: Loaded window program_info
> 2012-08-10 14:59:46.328261 I  OSD: Loaded window browse_info
> 2012-08-10 14:59:46.347495 I  OSD: Loaded window osd_status
> 2012-08-10 14:59:46.364259 I  OSD: Loaded window osd_program_editor
> 2012-08-10 14:59:46.417364 I  OSD: Loaded window osd_debug
> 2012-08-10 14:59:46.417491 I  OSD: Loaded OSD: size 720x576 offset 0+0
> 2012-08-10 14:59:46.417744 I  OSD: Base theme size: 1280x720
> 2012-08-10 14:59:46.417812 I  OSD: Scaling factors: 0.5625x0.8
> 2012-08-10 14:59:46.423592 I  OSD: Created window aa_OSD_SUBTITLES
> 2012-08-10 14:59:46.447853 I  TV: UpdateOSDInput done
> 2012-08-10 14:59:46.667847 I  VideoOutput: Created YV12 OSD.
> 2012-08-10 15:00:10.017497 I  TV: SetActive(0,w/o OSD) 0 -> 0 -- begin
> 2012-08-10 15:00:10.017581 I  TV: SetActive(0,w/o OSD) 0 -> 0 -- end
> 2012-08-10 15:00:16.695403 I  OSD: Base theme size: 1280x720
> 2012-08-10 15:00:16.695459 I  OSD: Scaling factors: 0.5625x0.8
> 2012-08-10 15:00:16.709618 I  OSD: Loaded window osd_message
> 2012-08-10 15:00:16.723532 I  OSD: Loaded window osd_input
> 2012-08-10 15:00:16.751659 I  OSD: Loaded window program_info
> 2012-08-10 15:00:16.766574 I  OSD: Loaded window browse_info
> 2012-08-10 15:00:16.782888 I  OSD: Loaded window osd_status
> 2012-08-10 15:00:16.798102 I  OSD: Loaded window osd_program_editor
> 2012-08-10 15:00:16.839728 I  OSD: Loaded window osd_debug
> 2012-08-10 15:00:16.839870 I  OSD: Loaded OSD: size 720x576 offset 0+0
> 2012-08-10 15:00:16.840034 I  OSD: Base theme size: 1280x720
> 2012-08-10 15:00:16.840085 I  OSD: Scaling factors: 0.5625x0.8
> 2012-08-10 15:00:16.840183 I  OSD: Created window aa_OSD_SUBTITLES
> 2012-08-10 15:00:16.861068 I  TV: UpdateOSDInput done
> 2012-08-10 15:00:17.019295 I  VideoOutput: Created YV12 OSD.
> 2012-08-10 15:00:19.549379 I  OSD: Base theme size: 1280x720
> 2012-08-10 15:00:19.549458 I  OSD: Scaling factors: 0.425x0.8
> 2012-08-10 15:00:19.565185 I  OSD: Loaded window osd_message
> 2012-08-10 15:00:19.580224 I  OSD: Loaded window osd_input
> 2012-08-10 15:00:19.624132 I  OSD: Loaded window program_info
> 2012-08-10 15:00:19.641406 I  OSD: Loaded window browse_info
> 2012-08-10 15:00:19.662365 I  OSD: Loaded window osd_status
> 2012-08-10 15:00:19.679600 I  OSD: Loaded window osd_program_editor
> 2012-08-10 15:00:19.725602 I  OSD: Loaded window osd_debug
> 2012-08-10 15:00:19.725711 I  OSD: Loaded OSD: size 544x576 offset 0+0
> ALSA lib control.c:951:(snd_ctl_open_noupdate) Invalid CTL /dev/mixer
> 2012-08-10 15:00:21.753503 I  VideoOutput: OSD size changed.
> 2012-08-10 15:00:21.774352 I  VideoOutput: Created YV12 OSD.
> 2012-08-10 15:00:26.217142 I  OSD: Base theme size: 1280x720
> 2012-08-10 15:00:26.217202 I  OSD: Scaling factors: 0.425x0.8
>
>
> I've been able to figure out that it is using "MythConfirmationDialog".
> This is defined as
>
>     <window name="MythConfirmationDialog">
>         <area>0,200,544,170</area>
>
>         <animation trigger="AboutToShow">
>             <section>
>                 <alpha start="0" end="255" easingcurve="OutQuart"/>
>                 <zoom start="0" end="100" easingcurve="OutQuart"/>
>             </section>
>         </animation>
>
>         <animation trigger="AboutToHide">
>             <section>
>                 <alpha start="255" end="0" easingcurve="InQuart"/>
>                 <zoom start="100" end="0" easingcurve="InQuart"/>
>             </section>
>         </animation>
>
>         <imagetype name="backimg">
>             <area>0,0,544,170</area>
>             <filename>mythprogressdialog-background.png</filename>
>         </imagetype>
>
>         <textarea name="message" from="basetextarea">
>             <area>10,10,534,90</area>
>             <align>allcenter</align>
>             <multiline>yes</multiline>
>             <cutdown>no</cutdown>
>         </textarea>
>
>         <button name="cancel" from="basebutton">
>             <position>90,110</position>
>             <value>Cancel</value>
>         </button>
>
>         <button name="ok" from="basebutton">
>             <position>338,110</position>
>             <value>OK</value>
>         </button>
>     </window>
>
> Unfortunately my HD tuner isn't working right now - I suspect it might
> scale differently for HD channels. I did also notice some recent problems
> with interactive TV scaling, but I don't use that.
>
> The same thing happens on both of my frontend boxes, one is a self-built
> PC, the other is an Acer nettop.
>
> Any ideas?
>
> Thanks
>
> --
> Martin
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
>
_______________________________________________
mythtv-users mailing list
mythtv-users at mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: originalBody.txt
Type: application/octet-stream
Size: 8253 bytes
Desc: not available
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20120810/cb1148b8/attachment-0001.obj>


More information about the mythtv-users mailing list