[Xine-vdpau] [patches] some enhancements for xine-vdpau

durchflieger yak54 at gmx.net
Thu Jun 25 17:36:35 CEST 2009


Hi,

i want to offer three patches against xine-vdpau r273 that are already used and tested by several users using the VDR video disk recorder in conjunction
with "xineliboutput" plug-in,  a xine-vdpau based player for vdr. See also this forum (sorry it is in German language only):
http://www.vdr-portal.de/board/thread.php?threadid=86804

These patches provide the following:

opt_provide_standard_frame.diff:
The patch implements a optimized version of feature "vdpau_provide_standard_frame_data" in file "video_out_vdpau.c". It downloads the frame data
directly to the provided client memory without allocating temporary buffers.
The feature is used from a xine post plugin "autocrop" that detects non 4:3 frame format's within 4:3 sd frames by detecting black bars within the frame
image. This is done about every fourth frame so a optimized version of this feature makes sense.

sd_only_properties.diff:
Again this patch is against file "video_out_vdpau.c".
Because with VDR most of the video are broadcasts from tv stations the vdpau video features sharpness and noise reduction
are  very useful to get better picture quality specially for channels with low bandwidth.  On the other side for broadcasts in
hd quality these picture corrections should be turned off to get best quality.
The patch adds a new config option "video.output.vdpau_sd_only_properties" which when enabled, enables sharpness and 
noise reduction only for sd videos so the user doesn't has to switch these properties when zapping channels.

grab_output_surface.diff:
This patch implements a feature to grab the image of a output surface as it leaves the vdpau video mixer. 
This feature is used by vdr plugins that provide screen shots of video output by a web interface. 
I implemented this feature by adding a new "xine_port_send_gui_data" identifier "XINE_GUI_GRAB_LAST_DISPLAYED_RAW_FRAME".
Data exchange with the vdpau driver (and possibly other xine drivers) goes though "xine_port_send_gui_data".
I am not sure if this is the right place but it only enhances the current xine interface without breaking backward compatibility.

It would be nice if this enhancements could find it's way into the main xine-vdpau development.

Best regards
Andreas Auras

-------------- next part --------------
A non-text attachment was scrubbed...
Name: grab_output_surface.diff
Type: text/x-patch
Size: 12502 bytes
Desc: not available
Url : http://lists.kafic.ba/pipermail/xine-vdpau/attachments/20090625/a1de7399/grab_output_surface.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opt_provide_standard_frame.diff
Type: text/x-patch
Size: 5032 bytes
Desc: not available
Url : http://lists.kafic.ba/pipermail/xine-vdpau/attachments/20090625/a1de7399/opt_provide_standard_frame.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sd_only_properties.diff
Type: text/x-patch
Size: 3057 bytes
Desc: not available
Url : http://lists.kafic.ba/pipermail/xine-vdpau/attachments/20090625/a1de7399/sd_only_properties.bin


More information about the Xine-vdpau mailing list