diff options
Diffstat (limited to 'libraries/evas/src/modules/engines/buffer')
6 files changed, 1717 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/engines/buffer/Evas_Engine_Buffer.h b/libraries/evas/src/modules/engines/buffer/Evas_Engine_Buffer.h new file mode 100644 index 0000000..e6d11d1 --- /dev/null +++ b/libraries/evas/src/modules/engines/buffer/Evas_Engine_Buffer.h | |||
@@ -0,0 +1,40 @@ | |||
1 | #ifndef _EVAS_ENGINE_BUFFER_H | ||
2 | #define _EVAS_ENGINE_BUFFER_H | ||
3 | |||
4 | #define EVAS_ENGINE_BUFFER_DEPTH_ARGB32 0 | ||
5 | #define EVAS_ENGINE_BUFFER_DEPTH_BGRA32 1 | ||
6 | #define EVAS_ENGINE_BUFFER_DEPTH_RGB24 2 | ||
7 | #define EVAS_ENGINE_BUFFER_DEPTH_BGR24 3 | ||
8 | #define EVAS_ENGINE_BUFFER_DEPTH_RGB32 4 | ||
9 | |||
10 | typedef struct _Evas_Engine_Info_Buffer Evas_Engine_Info_Buffer; | ||
11 | |||
12 | struct _Evas_Engine_Info_Buffer | ||
13 | { | ||
14 | /* PRIVATE - don't mess with this baby or evas will poke its tongue out */ | ||
15 | /* at you and make nasty noises */ | ||
16 | Evas_Engine_Info magic; | ||
17 | |||
18 | struct { | ||
19 | int depth_type; | ||
20 | |||
21 | void *dest_buffer; | ||
22 | int dest_buffer_row_bytes; | ||
23 | |||
24 | char use_color_key : 1; | ||
25 | int alpha_threshold; | ||
26 | int color_key_r; | ||
27 | int color_key_g; | ||
28 | int color_key_b; | ||
29 | struct { | ||
30 | void * (*new_update_region) (int x, int y, int w, int h, int *row_bytes); | ||
31 | void (*free_update_region) (int x, int y, int w, int h, void *data); | ||
32 | } func; | ||
33 | } info; | ||
34 | |||
35 | /* non-blocking or blocking mode */ | ||
36 | Evas_Engine_Render_Mode render_mode; | ||
37 | }; | ||
38 | #endif | ||
39 | |||
40 | |||
diff --git a/libraries/evas/src/modules/engines/buffer/Makefile.am b/libraries/evas/src/modules/engines/buffer/Makefile.am new file mode 100644 index 0000000..19ac5a7 --- /dev/null +++ b/libraries/evas/src/modules/engines/buffer/Makefile.am | |||
@@ -0,0 +1,44 @@ | |||
1 | |||
2 | MAINTAINERCLEANFILES = Makefile.in | ||
3 | |||
4 | AM_CPPFLAGS = \ | ||
5 | -I. \ | ||
6 | -I$(top_srcdir)/src/lib \ | ||
7 | -I$(top_srcdir)/src/lib/include \ | ||
8 | -I$(top_srcdir)/src/modules/engines \ | ||
9 | @EINA_CFLAGS@ \ | ||
10 | @FREETYPE_CFLAGS@ \ | ||
11 | @PIXMAN_CFLAGS@ | ||
12 | |||
13 | AM_CFLAGS = @WIN32_CFLAGS@ | ||
14 | |||
15 | if BUILD_ENGINE_BUFFER | ||
16 | |||
17 | BUFFER_SOURCES = \ | ||
18 | evas_engine.c \ | ||
19 | evas_outbuf.c | ||
20 | |||
21 | |||
22 | includes_HEADERS = Evas_Engine_Buffer.h | ||
23 | includesdir = $(includedir)/evas-@VMAJ@ | ||
24 | |||
25 | if !EVAS_STATIC_BUILD_BUFFER | ||
26 | |||
27 | pkgdir = $(libdir)/evas/modules/engines/buffer/$(MODULE_ARCH) | ||
28 | pkg_LTLIBRARIES = module.la | ||
29 | |||
30 | module_la_SOURCES = $(BUFFER_SOURCES) | ||
31 | module_la_LIBADD = $(top_builddir)/src/lib/libevas.la @EINA_LIBS@ | ||
32 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
33 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
34 | |||
35 | else | ||
36 | |||
37 | noinst_LTLIBRARIES = libevas_engine_buffer.la | ||
38 | |||
39 | libevas_engine_buffer_la_SOURCES = $(BUFFER_SOURCES) | ||
40 | |||
41 | endif | ||
42 | endif | ||
43 | |||
44 | EXTRA_DIST = evas_engine.h | ||
diff --git a/libraries/evas/src/modules/engines/buffer/Makefile.in b/libraries/evas/src/modules/engines/buffer/Makefile.in new file mode 100644 index 0000000..2311344 --- /dev/null +++ b/libraries/evas/src/modules/engines/buffer/Makefile.in | |||
@@ -0,0 +1,805 @@ | |||
1 | # Makefile.in generated by automake 1.11.1 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | ||
6 | # Inc. | ||
7 | # This Makefile.in is free software; the Free Software Foundation | ||
8 | # gives unlimited permission to copy and/or distribute it, | ||
9 | # with or without modifications, as long as this notice is preserved. | ||
10 | |||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
13 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
14 | # PARTICULAR PURPOSE. | ||
15 | |||
16 | @SET_MAKE@ | ||
17 | |||
18 | |||
19 | VPATH = @srcdir@ | ||
20 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
21 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
22 | pkglibdir = $(libdir)/@PACKAGE@ | ||
23 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
24 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
25 | install_sh_DATA = $(install_sh) -c -m 644 | ||
26 | install_sh_PROGRAM = $(install_sh) -c | ||
27 | install_sh_SCRIPT = $(install_sh) -c | ||
28 | INSTALL_HEADER = $(INSTALL_DATA) | ||
29 | transform = $(program_transform_name) | ||
30 | NORMAL_INSTALL = : | ||
31 | PRE_INSTALL = : | ||
32 | POST_INSTALL = : | ||
33 | NORMAL_UNINSTALL = : | ||
34 | PRE_UNINSTALL = : | ||
35 | POST_UNINSTALL = : | ||
36 | build_triplet = @build@ | ||
37 | host_triplet = @host@ | ||
38 | subdir = src/modules/engines/buffer | ||
39 | DIST_COMMON = $(am__includes_HEADERS_DIST) $(srcdir)/Makefile.am \ | ||
40 | $(srcdir)/Makefile.in | ||
41 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
42 | am__aclocal_m4_deps = $(top_srcdir)/m4/efl_attribute.m4 \ | ||
43 | $(top_srcdir)/m4/efl_coverage.m4 \ | ||
44 | $(top_srcdir)/m4/efl_doxygen.m4 \ | ||
45 | $(top_srcdir)/m4/efl_fnmatch.m4 \ | ||
46 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ | ||
47 | $(top_srcdir)/m4/evas_check_engine.m4 \ | ||
48 | $(top_srcdir)/m4/evas_check_loader.m4 \ | ||
49 | $(top_srcdir)/m4/evas_converter.m4 \ | ||
50 | $(top_srcdir)/m4/evas_dither.m4 \ | ||
51 | $(top_srcdir)/m4/evas_scaler.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
52 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | ||
53 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | ||
54 | $(top_srcdir)/configure.ac | ||
55 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
56 | $(ACLOCAL_M4) | ||
57 | mkinstalldirs = $(install_sh) -d | ||
58 | CONFIG_HEADER = $(top_builddir)/config.h | ||
59 | CONFIG_CLEAN_FILES = | ||
60 | CONFIG_CLEAN_VPATH_FILES = | ||
61 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
62 | am__vpath_adj = case $$p in \ | ||
63 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
64 | *) f=$$p;; \ | ||
65 | esac; | ||
66 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
67 | am__install_max = 40 | ||
68 | am__nobase_strip_setup = \ | ||
69 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
70 | am__nobase_strip = \ | ||
71 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
72 | am__nobase_list = $(am__nobase_strip_setup); \ | ||
73 | for p in $$list; do echo "$$p $$p"; done | \ | ||
74 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
75 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
76 | if (++n[$$2] == $(am__install_max)) \ | ||
77 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
78 | END { for (dir in files) print dir, files[dir] }' | ||
79 | am__base_list = \ | ||
80 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
81 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
82 | am__installdirs = "$(DESTDIR)$(pkgdir)" "$(DESTDIR)$(includesdir)" | ||
83 | LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES) | ||
84 | libevas_engine_buffer_la_LIBADD = | ||
85 | am__libevas_engine_buffer_la_SOURCES_DIST = evas_engine.c \ | ||
86 | evas_outbuf.c | ||
87 | @BUILD_ENGINE_BUFFER_TRUE@am__objects_1 = evas_engine.lo \ | ||
88 | @BUILD_ENGINE_BUFFER_TRUE@ evas_outbuf.lo | ||
89 | @BUILD_ENGINE_BUFFER_TRUE@@EVAS_STATIC_BUILD_BUFFER_TRUE@am_libevas_engine_buffer_la_OBJECTS = $(am__objects_1) | ||
90 | libevas_engine_buffer_la_OBJECTS = \ | ||
91 | $(am_libevas_engine_buffer_la_OBJECTS) | ||
92 | AM_V_lt = $(am__v_lt_$(V)) | ||
93 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
94 | am__v_lt_0 = --silent | ||
95 | @BUILD_ENGINE_BUFFER_TRUE@@EVAS_STATIC_BUILD_BUFFER_TRUE@am_libevas_engine_buffer_la_rpath = | ||
96 | @BUILD_ENGINE_BUFFER_TRUE@@EVAS_STATIC_BUILD_BUFFER_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
97 | am__module_la_SOURCES_DIST = evas_engine.c evas_outbuf.c | ||
98 | @BUILD_ENGINE_BUFFER_TRUE@am__objects_2 = module_la-evas_engine.lo \ | ||
99 | @BUILD_ENGINE_BUFFER_TRUE@ module_la-evas_outbuf.lo | ||
100 | @BUILD_ENGINE_BUFFER_TRUE@@EVAS_STATIC_BUILD_BUFFER_FALSE@am_module_la_OBJECTS = $(am__objects_2) | ||
101 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
102 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
103 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
104 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
105 | @BUILD_ENGINE_BUFFER_TRUE@@EVAS_STATIC_BUILD_BUFFER_FALSE@am_module_la_rpath = -rpath \ | ||
106 | @BUILD_ENGINE_BUFFER_TRUE@@EVAS_STATIC_BUILD_BUFFER_FALSE@ $(pkgdir) | ||
107 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
108 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
109 | am__depfiles_maybe = depfiles | ||
110 | am__mv = mv -f | ||
111 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
112 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
113 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
114 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
115 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
116 | $(AM_CFLAGS) $(CFLAGS) | ||
117 | AM_V_CC = $(am__v_CC_$(V)) | ||
118 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
119 | am__v_CC_0 = @echo " CC " $@; | ||
120 | AM_V_at = $(am__v_at_$(V)) | ||
121 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_at_0 = @ | ||
123 | CCLD = $(CC) | ||
124 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
125 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
126 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
127 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
128 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
129 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
130 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
131 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
132 | am__v_GEN_0 = @echo " GEN " $@; | ||
133 | SOURCES = $(libevas_engine_buffer_la_SOURCES) $(module_la_SOURCES) | ||
134 | DIST_SOURCES = $(am__libevas_engine_buffer_la_SOURCES_DIST) \ | ||
135 | $(am__module_la_SOURCES_DIST) | ||
136 | am__includes_HEADERS_DIST = Evas_Engine_Buffer.h | ||
137 | HEADERS = $(includes_HEADERS) | ||
138 | ETAGS = etags | ||
139 | CTAGS = ctags | ||
140 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
141 | ACLOCAL = @ACLOCAL@ | ||
142 | ALLOCA = @ALLOCA@ | ||
143 | AMTAR = @AMTAR@ | ||
144 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
145 | AR = @AR@ | ||
146 | AS = @AS@ | ||
147 | AUTOCONF = @AUTOCONF@ | ||
148 | AUTOHEADER = @AUTOHEADER@ | ||
149 | AUTOMAKE = @AUTOMAKE@ | ||
150 | AWK = @AWK@ | ||
151 | CC = @CC@ | ||
152 | CCDEPMODE = @CCDEPMODE@ | ||
153 | CFLAGS = @CFLAGS@ | ||
154 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
155 | CHECK_LIBS = @CHECK_LIBS@ | ||
156 | CPP = @CPP@ | ||
157 | CPPFLAGS = @CPPFLAGS@ | ||
158 | CXX = @CXX@ | ||
159 | CXXCPP = @CXXCPP@ | ||
160 | CXXDEPMODE = @CXXDEPMODE@ | ||
161 | CXXFLAGS = @CXXFLAGS@ | ||
162 | CYGPATH_W = @CYGPATH_W@ | ||
163 | DEFS = @DEFS@ | ||
164 | DEPDIR = @DEPDIR@ | ||
165 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
166 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
167 | DLLTOOL = @DLLTOOL@ | ||
168 | DSYMUTIL = @DSYMUTIL@ | ||
169 | DUMPBIN = @DUMPBIN@ | ||
170 | ECHO_C = @ECHO_C@ | ||
171 | ECHO_N = @ECHO_N@ | ||
172 | ECHO_T = @ECHO_T@ | ||
173 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
174 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
175 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
176 | EDB_LIBS = @EDB_LIBS@ | ||
177 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
178 | EDJE_LIBS = @EDJE_LIBS@ | ||
179 | EET_CFLAGS = @EET_CFLAGS@ | ||
180 | EET_LIBS = @EET_LIBS@ | ||
181 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
182 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
183 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
184 | EGREP = @EGREP@ | ||
185 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
186 | EINA_LIBS = @EINA_LIBS@ | ||
187 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
188 | EVAS_LIBS = @EVAS_LIBS@ | ||
189 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
190 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
191 | EVIL_LIBS = @EVIL_LIBS@ | ||
192 | EXEEXT = @EXEEXT@ | ||
193 | FGREP = @FGREP@ | ||
194 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
195 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
196 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
197 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
198 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
199 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
200 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
201 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
202 | GREP = @GREP@ | ||
203 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
204 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
205 | INSTALL = @INSTALL@ | ||
206 | INSTALL_DATA = @INSTALL_DATA@ | ||
207 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
208 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
209 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
210 | LD = @LD@ | ||
211 | LDFLAGS = @LDFLAGS@ | ||
212 | LIBOBJS = @LIBOBJS@ | ||
213 | LIBS = @LIBS@ | ||
214 | LIBTOOL = @LIBTOOL@ | ||
215 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
216 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
217 | LIPO = @LIPO@ | ||
218 | LN_S = @LN_S@ | ||
219 | LTLIBOBJS = @LTLIBOBJS@ | ||
220 | MAKEINFO = @MAKEINFO@ | ||
221 | MKDIR_P = @MKDIR_P@ | ||
222 | MODULE_ARCH = @MODULE_ARCH@ | ||
223 | NM = @NM@ | ||
224 | NMEDIT = @NMEDIT@ | ||
225 | OBJC = @OBJC@ | ||
226 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
227 | OBJCFLAGS = @OBJCFLAGS@ | ||
228 | OBJDUMP = @OBJDUMP@ | ||
229 | OBJEXT = @OBJEXT@ | ||
230 | OTOOL = @OTOOL@ | ||
231 | OTOOL64 = @OTOOL64@ | ||
232 | PACKAGE = @PACKAGE@ | ||
233 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
234 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
235 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
236 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
237 | PACKAGE_URL = @PACKAGE_URL@ | ||
238 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
239 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
240 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
241 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
242 | PKG_CONFIG = @PKG_CONFIG@ | ||
243 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
244 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
245 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
246 | PNG_LIBS = @PNG_LIBS@ | ||
247 | RANLIB = @RANLIB@ | ||
248 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
249 | SDL_LIBS = @SDL_LIBS@ | ||
250 | SED = @SED@ | ||
251 | SET_MAKE = @SET_MAKE@ | ||
252 | SHELL = @SHELL@ | ||
253 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
254 | STRIP = @STRIP@ | ||
255 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
256 | SVG_LIBS = @SVG_LIBS@ | ||
257 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
258 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
259 | VERSION = @VERSION@ | ||
260 | VMAJ = @VMAJ@ | ||
261 | WIN32_CFLAGS = @WIN32_CFLAGS@ | ||
262 | WIN32_CPPFLAGS = @WIN32_CPPFLAGS@ | ||
263 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
264 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
265 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
266 | XCB_LIBS = @XCB_LIBS@ | ||
267 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
268 | XEXT_LIBS = @XEXT_LIBS@ | ||
269 | XMKMF = @XMKMF@ | ||
270 | X_CFLAGS = @X_CFLAGS@ | ||
271 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
272 | X_LIBS = @X_LIBS@ | ||
273 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
274 | abs_builddir = @abs_builddir@ | ||
275 | abs_srcdir = @abs_srcdir@ | ||
276 | abs_top_builddir = @abs_top_builddir@ | ||
277 | abs_top_srcdir = @abs_top_srcdir@ | ||
278 | ac_ct_CC = @ac_ct_CC@ | ||
279 | ac_ct_CXX = @ac_ct_CXX@ | ||
280 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
281 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
282 | altivec_cflags = @altivec_cflags@ | ||
283 | am__include = @am__include@ | ||
284 | am__leading_dot = @am__leading_dot@ | ||
285 | am__quote = @am__quote@ | ||
286 | am__tar = @am__tar@ | ||
287 | am__untar = @am__untar@ | ||
288 | bindir = @bindir@ | ||
289 | build = @build@ | ||
290 | build_alias = @build_alias@ | ||
291 | build_cpu = @build_cpu@ | ||
292 | build_os = @build_os@ | ||
293 | build_vendor = @build_vendor@ | ||
294 | builddir = @builddir@ | ||
295 | datadir = @datadir@ | ||
296 | datarootdir = @datarootdir@ | ||
297 | dlopen_libs = @dlopen_libs@ | ||
298 | docdir = @docdir@ | ||
299 | dvidir = @dvidir@ | ||
300 | edje_cc = @edje_cc@ | ||
301 | efl_doxygen = @efl_doxygen@ | ||
302 | efl_have_doxygen = @efl_have_doxygen@ | ||
303 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
304 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
305 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
306 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
307 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
308 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
309 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
310 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
311 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
312 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
313 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
314 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
315 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
316 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
317 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
318 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
319 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
320 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
321 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
322 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
323 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
324 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
325 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
326 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
327 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
328 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
329 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
330 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
331 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
332 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
333 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
334 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
335 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
336 | evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@ | ||
337 | evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@ | ||
338 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
339 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
340 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
341 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
342 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
343 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
344 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
345 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
346 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
347 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
348 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
349 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
350 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
351 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
352 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
353 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
354 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
355 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
356 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
357 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
358 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
359 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
360 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
361 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
362 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
363 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
364 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
365 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
366 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
367 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
368 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
369 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
370 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
371 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
372 | exec_prefix = @exec_prefix@ | ||
373 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
374 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
375 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
376 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
377 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
378 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
379 | have_lcov = @have_lcov@ | ||
380 | host = @host@ | ||
381 | host_alias = @host_alias@ | ||
382 | host_cpu = @host_cpu@ | ||
383 | host_os = @host_os@ | ||
384 | host_vendor = @host_vendor@ | ||
385 | htmldir = @htmldir@ | ||
386 | includedir = @includedir@ | ||
387 | infodir = @infodir@ | ||
388 | install_sh = @install_sh@ | ||
389 | libdir = @libdir@ | ||
390 | libexecdir = @libexecdir@ | ||
391 | localedir = @localedir@ | ||
392 | localstatedir = @localstatedir@ | ||
393 | lt_ECHO = @lt_ECHO@ | ||
394 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
395 | mandir = @mandir@ | ||
396 | mkdir_p = @mkdir_p@ | ||
397 | oldincludedir = @oldincludedir@ | ||
398 | pdfdir = @pdfdir@ | ||
399 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
400 | prefix = @prefix@ | ||
401 | program_transform_name = @program_transform_name@ | ||
402 | psdir = @psdir@ | ||
403 | pthread_cflags = @pthread_cflags@ | ||
404 | pthread_libs = @pthread_libs@ | ||
405 | release_info = @release_info@ | ||
406 | requirement_evas = @requirement_evas@ | ||
407 | sbindir = @sbindir@ | ||
408 | sharedstatedir = @sharedstatedir@ | ||
409 | srcdir = @srcdir@ | ||
410 | sysconfdir = @sysconfdir@ | ||
411 | target_alias = @target_alias@ | ||
412 | top_build_prefix = @top_build_prefix@ | ||
413 | top_builddir = @top_builddir@ | ||
414 | top_srcdir = @top_srcdir@ | ||
415 | version_info = @version_info@ | ||
416 | MAINTAINERCLEANFILES = Makefile.in | ||
417 | AM_CPPFLAGS = \ | ||
418 | -I. \ | ||
419 | -I$(top_srcdir)/src/lib \ | ||
420 | -I$(top_srcdir)/src/lib/include \ | ||
421 | -I$(top_srcdir)/src/modules/engines \ | ||
422 | @EINA_CFLAGS@ \ | ||
423 | @FREETYPE_CFLAGS@ \ | ||
424 | @PIXMAN_CFLAGS@ | ||
425 | |||
426 | AM_CFLAGS = @WIN32_CFLAGS@ | ||
427 | @BUILD_ENGINE_BUFFER_TRUE@BUFFER_SOURCES = \ | ||
428 | @BUILD_ENGINE_BUFFER_TRUE@evas_engine.c \ | ||
429 | @BUILD_ENGINE_BUFFER_TRUE@evas_outbuf.c | ||
430 | |||
431 | @BUILD_ENGINE_BUFFER_TRUE@includes_HEADERS = Evas_Engine_Buffer.h | ||
432 | @BUILD_ENGINE_BUFFER_TRUE@includesdir = $(includedir)/evas-@VMAJ@ | ||
433 | @BUILD_ENGINE_BUFFER_TRUE@@EVAS_STATIC_BUILD_BUFFER_FALSE@pkgdir = $(libdir)/evas/modules/engines/buffer/$(MODULE_ARCH) | ||
434 | @BUILD_ENGINE_BUFFER_TRUE@@EVAS_STATIC_BUILD_BUFFER_FALSE@pkg_LTLIBRARIES = module.la | ||
435 | @BUILD_ENGINE_BUFFER_TRUE@@EVAS_STATIC_BUILD_BUFFER_FALSE@module_la_SOURCES = $(BUFFER_SOURCES) | ||
436 | @BUILD_ENGINE_BUFFER_TRUE@@EVAS_STATIC_BUILD_BUFFER_FALSE@module_la_LIBADD = $(top_builddir)/src/lib/libevas.la @EINA_LIBS@ | ||
437 | @BUILD_ENGINE_BUFFER_TRUE@@EVAS_STATIC_BUILD_BUFFER_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
438 | @BUILD_ENGINE_BUFFER_TRUE@@EVAS_STATIC_BUILD_BUFFER_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
439 | @BUILD_ENGINE_BUFFER_TRUE@@EVAS_STATIC_BUILD_BUFFER_TRUE@noinst_LTLIBRARIES = libevas_engine_buffer.la | ||
440 | @BUILD_ENGINE_BUFFER_TRUE@@EVAS_STATIC_BUILD_BUFFER_TRUE@libevas_engine_buffer_la_SOURCES = $(BUFFER_SOURCES) | ||
441 | EXTRA_DIST = evas_engine.h | ||
442 | all: all-am | ||
443 | |||
444 | .SUFFIXES: | ||
445 | .SUFFIXES: .c .lo .o .obj | ||
446 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
447 | @for dep in $?; do \ | ||
448 | case '$(am__configure_deps)' in \ | ||
449 | *$$dep*) \ | ||
450 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
451 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
452 | exit 1;; \ | ||
453 | esac; \ | ||
454 | done; \ | ||
455 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/engines/buffer/Makefile'; \ | ||
456 | $(am__cd) $(top_srcdir) && \ | ||
457 | $(AUTOMAKE) --gnu src/modules/engines/buffer/Makefile | ||
458 | .PRECIOUS: Makefile | ||
459 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
460 | @case '$?' in \ | ||
461 | *config.status*) \ | ||
462 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
463 | *) \ | ||
464 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
465 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
466 | esac; | ||
467 | |||
468 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
469 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
470 | |||
471 | $(top_srcdir)/configure: $(am__configure_deps) | ||
472 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
473 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
474 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
475 | $(am__aclocal_m4_deps): | ||
476 | |||
477 | clean-noinstLTLIBRARIES: | ||
478 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
479 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
480 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
481 | test "$$dir" != "$$p" || dir=.; \ | ||
482 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
483 | rm -f "$${dir}/so_locations"; \ | ||
484 | done | ||
485 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
486 | @$(NORMAL_INSTALL) | ||
487 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
488 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
489 | list2=; for p in $$list; do \ | ||
490 | if test -f $$p; then \ | ||
491 | list2="$$list2 $$p"; \ | ||
492 | else :; fi; \ | ||
493 | done; \ | ||
494 | test -z "$$list2" || { \ | ||
495 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
496 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
497 | } | ||
498 | |||
499 | uninstall-pkgLTLIBRARIES: | ||
500 | @$(NORMAL_UNINSTALL) | ||
501 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
502 | for p in $$list; do \ | ||
503 | $(am__strip_dir) \ | ||
504 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
505 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
506 | done | ||
507 | |||
508 | clean-pkgLTLIBRARIES: | ||
509 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
510 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
511 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
512 | test "$$dir" != "$$p" || dir=.; \ | ||
513 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
514 | rm -f "$${dir}/so_locations"; \ | ||
515 | done | ||
516 | libevas_engine_buffer.la: $(libevas_engine_buffer_la_OBJECTS) $(libevas_engine_buffer_la_DEPENDENCIES) | ||
517 | $(AM_V_CCLD)$(LINK) $(am_libevas_engine_buffer_la_rpath) $(libevas_engine_buffer_la_OBJECTS) $(libevas_engine_buffer_la_LIBADD) $(LIBS) | ||
518 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
519 | $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
520 | |||
521 | mostlyclean-compile: | ||
522 | -rm -f *.$(OBJEXT) | ||
523 | |||
524 | distclean-compile: | ||
525 | -rm -f *.tab.c | ||
526 | |||
527 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_engine.Plo@am__quote@ | ||
528 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_outbuf.Plo@am__quote@ | ||
529 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_engine.Plo@am__quote@ | ||
530 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_outbuf.Plo@am__quote@ | ||
531 | |||
532 | .c.o: | ||
533 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
534 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
535 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
536 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
537 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
538 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
539 | |||
540 | .c.obj: | ||
541 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
542 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
543 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
544 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
545 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
546 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
547 | |||
548 | .c.lo: | ||
549 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
550 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
551 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
552 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
553 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
554 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
555 | |||
556 | module_la-evas_engine.lo: evas_engine.c | ||
557 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT module_la-evas_engine.lo -MD -MP -MF $(DEPDIR)/module_la-evas_engine.Tpo -c -o module_la-evas_engine.lo `test -f 'evas_engine.c' || echo '$(srcdir)/'`evas_engine.c | ||
558 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_engine.Tpo $(DEPDIR)/module_la-evas_engine.Plo | ||
559 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
560 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_engine.c' object='module_la-evas_engine.lo' libtool=yes @AMDEPBACKSLASH@ | ||
561 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
562 | @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o module_la-evas_engine.lo `test -f 'evas_engine.c' || echo '$(srcdir)/'`evas_engine.c | ||
563 | |||
564 | module_la-evas_outbuf.lo: evas_outbuf.c | ||
565 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT module_la-evas_outbuf.lo -MD -MP -MF $(DEPDIR)/module_la-evas_outbuf.Tpo -c -o module_la-evas_outbuf.lo `test -f 'evas_outbuf.c' || echo '$(srcdir)/'`evas_outbuf.c | ||
566 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_outbuf.Tpo $(DEPDIR)/module_la-evas_outbuf.Plo | ||
567 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
568 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_outbuf.c' object='module_la-evas_outbuf.lo' libtool=yes @AMDEPBACKSLASH@ | ||
569 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
570 | @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o module_la-evas_outbuf.lo `test -f 'evas_outbuf.c' || echo '$(srcdir)/'`evas_outbuf.c | ||
571 | |||
572 | mostlyclean-libtool: | ||
573 | -rm -f *.lo | ||
574 | |||
575 | clean-libtool: | ||
576 | -rm -rf .libs _libs | ||
577 | install-includesHEADERS: $(includes_HEADERS) | ||
578 | @$(NORMAL_INSTALL) | ||
579 | test -z "$(includesdir)" || $(MKDIR_P) "$(DESTDIR)$(includesdir)" | ||
580 | @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \ | ||
581 | for p in $$list; do \ | ||
582 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
583 | echo "$$d$$p"; \ | ||
584 | done | $(am__base_list) | \ | ||
585 | while read files; do \ | ||
586 | echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includesdir)'"; \ | ||
587 | $(INSTALL_HEADER) $$files "$(DESTDIR)$(includesdir)" || exit $$?; \ | ||
588 | done | ||
589 | |||
590 | uninstall-includesHEADERS: | ||
591 | @$(NORMAL_UNINSTALL) | ||
592 | @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \ | ||
593 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ | ||
594 | test -n "$$files" || exit 0; \ | ||
595 | echo " ( cd '$(DESTDIR)$(includesdir)' && rm -f" $$files ")"; \ | ||
596 | cd "$(DESTDIR)$(includesdir)" && rm -f $$files | ||
597 | |||
598 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
599 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
600 | unique=`for i in $$list; do \ | ||
601 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
602 | done | \ | ||
603 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
604 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
605 | mkid -fID $$unique | ||
606 | tags: TAGS | ||
607 | |||
608 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
609 | $(TAGS_FILES) $(LISP) | ||
610 | set x; \ | ||
611 | here=`pwd`; \ | ||
612 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
613 | unique=`for i in $$list; do \ | ||
614 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
615 | done | \ | ||
616 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
617 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
618 | shift; \ | ||
619 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
620 | test -n "$$unique" || unique=$$empty_fix; \ | ||
621 | if test $$# -gt 0; then \ | ||
622 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
623 | "$$@" $$unique; \ | ||
624 | else \ | ||
625 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
626 | $$unique; \ | ||
627 | fi; \ | ||
628 | fi | ||
629 | ctags: CTAGS | ||
630 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
631 | $(TAGS_FILES) $(LISP) | ||
632 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
633 | unique=`for i in $$list; do \ | ||
634 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
635 | done | \ | ||
636 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
637 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
638 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
639 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
640 | $$unique | ||
641 | |||
642 | GTAGS: | ||
643 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
644 | && $(am__cd) $(top_srcdir) \ | ||
645 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
646 | |||
647 | distclean-tags: | ||
648 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
649 | |||
650 | distdir: $(DISTFILES) | ||
651 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
652 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
653 | list='$(DISTFILES)'; \ | ||
654 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
655 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
656 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
657 | case $$dist_files in \ | ||
658 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
659 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
660 | sort -u` ;; \ | ||
661 | esac; \ | ||
662 | for file in $$dist_files; do \ | ||
663 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
664 | if test -d $$d/$$file; then \ | ||
665 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
666 | if test -d "$(distdir)/$$file"; then \ | ||
667 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
668 | fi; \ | ||
669 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
670 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
671 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
672 | fi; \ | ||
673 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
674 | else \ | ||
675 | test -f "$(distdir)/$$file" \ | ||
676 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
677 | || exit 1; \ | ||
678 | fi; \ | ||
679 | done | ||
680 | check-am: all-am | ||
681 | check: check-am | ||
682 | all-am: Makefile $(LTLIBRARIES) $(HEADERS) | ||
683 | installdirs: | ||
684 | for dir in "$(DESTDIR)$(pkgdir)" "$(DESTDIR)$(includesdir)"; do \ | ||
685 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
686 | done | ||
687 | install: install-am | ||
688 | install-exec: install-exec-am | ||
689 | install-data: install-data-am | ||
690 | uninstall: uninstall-am | ||
691 | |||
692 | install-am: all-am | ||
693 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
694 | |||
695 | installcheck: installcheck-am | ||
696 | install-strip: | ||
697 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
698 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
699 | `test -z '$(STRIP)' || \ | ||
700 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
701 | mostlyclean-generic: | ||
702 | |||
703 | clean-generic: | ||
704 | |||
705 | distclean-generic: | ||
706 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
707 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
708 | |||
709 | maintainer-clean-generic: | ||
710 | @echo "This command is intended for maintainers to use" | ||
711 | @echo "it deletes files that may require special tools to rebuild." | ||
712 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
713 | clean: clean-am | ||
714 | |||
715 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
716 | clean-pkgLTLIBRARIES mostlyclean-am | ||
717 | |||
718 | distclean: distclean-am | ||
719 | -rm -rf ./$(DEPDIR) | ||
720 | -rm -f Makefile | ||
721 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
722 | distclean-tags | ||
723 | |||
724 | dvi: dvi-am | ||
725 | |||
726 | dvi-am: | ||
727 | |||
728 | html: html-am | ||
729 | |||
730 | html-am: | ||
731 | |||
732 | info: info-am | ||
733 | |||
734 | info-am: | ||
735 | |||
736 | install-data-am: install-includesHEADERS install-pkgLTLIBRARIES | ||
737 | |||
738 | install-dvi: install-dvi-am | ||
739 | |||
740 | install-dvi-am: | ||
741 | |||
742 | install-exec-am: | ||
743 | |||
744 | install-html: install-html-am | ||
745 | |||
746 | install-html-am: | ||
747 | |||
748 | install-info: install-info-am | ||
749 | |||
750 | install-info-am: | ||
751 | |||
752 | install-man: | ||
753 | |||
754 | install-pdf: install-pdf-am | ||
755 | |||
756 | install-pdf-am: | ||
757 | |||
758 | install-ps: install-ps-am | ||
759 | |||
760 | install-ps-am: | ||
761 | |||
762 | installcheck-am: | ||
763 | |||
764 | maintainer-clean: maintainer-clean-am | ||
765 | -rm -rf ./$(DEPDIR) | ||
766 | -rm -f Makefile | ||
767 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
768 | |||
769 | mostlyclean: mostlyclean-am | ||
770 | |||
771 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
772 | mostlyclean-libtool | ||
773 | |||
774 | pdf: pdf-am | ||
775 | |||
776 | pdf-am: | ||
777 | |||
778 | ps: ps-am | ||
779 | |||
780 | ps-am: | ||
781 | |||
782 | uninstall-am: uninstall-includesHEADERS uninstall-pkgLTLIBRARIES | ||
783 | |||
784 | .MAKE: install-am install-strip | ||
785 | |||
786 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
787 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
788 | ctags distclean distclean-compile distclean-generic \ | ||
789 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
790 | html-am info info-am install install-am install-data \ | ||
791 | install-data-am install-dvi install-dvi-am install-exec \ | ||
792 | install-exec-am install-html install-html-am \ | ||
793 | install-includesHEADERS install-info install-info-am \ | ||
794 | install-man install-pdf install-pdf-am install-pkgLTLIBRARIES \ | ||
795 | install-ps install-ps-am install-strip installcheck \ | ||
796 | installcheck-am installdirs maintainer-clean \ | ||
797 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
798 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
799 | tags uninstall uninstall-am uninstall-includesHEADERS \ | ||
800 | uninstall-pkgLTLIBRARIES | ||
801 | |||
802 | |||
803 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
804 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
805 | .NOEXPORT: | ||
diff --git a/libraries/evas/src/modules/engines/buffer/evas_engine.c b/libraries/evas/src/modules/engines/buffer/evas_engine.c new file mode 100644 index 0000000..e8dff7a --- /dev/null +++ b/libraries/evas/src/modules/engines/buffer/evas_engine.c | |||
@@ -0,0 +1,403 @@ | |||
1 | #include "evas_common.h" | ||
2 | #include "evas_private.h" | ||
3 | #include "evas_engine.h" | ||
4 | #include "Evas_Engine_Buffer.h" | ||
5 | |||
6 | /* domain for eina_log */ | ||
7 | /* the log macros are defined in evas_common.h */ | ||
8 | /* theirs names are EVAS_ERR, EVAS_DBG, EVAS_CRIT, EVAS_WRN and EVAS_INF */ | ||
9 | /* although we can use the EVAS_ERROR, etc... macros it will not work | ||
10 | when the -fvisibility=hidden option is passed to gcc */ | ||
11 | |||
12 | int _evas_engine_buffer_log_dom = -1; | ||
13 | |||
14 | /* function tables - filled in later (func and parent func) */ | ||
15 | |||
16 | static Evas_Func func, pfunc; | ||
17 | |||
18 | |||
19 | /* engine struct data */ | ||
20 | typedef struct _Render_Engine Render_Engine; | ||
21 | |||
22 | struct _Render_Engine | ||
23 | { | ||
24 | Tilebuf *tb; | ||
25 | Outbuf *ob; | ||
26 | Tilebuf_Rect *rects; | ||
27 | Eina_Inlist *cur_rect; | ||
28 | int end : 1; | ||
29 | }; | ||
30 | |||
31 | /* prototypes we will use here */ | ||
32 | static void *_output_setup(int w, int h, void *dest_buffer, int dest_buffer_row_bytes, int depth_type, int use_color_key, int alpha_threshold, int color_key_r, int color_key_g, int color_key_b, void *(*new_update_region) (int x, int y, int w, int h, int *row_bytes), void (*free_update_region) (int x, int y, int w, int h, void *data)); | ||
33 | |||
34 | static void *eng_info(Evas *e __UNUSED__); | ||
35 | static void eng_info_free(Evas *e __UNUSED__, void *info); | ||
36 | static int eng_setup(Evas *e, void *info); | ||
37 | static void eng_output_free(void *data); | ||
38 | static void eng_output_resize(void *data, int w, int h); | ||
39 | static void eng_output_tile_size_set(void *data, int w, int h); | ||
40 | static void eng_output_redraws_rect_add(void *data, int x, int y, int w, int h); | ||
41 | static void eng_output_redraws_rect_del(void *data, int x, int y, int w, int h); | ||
42 | static void eng_output_redraws_clear(void *data); | ||
43 | static void *eng_output_redraws_next_update_get(void *data, int *x, int *y, int *w, int *h, int *cx, int *cy, int *cw, int *ch); | ||
44 | static void eng_output_redraws_next_update_push(void *data, void *surface, int x, int y, int w, int h); | ||
45 | static void eng_output_flush(void *data); | ||
46 | static void eng_output_idle_flush(void *data); | ||
47 | |||
48 | /* internal engine routines */ | ||
49 | static void * | ||
50 | _output_setup(int w, | ||
51 | int h, | ||
52 | void *dest_buffer, | ||
53 | int dest_buffer_row_bytes, | ||
54 | int depth_type, | ||
55 | int use_color_key, | ||
56 | int alpha_threshold, | ||
57 | int color_key_r, | ||
58 | int color_key_g, | ||
59 | int color_key_b, | ||
60 | void *(*new_update_region) (int x, int y, int w, int h, int *row_bytes), | ||
61 | void (*free_update_region) (int x, int y, int w, int h, void *data) | ||
62 | ) | ||
63 | { | ||
64 | Render_Engine *re; | ||
65 | |||
66 | re = calloc(1, sizeof(Render_Engine)); | ||
67 | if (!re) | ||
68 | return NULL; | ||
69 | /* if we haven't initialized - init (automatic abort if already done) */ | ||
70 | evas_common_cpu_init(); | ||
71 | |||
72 | evas_common_blend_init(); | ||
73 | evas_common_image_init(); | ||
74 | evas_common_convert_init(); | ||
75 | evas_common_scale_init(); | ||
76 | evas_common_rectangle_init(); | ||
77 | evas_common_polygon_init(); | ||
78 | evas_common_line_init(); | ||
79 | evas_common_font_init(); | ||
80 | evas_common_draw_init(); | ||
81 | evas_common_tilebuf_init(); | ||
82 | |||
83 | evas_buffer_outbuf_buf_init(); | ||
84 | |||
85 | { | ||
86 | Outbuf_Depth dep; | ||
87 | DATA32 color_key = 0; | ||
88 | |||
89 | dep = OUTBUF_DEPTH_BGR_24BPP_888_888; | ||
90 | if (depth_type == EVAS_ENGINE_BUFFER_DEPTH_ARGB32) | ||
91 | dep = OUTBUF_DEPTH_ARGB_32BPP_8888_8888; | ||
92 | else if (depth_type == EVAS_ENGINE_BUFFER_DEPTH_RGB32) | ||
93 | dep = OUTBUF_DEPTH_RGB_32BPP_888_8888; | ||
94 | else if (depth_type == EVAS_ENGINE_BUFFER_DEPTH_BGRA32) | ||
95 | dep = OUTBUF_DEPTH_BGRA_32BPP_8888_8888; | ||
96 | else if (depth_type == EVAS_ENGINE_BUFFER_DEPTH_RGB24) | ||
97 | dep = OUTBUF_DEPTH_RGB_24BPP_888_888; | ||
98 | else if (depth_type == EVAS_ENGINE_BUFFER_DEPTH_BGR24) | ||
99 | dep = OUTBUF_DEPTH_BGR_24BPP_888_888; | ||
100 | R_VAL(&color_key) = color_key_r; | ||
101 | G_VAL(&color_key) = color_key_g; | ||
102 | B_VAL(&color_key) = color_key_b; | ||
103 | A_VAL(&color_key) = 0; | ||
104 | re->ob = evas_buffer_outbuf_buf_setup_fb(w, | ||
105 | h, | ||
106 | dep, | ||
107 | dest_buffer, | ||
108 | dest_buffer_row_bytes, | ||
109 | use_color_key, | ||
110 | color_key, | ||
111 | alpha_threshold, | ||
112 | new_update_region, | ||
113 | free_update_region); | ||
114 | } | ||
115 | re->tb = evas_common_tilebuf_new(w, h); | ||
116 | evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE); | ||
117 | return re; | ||
118 | } | ||
119 | |||
120 | /* engine api this module provides */ | ||
121 | static void * | ||
122 | eng_info(Evas *e __UNUSED__) | ||
123 | { | ||
124 | Evas_Engine_Info_Buffer *info; | ||
125 | info = calloc(1, sizeof(Evas_Engine_Info_Buffer)); | ||
126 | if (!info) return NULL; | ||
127 | info->magic.magic = rand(); | ||
128 | info->render_mode = EVAS_RENDER_MODE_BLOCKING; | ||
129 | return info; | ||
130 | } | ||
131 | |||
132 | static void | ||
133 | eng_info_free(Evas *e __UNUSED__, void *info) | ||
134 | { | ||
135 | Evas_Engine_Info_Buffer *in; | ||
136 | in = (Evas_Engine_Info_Buffer *)info; | ||
137 | free(in); | ||
138 | } | ||
139 | |||
140 | static int | ||
141 | eng_setup(Evas *e, void *in) | ||
142 | { | ||
143 | Render_Engine *re; | ||
144 | Evas_Engine_Info_Buffer *info; | ||
145 | |||
146 | info = (Evas_Engine_Info_Buffer *)in; | ||
147 | re = _output_setup(e->output.w, | ||
148 | e->output.h, | ||
149 | info->info.dest_buffer, | ||
150 | info->info.dest_buffer_row_bytes, | ||
151 | info->info.depth_type, | ||
152 | info->info.use_color_key, | ||
153 | info->info.alpha_threshold, | ||
154 | info->info.color_key_r, | ||
155 | info->info.color_key_g, | ||
156 | info->info.color_key_b, | ||
157 | info->info.func.new_update_region, | ||
158 | info->info.func.free_update_region); | ||
159 | if (e->engine.data.output) | ||
160 | eng_output_free(e->engine.data.output); | ||
161 | e->engine.data.output = re; | ||
162 | if (!e->engine.data.output) return 0; | ||
163 | if (!e->engine.data.context) | ||
164 | e->engine.data.context = e->engine.func->context_new(e->engine.data.output); | ||
165 | return 1; | ||
166 | } | ||
167 | |||
168 | static void | ||
169 | eng_output_free(void *data) | ||
170 | { | ||
171 | Render_Engine *re; | ||
172 | |||
173 | re = (Render_Engine *)data; | ||
174 | evas_buffer_outbuf_buf_free(re->ob); | ||
175 | evas_common_tilebuf_free(re->tb); | ||
176 | if (re->rects) evas_common_tilebuf_free_render_rects(re->rects); | ||
177 | free(re); | ||
178 | |||
179 | evas_common_font_shutdown(); | ||
180 | evas_common_image_shutdown(); | ||
181 | } | ||
182 | |||
183 | static void | ||
184 | eng_output_resize(void *data, int w, int h) | ||
185 | { | ||
186 | Render_Engine *re; | ||
187 | |||
188 | re = (Render_Engine *)data; | ||
189 | { | ||
190 | int depth; | ||
191 | void *dest; | ||
192 | int dest_row_bytes; | ||
193 | int alpha_level; | ||
194 | DATA32 color_key; | ||
195 | char use_color_key; | ||
196 | void * (*new_update_region) (int x, int y, int w, int h, int *row_bytes); | ||
197 | void (*free_update_region) (int x, int y, int w, int h, void *data); | ||
198 | |||
199 | depth = re->ob->depth; | ||
200 | dest = re->ob->dest; | ||
201 | dest_row_bytes = re->ob->dest_row_bytes; | ||
202 | alpha_level = re->ob->alpha_level; | ||
203 | color_key = re->ob->color_key; | ||
204 | use_color_key = re->ob->use_color_key; | ||
205 | new_update_region = re->ob->func.new_update_region; | ||
206 | free_update_region = re->ob->func.free_update_region; | ||
207 | evas_buffer_outbuf_buf_free(re->ob); | ||
208 | re->ob = evas_buffer_outbuf_buf_setup_fb(w, | ||
209 | h, | ||
210 | depth, | ||
211 | dest, | ||
212 | dest_row_bytes, | ||
213 | use_color_key, | ||
214 | color_key, | ||
215 | alpha_level, | ||
216 | new_update_region, | ||
217 | free_update_region); | ||
218 | } | ||
219 | evas_common_tilebuf_free(re->tb); | ||
220 | re->tb = evas_common_tilebuf_new(w, h); | ||
221 | if (re->tb) | ||
222 | evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE); | ||
223 | } | ||
224 | |||
225 | static void | ||
226 | eng_output_tile_size_set(void *data, int w, int h) | ||
227 | { | ||
228 | Render_Engine *re; | ||
229 | |||
230 | re = (Render_Engine *)data; | ||
231 | evas_common_tilebuf_set_tile_size(re->tb, w, h); | ||
232 | } | ||
233 | |||
234 | static void | ||
235 | eng_output_redraws_rect_add(void *data, int x, int y, int w, int h) | ||
236 | { | ||
237 | Render_Engine *re; | ||
238 | |||
239 | re = (Render_Engine *)data; | ||
240 | evas_common_tilebuf_add_redraw(re->tb, x, y, w, h); | ||
241 | } | ||
242 | |||
243 | static void | ||
244 | eng_output_redraws_rect_del(void *data, int x, int y, int w, int h) | ||
245 | { | ||
246 | Render_Engine *re; | ||
247 | |||
248 | re = (Render_Engine *)data; | ||
249 | evas_common_tilebuf_del_redraw(re->tb, x, y, w, h); | ||
250 | } | ||
251 | |||
252 | static void | ||
253 | eng_output_redraws_clear(void *data) | ||
254 | { | ||
255 | Render_Engine *re; | ||
256 | |||
257 | re = (Render_Engine *)data; | ||
258 | evas_common_tilebuf_clear(re->tb); | ||
259 | } | ||
260 | |||
261 | static void * | ||
262 | eng_output_redraws_next_update_get(void *data, int *x, int *y, int *w, int *h, int *cx, int *cy, int *cw, int *ch) | ||
263 | { | ||
264 | Render_Engine *re; | ||
265 | RGBA_Image *surface; | ||
266 | Tilebuf_Rect *rect; | ||
267 | int ux, uy, uw, uh; | ||
268 | |||
269 | re = (Render_Engine *)data; | ||
270 | if (re->end) | ||
271 | { | ||
272 | re->end = 0; | ||
273 | return NULL; | ||
274 | } | ||
275 | if (!re->rects) | ||
276 | { | ||
277 | re->rects = evas_common_tilebuf_get_render_rects(re->tb); | ||
278 | re->cur_rect = EINA_INLIST_GET(re->rects); | ||
279 | } | ||
280 | if (!re->cur_rect) return NULL; | ||
281 | rect = (Tilebuf_Rect *)re->cur_rect; | ||
282 | ux = rect->x; uy = rect->y; uw = rect->w; uh = rect->h; | ||
283 | re->cur_rect = re->cur_rect->next; | ||
284 | if (!re->cur_rect) | ||
285 | { | ||
286 | evas_common_tilebuf_free_render_rects(re->rects); | ||
287 | re->rects = NULL; | ||
288 | re->end = 1; | ||
289 | } | ||
290 | |||
291 | if ((ux + uw) > re->ob->w) uw = re->ob->w - ux; | ||
292 | if ((uy + uh) > re->ob->h) uh = re->ob->h - uy; | ||
293 | if ((uw <= 0) || (uh <= 0)) return NULL; | ||
294 | surface = evas_buffer_outbuf_buf_new_region_for_update(re->ob, | ||
295 | ux, uy, uw, uh, | ||
296 | cx, cy, cw, ch); | ||
297 | *x = ux; *y = uy; *w = uw; *h = uh; | ||
298 | return surface; | ||
299 | } | ||
300 | |||
301 | static void | ||
302 | eng_output_redraws_next_update_push(void *data, void *surface, int x, int y, int w, int h) | ||
303 | { | ||
304 | Render_Engine *re; | ||
305 | |||
306 | re = (Render_Engine *)data; | ||
307 | #ifdef BUILD_PIPE_RENDER | ||
308 | evas_common_pipe_map_begin(surface); | ||
309 | #endif | ||
310 | evas_buffer_outbuf_buf_push_updated_region(re->ob, surface, x, y, w, h); | ||
311 | evas_buffer_outbuf_buf_free_region_for_update(re->ob, surface); | ||
312 | evas_common_cpu_end_opt(); | ||
313 | } | ||
314 | |||
315 | static void | ||
316 | eng_output_flush(void *data) | ||
317 | { | ||
318 | Render_Engine *re; | ||
319 | |||
320 | re = (Render_Engine *)data; | ||
321 | } | ||
322 | |||
323 | static void | ||
324 | eng_output_idle_flush(void *data) | ||
325 | { | ||
326 | Render_Engine *re; | ||
327 | |||
328 | re = (Render_Engine *)data; | ||
329 | } | ||
330 | |||
331 | static Eina_Bool | ||
332 | eng_canvas_alpha_get(void *data, void *context __UNUSED__) | ||
333 | { | ||
334 | Render_Engine *re; | ||
335 | |||
336 | re = (Render_Engine *)data; | ||
337 | if (re->ob->priv.back_buf) | ||
338 | return re->ob->priv.back_buf->cache_entry.flags.alpha; | ||
339 | return EINA_TRUE; | ||
340 | } | ||
341 | |||
342 | /* module advertising code */ | ||
343 | static int | ||
344 | module_open(Evas_Module *em) | ||
345 | { | ||
346 | if (!em) return 0; | ||
347 | /* get whatever engine module we inherit from */ | ||
348 | if (!_evas_module_engine_inherit(&pfunc, "software_generic")) return 0; | ||
349 | |||
350 | _evas_engine_buffer_log_dom = eina_log_domain_register | ||
351 | ("evas-buffer", EINA_COLOR_BLUE); | ||
352 | if (_evas_engine_buffer_log_dom < 0) | ||
353 | { | ||
354 | EINA_LOG_ERR("Can not create a module log domain."); | ||
355 | return 0; | ||
356 | } | ||
357 | |||
358 | /* store it for later use */ | ||
359 | func = pfunc; | ||
360 | /* now to override methods */ | ||
361 | #define ORD(f) EVAS_API_OVERRIDE(f, &func, eng_) | ||
362 | ORD(info); | ||
363 | ORD(info_free); | ||
364 | ORD(setup); | ||
365 | ORD(canvas_alpha_get); | ||
366 | ORD(output_free); | ||
367 | ORD(output_resize); | ||
368 | ORD(output_tile_size_set); | ||
369 | ORD(output_redraws_rect_add); | ||
370 | ORD(output_redraws_rect_del); | ||
371 | ORD(output_redraws_clear); | ||
372 | ORD(output_redraws_next_update_get); | ||
373 | ORD(output_redraws_next_update_push); | ||
374 | ORD(output_flush); | ||
375 | ORD(output_idle_flush); | ||
376 | /* now advertise out own api */ | ||
377 | em->functions = (void *)(&func); | ||
378 | return 1; | ||
379 | } | ||
380 | |||
381 | static void | ||
382 | module_close(Evas_Module *em __UNUSED__) | ||
383 | { | ||
384 | eina_log_domain_unregister(_evas_engine_buffer_log_dom); | ||
385 | } | ||
386 | |||
387 | static Evas_Module_Api evas_modapi = | ||
388 | { | ||
389 | EVAS_MODULE_API_VERSION, | ||
390 | "buffer", | ||
391 | "none", | ||
392 | { | ||
393 | module_open, | ||
394 | module_close | ||
395 | } | ||
396 | }; | ||
397 | |||
398 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_ENGINE, engine, buffer); | ||
399 | |||
400 | #ifndef EVAS_STATIC_BUILD_BUFFER | ||
401 | EVAS_EINA_MODULE_DEFINE(engine, buffer); | ||
402 | #endif | ||
403 | |||
diff --git a/libraries/evas/src/modules/engines/buffer/evas_engine.h b/libraries/evas/src/modules/engines/buffer/evas_engine.h new file mode 100644 index 0000000..21c988c --- /dev/null +++ b/libraries/evas/src/modules/engines/buffer/evas_engine.h | |||
@@ -0,0 +1,85 @@ | |||
1 | #ifndef EVAS_ENGINE_H | ||
2 | #define EVAS_ENGINE_H | ||
3 | #include "evas_common.h" | ||
4 | /* this thing is for eina_log */ | ||
5 | extern int _evas_engine_buffer_log_dom ; | ||
6 | |||
7 | #ifdef ERR | ||
8 | # undef ERR | ||
9 | #endif | ||
10 | #define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_buffer_log_dom, __VA_ARGS__) | ||
11 | |||
12 | #ifdef DBG | ||
13 | # undef DBG | ||
14 | #endif | ||
15 | #define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_buffer_log_dom, __VA_ARGS__) | ||
16 | |||
17 | #ifdef INF | ||
18 | # undef INF | ||
19 | #endif | ||
20 | #define INF(...) EINA_LOG_DOM_INFO(_evas_engine_buffer_log_dom, __VA_ARGS__) | ||
21 | |||
22 | #ifdef WRN | ||
23 | # undef WRN | ||
24 | #endif | ||
25 | #define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_buffer_log_dom, __VA_ARGS__) | ||
26 | |||
27 | #ifdef CRIT | ||
28 | # undef CRIT | ||
29 | #endif | ||
30 | #define CRIT(...) EINA_LOG_DOM_CRIT(_evas_engine_buffer_log_dom, __VA_ARGS__) | ||
31 | |||
32 | typedef struct _Outbuf Outbuf; | ||
33 | |||
34 | typedef enum _Outbuf_Depth Outbuf_Depth; | ||
35 | |||
36 | enum _Outbuf_Depth | ||
37 | { | ||
38 | OUTBUF_DEPTH_NONE, | ||
39 | OUTBUF_DEPTH_ARGB_32BPP_8888_8888, | ||
40 | OUTBUF_DEPTH_BGRA_32BPP_8888_8888, | ||
41 | OUTBUF_DEPTH_RGB_32BPP_888_8888, | ||
42 | OUTBUF_DEPTH_BGR_32BPP_888_8888, | ||
43 | OUTBUF_DEPTH_RGB_24BPP_888_888, | ||
44 | OUTBUF_DEPTH_BGR_24BPP_888_888, | ||
45 | OUTBUF_DEPTH_LAST | ||
46 | }; | ||
47 | |||
48 | struct _Outbuf | ||
49 | { | ||
50 | int w, h; | ||
51 | Outbuf_Depth depth; | ||
52 | |||
53 | void *dest; | ||
54 | unsigned int dest_row_bytes; | ||
55 | |||
56 | int alpha_level; | ||
57 | DATA32 color_key; | ||
58 | char use_color_key : 1; | ||
59 | |||
60 | struct { | ||
61 | void * (*new_update_region) (int x, int y, int w, int h, int *row_bytes); | ||
62 | void (*free_update_region) (int x, int y, int w, int h, void *data); | ||
63 | } func; | ||
64 | |||
65 | struct { | ||
66 | RGBA_Image *back_buf; | ||
67 | } priv; | ||
68 | }; | ||
69 | |||
70 | /****/ | ||
71 | |||
72 | void evas_buffer_outbuf_buf_init (void); | ||
73 | void evas_buffer_outbuf_buf_free (Outbuf *buf); | ||
74 | |||
75 | Outbuf *evas_buffer_outbuf_buf_setup_fb (int w, int h, Outbuf_Depth depth, void *dest, int dest_row_bytes, int use_color_key, DATA32 color_key, int alpha_level, | ||
76 | void * (*new_update_region) (int x, int y, int w, int h, int *row_bytes), | ||
77 | void (*free_update_region) (int x, int y, int w, int h, void *data)); | ||
78 | |||
79 | |||
80 | RGBA_Image *evas_buffer_outbuf_buf_new_region_for_update (Outbuf *buf, int x, int y, int w, int h, int *cx, int *cy, int *cw, int *ch); | ||
81 | void evas_buffer_outbuf_buf_free_region_for_update (Outbuf *buf, RGBA_Image *update); | ||
82 | void evas_buffer_outbuf_buf_push_updated_region (Outbuf *buf, RGBA_Image *update, int x, int y, int w, int h); | ||
83 | |||
84 | #endif | ||
85 | |||
diff --git a/libraries/evas/src/modules/engines/buffer/evas_outbuf.c b/libraries/evas/src/modules/engines/buffer/evas_outbuf.c new file mode 100644 index 0000000..27f7a2c --- /dev/null +++ b/libraries/evas/src/modules/engines/buffer/evas_outbuf.c | |||
@@ -0,0 +1,340 @@ | |||
1 | #include "evas_common.h" | ||
2 | #include "evas_engine.h" | ||
3 | |||
4 | void | ||
5 | evas_buffer_outbuf_buf_init(void) | ||
6 | { | ||
7 | } | ||
8 | |||
9 | void | ||
10 | evas_buffer_outbuf_buf_free(Outbuf *buf) | ||
11 | { | ||
12 | if (buf->priv.back_buf) | ||
13 | { | ||
14 | evas_cache_image_drop(&buf->priv.back_buf->cache_entry); | ||
15 | } | ||
16 | free(buf); | ||
17 | } | ||
18 | |||
19 | Outbuf * | ||
20 | evas_buffer_outbuf_buf_setup_fb(int w, int h, Outbuf_Depth depth, void *dest, int dest_row_bytes, int use_color_key, DATA32 color_key, int alpha_level, | ||
21 | void * (*new_update_region) (int x, int y, int w, int h, int *row_bytes), | ||
22 | void (*free_update_region) (int x, int y, int w, int h, void *data) | ||
23 | ) | ||
24 | { | ||
25 | Outbuf *buf; | ||
26 | int bpp; | ||
27 | |||
28 | buf = calloc(1, sizeof(Outbuf)); | ||
29 | if (!buf) return NULL; | ||
30 | |||
31 | buf->w = w; | ||
32 | buf->h = h; | ||
33 | buf->depth = depth; | ||
34 | |||
35 | buf->dest = dest; | ||
36 | buf->dest_row_bytes = dest_row_bytes; | ||
37 | |||
38 | buf->alpha_level = alpha_level; | ||
39 | buf->color_key = color_key; | ||
40 | buf->use_color_key = use_color_key; | ||
41 | |||
42 | buf->func.new_update_region = new_update_region; | ||
43 | buf->func.free_update_region = free_update_region; | ||
44 | |||
45 | bpp = sizeof(DATA32); | ||
46 | if ((buf->depth == OUTBUF_DEPTH_RGB_24BPP_888_888) || | ||
47 | (buf->depth == OUTBUF_DEPTH_BGR_24BPP_888_888)) | ||
48 | bpp = 3; | ||
49 | |||
50 | if ((buf->depth == OUTBUF_DEPTH_ARGB_32BPP_8888_8888) && | ||
51 | (buf->dest) && (buf->dest_row_bytes == (buf->w * sizeof(DATA32)))) | ||
52 | { | ||
53 | memset(buf->dest, 0, h * buf->dest_row_bytes); | ||
54 | buf->priv.back_buf = (RGBA_Image *) evas_cache_image_data(evas_common_image_cache_get(), | ||
55 | w, h, | ||
56 | buf->dest, | ||
57 | 1, EVAS_COLORSPACE_ARGB8888); | ||
58 | } | ||
59 | else if ((buf->depth == OUTBUF_DEPTH_RGB_32BPP_888_8888) && | ||
60 | (buf->dest) && (buf->dest_row_bytes == (buf->w * sizeof(DATA32)))) | ||
61 | { | ||
62 | buf->priv.back_buf = (RGBA_Image *) evas_cache_image_data(evas_common_image_cache_get(), | ||
63 | w, h, | ||
64 | buf->dest, | ||
65 | 0, EVAS_COLORSPACE_ARGB8888); | ||
66 | } | ||
67 | |||
68 | return buf; | ||
69 | } | ||
70 | |||
71 | RGBA_Image * | ||
72 | evas_buffer_outbuf_buf_new_region_for_update(Outbuf *buf, int x, int y, int w, int h, int *cx, int *cy, int *cw, int *ch) | ||
73 | { | ||
74 | RGBA_Image *im; | ||
75 | |||
76 | if (buf->priv.back_buf) | ||
77 | { | ||
78 | *cx = x; *cy = y; *cw = w; *ch = h; | ||
79 | return buf->priv.back_buf; | ||
80 | } | ||
81 | else | ||
82 | { | ||
83 | *cx = 0; *cy = 0; *cw = w; *ch = h; | ||
84 | im = (RGBA_Image *) evas_cache_image_empty(evas_common_image_cache_get()); | ||
85 | if (im) | ||
86 | { | ||
87 | if (((buf->depth == OUTBUF_DEPTH_ARGB_32BPP_8888_8888)) || | ||
88 | ((buf->depth == OUTBUF_DEPTH_BGRA_32BPP_8888_8888))) | ||
89 | { | ||
90 | im->cache_entry.flags.alpha = 1; | ||
91 | im = (RGBA_Image *) evas_cache_image_size_set(&im->cache_entry, w, h); | ||
92 | } | ||
93 | } | ||
94 | } | ||
95 | return im; | ||
96 | } | ||
97 | |||
98 | void | ||
99 | evas_buffer_outbuf_buf_free_region_for_update(Outbuf *buf, RGBA_Image *update) | ||
100 | { | ||
101 | if (update != buf->priv.back_buf) evas_cache_image_drop(&update->cache_entry); | ||
102 | } | ||
103 | |||
104 | void | ||
105 | evas_buffer_outbuf_buf_push_updated_region(Outbuf *buf, RGBA_Image *update, int x, int y, int w, int h) | ||
106 | { | ||
107 | /* copy update image to out buf & convert */ | ||
108 | switch (buf->depth) | ||
109 | { | ||
110 | case OUTBUF_DEPTH_RGB_24BPP_888_888: | ||
111 | /* copy & pack into 24bpp - if colorkey is enabled... etc. */ | ||
112 | { | ||
113 | DATA8 thresh; | ||
114 | int xx, yy; | ||
115 | int row_bytes; | ||
116 | DATA8 *dest; | ||
117 | DATA32 colorkey; | ||
118 | DATA32 *src; | ||
119 | DATA8 *dst; | ||
120 | |||
121 | colorkey = buf->color_key; | ||
122 | thresh = buf->alpha_level; | ||
123 | row_bytes = buf->dest_row_bytes; | ||
124 | dest = (DATA8 *)(buf->dest) + (y * row_bytes) + (x * 3); | ||
125 | if (buf->func.new_update_region) | ||
126 | { | ||
127 | dest = buf->func.new_update_region(x, y, w, h, &row_bytes); | ||
128 | } | ||
129 | if (!dest) break; | ||
130 | if (buf->use_color_key) | ||
131 | { | ||
132 | for (yy = 0; yy < h; yy++) | ||
133 | { | ||
134 | dst = dest + (yy * row_bytes); | ||
135 | src = update->image.data + (yy * update->cache_entry.w); | ||
136 | for (xx = 0; xx < w; xx++) | ||
137 | { | ||
138 | if (A_VAL(src) > thresh) | ||
139 | { | ||
140 | *dst++ = R_VAL(src); | ||
141 | *dst++ = G_VAL(src); | ||
142 | *dst++ = B_VAL(src); | ||
143 | } | ||
144 | else | ||
145 | { | ||
146 | *dst++ = R_VAL(&colorkey); | ||
147 | *dst++ = G_VAL(&colorkey); | ||
148 | *dst++ = B_VAL(&colorkey); | ||
149 | } | ||
150 | src++; | ||
151 | } | ||
152 | } | ||
153 | } | ||
154 | else | ||
155 | { | ||
156 | for (yy = 0; yy < h; yy++) | ||
157 | { | ||
158 | dst = dest + (yy * row_bytes); | ||
159 | src = update->image.data + (yy * update->cache_entry.w); | ||
160 | for (xx = 0; xx < w; xx++) | ||
161 | { | ||
162 | *dst++ = R_VAL(src); | ||
163 | *dst++ = G_VAL(src); | ||
164 | *dst++ = B_VAL(src); | ||
165 | src++; | ||
166 | } | ||
167 | } | ||
168 | } | ||
169 | if (buf->func.free_update_region) | ||
170 | { | ||
171 | buf->func.free_update_region(x, y, w, h, dest); | ||
172 | } | ||
173 | } | ||
174 | break; | ||
175 | case OUTBUF_DEPTH_BGR_24BPP_888_888: | ||
176 | /* copy & pack into 24bpp - if colorkey is enabled... etc. */ | ||
177 | { | ||
178 | DATA8 thresh; | ||
179 | int xx, yy; | ||
180 | int row_bytes; | ||
181 | DATA8 *dest; | ||
182 | DATA32 colorkey; | ||
183 | DATA32 *src; | ||
184 | DATA8 *dst; | ||
185 | |||
186 | colorkey = buf->color_key; | ||
187 | thresh = buf->alpha_level; | ||
188 | row_bytes = buf->dest_row_bytes; | ||
189 | dest = (DATA8 *)(buf->dest) + (y * row_bytes) + (x * 3); | ||
190 | if (buf->func.new_update_region) | ||
191 | { | ||
192 | dest = buf->func.new_update_region(x, y, w, h, &row_bytes); | ||
193 | } | ||
194 | if (!dest) break; | ||
195 | if (buf->use_color_key) | ||
196 | { | ||
197 | for (yy = 0; yy < h; yy++) | ||
198 | { | ||
199 | dst = dest + (yy * row_bytes); | ||
200 | src = update->image.data + (yy * update->cache_entry.w); | ||
201 | for (xx = 0; xx < w; xx++) | ||
202 | { | ||
203 | if (A_VAL(src) > thresh) | ||
204 | { | ||
205 | *dst++ = B_VAL(src); | ||
206 | *dst++ = G_VAL(src); | ||
207 | *dst++ = R_VAL(src); | ||
208 | } | ||
209 | else | ||
210 | { | ||
211 | *dst++ = B_VAL(&colorkey); | ||
212 | *dst++ = G_VAL(&colorkey); | ||
213 | *dst++ = R_VAL(&colorkey); | ||
214 | } | ||
215 | src++; | ||
216 | } | ||
217 | } | ||
218 | } | ||
219 | else | ||
220 | { | ||
221 | for (yy = 0; yy < h; yy++) | ||
222 | { | ||
223 | dst = dest + (yy * row_bytes); | ||
224 | src = update->image.data + (yy * update->cache_entry.w); | ||
225 | for (xx = 0; xx < w; xx++) | ||
226 | { | ||
227 | *dst++ = B_VAL(src); | ||
228 | *dst++ = G_VAL(src); | ||
229 | *dst++ = R_VAL(src); | ||
230 | src++; | ||
231 | } | ||
232 | } | ||
233 | } | ||
234 | if (buf->func.free_update_region) | ||
235 | { | ||
236 | buf->func.free_update_region(x, y, w, h, dest); | ||
237 | } | ||
238 | } | ||
239 | break; | ||
240 | case OUTBUF_DEPTH_RGB_32BPP_888_8888: | ||
241 | case OUTBUF_DEPTH_ARGB_32BPP_8888_8888: | ||
242 | { | ||
243 | DATA32 *dest, *src, *dst; | ||
244 | int yy, row_bytes; | ||
245 | |||
246 | row_bytes = buf->dest_row_bytes; | ||
247 | dest = (DATA32 *)((DATA8 *)(buf->dest) + (y * row_bytes) + (x * 4)); | ||
248 | if (buf->func.new_update_region) | ||
249 | { | ||
250 | dest = buf->func.new_update_region(x, y, w, h, &row_bytes); | ||
251 | } | ||
252 | /* no need src == dest */ | ||
253 | if (!buf->priv.back_buf) | ||
254 | { | ||
255 | Gfx_Func_Copy func; | ||
256 | |||
257 | func = evas_common_draw_func_copy_get(w, 0); | ||
258 | if (func) | ||
259 | { | ||
260 | for (yy = 0; yy < h; yy++) | ||
261 | { | ||
262 | src = update->image.data + (yy * update->cache_entry.w); | ||
263 | dst = (DATA32 *)((DATA8 *)(buf->dest) + ((y + yy) * row_bytes)); | ||
264 | func(src, dst, w); | ||
265 | } | ||
266 | |||
267 | } | ||
268 | } | ||
269 | if (buf->func.free_update_region) | ||
270 | { | ||
271 | buf->func.free_update_region(x, y, w, h, dest); | ||
272 | } | ||
273 | } | ||
274 | break; | ||
275 | case OUTBUF_DEPTH_BGR_32BPP_888_8888: | ||
276 | { | ||
277 | DATA32 *src, *dst; | ||
278 | DATA8 *dest; | ||
279 | int xx, yy, row_bytes; | ||
280 | |||
281 | row_bytes = buf->dest_row_bytes; | ||
282 | dest = (DATA8 *)(buf->dest) + (y * row_bytes) + (x * 4); | ||
283 | if (buf->func.new_update_region) | ||
284 | { | ||
285 | dest = buf->func.new_update_region(x, y, w, h, &row_bytes); | ||
286 | } | ||
287 | for (yy = 0; yy < h; yy++) | ||
288 | { | ||
289 | dst = (DATA32 *)(dest + (yy * row_bytes)); | ||
290 | src = update->image.data + (yy * update->cache_entry.w); | ||
291 | for (xx = 0; xx < w; xx++) | ||
292 | { | ||
293 | A_VAL(dst) = B_VAL(src); | ||
294 | R_VAL(dst) = G_VAL(src); | ||
295 | G_VAL(dst) = R_VAL(src); | ||
296 | dst++; | ||
297 | src++; | ||
298 | } | ||
299 | } | ||
300 | if (buf->func.free_update_region) | ||
301 | { | ||
302 | buf->func.free_update_region(x, y, w, h, dest); | ||
303 | } | ||
304 | } | ||
305 | break; | ||
306 | case OUTBUF_DEPTH_BGRA_32BPP_8888_8888: | ||
307 | { | ||
308 | DATA32 *src, *dst; | ||
309 | DATA8 *dest; | ||
310 | int xx, yy, row_bytes; | ||
311 | |||
312 | row_bytes = buf->dest_row_bytes; | ||
313 | dest = (DATA8 *)(buf->dest) + (y * row_bytes) + (x * 4); | ||
314 | if (buf->func.new_update_region) | ||
315 | { | ||
316 | dest = buf->func.new_update_region(x, y, w, h, &row_bytes); | ||
317 | } | ||
318 | for (yy = 0; yy < h; yy++) | ||
319 | { | ||
320 | dst = (DATA32 *)(dest + (yy * row_bytes)); | ||
321 | src = update->image.data + (yy * update->cache_entry.w); | ||
322 | for (xx = 0; xx < w; xx++) | ||
323 | { | ||
324 | A_VAL(dst) = B_VAL(src); | ||
325 | R_VAL(dst) = G_VAL(src); | ||
326 | G_VAL(dst) = R_VAL(src); | ||
327 | dst++; | ||
328 | src++; | ||
329 | } | ||
330 | } | ||
331 | if (buf->func.free_update_region) | ||
332 | { | ||
333 | buf->func.free_update_region(x, y, w, h, dest); | ||
334 | } | ||
335 | } | ||
336 | break; | ||
337 | default: | ||
338 | break; | ||
339 | } | ||
340 | } | ||