summaryrefslogtreecommitdiff
path: root/src/lib/evas/Evas_Legacy.h
diff options
context:
space:
mode:
authorRafael Antognolli <rafael.antognolli@intel.com>2013-09-26 13:49:18 -0300
committerRafael Antognolli <rafael.antognolli@intel.com>2013-10-04 18:28:51 -0300
commit9506fd5db783f013dcb5f042f15f4f0feb4a191f (patch)
tree6eb206cea4c23c0a33aa4aa024a0bd4842936e16 /src/lib/evas/Evas_Legacy.h
parentd1c6266c45b6bfbfbba4a3b61ee6e9e5cec99cc9 (diff)
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 '')
-rw-r--r--src/lib/evas/Evas_Legacy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h
index 5294ce7909..ffb3bb821e 100644
--- a/src/lib/evas/Evas_Legacy.h
+++ b/src/lib/evas/Evas_Legacy.h
@@ -4738,6 +4738,9 @@ EAPI void evas_object_image_video_surface_set(Evas_Obje
4738 */ 4738 */
4739EAPI const Evas_Video_Surface *evas_object_image_video_surface_get(const Evas_Object *obj) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1); 4739EAPI const Evas_Video_Surface *evas_object_image_video_surface_get(const Evas_Object *obj) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1);
4740 4740
4741EAPI void evas_object_image_video_surface_caps_set(Evas_Object *obj, unsigned int caps) EINA_ARG_NONNULL(1);
4742EAPI unsigned int evas_object_image_video_surface_caps_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4743
4741/** 4744/**
4742 * Set the scale hint of a given image of the canvas. 4745 * Set the scale hint of a given image of the canvas.
4743 * 4746 *