Comment 2 for bug 509930

Revision history for this message
Lamer17 (lamer17) wrote : Re: [Bug 509930] Re: 16:9 resolution (1920x1080) the picture is to narrow.

How should i put this, the aspect ration of the the TV output in the black
area is wrong. Im gonna write some Pascal code to inspire you. :P

//the VideoXRatio,VideoYRatio is probbably 4:3 or 16:9
procedure SetVideoOutputInBlackArea(VideoXRatio,VideoYRatio : integer);
var 1XRatio,1YRation : integer;
begin
// integer division where we throw away the mod part since its not needed
  1XRatio := BlackArea.Width div VideoXRatio;
  1YRatio := BlackArea.Height div VideoYRatio;

//we want the smaller one of the ratios so it will fit within the black area

  if 1XRatio < 1YRatio then
  begin
      VideoOutput.Width := 1XRatio * VideoXRatio;
      VideoOutput.Height := 1XRatio * VideoYRatio;
  end
  else
  begin
      VideoOutput.Width := 1YRatio * VideoXRatio;
      VideoOutput.Height := 1YRatio * VideoYRatio;
  end;
end;
// after this you just have to center the VideoOutput area in the black area

Disclaimer: I will not be held responsible for any errors in this code.

I haven't even tested it since i just wrote it in this mail. But it should
work.
Because I wrote it.

Enjoy :)

Best regards Sami

On Wed, Jan 20, 2010 at 3:01 AM, Michael Lamothe
<email address hidden>wrote:

> Sorry, I don't understand what you are asking. I'm not sure that this
> is a bug rather a new feature, see https://blueprints.launchpad.net/me-
> tv/+spec/native-video-resolution-zoom<https://blueprints.launchpad.net/me-%0Atv/+spec/native-video-resolution-zoom>
> .
>
> "This should be a easy bug to fix" ... well then if it's easy, when
> you've got a patch let me know.
>
> ** Changed in: me-tv
> Status: New => Incomplete
>
> --
> 16:9 resolution (1920x1080) the picture is to narrow.
> https://bugs.launchpad.net/bugs/509930
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Me TV, it's TV for me computer: Incomplete
>
> Bug description:
> When my screen has 16:9 resolution (1920x1080) the picture gets compressed,
> the view window isn't wide enough. 4:3 resolution (1024x768) works fine.
> This should be a easy bug to fix. I use Ubuntu 9.10 - the Karmic Koala. Me
> TV version 1.0.0.1ubuntu1.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/me-tv/+bug/509930/+subscribe
>