subpicture: improve application of overlay compositions
authorHolger Kaelberer <holger.k@elberer.de>
Tue, 15 May 2012 08:34:31 +0000 (10:34 +0200)
committerHolger Kaelberer <holger.k@elberer.de>
Tue, 15 May 2012 08:34:31 +0000 (10:34 +0200)
commit9603bdc2acb1c5dab02116fbfb7e489417dd2667
tree5700cb054577671aa485cc0644e050688ab7c402
parent74a1b34bc4b2a0ee1ef03a1a797b074733bb53d6
subpicture: improve application of overlay compositions

Avoid un-necessary associations/uploading of unchanged subpicture
data (gst_vaapi_context_apply_composition()). Check changed overlay
data per rectangle and re-upload only if there where changes of
render_rect or global_alpha in the underlying
GstVideoOverlayRectangle. Otherwise we don't have any benefit from
vaSetSubpictureGlobalAlpha() if supported by the libva backend.
gst-libs/gst/vaapi/gstvaapicontext.c