[gst-devel] Displaying widescreen video

David Schleef ds at schleef.org
Fri Jan 16 13:28:01 CET 2004


On Fri, Jan 16, 2004 at 10:51:44AM +0100, Julien MOUTTE wrote:
> 
> actually xvimagesink and ximagesink are catching those pixel_width and
> height values but not using them anywhere..
> 
> I don't know what to do with them btw...

This would be a good time to suggest changing pixel_width and
pixel_height to a single parameter "pixel_aspect", which would
have the type double, and correspond to pixel_width/pixel_height.

In a perfect world, we'd immediately change the definition of
video/x-raw-yuv and video/x-raw-rgb to require pixel_aspect,
and start using it in negotiation.  In that case, ximagesink would
force pixel_aspect to 1.0, and xvimagesink would handle any aspect,
and adjust the size of the window to compensate.  However, I
don't think this is conducive to getting 0.8 out.

As it is, I think we can suffice with a hack solution:  a sinks
"desired size" should be adjusted by the pixel aspect ratio, if
it exists.  This will *mostly* get it right, since ximagesink
will often be linked to videoscale.



dave...





More information about the gstreamer-devel mailing list