evas/image: Add video surface caps. 84/10784/1 accepted/tizen/20131018.135929 accepted/tizen/20131112.015524 submit/tizen/20131017.152452
authorRafael Antognolli <rafael.antognolli@intel.com>
Fri, 11 Oct 2013 19:43:50 +0000 (16:43 -0300)
committerRafael Antognolli <rafael.antognolli@intel.com>
Fri, 11 Oct 2013 19:53:35 +0000 (16:53 -0300)
commit89d19f48a65082120fbe0e26b21a6cacdc47e161
tree12d0b20124ca87db78492cda974c150f4e36230a
parent3750ca94988426fdc591a94be6f18227763614ec
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.

Change-Id: I35764b72c31792e8af8c8d83a3f4694a1ae5fa87
src/lib/Evas.h
src/lib/canvas/evas_object_image.c
src/lib/canvas/evas_render.c