|author||Rafael Antognolli <email@example.com>||2013-09-26 13:49:18 -0300|
|committer||Rafael Antognolli <firstname.lastname@example.org>||2013-10-04 18:28:51 -0300|
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.
Diffstat (limited to '')
1 files changed, 3 insertions, 0 deletions
|@@ -4738,6 +4738,9 @@ EAPI void evas_object_image_video_surface_set(Evas_Obje|
|4739||EAPI const Evas_Video_Surface *evas_object_image_video_surface_get(const Evas_Object *obj) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1);||4739||EAPI const Evas_Video_Surface *evas_object_image_video_surface_get(const Evas_Object *obj) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1);|
|4741||EAPI void evas_object_image_video_surface_caps_set(Evas_Object *obj, unsigned int caps) EINA_ARG_NONNULL(1);|
|4742||EAPI unsigned int evas_object_image_video_surface_caps_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);|
|4742||* Set the scale hint of a given image of the canvas.||4745||* Set the scale hint of a given image of the canvas.|