surfaceproxy: add copy function.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 28 Nov 2013 16:25:05 +0000 (17:25 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 28 Nov 2013 16:32:18 +0000 (17:32 +0100)
commit5e245ae2c257e331a24984f884d359dea53e20e3
tree5fc5075af866c560f77a3589d4f034c5f8ac53ee
parent30f382fcdfb9ff790ce23aae7a076ad6fdf7b606
surfaceproxy: add copy function.

Add gst_vaapi_surface_proxy_copy() function that creates a new surface
proxy with the same information from the parent proxy, except that the
user-defined destroy notify function is not copied over.

The underlying VA surface is pushed back to the video pool only when
the last reference to the parent surface proxy is released.
docs/reference/libs/libs-sections.txt
gst-libs/gst/vaapi/gstvaapisurfaceproxy.c
gst-libs/gst/vaapi/gstvaapisurfaceproxy.h
gst-libs/gst/vaapi/gstvaapisurfaceproxy_priv.h