evas/image: Add video surface caps.
authorRafael Antognolli <rafael.antognolli@intel.com>
Thu, 26 Sep 2013 16:49:18 +0000 (13:49 -0300)
committerRafael Antognolli <rafael.antognolli@intel.com>
Fri, 4 Oct 2013 21:28:51 +0000 (18:28 -0300)
commit9506fd5db783f013dcb5f042f15f4f0feb4a191f
tree6eb206cea4c23c0a33aa4aa024a0bd4842936e16
parentd1c6266c45b6bfbfbba4a3b61ee6e9e5cec99cc9
evas/image: Add video surface caps.

Wayland subsurfaces can be used as video surfaces too, similarly to
Ecore_X windows. However, they support a different set of features. Some
of them, like subsurface clipping and scaling, might be added in the
future, but so far we must work with what we have.

This commit allows to set an enum bitfield to the Video_Surface, with
the default value being one that will keep the same behavior as before,
for Ecore_X window. Thus, backward compatibility should not be broken.

It's possible to inform Evas that the surface in question is not able to
resize or scale, or that it's above or below the original canvas
surface. This allows Evas to show the surface itself, or use a buffer of
pixels instead, when the capabilities are not available.
src/lib/evas/Evas_Common.h
src/lib/evas/Evas_Eo.h
src/lib/evas/Evas_Legacy.h
src/lib/evas/canvas/evas_object_image.c
src/lib/evas/canvas/evas_render.c