[vlc-devel] [RFC] [PATCH] XCB/RandR: new X11 video output for monitor hardware scaling

Laurent Aimar fenrir at elivagar.org
Sun Feb 20 21:00:51 CET 2011


Hi,

On Tue, Feb 15, 2011 at 11:03:06PM +0200, Rémi Denis-Courmont wrote:
> This video output provides poor man's hardware video scaling. That
> works changing the display port(s) output resolution on-the-fly
> using XRandR extension version 1.1. Software chroma conversion is still
> required.
> 
> This output forces full screen mode at all times, which is its obvious
> biggest and fundamental disadvantage over other X11-based outputs.
> 
> This patch is incomplete in several ways:
> 
>  - There are no provision to restore the original resolution when video
>    ends (and possibly also when we loose focus).
> 
>  - Most of the code is a shameful cut&pasted from xcb/x11.c. I am
>    hesitant on how to deal with this. This code could be factored as a
>    submodule of the X11 plugin, but I fear it would reduce readability.
> 
>  - Only display fill mode is supported. Crop, zoom and aspect ratio are
>    not supported. Unfortunately, vout_display_PlacePicture() does not
>    work here: we need to adjust the display size to the video format
>    rather than the video format to the display size as we usually do.
 I wonder if vout_display_GetDefaultDisplaySize() doesn't do what you need ?

-- 
fenrir




More information about the vlc-devel mailing list