diff options
Diffstat (limited to 'libraries/evas/src/modules/loaders/psd')
-rw-r--r-- | libraries/evas/src/modules/loaders/psd/Makefile.am | 32 | ||||
-rw-r--r-- | libraries/evas/src/modules/loaders/psd/Makefile.in | 761 | ||||
-rw-r--r-- | libraries/evas/src/modules/loaders/psd/evas_image_load_psd.c | 1002 |
3 files changed, 0 insertions, 1795 deletions
diff --git a/libraries/evas/src/modules/loaders/psd/Makefile.am b/libraries/evas/src/modules/loaders/psd/Makefile.am deleted file mode 100644 index a87e492..0000000 --- a/libraries/evas/src/modules/loaders/psd/Makefile.am +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
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 | @FREETYPE_CFLAGS@ \ | ||
9 | @PIXMAN_CFLAGS@ \ | ||
10 | @EINA_CFLAGS@ \ | ||
11 | @EVIL_CFLAGS@ | ||
12 | |||
13 | if BUILD_LOADER_PSD | ||
14 | if !EVAS_STATIC_BUILD_PSD | ||
15 | |||
16 | pkgdir = $(libdir)/evas/modules/loaders/psd/$(MODULE_ARCH) | ||
17 | pkg_LTLIBRARIES = module.la | ||
18 | |||
19 | module_la_SOURCES = evas_image_load_psd.c | ||
20 | |||
21 | module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
22 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
23 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
24 | |||
25 | else | ||
26 | |||
27 | noinst_LTLIBRARIES = libevas_loader_psd.la | ||
28 | libevas_loader_psd_la_SOURCES = evas_image_load_psd.c | ||
29 | libevas_loader_psd_la_LIBADD = | ||
30 | |||
31 | endif | ||
32 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/psd/Makefile.in b/libraries/evas/src/modules/loaders/psd/Makefile.in deleted file mode 100644 index b1987c6..0000000 --- a/libraries/evas/src/modules/loaders/psd/Makefile.in +++ /dev/null | |||
@@ -1,761 +0,0 @@ | |||
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 | VPATH = @srcdir@ | ||
19 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
20 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
21 | pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
23 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
24 | install_sh_DATA = $(install_sh) -c -m 644 | ||
25 | install_sh_PROGRAM = $(install_sh) -c | ||
26 | install_sh_SCRIPT = $(install_sh) -c | ||
27 | INSTALL_HEADER = $(INSTALL_DATA) | ||
28 | transform = $(program_transform_name) | ||
29 | NORMAL_INSTALL = : | ||
30 | PRE_INSTALL = : | ||
31 | POST_INSTALL = : | ||
32 | NORMAL_UNINSTALL = : | ||
33 | PRE_UNINSTALL = : | ||
34 | POST_UNINSTALL = : | ||
35 | build_triplet = @build@ | ||
36 | host_triplet = @host@ | ||
37 | subdir = src/modules/loaders/psd | ||
38 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
39 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
40 | am__aclocal_m4_deps = $(top_srcdir)/m4/efl_attribute.m4 \ | ||
41 | $(top_srcdir)/m4/efl_coverage.m4 \ | ||
42 | $(top_srcdir)/m4/efl_doxygen.m4 \ | ||
43 | $(top_srcdir)/m4/efl_fnmatch.m4 \ | ||
44 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ | ||
45 | $(top_srcdir)/m4/evas_check_engine.m4 \ | ||
46 | $(top_srcdir)/m4/evas_check_loader.m4 \ | ||
47 | $(top_srcdir)/m4/evas_converter.m4 \ | ||
48 | $(top_srcdir)/m4/evas_dither.m4 \ | ||
49 | $(top_srcdir)/m4/evas_scaler.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
50 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | ||
51 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | ||
52 | $(top_srcdir)/configure.ac | ||
53 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
54 | $(ACLOCAL_M4) | ||
55 | mkinstalldirs = $(install_sh) -d | ||
56 | CONFIG_HEADER = $(top_builddir)/config.h | ||
57 | CONFIG_CLEAN_FILES = | ||
58 | CONFIG_CLEAN_VPATH_FILES = | ||
59 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
60 | am__vpath_adj = case $$p in \ | ||
61 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
62 | *) f=$$p;; \ | ||
63 | esac; | ||
64 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
65 | am__install_max = 40 | ||
66 | am__nobase_strip_setup = \ | ||
67 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
68 | am__nobase_strip = \ | ||
69 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
70 | am__nobase_list = $(am__nobase_strip_setup); \ | ||
71 | for p in $$list; do echo "$$p $$p"; done | \ | ||
72 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
73 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
74 | if (++n[$$2] == $(am__install_max)) \ | ||
75 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
76 | END { for (dir in files) print dir, files[dir] }' | ||
77 | am__base_list = \ | ||
78 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
79 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
80 | am__installdirs = "$(DESTDIR)$(pkgdir)" | ||
81 | LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES) | ||
82 | libevas_loader_psd_la_DEPENDENCIES = | ||
83 | am__libevas_loader_psd_la_SOURCES_DIST = evas_image_load_psd.c | ||
84 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_TRUE@am_libevas_loader_psd_la_OBJECTS = evas_image_load_psd.lo | ||
85 | libevas_loader_psd_la_OBJECTS = $(am_libevas_loader_psd_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_TRUE@am_libevas_loader_psd_la_rpath = | ||
90 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_psd.c | ||
92 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_psd.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_psd_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_psd_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @EINA_CFLAGS@ \ | ||
419 | @EVIL_CFLAGS@ | ||
420 | |||
421 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@pkgdir = $(libdir)/evas/modules/loaders/psd/$(MODULE_ARCH) | ||
422 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@pkg_LTLIBRARIES = module.la | ||
423 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@module_la_SOURCES = evas_image_load_psd.c | ||
424 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
425 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
426 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
427 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_TRUE@noinst_LTLIBRARIES = libevas_loader_psd.la | ||
428 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_TRUE@libevas_loader_psd_la_SOURCES = evas_image_load_psd.c | ||
429 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_TRUE@libevas_loader_psd_la_LIBADD = | ||
430 | all: all-am | ||
431 | |||
432 | .SUFFIXES: | ||
433 | .SUFFIXES: .c .lo .o .obj | ||
434 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
435 | @for dep in $?; do \ | ||
436 | case '$(am__configure_deps)' in \ | ||
437 | *$$dep*) \ | ||
438 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
439 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
440 | exit 1;; \ | ||
441 | esac; \ | ||
442 | done; \ | ||
443 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/psd/Makefile'; \ | ||
444 | $(am__cd) $(top_srcdir) && \ | ||
445 | $(AUTOMAKE) --gnu src/modules/loaders/psd/Makefile | ||
446 | .PRECIOUS: Makefile | ||
447 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
448 | @case '$?' in \ | ||
449 | *config.status*) \ | ||
450 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
451 | *) \ | ||
452 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
453 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
454 | esac; | ||
455 | |||
456 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
457 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
458 | |||
459 | $(top_srcdir)/configure: $(am__configure_deps) | ||
460 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
461 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
462 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
463 | $(am__aclocal_m4_deps): | ||
464 | |||
465 | clean-noinstLTLIBRARIES: | ||
466 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
467 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
468 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
469 | test "$$dir" != "$$p" || dir=.; \ | ||
470 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
471 | rm -f "$${dir}/so_locations"; \ | ||
472 | done | ||
473 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
474 | @$(NORMAL_INSTALL) | ||
475 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
476 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
477 | list2=; for p in $$list; do \ | ||
478 | if test -f $$p; then \ | ||
479 | list2="$$list2 $$p"; \ | ||
480 | else :; fi; \ | ||
481 | done; \ | ||
482 | test -z "$$list2" || { \ | ||
483 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
484 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
485 | } | ||
486 | |||
487 | uninstall-pkgLTLIBRARIES: | ||
488 | @$(NORMAL_UNINSTALL) | ||
489 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
490 | for p in $$list; do \ | ||
491 | $(am__strip_dir) \ | ||
492 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
493 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
494 | done | ||
495 | |||
496 | clean-pkgLTLIBRARIES: | ||
497 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
498 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
499 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
500 | test "$$dir" != "$$p" || dir=.; \ | ||
501 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
502 | rm -f "$${dir}/so_locations"; \ | ||
503 | done | ||
504 | libevas_loader_psd.la: $(libevas_loader_psd_la_OBJECTS) $(libevas_loader_psd_la_DEPENDENCIES) | ||
505 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_psd_la_rpath) $(libevas_loader_psd_la_OBJECTS) $(libevas_loader_psd_la_LIBADD) $(LIBS) | ||
506 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
507 | $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
508 | |||
509 | mostlyclean-compile: | ||
510 | -rm -f *.$(OBJEXT) | ||
511 | |||
512 | distclean-compile: | ||
513 | -rm -f *.tab.c | ||
514 | |||
515 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_psd.Plo@am__quote@ | ||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_psd.Plo@am__quote@ | ||
517 | |||
518 | .c.o: | ||
519 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
520 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
521 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
522 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
523 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
524 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
525 | |||
526 | .c.obj: | ||
527 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
528 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
529 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
530 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
531 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
532 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
533 | |||
534 | .c.lo: | ||
535 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
536 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
537 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
538 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
539 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
540 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
541 | |||
542 | module_la-evas_image_load_psd.lo: evas_image_load_psd.c | ||
543 | @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_image_load_psd.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_psd.Tpo -c -o module_la-evas_image_load_psd.lo `test -f 'evas_image_load_psd.c' || echo '$(srcdir)/'`evas_image_load_psd.c | ||
544 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_psd.Tpo $(DEPDIR)/module_la-evas_image_load_psd.Plo | ||
545 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
546 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_psd.c' object='module_la-evas_image_load_psd.lo' libtool=yes @AMDEPBACKSLASH@ | ||
547 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
548 | @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_image_load_psd.lo `test -f 'evas_image_load_psd.c' || echo '$(srcdir)/'`evas_image_load_psd.c | ||
549 | |||
550 | mostlyclean-libtool: | ||
551 | -rm -f *.lo | ||
552 | |||
553 | clean-libtool: | ||
554 | -rm -rf .libs _libs | ||
555 | |||
556 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
557 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
558 | unique=`for i in $$list; do \ | ||
559 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
560 | done | \ | ||
561 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
562 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
563 | mkid -fID $$unique | ||
564 | tags: TAGS | ||
565 | |||
566 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
567 | $(TAGS_FILES) $(LISP) | ||
568 | set x; \ | ||
569 | here=`pwd`; \ | ||
570 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
571 | unique=`for i in $$list; do \ | ||
572 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
573 | done | \ | ||
574 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
575 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
576 | shift; \ | ||
577 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
578 | test -n "$$unique" || unique=$$empty_fix; \ | ||
579 | if test $$# -gt 0; then \ | ||
580 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
581 | "$$@" $$unique; \ | ||
582 | else \ | ||
583 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
584 | $$unique; \ | ||
585 | fi; \ | ||
586 | fi | ||
587 | ctags: CTAGS | ||
588 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
589 | $(TAGS_FILES) $(LISP) | ||
590 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
591 | unique=`for i in $$list; do \ | ||
592 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
593 | done | \ | ||
594 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
595 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
596 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
597 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
598 | $$unique | ||
599 | |||
600 | GTAGS: | ||
601 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
602 | && $(am__cd) $(top_srcdir) \ | ||
603 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
604 | |||
605 | distclean-tags: | ||
606 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
607 | |||
608 | distdir: $(DISTFILES) | ||
609 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
610 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
611 | list='$(DISTFILES)'; \ | ||
612 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
613 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
614 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
615 | case $$dist_files in \ | ||
616 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
617 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
618 | sort -u` ;; \ | ||
619 | esac; \ | ||
620 | for file in $$dist_files; do \ | ||
621 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
622 | if test -d $$d/$$file; then \ | ||
623 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
624 | if test -d "$(distdir)/$$file"; then \ | ||
625 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
626 | fi; \ | ||
627 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
628 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
629 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
630 | fi; \ | ||
631 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
632 | else \ | ||
633 | test -f "$(distdir)/$$file" \ | ||
634 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
635 | || exit 1; \ | ||
636 | fi; \ | ||
637 | done | ||
638 | check-am: all-am | ||
639 | check: check-am | ||
640 | all-am: Makefile $(LTLIBRARIES) | ||
641 | installdirs: | ||
642 | for dir in "$(DESTDIR)$(pkgdir)"; do \ | ||
643 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
644 | done | ||
645 | install: install-am | ||
646 | install-exec: install-exec-am | ||
647 | install-data: install-data-am | ||
648 | uninstall: uninstall-am | ||
649 | |||
650 | install-am: all-am | ||
651 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
652 | |||
653 | installcheck: installcheck-am | ||
654 | install-strip: | ||
655 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
656 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
657 | `test -z '$(STRIP)' || \ | ||
658 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
659 | mostlyclean-generic: | ||
660 | |||
661 | clean-generic: | ||
662 | |||
663 | distclean-generic: | ||
664 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
665 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
666 | |||
667 | maintainer-clean-generic: | ||
668 | @echo "This command is intended for maintainers to use" | ||
669 | @echo "it deletes files that may require special tools to rebuild." | ||
670 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
671 | clean: clean-am | ||
672 | |||
673 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
674 | clean-pkgLTLIBRARIES mostlyclean-am | ||
675 | |||
676 | distclean: distclean-am | ||
677 | -rm -rf ./$(DEPDIR) | ||
678 | -rm -f Makefile | ||
679 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
680 | distclean-tags | ||
681 | |||
682 | dvi: dvi-am | ||
683 | |||
684 | dvi-am: | ||
685 | |||
686 | html: html-am | ||
687 | |||
688 | html-am: | ||
689 | |||
690 | info: info-am | ||
691 | |||
692 | info-am: | ||
693 | |||
694 | install-data-am: install-pkgLTLIBRARIES | ||
695 | |||
696 | install-dvi: install-dvi-am | ||
697 | |||
698 | install-dvi-am: | ||
699 | |||
700 | install-exec-am: | ||
701 | |||
702 | install-html: install-html-am | ||
703 | |||
704 | install-html-am: | ||
705 | |||
706 | install-info: install-info-am | ||
707 | |||
708 | install-info-am: | ||
709 | |||
710 | install-man: | ||
711 | |||
712 | install-pdf: install-pdf-am | ||
713 | |||
714 | install-pdf-am: | ||
715 | |||
716 | install-ps: install-ps-am | ||
717 | |||
718 | install-ps-am: | ||
719 | |||
720 | installcheck-am: | ||
721 | |||
722 | maintainer-clean: maintainer-clean-am | ||
723 | -rm -rf ./$(DEPDIR) | ||
724 | -rm -f Makefile | ||
725 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
726 | |||
727 | mostlyclean: mostlyclean-am | ||
728 | |||
729 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
730 | mostlyclean-libtool | ||
731 | |||
732 | pdf: pdf-am | ||
733 | |||
734 | pdf-am: | ||
735 | |||
736 | ps: ps-am | ||
737 | |||
738 | ps-am: | ||
739 | |||
740 | uninstall-am: uninstall-pkgLTLIBRARIES | ||
741 | |||
742 | .MAKE: install-am install-strip | ||
743 | |||
744 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
745 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
746 | ctags distclean distclean-compile distclean-generic \ | ||
747 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
748 | html-am info info-am install install-am install-data \ | ||
749 | install-data-am install-dvi install-dvi-am install-exec \ | ||
750 | install-exec-am install-html install-html-am install-info \ | ||
751 | install-info-am install-man install-pdf install-pdf-am \ | ||
752 | install-pkgLTLIBRARIES install-ps install-ps-am install-strip \ | ||
753 | installcheck installcheck-am installdirs maintainer-clean \ | ||
754 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
755 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
756 | tags uninstall uninstall-am uninstall-pkgLTLIBRARIES | ||
757 | |||
758 | |||
759 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
760 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
761 | .NOEXPORT: | ||
diff --git a/libraries/evas/src/modules/loaders/psd/evas_image_load_psd.c b/libraries/evas/src/modules/loaders/psd/evas_image_load_psd.c deleted file mode 100644 index 4449db0..0000000 --- a/libraries/evas/src/modules/loaders/psd/evas_image_load_psd.c +++ /dev/null | |||
@@ -1,1002 +0,0 @@ | |||
1 | #define _XOPEN_SOURCE | ||
2 | |||
3 | #ifdef HAVE_CONFIG_H | ||
4 | # include <config.h> | ||
5 | #endif | ||
6 | |||
7 | #include <stdlib.h> | ||
8 | #include <stdio.h> | ||
9 | #include <string.h> | ||
10 | #include <errno.h> | ||
11 | |||
12 | #include <math.h> | ||
13 | #include <sys/types.h> | ||
14 | #include <sys/stat.h> | ||
15 | #include <fcntl.h> | ||
16 | |||
17 | #ifdef HAVE_NETINET_IN_H | ||
18 | # include <netinet/in.h> | ||
19 | #endif | ||
20 | |||
21 | #ifdef HAVE_UNISTD_H | ||
22 | # include <unistd.h> | ||
23 | #endif | ||
24 | |||
25 | #ifdef HAVE_EVIL | ||
26 | # include <Evil.h> | ||
27 | #endif | ||
28 | |||
29 | #include "evas_common.h" | ||
30 | #include "evas_private.h" | ||
31 | |||
32 | typedef struct _PSD_Header PSD_Header; | ||
33 | |||
34 | typedef enum _PSD_Mode | ||
35 | { | ||
36 | PSD_GREYSCALE = 1, | ||
37 | PSD_INDEXED = 2, | ||
38 | PSD_RGB = 3, | ||
39 | PSD_CMYK = 4 | ||
40 | } PSD_Mode; | ||
41 | |||
42 | struct _PSD_Header | ||
43 | { | ||
44 | unsigned char signature[4]; | ||
45 | unsigned short version; | ||
46 | unsigned char reserved[9]; | ||
47 | unsigned short channels; | ||
48 | unsigned int height; | ||
49 | unsigned int width; | ||
50 | unsigned short depth; | ||
51 | |||
52 | unsigned short channel_num; | ||
53 | |||
54 | PSD_Mode mode; | ||
55 | }; | ||
56 | |||
57 | enum { | ||
58 | READ_COMPRESSED_SUCCESS, | ||
59 | READ_COMPRESSED_ERROR_FILE_CORRUPT, | ||
60 | READ_COMPRESSED_ERROR_FILE_READ_ERROR | ||
61 | }; | ||
62 | |||
63 | static Eina_Bool get_compressed_channels_length(PSD_Header *Head, | ||
64 | const unsigned char *map, size_t length, size_t *position, | ||
65 | unsigned short *rle_table, | ||
66 | unsigned int *chanlen); | ||
67 | |||
68 | static int | ||
69 | read_ushort(const unsigned char *map, size_t length, size_t *position, unsigned short *ret) | ||
70 | { | ||
71 | if (*position + 2 > length) return 0; | ||
72 | // FIXME: need to check order | ||
73 | *ret = (map[(*position) + 0] << 8) | map[(*position) + 1]; | ||
74 | *position += 2; | ||
75 | return 1; | ||
76 | } | ||
77 | |||
78 | static int | ||
79 | read_uint(const unsigned char *map, size_t length, size_t *position, unsigned int *ret) | ||
80 | { | ||
81 | if (*position + 4 > length) return 0; | ||
82 | // FIXME: need to check order | ||
83 | *ret = ARGB_JOIN(map[(*position) + 0], map[(*position) + 1], map[(*position) + 2], map[(*position) + 3]); | ||
84 | *position += 4; | ||
85 | return 1; | ||
86 | } | ||
87 | |||
88 | static int | ||
89 | read_block(const unsigned char *map, size_t length, size_t *position, void *target, size_t size) | ||
90 | { | ||
91 | if (*position + size > length) return 0; | ||
92 | memcpy(target, map + *position, size); | ||
93 | *position += size; | ||
94 | return 1; | ||
95 | } | ||
96 | |||
97 | // Internal function used to get the Psd header from the current file. | ||
98 | Eina_Bool | ||
99 | psd_get_header(PSD_Header *header, const unsigned char *map, size_t length, size_t *position) | ||
100 | { | ||
101 | unsigned short tmp; | ||
102 | |||
103 | #define CHECK_RET(Call) \ | ||
104 | if (!Call) return EINA_FALSE; | ||
105 | |||
106 | CHECK_RET(read_block(map, length, position, header->signature, 4)); | ||
107 | CHECK_RET(read_ushort(map, length, position, &header->version)); | ||
108 | CHECK_RET(read_block(map, length, position, header->reserved, 6)); | ||
109 | CHECK_RET(read_ushort(map, length, position, &header->channels)); | ||
110 | CHECK_RET(read_uint(map, length, position, &header->height)); | ||
111 | CHECK_RET(read_uint(map, length, position, &header->width)); | ||
112 | CHECK_RET(read_ushort(map, length, position, &header->depth)); | ||
113 | |||
114 | CHECK_RET(read_ushort(map, length, position, &tmp)); | ||
115 | header->mode = tmp; | ||
116 | |||
117 | #undef CHECK_RET | ||
118 | |||
119 | /* fprintf(stderr, "<<<<<<<<<<<\nsignature : %c%c%c%c\n", */ | ||
120 | /* header->signature[0], */ | ||
121 | /* header->signature[1], */ | ||
122 | /* header->signature[2], */ | ||
123 | /* header->signature[3]); */ | ||
124 | /* fprintf(stderr, "version : %i\n", header->version); */ | ||
125 | /* fprintf(stderr, "channels : %i\n", header->channels); */ | ||
126 | /* fprintf(stderr, "width x height : %dx%d\n", header->width, header->height); */ | ||
127 | /* fprintf(stderr, "depth : %i\n", header->depth); */ | ||
128 | /* fprintf(stderr, "mode : %i\n>>>>>>>>>>>>\n", header->mode); */ | ||
129 | |||
130 | return EINA_TRUE; | ||
131 | } | ||
132 | |||
133 | |||
134 | // Internal function used to check if the HEADER is a valid Psd header. | ||
135 | Eina_Bool | ||
136 | is_psd(PSD_Header *header) | ||
137 | { | ||
138 | if (strncmp((char*)header->signature, "8BPS", 4)) | ||
139 | return EINA_FALSE; | ||
140 | if (header->version != 1) | ||
141 | return EINA_FALSE; | ||
142 | if (header->channels < 1 || header->channels > 24) | ||
143 | return EINA_FALSE; | ||
144 | if (header->height < 1 || header->width < 1) | ||
145 | return EINA_FALSE; | ||
146 | if (header->depth != 1 && header->depth != 8 && header->depth != 16) | ||
147 | return EINA_FALSE; | ||
148 | |||
149 | return EINA_TRUE; | ||
150 | } | ||
151 | |||
152 | static Eina_Bool | ||
153 | evas_image_load_file_head_psd(Image_Entry *ie, const char *FileName, | ||
154 | const char *key __UNUSED__, int *error) | ||
155 | { | ||
156 | Eina_File *f; | ||
157 | void *map; | ||
158 | size_t length; | ||
159 | size_t position; | ||
160 | PSD_Header header; | ||
161 | Eina_Bool correct; | ||
162 | |||
163 | *error = EVAS_LOAD_ERROR_NONE; | ||
164 | |||
165 | f = eina_file_open(FileName, 0); | ||
166 | if (f == NULL) | ||
167 | { | ||
168 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
169 | return EINA_FALSE; | ||
170 | } | ||
171 | |||
172 | map = eina_file_map_all(f, EINA_FILE_SEQUENTIAL); | ||
173 | length = eina_file_size_get(f); | ||
174 | position = 0; | ||
175 | if (!map || length < 1) | ||
176 | { | ||
177 | eina_file_close(f); | ||
178 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
179 | return EINA_FALSE; | ||
180 | } | ||
181 | correct = psd_get_header(&header, map, length, &position); | ||
182 | |||
183 | eina_file_map_free(f, map); | ||
184 | eina_file_close(f); | ||
185 | |||
186 | if (!correct || !is_psd(&header)) | ||
187 | { | ||
188 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
189 | return EINA_FALSE; | ||
190 | } | ||
191 | |||
192 | ie->w = header.width; | ||
193 | ie->h = header.height; | ||
194 | if (header.channels == 3) ie->flags.alpha = 0; | ||
195 | else ie->flags.alpha = 1; | ||
196 | |||
197 | return EINA_TRUE; | ||
198 | } | ||
199 | |||
200 | static unsigned int | ||
201 | read_compressed_channel(const unsigned char *map, size_t length, size_t *position, | ||
202 | const unsigned int channel_length __UNUSED__, | ||
203 | unsigned int size, | ||
204 | unsigned char* channel) | ||
205 | { | ||
206 | // FIXME: what does channel_length means, and why is it not used | ||
207 | unsigned int i; | ||
208 | char headbyte, c; | ||
209 | |||
210 | #define CHECK_RET(Call) \ | ||
211 | if (!Call) return READ_COMPRESSED_ERROR_FILE_READ_ERROR; \ | ||
212 | |||
213 | for (i = 0; i < size; ) | ||
214 | { | ||
215 | CHECK_RET(read_block(map, length, position, &headbyte, 1)); | ||
216 | |||
217 | if (headbyte >= 0) | ||
218 | { | ||
219 | if (i + headbyte > size) | ||
220 | return READ_COMPRESSED_ERROR_FILE_CORRUPT; | ||
221 | CHECK_RET(read_block(map, length, position, channel + i, headbyte + 1)); | ||
222 | |||
223 | i += headbyte + 1; | ||
224 | } | ||
225 | else if (headbyte >= -127 && headbyte <= -1) | ||
226 | { | ||
227 | int run; | ||
228 | |||
229 | CHECK_RET(read_block(map, length, position, &c, 1)); | ||
230 | |||
231 | run = c; | ||
232 | /* if (run == -1) */ | ||
233 | /* return READ_COMPRESSED_ERROR_FILE_READ_ERROR; */ | ||
234 | |||
235 | if (i + (-headbyte + 1) > size) | ||
236 | return READ_COMPRESSED_ERROR_FILE_CORRUPT; | ||
237 | |||
238 | memset(channel + i, run, -headbyte + 1); | ||
239 | i += -headbyte + 1; | ||
240 | } | ||
241 | } | ||
242 | |||
243 | #undef CHECK_RET | ||
244 | |||
245 | return READ_COMPRESSED_SUCCESS; | ||
246 | } | ||
247 | |||
248 | |||
249 | Eina_Bool | ||
250 | psd_get_data(Image_Entry *ie __UNUSED__, | ||
251 | PSD_Header *head, | ||
252 | const unsigned char *map, size_t length, size_t *position, | ||
253 | unsigned char *buffer, Eina_Bool compressed, | ||
254 | int *error) | ||
255 | { | ||
256 | unsigned int c, x, y, numchan, bps, bpc, bpp; | ||
257 | unsigned int pixels_count; | ||
258 | unsigned char *channel = NULL; | ||
259 | unsigned char *data = NULL; | ||
260 | |||
261 | // Added 01-07-2009: This is needed to correctly load greyscale and | ||
262 | // paletted images. | ||
263 | switch (head->mode) | ||
264 | { | ||
265 | case PSD_GREYSCALE: | ||
266 | case PSD_INDEXED: | ||
267 | numchan = 1; | ||
268 | break; | ||
269 | default: | ||
270 | numchan = 3; | ||
271 | } | ||
272 | |||
273 | bpp = head->channels; | ||
274 | bpc = head->depth / 8; | ||
275 | pixels_count = head->width * head->height; | ||
276 | |||
277 | data = malloc(sizeof (unsigned char) * pixels_count * bpp); | ||
278 | if (!data) return EINA_FALSE; | ||
279 | |||
280 | channel = malloc(sizeof (unsigned char) * pixels_count * bpc); | ||
281 | if (!channel) | ||
282 | { | ||
283 | free(data); | ||
284 | return EINA_FALSE; | ||
285 | } | ||
286 | |||
287 | bps = head->width * head->channels * bpc; | ||
288 | // @TODO: Add support for this in, though I have yet to run across a .psd | ||
289 | // file that uses this. | ||
290 | if (compressed && bpc == 2) | ||
291 | { | ||
292 | free(data); | ||
293 | free(channel); | ||
294 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
295 | return EINA_FALSE; | ||
296 | } | ||
297 | |||
298 | #define CHECK_RET(Call) \ | ||
299 | if (!Call) \ | ||
300 | { \ | ||
301 | free(data); \ | ||
302 | free(channel); \ | ||
303 | return EINA_FALSE; \ | ||
304 | } | ||
305 | |||
306 | if (!compressed) | ||
307 | { | ||
308 | if (bpc == 1) | ||
309 | { | ||
310 | for (c = 0; c < numchan; c++) | ||
311 | { | ||
312 | unsigned char *tmp = channel; | ||
313 | |||
314 | CHECK_RET(read_block(map, length, position, tmp, pixels_count)); | ||
315 | |||
316 | for (y = 0; y < head->height * bps; y += bps) | ||
317 | { | ||
318 | for (x = 0; x < bps; x += bpp, tmp++) | ||
319 | { | ||
320 | data[y + x + c] = *tmp; | ||
321 | } | ||
322 | } | ||
323 | } | ||
324 | |||
325 | // Accumulate any remaining channels into a single alpha channel | ||
326 | //@TODO: This needs to be changed for greyscale images. | ||
327 | for (; c < head->channels; c++) | ||
328 | { | ||
329 | unsigned char *tmp = channel; | ||
330 | |||
331 | CHECK_RET(read_block(map, length, position, channel, pixels_count)); | ||
332 | |||
333 | for (y = 0; y < head->height * bps; y += bps) | ||
334 | { | ||
335 | for (x = 0; x < bps; x += bpp, tmp++) | ||
336 | { | ||
337 | unsigned short newval; | ||
338 | |||
339 | // previous formula was : (old / 255 * new / 255) * 255 | ||
340 | newval = (*tmp) * data[y + x + 3]; | ||
341 | |||
342 | data[y + x + 3] = newval >> 8; | ||
343 | } | ||
344 | } | ||
345 | } | ||
346 | } | ||
347 | else | ||
348 | { | ||
349 | int bps2; | ||
350 | |||
351 | bps2 = bps / 2; | ||
352 | |||
353 | // iCurImage->Bpc == 2 | ||
354 | for (c = 0; c < numchan; c++) | ||
355 | { | ||
356 | unsigned short *shortptr = (unsigned short*) channel; | ||
357 | |||
358 | CHECK_RET(read_block(map, length, position, channel, pixels_count * 2)); | ||
359 | |||
360 | for (y = 0; y < head->height * bps2; y += bps2) | ||
361 | { | ||
362 | for (x = 0; x < (unsigned int)bps2; x += bpp, shortptr++) | ||
363 | { | ||
364 | ((unsigned short*)data)[y + x + c] = *shortptr; | ||
365 | } | ||
366 | } | ||
367 | } | ||
368 | |||
369 | // Accumulate any remaining channels into a single alpha channel | ||
370 | //@TODO: This needs to be changed for greyscale images. | ||
371 | for (; c < head->channels; c++) | ||
372 | { | ||
373 | unsigned short *shortptr = (unsigned short*) channel; | ||
374 | |||
375 | CHECK_RET(read_block(map, length, position, channel, pixels_count * 2)); | ||
376 | |||
377 | for (y = 0; y < head->height * bps2; y += bps2) | ||
378 | { | ||
379 | for (x = 0; x < (unsigned int)bps2; x += bpp, shortptr) | ||
380 | { | ||
381 | unsigned int newval; | ||
382 | |||
383 | newval = *shortptr * ((unsigned short*)data)[y + x + 3]; | ||
384 | |||
385 | ((unsigned short*)data)[y + x + 3] = newval >> 16; | ||
386 | } | ||
387 | } | ||
388 | } | ||
389 | } | ||
390 | } | ||
391 | else | ||
392 | { | ||
393 | unsigned short *rle_table; | ||
394 | unsigned int *chanlen; | ||
395 | |||
396 | rle_table = alloca(head->height * head->channel_num * sizeof (unsigned short)); | ||
397 | chanlen = alloca(head->channel_num * sizeof (unsigned int)); | ||
398 | if (!get_compressed_channels_length(head, map, length, position, rle_table, chanlen)) | ||
399 | goto file_read_error; | ||
400 | |||
401 | for (c = 0; c < numchan; c++) | ||
402 | { | ||
403 | unsigned char *tmp = channel; | ||
404 | int err; | ||
405 | |||
406 | err = read_compressed_channel(map, length, position, | ||
407 | chanlen[c], | ||
408 | pixels_count, | ||
409 | channel); | ||
410 | if (err == READ_COMPRESSED_ERROR_FILE_CORRUPT) | ||
411 | goto file_corrupt; | ||
412 | else if (err == READ_COMPRESSED_ERROR_FILE_READ_ERROR) | ||
413 | goto file_read_error; | ||
414 | |||
415 | for (y = 0; y < head->height * bps; y += bps) | ||
416 | { | ||
417 | for (x = 0; x < bps; x += bpp, tmp++) | ||
418 | { | ||
419 | data[y + x + c] = *tmp; | ||
420 | } | ||
421 | } | ||
422 | } | ||
423 | |||
424 | // Initialize the alpha channel to solid | ||
425 | //@TODO: This needs to be changed for greyscale images. | ||
426 | if (head->channels >= 4) | ||
427 | { | ||
428 | for (y = 0; y < head->height * bps; y += bps) | ||
429 | { | ||
430 | for (x = 0; x < bps; x += bpp) | ||
431 | { | ||
432 | data[y + x + 3] = 255; | ||
433 | } | ||
434 | } | ||
435 | |||
436 | for (; c < head->channels; c++) | ||
437 | { | ||
438 | unsigned char *tmp = channel; | ||
439 | int err; | ||
440 | |||
441 | err = read_compressed_channel(map, length, position, | ||
442 | chanlen[c], | ||
443 | pixels_count, | ||
444 | channel); | ||
445 | if (err == READ_COMPRESSED_ERROR_FILE_CORRUPT) | ||
446 | goto file_corrupt; | ||
447 | else if (err == READ_COMPRESSED_ERROR_FILE_READ_ERROR) | ||
448 | goto file_read_error; | ||
449 | |||
450 | for (y = 0; y < head->height * bps; y += bps) | ||
451 | { | ||
452 | for (x = 0; x < bps; x += bpp, tmp++) | ||
453 | { | ||
454 | unsigned short newval; | ||
455 | |||
456 | newval = *tmp * data[y + x + 3]; | ||
457 | |||
458 | data[y + x + 3] = newval >> 8; | ||
459 | } | ||
460 | } | ||
461 | } | ||
462 | } | ||
463 | } | ||
464 | |||
465 | if (bpp == 3) | ||
466 | { | ||
467 | for (x = 0; x < pixels_count; x++) | ||
468 | { | ||
469 | buffer[x * 4 + 0] = data[x * 3 + 2]; | ||
470 | buffer[x * 4 + 1] = data[x * 3 + 1]; | ||
471 | buffer[x * 4 + 2] = data[x * 3 + 0]; | ||
472 | buffer[x * 4 + 3] = 255; | ||
473 | } | ||
474 | } | ||
475 | else | ||
476 | { | ||
477 | // BRGA to RGBA | ||
478 | for (x= 0; x < pixels_count; x++) | ||
479 | { | ||
480 | buffer[x * 4 + 0] = data[x * 4 + 2]; | ||
481 | buffer[x * 4 + 1] = data[x * 4 + 1]; | ||
482 | buffer[x * 4 + 2] = data[x * 4 + 0]; | ||
483 | buffer[x * 4 + 3] = data[x * 4 + 3]; | ||
484 | } | ||
485 | } | ||
486 | |||
487 | free(channel); | ||
488 | free(data); | ||
489 | return EINA_TRUE; | ||
490 | |||
491 | #undef CHECK_RET | ||
492 | |||
493 | file_corrupt: | ||
494 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
495 | |||
496 | file_read_error: | ||
497 | free(channel); | ||
498 | free(data); | ||
499 | |||
500 | return EINA_FALSE; | ||
501 | } | ||
502 | |||
503 | |||
504 | Eina_Bool | ||
505 | get_single_channel(Image_Entry *ie __UNUSED__, | ||
506 | PSD_Header *head, | ||
507 | const unsigned char *map, size_t length, size_t *position, | ||
508 | unsigned char *buffer, | ||
509 | Eina_Bool compressed) | ||
510 | { | ||
511 | unsigned int i, bpc; | ||
512 | char headbyte; | ||
513 | int c; | ||
514 | int pixels_count; | ||
515 | |||
516 | bpc = (head->depth / 8); | ||
517 | pixels_count = head->width * head->height; | ||
518 | |||
519 | #define CHECK_RET(Call) \ | ||
520 | if (!Call) return EINA_FALSE; | ||
521 | |||
522 | if (!compressed) | ||
523 | { | ||
524 | if (bpc == 1) | ||
525 | { | ||
526 | CHECK_RET(read_block(map, length, position, buffer, pixels_count)); | ||
527 | } | ||
528 | else | ||
529 | { // Bpc == 2 | ||
530 | CHECK_RET(read_block(map, length, position, buffer, pixels_count * 2)); | ||
531 | } | ||
532 | } | ||
533 | else | ||
534 | { | ||
535 | for (i = 0; i < (unsigned int)pixels_count; ) | ||
536 | { | ||
537 | CHECK_RET(read_block(map, length, position, &headbyte, 1)); | ||
538 | |||
539 | if (headbyte >= 0) | ||
540 | { // && HeadByte <= 127 | ||
541 | CHECK_RET(read_block(map, length, position, buffer + i, headbyte + 1)); | ||
542 | |||
543 | i += headbyte + 1; | ||
544 | } | ||
545 | if (headbyte >= -127 && headbyte <= -1) | ||
546 | { | ||
547 | int run; | ||
548 | |||
549 | CHECK_RET(read_block(map, length, position, &c, 1)); | ||
550 | |||
551 | run = c; | ||
552 | if (run == -1) return EINA_FALSE; | ||
553 | |||
554 | memset(buffer + i, run, -headbyte + 1); | ||
555 | i += -headbyte + 1; | ||
556 | } | ||
557 | } | ||
558 | } | ||
559 | |||
560 | #undef CHECK_RET | ||
561 | |||
562 | return EINA_TRUE; | ||
563 | } | ||
564 | |||
565 | Eina_Bool | ||
566 | read_psd_grey(Image_Entry *ie, PSD_Header *head, const unsigned char *map, size_t length, size_t *position, int *error) | ||
567 | { | ||
568 | unsigned int color_mode, resource_size, misc_info; | ||
569 | unsigned short compressed; | ||
570 | void *surface = NULL; | ||
571 | |||
572 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
573 | |||
574 | #define CHECK_RET(Call) \ | ||
575 | if (!Call) return EINA_FALSE; | ||
576 | |||
577 | CHECK_RET(read_uint(map, length, position, &color_mode)); | ||
578 | // Skip over the 'color mode data section' | ||
579 | *position += color_mode; | ||
580 | |||
581 | CHECK_RET(read_uint(map, length, position, &resource_size)); | ||
582 | // Read the 'image resources section' | ||
583 | *position += resource_size; | ||
584 | |||
585 | CHECK_RET(read_uint(map, length, position, &misc_info)); | ||
586 | *position += misc_info; | ||
587 | |||
588 | CHECK_RET(read_ushort(map, length, position, &compressed)); | ||
589 | |||
590 | ie->w = head->width; | ||
591 | ie->h = head->height; | ||
592 | if (head->channels == 3) ie->flags.alpha = 0; | ||
593 | else ie->flags.alpha = 1; | ||
594 | |||
595 | head->channel_num = head->channels; | ||
596 | // Temporary to read only one channel...some greyscale .psd files have 2. | ||
597 | head->channels = 1; | ||
598 | |||
599 | switch (head->depth) | ||
600 | { | ||
601 | case 8: | ||
602 | case 16: | ||
603 | break; | ||
604 | default: | ||
605 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
606 | return EINA_FALSE; | ||
607 | } | ||
608 | |||
609 | evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
610 | surface = evas_cache_image_pixels(ie); | ||
611 | if (!surface) | ||
612 | { | ||
613 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
614 | goto cleanup_error; | ||
615 | } | ||
616 | |||
617 | if (!psd_get_data(ie, head, map, length, position, surface, compressed, error)) | ||
618 | goto cleanup_error; | ||
619 | |||
620 | return EINA_TRUE; | ||
621 | |||
622 | #undef CHECK_RET | ||
623 | |||
624 | cleanup_error: | ||
625 | return EINA_FALSE; | ||
626 | } | ||
627 | |||
628 | |||
629 | Eina_Bool | ||
630 | read_psd_indexed(Image_Entry *ie, PSD_Header *head, const unsigned char *map, size_t length, size_t *position, int *error) | ||
631 | { | ||
632 | unsigned int color_mode, resource_size, misc_info; | ||
633 | unsigned short compressed; | ||
634 | void *surface; | ||
635 | |||
636 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
637 | |||
638 | #define CHECK_RET(Call) \ | ||
639 | if (!(Call)) return EINA_FALSE; | ||
640 | |||
641 | CHECK_RET(read_uint(map, length, position, &color_mode)); | ||
642 | CHECK_RET(!(color_mode % 3)); | ||
643 | /* | ||
644 | Palette = (unsigned char*)malloc(Colormode); | ||
645 | if (Palette == NULL) | ||
646 | return EINA_FALSE; | ||
647 | if (fread(&Palette, 1, Colormode, file) != Colormode) | ||
648 | goto cleanup_error; | ||
649 | */ | ||
650 | // Skip over the 'color mode data section' | ||
651 | *position += color_mode; | ||
652 | |||
653 | // Read the 'image resources section' | ||
654 | CHECK_RET(read_uint(map, length, position, &resource_size)); | ||
655 | *position += resource_size; | ||
656 | |||
657 | CHECK_RET(read_uint(map, length, position, &misc_info)); | ||
658 | *position += misc_info; | ||
659 | |||
660 | CHECK_RET(read_ushort(map, length, position, &compressed)); | ||
661 | |||
662 | if (head->channels != 1 || head->depth != 8) | ||
663 | { | ||
664 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
665 | return EINA_FALSE; | ||
666 | } | ||
667 | head->channel_num = head->channels; | ||
668 | |||
669 | ie->w = head->width; | ||
670 | ie->h = head->height; | ||
671 | if (head->channels == 3) ie->flags.alpha = 0; | ||
672 | else ie->flags.alpha = 1; | ||
673 | |||
674 | evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
675 | surface = evas_cache_image_pixels(ie); | ||
676 | if (!surface) | ||
677 | { | ||
678 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
679 | return EINA_FALSE; | ||
680 | } | ||
681 | |||
682 | if (!psd_get_data(ie, head, map, length, position, surface, compressed, error)) | ||
683 | return EINA_FALSE; | ||
684 | return EINA_TRUE; | ||
685 | |||
686 | #undef CHECK_RET | ||
687 | } | ||
688 | |||
689 | Eina_Bool | ||
690 | read_psd_rgb(Image_Entry *ie, PSD_Header *head, const unsigned char *map, size_t length, size_t *position, int *error) | ||
691 | { | ||
692 | unsigned int color_mode, resource_size, misc_info; | ||
693 | unsigned short compressed; | ||
694 | void *surface; | ||
695 | |||
696 | #define CHECK_RET(Call) \ | ||
697 | if (!Call) return EINA_FALSE; | ||
698 | |||
699 | CHECK_RET(read_uint(map, length, position, &color_mode)); | ||
700 | // Skip over the 'color mode data section' | ||
701 | *position += color_mode; | ||
702 | |||
703 | // Read the 'image resources section' | ||
704 | CHECK_RET(read_uint(map, length, position, &resource_size)); | ||
705 | *position += resource_size; | ||
706 | |||
707 | CHECK_RET(read_uint(map, length, position, &misc_info)); | ||
708 | *position += misc_info; | ||
709 | |||
710 | CHECK_RET(read_ushort(map, length, position, &compressed)); | ||
711 | |||
712 | head->channel_num = head->channels; | ||
713 | |||
714 | switch (head->depth) | ||
715 | { | ||
716 | case 8: | ||
717 | case 16: | ||
718 | break; | ||
719 | default: | ||
720 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
721 | return EINA_FALSE; | ||
722 | } | ||
723 | ie->w = head->width; | ||
724 | ie->h = head->height; | ||
725 | if (head->channels == 3) ie->flags.alpha = 0; | ||
726 | else ie->flags.alpha = 1; | ||
727 | |||
728 | evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
729 | surface = evas_cache_image_pixels(ie); | ||
730 | if (!surface) | ||
731 | { | ||
732 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
733 | goto cleanup_error; | ||
734 | } | ||
735 | |||
736 | if (!psd_get_data(ie, head, map, length, position, surface, compressed, error)) | ||
737 | goto cleanup_error; | ||
738 | |||
739 | evas_common_image_premul(ie); | ||
740 | return EINA_TRUE; | ||
741 | |||
742 | #undef CHECK_RET | ||
743 | |||
744 | cleanup_error: | ||
745 | return EINA_FALSE; | ||
746 | } | ||
747 | |||
748 | Eina_Bool | ||
749 | read_psd_cmyk(Image_Entry *ie, PSD_Header *head, const unsigned char *map, size_t length, size_t *position, int *error) | ||
750 | { | ||
751 | unsigned int color_mode, resource_size, misc_info, size, j, data_size; | ||
752 | unsigned short compressed; | ||
753 | unsigned int format, type; | ||
754 | unsigned char *kchannel = NULL; | ||
755 | void *surface; | ||
756 | |||
757 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
758 | |||
759 | #define CHECK_RET(Call) \ | ||
760 | if (!Call) return EINA_FALSE; | ||
761 | |||
762 | CHECK_RET(read_uint(map, length, position, &color_mode)); | ||
763 | // Skip over the 'color mode data section' | ||
764 | *position += color_mode; | ||
765 | |||
766 | CHECK_RET(read_uint(map, length, position, &resource_size)); | ||
767 | // Read the 'image resources section' | ||
768 | *position += resource_size; | ||
769 | |||
770 | CHECK_RET(read_uint(map, length, position, &misc_info)); | ||
771 | *position += misc_info; | ||
772 | |||
773 | CHECK_RET(read_ushort(map, length, position, &compressed)); | ||
774 | |||
775 | switch (head->channels) | ||
776 | { | ||
777 | case 4: | ||
778 | format = 0x1907; | ||
779 | head->channel_num = 4; | ||
780 | head->channels = 3; | ||
781 | break; | ||
782 | case 5: | ||
783 | format = 0x1908; | ||
784 | head->channel_num = 5; | ||
785 | head->channels = 4; | ||
786 | break; | ||
787 | default: | ||
788 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
789 | return EINA_FALSE; | ||
790 | } | ||
791 | |||
792 | switch (head->depth) | ||
793 | { | ||
794 | case 8: | ||
795 | type = 1; | ||
796 | break; | ||
797 | case 16: | ||
798 | type = 2; | ||
799 | break; | ||
800 | default: | ||
801 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
802 | return EINA_FALSE; | ||
803 | } | ||
804 | |||
805 | ie->w = head->width; | ||
806 | ie->h = head->height; | ||
807 | if (head->channels == 3) ie->flags.alpha = 0; | ||
808 | else ie->flags.alpha = 1; | ||
809 | |||
810 | evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
811 | surface = evas_cache_image_pixels(ie); | ||
812 | if (!surface) | ||
813 | { | ||
814 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
815 | goto cleanup_error; | ||
816 | } | ||
817 | |||
818 | if (!psd_get_data(ie, head, map, length, position, surface, compressed, error)) | ||
819 | goto cleanup_error; | ||
820 | |||
821 | size = type * ie->w * ie->h; | ||
822 | kchannel = malloc(size); | ||
823 | if (kchannel == NULL) | ||
824 | goto cleanup_error; | ||
825 | if (!get_single_channel(ie, head, map, length, position, kchannel, compressed)) | ||
826 | goto cleanup_error; | ||
827 | |||
828 | data_size = head->channels * type * ie->w * ie->h; | ||
829 | if (format == 0x1907) | ||
830 | { | ||
831 | unsigned char *tmp = surface; | ||
832 | const unsigned char *limit = tmp + data_size; | ||
833 | |||
834 | for (j = 0; tmp < limit; tmp++, j++) | ||
835 | { | ||
836 | int k; | ||
837 | |||
838 | for (k = 0; k < 3; k++) | ||
839 | *tmp = (*tmp * kchannel[j]) >> 8; | ||
840 | |||
841 | // FIXME: tmp[i+3] = 255; | ||
842 | } | ||
843 | } | ||
844 | else | ||
845 | { // RGBA | ||
846 | unsigned char *tmp = surface; | ||
847 | const unsigned char *limit = tmp + data_size; | ||
848 | |||
849 | // The KChannel array really holds the alpha channel on this one. | ||
850 | for (j = 0; tmp < limit; tmp += 4, j++) | ||
851 | { | ||
852 | tmp[0] = (tmp[0] * tmp[3]) >> 8; | ||
853 | tmp[1] = (tmp[1] * tmp[3]) >> 8; | ||
854 | tmp[2] = (tmp[2] * tmp[3]) >> 8; | ||
855 | tmp[3] = kchannel[j]; // Swap 'K' with alpha channel. | ||
856 | } | ||
857 | } | ||
858 | |||
859 | free(kchannel); | ||
860 | |||
861 | evas_common_image_premul(ie); | ||
862 | return EINA_TRUE; | ||
863 | |||
864 | cleanup_error: | ||
865 | free(kchannel); | ||
866 | return EINA_FALSE; | ||
867 | } | ||
868 | |||
869 | static Eina_Bool | ||
870 | evas_image_load_file_data_psd(Image_Entry *ie, | ||
871 | const char *file, | ||
872 | const char *key __UNUSED__, | ||
873 | int *error) | ||
874 | { | ||
875 | Eina_File *f; | ||
876 | void *map; | ||
877 | size_t length; | ||
878 | size_t position; | ||
879 | PSD_Header header; | ||
880 | Eina_Bool bpsd = EINA_FALSE; | ||
881 | |||
882 | f = eina_file_open(file, 0); | ||
883 | if (f == NULL) | ||
884 | { | ||
885 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
886 | return bpsd; | ||
887 | } | ||
888 | |||
889 | map = eina_file_map_all(f, EINA_FILE_SEQUENTIAL); | ||
890 | length = eina_file_size_get(f); | ||
891 | position = 0; | ||
892 | if (!map || length < 1) | ||
893 | { | ||
894 | eina_file_close(f); | ||
895 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
896 | return EINA_FALSE; | ||
897 | } | ||
898 | |||
899 | if (!psd_get_header(&header, map, length, &position) || !is_psd(&header)) | ||
900 | { | ||
901 | eina_file_map_free(f, map); | ||
902 | eina_file_close(f); | ||
903 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
904 | return EINA_FALSE; | ||
905 | } | ||
906 | |||
907 | ie->w = header.width; | ||
908 | ie->h = header.height; | ||
909 | |||
910 | *error = EVAS_LOAD_ERROR_NONE; | ||
911 | |||
912 | switch (header.mode) | ||
913 | { | ||
914 | case PSD_GREYSCALE: // Greyscale | ||
915 | bpsd = read_psd_grey(ie, &header, map, length, &position, error); | ||
916 | break; | ||
917 | case PSD_INDEXED: // Indexed | ||
918 | bpsd = read_psd_indexed(ie, &header, map, length, &position, error); | ||
919 | break; | ||
920 | case PSD_RGB: // RGB | ||
921 | bpsd = read_psd_rgb(ie, &header, map, length, &position, error); | ||
922 | break; | ||
923 | case PSD_CMYK: // CMYK | ||
924 | bpsd = read_psd_cmyk(ie, &header, map, length, &position, error); | ||
925 | break; | ||
926 | default : | ||
927 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
928 | bpsd = EINA_FALSE; | ||
929 | } | ||
930 | |||
931 | eina_file_map_free(f, map); | ||
932 | eina_file_close(f); | ||
933 | |||
934 | return bpsd; | ||
935 | } | ||
936 | |||
937 | static Eina_Bool | ||
938 | get_compressed_channels_length(PSD_Header *head, | ||
939 | const unsigned char *map, size_t length, size_t *position, | ||
940 | unsigned short *rle_table, | ||
941 | unsigned int *chanlen) | ||
942 | { | ||
943 | unsigned int j; | ||
944 | unsigned int c; | ||
945 | |||
946 | if (!read_block(map, length, position, rle_table, | ||
947 | sizeof (unsigned short) * head->height * head->channel_num)) | ||
948 | return EINA_FALSE; | ||
949 | |||
950 | memset(chanlen, 0, head->channel_num * sizeof(unsigned int)); | ||
951 | for (c = 0; c < head->channel_num; c++) | ||
952 | { | ||
953 | unsigned int i; | ||
954 | |||
955 | j = c * head->height; | ||
956 | for (i = 0; i < head->height; i++) | ||
957 | { | ||
958 | chanlen[c] += rle_table[i + j]; | ||
959 | } | ||
960 | } | ||
961 | |||
962 | return EINA_TRUE; | ||
963 | } | ||
964 | |||
965 | static const Evas_Image_Load_Func evas_image_load_psd_func = { | ||
966 | EINA_TRUE, | ||
967 | evas_image_load_file_head_psd, | ||
968 | evas_image_load_file_data_psd, | ||
969 | NULL, | ||
970 | EINA_FALSE | ||
971 | }; | ||
972 | |||
973 | static int | ||
974 | module_open(Evas_Module *em) | ||
975 | { | ||
976 | if (!em) return 0; | ||
977 | em->functions = (void *)(&evas_image_load_psd_func); | ||
978 | return 1; | ||
979 | } | ||
980 | |||
981 | static void | ||
982 | module_close(Evas_Module *em __UNUSED__) | ||
983 | { | ||
984 | } | ||
985 | |||
986 | static Evas_Module_Api evas_modapi = | ||
987 | { | ||
988 | EVAS_MODULE_API_VERSION, | ||
989 | "psd", | ||
990 | "none", | ||
991 | { | ||
992 | module_open, | ||
993 | module_close | ||
994 | } | ||
995 | }; | ||
996 | |||
997 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, psd); | ||
998 | |||
999 | |||
1000 | #ifndef EVAS_STATIC_BUILD_PSD | ||
1001 | EVAS_EINA_MODULE_DEFINE(image_loader, psd); | ||
1002 | #endif | ||