[Libva] [PATCH][G45] Fix rendering of subpictures

Gwenole Beauchesne gbeauchesne at splitted-desktop.com
Tue Jul 13 08:01:04 PDT 2010


Hi,

This patch fixes rendering of subpictures. There were two problems:  
(i) coords were scaled up too much, (ii) scale factor was not using  
the real visible surface size. You can check before/after conditions  
as follows:

$ ./vaapi_h264 --genimage rgb-rects --putimage blend --putimage-size  
640x480
   The subpicture shall touch the window bounds

$ mplayer -vo vaapi -va vaapi -fs /path/to/some/1080p/video
   Press 'o' (lower-case oh) to show OSD. The text was oversized.

Regards,
Gwenole.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-rendering-of-subpictures.patch
Type: application/octet-stream
Size: 1342 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libva/attachments/20100713/d84d7016/attachment.obj>
-------------- next part --------------



More information about the Libva mailing list