Opened 13 years ago

Closed 13 years ago

#4220 closed defect (invalid)

Odd OSD scaling - not using full display resolution

Reported by: Roo <roo.watt@…> Owned by: Isaac Richards
Priority: minor Milestone: 0.21
Component: mythtv Version: head
Severity: medium Keywords: osd font width scaling kerning
Cc: Ticket locked: no


When using my laptop I have noticed the OSD does not scale to the display res correctly.

This is seen with [14946] and I believe I noticed it prior to [14933] but will test further to confirm and report later.

The laptop is running Ubutnu 7.10 using the ATI binary driver at 1680x1050: [ 35.920000] [fglrx] module loaded - fglrx 8.37.6 [May 25 2007] on minor 0

In short it appears that the OSD is being scaled to a bounding box that is less than the 1680x1050 res of the display.

I am speculating this may be related to the squashed OSD fonts that have been reported. Interestingly the OSD font kerning is correct for some OSD themes.

I will attach some OSD screen shots to help demonstrate the problem.

OSD font tickets: #3970 #4044

Attachments (4)

isthmus_osd.jpg (98.5 KB) - added by Roo <roo.watt@…> 13 years ago.
metallury_osd.jpg (163.6 KB) - added by Roo <roo.watt@…> 13 years ago.
retro_osd.jpg (88.3 KB) - added by Roo <roo.watt@…> 13 years ago.
playback_profile.jpg (94.4 KB) - added by Roo <roo.watt@…> 13 years ago.
Problem playback profile settings

Download all attachments as: .zip

Change History (11)

Changed 13 years ago by Roo <roo.watt@…>

Attachment: isthmus_osd.jpg added

Changed 13 years ago by Roo <roo.watt@…>

Attachment: metallury_osd.jpg added

Changed 13 years ago by Roo <roo.watt@…>

Attachment: retro_osd.jpg added

comment:1 Changed 13 years ago by Roo <roo.watt@…>

I just tested with r14932 and see the same issue.

comment:2 Changed 13 years ago by Roo <roo.watt@…>

After some adhoc testing I have noticed:

  1. That the Fill Mode and/or Aspect Ratio overrides has an impact on the font kerning, particularly with retro osd.
  2. The Fill and aspect controls have no discernible impact on the way the actual video is rendered. ie I see no change to the aspect ratio or framing of the playing video.
  3. I see that the "Playback OSD" settings screen shows the buttons being cut off (like overscan) although the laptop is running at a 1:1 pixel mapping. Also observed in windowed modes as well.

Seems that some parts of myth could be using code to determine visible/total display sizes that may differ under the current config?

comment:3 Changed 13 years ago by Roo <roo.watt@…>

I should say that my laptop is using a dummy recorder, ie "file:/mythstore/dummy.mpg" device.

My production box has multiple DVB-T cards and Aspect/Fill? does work as expected.

comment:4 Changed 13 years ago by Roo <roo.watt@…>

Display profile used during testing:

mysql> select * from displayprofiles where profilegroupid = 3;
| profilegroupid | profileid | value              | data      |
|              3 |        11 | pref_priority      | 4         | 
|              3 |        11 | pref_cmp0          | > 0 0     | 
|              3 |        11 | pref_decoder       | ffmpeg    | 
|              3 |        11 | pref_videorenderer | xshm      | 
|              3 |        11 | pref_osdrenderer   | softblend | 
|              3 |        11 | pref_osdfade       | 1         | 
|              3 |        11 | pref_deint0        | none      | 
|              3 |        11 | pref_deint1        | none      | 
|              3 |        11 | pref_filters       |           | 
9 rows in set (0.00 sec)

comment:5 Changed 13 years ago by Roo <roo.watt@…>

It appears that "MoveResize?()" (Aspect/Fill/Zoom?) does not behave as expected in all cases.

The font's horizontal and vertical scaling factors appear to be calculated using the display area, visible area, osd native size, and different aspect ratios.

I think that the video scaling is not working correctly and as a consequence the font scaling metrics are borked.

However, I could be wrong... I am still trying to get my head around much of the code base :)

Changed 13 years ago by Roo <roo.watt@…>

Attachment: playback_profile.jpg added

Problem playback profile settings

comment:6 Changed 13 years ago by Roo <roo.watt@…>

As per discussion on the mailing list, the simplest fix is to add software scaling to the video rendering methods that don't currently support scaling.

I believe the following rendering methods don't support scaling:

  • xlib
  • xshm

comment:7 Changed 13 years ago by danielk

Resolution: invalid
Status: newclosed

Feature request without patch.

Note: See TracTickets for help on using tickets.