summaryrefslogtreecommitdiff
path: root/src/lib/evas/Evas_Common.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_Common.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 'src/lib/evas/Evas_Common.h')
-rw-r--r--src/lib/evas/Evas_Common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/evas/Evas_Common.h b/src/lib/evas/Evas_Common.h
index 0c2d9b3655..007c0acf8f 100644
--- a/src/lib/evas/Evas_Common.h
+++ b/src/lib/evas/Evas_Common.h
@@ -486,6 +486,16 @@ struct _Evas_Video_Surface
486 void *data; 486 void *data;
487}; 487};
488 488
489typedef enum _Evas_Video_Surface_Caps
490{
491 EVAS_VIDEO_SURFACE_MOVE = 1,
492 EVAS_VIDEO_SURFACE_RESIZE = 2,
493 EVAS_VIDEO_SURFACE_CLIP = 4,
494 EVAS_VIDEO_SURFACE_BELOW = 8,
495 EVAS_VIDEO_SURFACE_STACKING_CHECK = 16,
496 EVAS_VIDEO_SURFACE_IGNORE_WINDOW = 32,
497} Evas_Video_Surface_Caps;
498
489#define EVAS_LAYER_MIN -32768 /**< bottom-most layer number */ 499#define EVAS_LAYER_MIN -32768 /**< bottom-most layer number */
490#define EVAS_LAYER_MAX 32767 /**< top-most layer number */ 500#define EVAS_LAYER_MAX 32767 /**< top-most layer number */
491 501