path: root/src/lib/evas/include/evas_private.h
diff options
authorJean-Philippe Andre <>2016-09-05 13:53:00 +0900
committerJean-Philippe Andre <>2016-09-06 16:55:00 +0900
commitb2d92f2626574efec6d2e159b08d44c7e4936069 (patch)
tree9cf5a444cf4c72bf8cb57ffa7c07327a4df8531d /src/lib/evas/include/evas_private.h
parent2f737e8f3bb6705fa981bced09a5337db3ee2bcb (diff)
evas: Implement support for external buffers
This brings support for the eo api for external buffers (like the old data_set / data_get). The new API now works with slices and planes. The internal code still relies on the old array for YUV color conversion. This makes the code a little bit too complex to my taste. Tested with expedite for RGBA and YUV 422 601 planar, both SW and GL engines (x11).
Diffstat (limited to 'src/lib/evas/include/evas_private.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/include/evas_private.h b/src/lib/evas/include/evas_private.h
index 243c1fee58..2b6c8dfc79 100644
--- a/src/lib/evas/include/evas_private.h
+++ b/src/lib/evas/include/evas_private.h
@@ -1373,6 +1373,9 @@ struct _Evas_Func
1373 Eina_Bool (*image_data_unmap) (void *data, void *image, const Eina_Rw_Slice *slice); 1373 Eina_Bool (*image_data_unmap) (void *data, void *image, const Eina_Rw_Slice *slice);
1374 int (*image_data_maps_get) (void *data, const void *image, const Eina_Rw_Slice **slices); 1374 int (*image_data_maps_get) (void *data, const void *image, const Eina_Rw_Slice **slices);
1375 1375
1376 /* new api for direct data set (not put) */
1377 void *(*image_data_slice_add) (void *data, void *image, const Eina_Slice *slice, Eina_Bool copy, int w, int h, int stride, Evas_Colorspace space, int plane, Eina_Bool alpha);
1376 int (*image_native_init) (void *data, Evas_Native_Surface_Type type); 1379 int (*image_native_init) (void *data, Evas_Native_Surface_Type type);
1377 void (*image_native_shutdown) (void *data, Evas_Native_Surface_Type type); 1380 void (*image_native_shutdown) (void *data, Evas_Native_Surface_Type type);
1378 void *(*image_native_set) (void *data, void *image, void *native); 1381 void *(*image_native_set) (void *data, void *image, void *native);