Chris Griffiths wrote:
> Claudio - Here's a patch against cvs that allows for scaling for
> non-square pixels (i.e. to a TV screen) in df_xine.
>
> This is something that's been bothering me for a while - it's most
> noticeable for me when watching widescreen DVB from the UK on an NTSC
> TV.
>
> It's based off of a previous patch from Lucian Muresan which can be
> found here:
> http://mail.directfb.org/pipermail/directfb-dev/2005-November/000895.html
>
> It adds a new parameter to df_xine --displayaspect=d:d which is used in
> the form --displayaspect=4:3 or --displayaspect=16:9.
>
> In doing this I've created a new struct in df_xine.h which adds back
> storing of the screen width and height in the context, along with
> storing the aspect ratio specific values.
> I've moved the width and height back here (rather than always using
> ctx->screen->GetSize each time) as I'd only have to throw those values
> away after calculating the ratios anyway.
> If the screen size can changing during the lifetime of the player let me
> know, and I'll move back to not storing the sizes and updating the
> ratios I store whenever the screen size is refetched in
> dfx_context_configure.
>
> I've seen there is an --aspect setting already, but this doesn't seem to
> resize the display proportions on the TV in the same way that mplayer
> does.
>
> Let me know if you'd like me to change anything (moving back to
> GetSize).
>
> Thanks,
> Chris
>
There is something wrong in that patch:
if I play a 4:3 movie on a 4:3 screen, computed screen location is
{0.12, 0.00, 0.75, 1.00 } while it should be { 0.0, 0.0, 1.0, 1.0 }.
--
Regards,
Claudio Ciccani
[EMAIL PROTECTED]
http://directfb.org
http://sf.net/projects/php-directfb
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev