summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/software_generic/evas_native_common.h
diff options
context:
space:
mode:
authorMinkyoung Kim <mer.kim@samsung.com>2016-06-13 15:24:14 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-06-13 15:27:56 +0900
commit93b4df1f5a506492bb322a9761b5379f5f9cf6ad (patch)
treef0f361076e9eefdbb621f706bd028361d4b3bf50 /src/modules/evas/engines/software_generic/evas_native_common.h
parent3f426ca519794843643252520f2c9b8f3bf85a30 (diff)
evas-native-tbm: fix stride mismatch and allocate image data for converting from yuv to rgb.
Summary: 1. For converting tbm buffer from yuv to rgb, image.data should be allocated. 2. Stride should be set by info of tbm surface. 3. The number of row is height*2. but if height is odd, last row is invalid in process of _evas_video_i420. Test Plan: Local Test, Tizen2.4 Mobile Reviewers: spacegrapher, wonsik, jpeg Subscribers: cedric, dkdk Differential Revision: https://phab.enlightenment.org/D3870
Diffstat (limited to 'src/modules/evas/engines/software_generic/evas_native_common.h')
-rw-r--r--src/modules/evas/engines/software_generic/evas_native_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/evas/engines/software_generic/evas_native_common.h b/src/modules/evas/engines/software_generic/evas_native_common.h
index 7bcc5ea23d..a13b7a0463 100644
--- a/src/modules/evas/engines/software_generic/evas_native_common.h
+++ b/src/modules/evas/engines/software_generic/evas_native_common.h
@@ -107,11 +107,13 @@ struct _Native
107}; 107};
108 108
109EAPI void *_evas_native_tbm_surface_image_set(void *data, void *image, void *native); 109EAPI void *_evas_native_tbm_surface_image_set(void *data, void *image, void *native);
110EAPI int _evas_native_tbm_surface_stride_get(void *data, void *native);
110EAPI int _evas_native_tbm_init(void); 111EAPI int _evas_native_tbm_init(void);
111EAPI void _evas_native_tbm_shutdown(void); 112EAPI void _evas_native_tbm_shutdown(void);
112 113
113void *_evas_native_dmabuf_surface_image_set(void *image, void *native); 114void *_evas_native_dmabuf_surface_image_set(void *image, void *native);
114 115
115typedef void *(*Evas_Native_Tbm_Surface_Image_Set_Call)(void *data, void *image, void *native); 116typedef void *(*Evas_Native_Tbm_Surface_Image_Set_Call)(void *data, void *image, void *native);
117typedef int (*Evas_Native_Tbm_Surface_Stride_Get_Call)(void *data, void *native);
116 118
117#endif //_EVAS_NATIVE_COMMON_H 119#endif //_EVAS_NATIVE_COMMON_H