[mythtv] OSD aspect ratio problems [patch v2]

Bruce Markey bjm at lvcm.com
Wed Nov 23 19:07:51 EST 2005


Daniel Kristjansson wrote:
> On Tue, 2005-11-22 at 22:39 -0500, Daniel Kristjansson wrote:
>> Can someone verify that this works?
> 
> Here's an update.
> 
> I believe it gets rid of the double compensation for scaling in the last
> patch. I've tested with various non-square pixel videos of different
> aspect ratios and sizes and with square pixel videos videos of different
> aspect ratios. But I haven't tested yet with non-square display pixels
> nor with chromakey OSD because I need to reboot for that.

For all these sizes I tried, the fonts are virtually uniform in
their width and height relative to the picture. A multi-line
description wraps at the same points at any resolution. so I
think you have the relative scaling licked.

However, they are uniformly compressed too narrow at any resolution.
Attached is a screenshot that shows the narrowed fonts. Perhaps
1.333333 is factored in one too many times?

--  bjm


Decreasing recording width 640, 480, 320

VideoOutput::MoveResize:
Img(0,0 640,480)
Disp(0,0 640,480)
Offset(9,9)
Vscan(0.000000, 0.000000)
DisplayAspect: 1.333300
VideoAspect(1.333330)
XJ_aspect(1.333330)
CDisplayAspect: 1.333333
Letterbox: 0
VideoOutput::MoveResize:
Img(0,0 640,480)
Disp(0,0 640,480)
Offset(9,9)
Vscan(0.000000, 0.000000)
DisplayAspect: 1.327869
VideoAspect(1.333330)
XJ_aspect(1.333330)
CDisplayAspect: 1.333333
Letterbox: 0
2005-11-23 15:24:29.060 XJ_aspect:      1.33333
2005-11-23 15:24:29.077 videoAspect:    1.33333
2005-11-23 15:24:29.078 display_aspect: 1.32787 dpa: 0.995902
2005-11-23 15:24:29.078 vb scale:       1.33264
2005-11-23 15:24:29.078 visible_aspect: 0.995386
2005-11-23 15:24:29.078 font_scaling: 0.882425

VideoOutput::MoveResize:
Img(0,0 480,480)
Disp(0,0 640,480)
Offset(9,9)
Vscan(0.000000, 0.000000)
DisplayAspect: 1.333300
VideoAspect(1.333330)
XJ_aspect(1.333330)
CDisplayAspect: 1.333333
Letterbox: 0
VideoOutput::MoveResize:
Img(0,0 480,480)
Disp(0,0 640,480)
Offset(9,9)
Vscan(0.000000, 0.000000)
DisplayAspect: 1.327869
VideoAspect(1.333330)
XJ_aspect(1.333330)
CDisplayAspect: 1.333333
Letterbox: 0
2005-11-23 15:26:13.605 XJ_aspect:      1.33333
2005-11-23 15:26:13.605 videoAspect:    1.33333
2005-11-23 15:26:13.605 display_aspect: 1.32787 dpa: 0.995902
2005-11-23 15:26:13.605 vb scale:       1
2005-11-23 15:26:13.605 visible_aspect: 0.746928
2005-11-23 15:26:13.605 font_scaling: 0.810505

VideoOutput::MoveResize:
Img(0,0 320,480)
Disp(0,0 640,480)
Offset(9,9)
Vscan(0.000000, 0.000000)
DisplayAspect: 1.333300
VideoAspect(1.333330)
XJ_aspect(1.333330)
CDisplayAspect: 1.333333
Letterbox: 0
VideoOutput::MoveResize:
Img(0,0 320,480)
Disp(0,0 640,480)
Offset(9,9)
Vscan(0.000000, 0.000000)
DisplayAspect: 1.327869
VideoAspect(1.333330)
XJ_aspect(1.333330)
CDisplayAspect: 1.333333
Letterbox: 0
2005-11-23 15:27:34.373 XJ_aspect:      1.33333
2005-11-23 15:27:34.373 videoAspect:    1.33333
2005-11-23 15:27:34.374 display_aspect: 1.32787 dpa: 0.995902
2005-11-23 15:27:34.374 vb scale:       0.66736
2005-11-23 15:27:34.375 visible_aspect: 0.49847
2005-11-23 15:27:34.375 font_scaling: 0.754908

Decreasing recording height 480, 368, 240

See 640x480 above

VideoOutput::MoveResize:
Img(0,0 640,368)
Disp(0,0 640,480)
Offset(9,9)
Vscan(0.000000, 0.000000)
DisplayAspect: 1.333300
VideoAspect(1.333330)
XJ_aspect(1.333330)
CDisplayAspect: 1.333333
Letterbox: 0
VideoOutput::MoveResize:
Img(0,0 640,368)
Disp(0,0 640,480)
Offset(9,9)
Vscan(0.000000, 0.000000)
DisplayAspect: 1.327869
VideoAspect(1.333330)
XJ_aspect(1.333330)
CDisplayAspect: 1.333333
Letterbox: 0
2005-11-23 15:32:12.372 XJ_aspect:      1.33333
2005-11-23 15:32:12.372 videoAspect:    1.33333
2005-11-23 15:32:12.372 display_aspect: 1.32787 dpa: 0.995902
2005-11-23 15:32:12.372 vb scale:       1.73713
2005-11-23 15:32:12.372 visible_aspect: 1.29751
2005-11-23 15:32:12.372 font_scaling: 0.986669

-------------- next part --------------
A non-text attachment was scrubbed...
Name: font.jpg
Type: image/jpeg
Size: 50459 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20051123/ace86b9a/font-0001.jpg


More information about the mythtv-dev mailing list