aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/evas/src/modules/loaders
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libraries/evas/src/modules/loaders/Makefile.am93
-rw-r--r--libraries/evas/src/modules/loaders/Makefile.in754
-rw-r--r--libraries/evas/src/modules/loaders/TODO5
-rw-r--r--libraries/evas/src/modules/loaders/bmp/Makefile.am33
-rw-r--r--libraries/evas/src/modules/loaders/bmp/Makefile.in758
-rw-r--r--libraries/evas/src/modules/loaders/bmp/evas_image_load_bmp.c1451
-rw-r--r--libraries/evas/src/modules/loaders/edb/Makefile.am34
-rw-r--r--libraries/evas/src/modules/loaders/edb/Makefile.in757
-rw-r--r--libraries/evas/src/modules/loaders/edb/evas_image_load_edb.c250
-rw-r--r--libraries/evas/src/modules/loaders/eet/Makefile.am36
-rw-r--r--libraries/evas/src/modules/loaders/eet/Makefile.in758
-rw-r--r--libraries/evas/src/modules/loaders/eet/evas_image_load_eet.c182
-rw-r--r--libraries/evas/src/modules/loaders/generic/Makefile.am38
-rw-r--r--libraries/evas/src/modules/loaders/generic/Makefile.in761
-rw-r--r--libraries/evas/src/modules/loaders/generic/evas_image_load_generic.c430
-rw-r--r--libraries/evas/src/modules/loaders/gif/Makefile.am35
-rw-r--r--libraries/evas/src/modules/loaders/gif/Makefile.in758
-rw-r--r--libraries/evas/src/modules/loaders/gif/evas_image_load_gif.c1030
-rw-r--r--libraries/evas/src/modules/loaders/ico/Makefile.am33
-rw-r--r--libraries/evas/src/modules/loaders/ico/Makefile.in758
-rw-r--r--libraries/evas/src/modules/loaders/ico/evas_image_load_ico.c770
-rw-r--r--libraries/evas/src/modules/loaders/jpeg/Makefile.am36
-rw-r--r--libraries/evas/src/modules/loaders/jpeg/Makefile.in760
-rw-r--r--libraries/evas/src/modules/loaders/jpeg/evas_image_load_jpeg.c1265
-rw-r--r--libraries/evas/src/modules/loaders/pmaps/Makefile.am36
-rw-r--r--libraries/evas/src/modules/loaders/pmaps/Makefile.in760
-rw-r--r--libraries/evas/src/modules/loaders/pmaps/evas_image_load_pmaps.c558
-rw-r--r--libraries/evas/src/modules/loaders/png/Makefile.am34
-rw-r--r--libraries/evas/src/modules/loaders/png/Makefile.in759
-rw-r--r--libraries/evas/src/modules/loaders/png/evas_image_load_png.c328
-rw-r--r--libraries/evas/src/modules/loaders/psd/Makefile.am33
-rw-r--r--libraries/evas/src/modules/loaders/psd/Makefile.in758
-rw-r--r--libraries/evas/src/modules/loaders/psd/evas_image_load_psd.c976
-rw-r--r--libraries/evas/src/modules/loaders/svg/Makefile.am34
-rw-r--r--libraries/evas/src/modules/loaders/svg/Makefile.in758
-rw-r--r--libraries/evas/src/modules/loaders/svg/evas_image_load_svg.c280
-rw-r--r--libraries/evas/src/modules/loaders/tga/Makefile.am33
-rw-r--r--libraries/evas/src/modules/loaders/tga/Makefile.in758
-rw-r--r--libraries/evas/src/modules/loaders/tga/evas_image_load_tga.c596
-rw-r--r--libraries/evas/src/modules/loaders/tiff/Makefile.am37
-rw-r--r--libraries/evas/src/modules/loaders/tiff/Makefile.in760
-rw-r--r--libraries/evas/src/modules/loaders/tiff/evas_image_load_tiff.c324
-rw-r--r--libraries/evas/src/modules/loaders/wbmp/Makefile.am33
-rw-r--r--libraries/evas/src/modules/loaders/wbmp/Makefile.in758
-rw-r--r--libraries/evas/src/modules/loaders/wbmp/evas_image_load_wbmp.c170
-rw-r--r--libraries/evas/src/modules/loaders/xpm/Makefile.am37
-rw-r--r--libraries/evas/src/modules/loaders/xpm/Makefile.in760
-rw-r--r--libraries/evas/src/modules/loaders/xpm/evas_image_load_xpm.c691
48 files changed, 22056 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/loaders/Makefile.am b/libraries/evas/src/modules/loaders/Makefile.am
new file mode 100644
index 0000000..b7ed9a5
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/Makefile.am
@@ -0,0 +1,93 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3SUBDIRS =
4
5if BUILD_LOADER_BMP
6if !EVAS_STATIC_BUILD_BMP
7SUBDIRS += bmp
8endif
9endif
10
11if BUILD_LOADER_EDB
12if !EVAS_STATIC_BUILD_EDB
13SUBDIRS += edb
14endif
15endif
16
17if BUILD_LOADER_EET
18if !EVAS_STATIC_BUILD_EET
19SUBDIRS += eet
20endif
21endif
22
23if BUILD_LOADER_GENERIC
24if !EVAS_STATIC_BUILD_GENERIC
25SUBDIRS += generic
26endif
27endif
28
29if BUILD_LOADER_GIF
30if !EVAS_STATIC_BUILD_GIF
31SUBDIRS += gif
32endif
33endif
34
35if BUILD_LOADER_ICO
36if !EVAS_STATIC_BUILD_ICO
37SUBDIRS += ico
38endif
39endif
40
41if BUILD_LOADER_JPEG
42if !EVAS_STATIC_BUILD_JPEG
43SUBDIRS += jpeg
44endif
45endif
46
47if BUILD_LOADER_PMAPS
48if !EVAS_STATIC_BUILD_PMAPS
49SUBDIRS += pmaps
50endif
51endif
52
53if BUILD_LOADER_PNG
54if !EVAS_STATIC_BUILD_PNG
55SUBDIRS += png
56endif
57endif
58
59if BUILD_LOADER_PSD
60if !EVAS_STATIC_BUILD_PSD
61SUBDIRS += psd
62endif
63endif
64
65if BUILD_LOADER_SVG
66if !EVAS_STATIC_BUILD_SVG
67SUBDIRS += svg
68endif
69endif
70
71if BUILD_LOADER_TGA
72if !EVAS_STATIC_BUILD_TGA
73SUBDIRS += tga
74endif
75endif
76
77if BUILD_LOADER_TIFF
78if !EVAS_STATIC_BUILD_TIFF
79SUBDIRS += tiff
80endif
81endif
82
83if BUILD_LOADER_WBMP
84if !EVAS_STATIC_BUILD_WBMP
85SUBDIRS += wbmp
86endif
87endif
88
89if BUILD_LOADER_XPM
90if !EVAS_STATIC_BUILD_XPM
91SUBDIRS += xpm
92endif
93endif
diff --git a/libraries/evas/src/modules/loaders/Makefile.in b/libraries/evas/src/modules/loaders/Makefile.in
new file mode 100644
index 0000000..2120a33
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/Makefile.in
@@ -0,0 +1,754 @@
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@
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkgincludedir = $(includedir)/@PACKAGE@
20pkglibdir = $(libdir)/@PACKAGE@
21pkglibexecdir = $(libexecdir)/@PACKAGE@
22am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23install_sh_DATA = $(install_sh) -c -m 644
24install_sh_PROGRAM = $(install_sh) -c
25install_sh_SCRIPT = $(install_sh) -c
26INSTALL_HEADER = $(INSTALL_DATA)
27transform = $(program_transform_name)
28NORMAL_INSTALL = :
29PRE_INSTALL = :
30POST_INSTALL = :
31NORMAL_UNINSTALL = :
32PRE_UNINSTALL = :
33POST_UNINSTALL = :
34build_triplet = @build@
35host_triplet = @host@
36@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@am__append_1 = bmp
37@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@am__append_2 = edb
38@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@am__append_3 = eet
39@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@am__append_4 = generic
40@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@am__append_5 = gif
41@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@am__append_6 = ico
42@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@am__append_7 = jpeg
43@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@am__append_8 = pmaps
44@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@am__append_9 = png
45@BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@am__append_10 = psd
46@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@am__append_11 = svg
47@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@am__append_12 = tga
48@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@am__append_13 = tiff
49@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@am__append_14 = wbmp
50@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@am__append_15 = xpm
51subdir = src/modules/loaders
52DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in TODO
53ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
54am__aclocal_m4_deps = $(top_srcdir)/m4/efl_attribute.m4 \
55 $(top_srcdir)/m4/efl_coverage.m4 \
56 $(top_srcdir)/m4/efl_doxygen.m4 \
57 $(top_srcdir)/m4/efl_fnmatch.m4 \
58 $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \
59 $(top_srcdir)/m4/evas_check_engine.m4 \
60 $(top_srcdir)/m4/evas_check_loader.m4 \
61 $(top_srcdir)/m4/evas_converter.m4 \
62 $(top_srcdir)/m4/evas_dither.m4 \
63 $(top_srcdir)/m4/evas_scaler.m4 $(top_srcdir)/m4/libtool.m4 \
64 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
65 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
66 $(top_srcdir)/configure.ac
67am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
68 $(ACLOCAL_M4)
69mkinstalldirs = $(install_sh) -d
70CONFIG_HEADER = $(top_builddir)/config.h
71CONFIG_CLEAN_FILES =
72CONFIG_CLEAN_VPATH_FILES =
73AM_V_GEN = $(am__v_GEN_$(V))
74am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
75am__v_GEN_0 = @echo " GEN " $@;
76AM_V_at = $(am__v_at_$(V))
77am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
78am__v_at_0 = @
79SOURCES =
80DIST_SOURCES =
81RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
82 html-recursive info-recursive install-data-recursive \
83 install-dvi-recursive install-exec-recursive \
84 install-html-recursive install-info-recursive \
85 install-pdf-recursive install-ps-recursive install-recursive \
86 installcheck-recursive installdirs-recursive pdf-recursive \
87 ps-recursive uninstall-recursive
88RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
89 distclean-recursive maintainer-clean-recursive
90AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
91 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
92 distdir
93ETAGS = etags
94CTAGS = ctags
95DIST_SUBDIRS = bmp edb eet generic gif ico jpeg pmaps png psd svg tga \
96 tiff wbmp xpm
97DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
98am__relativize = \
99 dir0=`pwd`; \
100 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
101 sed_rest='s,^[^/]*/*,,'; \
102 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
103 sed_butlast='s,/*[^/]*$$,,'; \
104 while test -n "$$dir1"; do \
105 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
106 if test "$$first" != "."; then \
107 if test "$$first" = ".."; then \
108 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
109 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
110 else \
111 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
112 if test "$$first2" = "$$first"; then \
113 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
114 else \
115 dir2="../$$dir2"; \
116 fi; \
117 dir0="$$dir0"/"$$first"; \
118 fi; \
119 fi; \
120 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
121 done; \
122 reldir="$$dir2"
123ACLOCAL = @ACLOCAL@
124ALLOCA = @ALLOCA@
125AMTAR = @AMTAR@
126AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
127AR = @AR@
128AS = @AS@
129AUTOCONF = @AUTOCONF@
130AUTOHEADER = @AUTOHEADER@
131AUTOMAKE = @AUTOMAKE@
132AWK = @AWK@
133CC = @CC@
134CCDEPMODE = @CCDEPMODE@
135CFLAGS = @CFLAGS@
136CHECK_CFLAGS = @CHECK_CFLAGS@
137CHECK_LIBS = @CHECK_LIBS@
138CPP = @CPP@
139CPPFLAGS = @CPPFLAGS@
140CXX = @CXX@
141CXXCPP = @CXXCPP@
142CXXDEPMODE = @CXXDEPMODE@
143CXXFLAGS = @CXXFLAGS@
144CYGPATH_W = @CYGPATH_W@
145DEFS = @DEFS@
146DEPDIR = @DEPDIR@
147DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
148DIRECTFB_LIBS = @DIRECTFB_LIBS@
149DLLTOOL = @DLLTOOL@
150DSYMUTIL = @DSYMUTIL@
151DUMPBIN = @DUMPBIN@
152ECHO_C = @ECHO_C@
153ECHO_N = @ECHO_N@
154ECHO_T = @ECHO_T@
155ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
156ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
157EDB_CFLAGS = @EDB_CFLAGS@
158EDB_LIBS = @EDB_LIBS@
159EDJE_CFLAGS = @EDJE_CFLAGS@
160EDJE_LIBS = @EDJE_LIBS@
161EET_CFLAGS = @EET_CFLAGS@
162EET_LIBS = @EET_LIBS@
163EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
164EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
165EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
166EGREP = @EGREP@
167EINA_CFLAGS = @EINA_CFLAGS@
168EINA_LIBS = @EINA_LIBS@
169EVAS_CFLAGS = @EVAS_CFLAGS@
170EVAS_LIBS = @EVAS_LIBS@
171EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
172EVIL_CFLAGS = @EVIL_CFLAGS@
173EVIL_LIBS = @EVIL_LIBS@
174EXEEXT = @EXEEXT@
175FGREP = @FGREP@
176FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
177FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
178FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
179FREETYPE_LIBS = @FREETYPE_LIBS@
180FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
181FRIBIDI_LIBS = @FRIBIDI_LIBS@
182GL_EET_CFLAGS = @GL_EET_CFLAGS@
183GL_EET_LIBS = @GL_EET_LIBS@
184GREP = @GREP@
185HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
186HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
187INSTALL = @INSTALL@
188INSTALL_DATA = @INSTALL_DATA@
189INSTALL_PROGRAM = @INSTALL_PROGRAM@
190INSTALL_SCRIPT = @INSTALL_SCRIPT@
191INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
192LD = @LD@
193LDFLAGS = @LDFLAGS@
194LIBOBJS = @LIBOBJS@
195LIBS = @LIBS@
196LIBTOOL = @LIBTOOL@
197LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
198LINEBREAK_LIBS = @LINEBREAK_LIBS@
199LIPO = @LIPO@
200LN_S = @LN_S@
201LTLIBOBJS = @LTLIBOBJS@
202MAKEINFO = @MAKEINFO@
203MKDIR_P = @MKDIR_P@
204MODULE_ARCH = @MODULE_ARCH@
205NM = @NM@
206NMEDIT = @NMEDIT@
207OBJC = @OBJC@
208OBJCDEPMODE = @OBJCDEPMODE@
209OBJCFLAGS = @OBJCFLAGS@
210OBJDUMP = @OBJDUMP@
211OBJEXT = @OBJEXT@
212OTOOL = @OTOOL@
213OTOOL64 = @OTOOL64@
214PACKAGE = @PACKAGE@
215PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
216PACKAGE_NAME = @PACKAGE_NAME@
217PACKAGE_STRING = @PACKAGE_STRING@
218PACKAGE_TARNAME = @PACKAGE_TARNAME@
219PACKAGE_URL = @PACKAGE_URL@
220PACKAGE_VERSION = @PACKAGE_VERSION@
221PATH_SEPARATOR = @PATH_SEPARATOR@
222PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
223PIXMAN_LIBS = @PIXMAN_LIBS@
224PKG_CONFIG = @PKG_CONFIG@
225PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
226PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
227PNG_CFLAGS = @PNG_CFLAGS@
228PNG_LIBS = @PNG_LIBS@
229RANLIB = @RANLIB@
230SDL_CFLAGS = @SDL_CFLAGS@
231SDL_LIBS = @SDL_LIBS@
232SED = @SED@
233SET_MAKE = @SET_MAKE@
234SHELL = @SHELL@
235SHM_OPEN_LINK = @SHM_OPEN_LINK@
236STRIP = @STRIP@
237SVG_CFLAGS = @SVG_CFLAGS@
238SVG_LIBS = @SVG_LIBS@
239VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
240VALGRIND_LIBS = @VALGRIND_LIBS@
241VERSION = @VERSION@
242VMAJ = @VMAJ@
243WIN32_CFLAGS = @WIN32_CFLAGS@
244WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
245XCB_CFLAGS = @XCB_CFLAGS@
246XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
247XCB_GL_LIBS = @XCB_GL_LIBS@
248XCB_LIBS = @XCB_LIBS@
249XEXT_CFLAGS = @XEXT_CFLAGS@
250XEXT_LIBS = @XEXT_LIBS@
251XMKMF = @XMKMF@
252X_CFLAGS = @X_CFLAGS@
253X_EXTRA_LIBS = @X_EXTRA_LIBS@
254X_LIBS = @X_LIBS@
255X_PRE_LIBS = @X_PRE_LIBS@
256abs_builddir = @abs_builddir@
257abs_srcdir = @abs_srcdir@
258abs_top_builddir = @abs_top_builddir@
259abs_top_srcdir = @abs_top_srcdir@
260ac_ct_CC = @ac_ct_CC@
261ac_ct_CXX = @ac_ct_CXX@
262ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
263ac_ct_OBJC = @ac_ct_OBJC@
264altivec_cflags = @altivec_cflags@
265am__include = @am__include@
266am__leading_dot = @am__leading_dot@
267am__quote = @am__quote@
268am__tar = @am__tar@
269am__untar = @am__untar@
270bindir = @bindir@
271build = @build@
272build_alias = @build_alias@
273build_cpu = @build_cpu@
274build_os = @build_os@
275build_vendor = @build_vendor@
276builddir = @builddir@
277datadir = @datadir@
278datarootdir = @datarootdir@
279dlopen_libs = @dlopen_libs@
280docdir = @docdir@
281dvidir = @dvidir@
282edje_cc = @edje_cc@
283efl_doxygen = @efl_doxygen@
284efl_have_doxygen = @efl_have_doxygen@
285evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
286evas_engine_buffer_libs = @evas_engine_buffer_libs@
287evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
288evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
289evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
290evas_engine_directfb_libs = @evas_engine_directfb_libs@
291evas_engine_fb_cflags = @evas_engine_fb_cflags@
292evas_engine_fb_libs = @evas_engine_fb_libs@
293evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
294evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
295evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
296evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
297evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
298evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
299evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
300evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
301evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
302evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
303evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
304evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
305evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
306evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
307evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
308evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
309evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
310evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
311evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
312evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
313evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
314evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
315evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
316evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
317evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
318evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
319evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
320evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
321evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
322evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
323evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
324evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
325evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
326evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
327evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
328evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
329evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
330evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
331evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
332evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
333evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
334evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
335evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
336evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
337evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
338evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
339evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
340evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
341evas_image_loader_png_libs = @evas_image_loader_png_libs@
342evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
343evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
344evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
345evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
346evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
347evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
348evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
349evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
350evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
351evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
352evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
353evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
354exec_prefix = @exec_prefix@
355have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
356have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
357have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
358have_evas_engine_software_x11 = @have_evas_engine_software_x11@
359have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
360have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
361have_lcov = @have_lcov@
362host = @host@
363host_alias = @host_alias@
364host_cpu = @host_cpu@
365host_os = @host_os@
366host_vendor = @host_vendor@
367htmldir = @htmldir@
368includedir = @includedir@
369infodir = @infodir@
370install_sh = @install_sh@
371libdir = @libdir@
372libexecdir = @libexecdir@
373localedir = @localedir@
374localstatedir = @localstatedir@
375lt_ECHO = @lt_ECHO@
376lt_enable_auto_import = @lt_enable_auto_import@
377mandir = @mandir@
378mkdir_p = @mkdir_p@
379oldincludedir = @oldincludedir@
380pdfdir = @pdfdir@
381pkgconfig_requires_private = @pkgconfig_requires_private@
382prefix = @prefix@
383program_transform_name = @program_transform_name@
384psdir = @psdir@
385pthread_cflags = @pthread_cflags@
386pthread_libs = @pthread_libs@
387release_info = @release_info@
388requirement_evas = @requirement_evas@
389sbindir = @sbindir@
390sharedstatedir = @sharedstatedir@
391srcdir = @srcdir@
392sysconfdir = @sysconfdir@
393target_alias = @target_alias@
394top_build_prefix = @top_build_prefix@
395top_builddir = @top_builddir@
396top_srcdir = @top_srcdir@
397version_info = @version_info@
398MAINTAINERCLEANFILES = Makefile.in
399SUBDIRS = $(am__append_1) $(am__append_2) $(am__append_3) \
400 $(am__append_4) $(am__append_5) $(am__append_6) \
401 $(am__append_7) $(am__append_8) $(am__append_9) \
402 $(am__append_10) $(am__append_11) $(am__append_12) \
403 $(am__append_13) $(am__append_14) $(am__append_15)
404all: all-recursive
405
406.SUFFIXES:
407$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
408 @for dep in $?; do \
409 case '$(am__configure_deps)' in \
410 *$$dep*) \
411 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
412 && { if test -f $@; then exit 0; else break; fi; }; \
413 exit 1;; \
414 esac; \
415 done; \
416 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/Makefile'; \
417 $(am__cd) $(top_srcdir) && \
418 $(AUTOMAKE) --gnu src/modules/loaders/Makefile
419.PRECIOUS: Makefile
420Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
421 @case '$?' in \
422 *config.status*) \
423 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
424 *) \
425 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
426 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
427 esac;
428
429$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
430 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
431
432$(top_srcdir)/configure: $(am__configure_deps)
433 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
434$(ACLOCAL_M4): $(am__aclocal_m4_deps)
435 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
436$(am__aclocal_m4_deps):
437
438mostlyclean-libtool:
439 -rm -f *.lo
440
441clean-libtool:
442 -rm -rf .libs _libs
443
444# This directory's subdirectories are mostly independent; you can cd
445# into them and run `make' without going through this Makefile.
446# To change the values of `make' variables: instead of editing Makefiles,
447# (1) if the variable is set in `config.status', edit `config.status'
448# (which will cause the Makefiles to be regenerated when you run `make');
449# (2) otherwise, pass the desired values on the `make' command line.
450$(RECURSIVE_TARGETS):
451 @fail= failcom='exit 1'; \
452 for f in x $$MAKEFLAGS; do \
453 case $$f in \
454 *=* | --[!k]*);; \
455 *k*) failcom='fail=yes';; \
456 esac; \
457 done; \
458 dot_seen=no; \
459 target=`echo $@ | sed s/-recursive//`; \
460 list='$(SUBDIRS)'; for subdir in $$list; do \
461 echo "Making $$target in $$subdir"; \
462 if test "$$subdir" = "."; then \
463 dot_seen=yes; \
464 local_target="$$target-am"; \
465 else \
466 local_target="$$target"; \
467 fi; \
468 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
469 || eval $$failcom; \
470 done; \
471 if test "$$dot_seen" = "no"; then \
472 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
473 fi; test -z "$$fail"
474
475$(RECURSIVE_CLEAN_TARGETS):
476 @fail= failcom='exit 1'; \
477 for f in x $$MAKEFLAGS; do \
478 case $$f in \
479 *=* | --[!k]*);; \
480 *k*) failcom='fail=yes';; \
481 esac; \
482 done; \
483 dot_seen=no; \
484 case "$@" in \
485 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
486 *) list='$(SUBDIRS)' ;; \
487 esac; \
488 rev=''; for subdir in $$list; do \
489 if test "$$subdir" = "."; then :; else \
490 rev="$$subdir $$rev"; \
491 fi; \
492 done; \
493 rev="$$rev ."; \
494 target=`echo $@ | sed s/-recursive//`; \
495 for subdir in $$rev; do \
496 echo "Making $$target in $$subdir"; \
497 if test "$$subdir" = "."; then \
498 local_target="$$target-am"; \
499 else \
500 local_target="$$target"; \
501 fi; \
502 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
503 || eval $$failcom; \
504 done && test -z "$$fail"
505tags-recursive:
506 list='$(SUBDIRS)'; for subdir in $$list; do \
507 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
508 done
509ctags-recursive:
510 list='$(SUBDIRS)'; for subdir in $$list; do \
511 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
512 done
513
514ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
515 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
516 unique=`for i in $$list; do \
517 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
518 done | \
519 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
520 END { if (nonempty) { for (i in files) print i; }; }'`; \
521 mkid -fID $$unique
522tags: TAGS
523
524TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
525 $(TAGS_FILES) $(LISP)
526 set x; \
527 here=`pwd`; \
528 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
529 include_option=--etags-include; \
530 empty_fix=.; \
531 else \
532 include_option=--include; \
533 empty_fix=; \
534 fi; \
535 list='$(SUBDIRS)'; for subdir in $$list; do \
536 if test "$$subdir" = .; then :; else \
537 test ! -f $$subdir/TAGS || \
538 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
539 fi; \
540 done; \
541 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
542 unique=`for i in $$list; do \
543 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
544 done | \
545 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
546 END { if (nonempty) { for (i in files) print i; }; }'`; \
547 shift; \
548 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
549 test -n "$$unique" || unique=$$empty_fix; \
550 if test $$# -gt 0; then \
551 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
552 "$$@" $$unique; \
553 else \
554 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
555 $$unique; \
556 fi; \
557 fi
558ctags: CTAGS
559CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
560 $(TAGS_FILES) $(LISP)
561 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
562 unique=`for i in $$list; do \
563 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
564 done | \
565 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
566 END { if (nonempty) { for (i in files) print i; }; }'`; \
567 test -z "$(CTAGS_ARGS)$$unique" \
568 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
569 $$unique
570
571GTAGS:
572 here=`$(am__cd) $(top_builddir) && pwd` \
573 && $(am__cd) $(top_srcdir) \
574 && gtags -i $(GTAGS_ARGS) "$$here"
575
576distclean-tags:
577 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
578
579distdir: $(DISTFILES)
580 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
581 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
582 list='$(DISTFILES)'; \
583 dist_files=`for file in $$list; do echo $$file; done | \
584 sed -e "s|^$$srcdirstrip/||;t" \
585 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
586 case $$dist_files in \
587 */*) $(MKDIR_P) `echo "$$dist_files" | \
588 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
589 sort -u` ;; \
590 esac; \
591 for file in $$dist_files; do \
592 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
593 if test -d $$d/$$file; then \
594 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
595 if test -d "$(distdir)/$$file"; then \
596 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
597 fi; \
598 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
599 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
600 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
601 fi; \
602 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
603 else \
604 test -f "$(distdir)/$$file" \
605 || cp -p $$d/$$file "$(distdir)/$$file" \
606 || exit 1; \
607 fi; \
608 done
609 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
610 if test "$$subdir" = .; then :; else \
611 test -d "$(distdir)/$$subdir" \
612 || $(MKDIR_P) "$(distdir)/$$subdir" \
613 || exit 1; \
614 fi; \
615 done
616 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
617 if test "$$subdir" = .; then :; else \
618 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
619 $(am__relativize); \
620 new_distdir=$$reldir; \
621 dir1=$$subdir; dir2="$(top_distdir)"; \
622 $(am__relativize); \
623 new_top_distdir=$$reldir; \
624 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
625 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
626 ($(am__cd) $$subdir && \
627 $(MAKE) $(AM_MAKEFLAGS) \
628 top_distdir="$$new_top_distdir" \
629 distdir="$$new_distdir" \
630 am__remove_distdir=: \
631 am__skip_length_check=: \
632 am__skip_mode_fix=: \
633 distdir) \
634 || exit 1; \
635 fi; \
636 done
637check-am: all-am
638check: check-recursive
639all-am: Makefile
640installdirs: installdirs-recursive
641installdirs-am:
642install: install-recursive
643install-exec: install-exec-recursive
644install-data: install-data-recursive
645uninstall: uninstall-recursive
646
647install-am: all-am
648 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
649
650installcheck: installcheck-recursive
651install-strip:
652 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
653 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
654 `test -z '$(STRIP)' || \
655 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
656mostlyclean-generic:
657
658clean-generic:
659
660distclean-generic:
661 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
662 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
663
664maintainer-clean-generic:
665 @echo "This command is intended for maintainers to use"
666 @echo "it deletes files that may require special tools to rebuild."
667 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
668clean: clean-recursive
669
670clean-am: clean-generic clean-libtool mostlyclean-am
671
672distclean: distclean-recursive
673 -rm -f Makefile
674distclean-am: clean-am distclean-generic distclean-tags
675
676dvi: dvi-recursive
677
678dvi-am:
679
680html: html-recursive
681
682html-am:
683
684info: info-recursive
685
686info-am:
687
688install-data-am:
689
690install-dvi: install-dvi-recursive
691
692install-dvi-am:
693
694install-exec-am:
695
696install-html: install-html-recursive
697
698install-html-am:
699
700install-info: install-info-recursive
701
702install-info-am:
703
704install-man:
705
706install-pdf: install-pdf-recursive
707
708install-pdf-am:
709
710install-ps: install-ps-recursive
711
712install-ps-am:
713
714installcheck-am:
715
716maintainer-clean: maintainer-clean-recursive
717 -rm -f Makefile
718maintainer-clean-am: distclean-am maintainer-clean-generic
719
720mostlyclean: mostlyclean-recursive
721
722mostlyclean-am: mostlyclean-generic mostlyclean-libtool
723
724pdf: pdf-recursive
725
726pdf-am:
727
728ps: ps-recursive
729
730ps-am:
731
732uninstall-am:
733
734.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
735 install-am install-strip tags-recursive
736
737.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
738 all all-am check check-am clean clean-generic clean-libtool \
739 ctags ctags-recursive distclean distclean-generic \
740 distclean-libtool distclean-tags distdir dvi dvi-am html \
741 html-am info info-am install install-am install-data \
742 install-data-am install-dvi install-dvi-am install-exec \
743 install-exec-am install-html install-html-am install-info \
744 install-info-am install-man install-pdf install-pdf-am \
745 install-ps install-ps-am install-strip installcheck \
746 installcheck-am installdirs installdirs-am maintainer-clean \
747 maintainer-clean-generic mostlyclean mostlyclean-generic \
748 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
749 uninstall uninstall-am
750
751
752# Tell versions [3.59,3.63) of GNU make to not export all variables.
753# Otherwise a system limit (for SysV at least) may be exceeded.
754.NOEXPORT:
diff --git a/libraries/evas/src/modules/loaders/TODO b/libraries/evas/src/modules/loaders/TODO
new file mode 100644
index 0000000..3b82543
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/TODO
@@ -0,0 +1,5 @@
1DONE -> bmp tga ico
2id3 gz bz2 <- extraction loaders
3lbm <- aaah amiga days
4ani <- why>
5
diff --git a/libraries/evas/src/modules/loaders/bmp/Makefile.am b/libraries/evas/src/modules/loaders/bmp/Makefile.am
new file mode 100644
index 0000000..857f3b9
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/bmp/Makefile.am
@@ -0,0 +1,33 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_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@WIN32_CPPFLAGS@
13
14if BUILD_LOADER_BMP
15if !EVAS_STATIC_BUILD_BMP
16
17pkgdir = $(libdir)/evas/modules/loaders/bmp/$(MODULE_ARCH)
18pkg_LTLIBRARIES = module.la
19
20module_la_SOURCES = evas_image_load_bmp.c
21
22module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
23module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
24module_la_LIBTOOLFLAGS = --tag=disable-static
25
26else
27
28noinst_LTLIBRARIES = libevas_loader_bmp.la
29libevas_loader_bmp_la_SOURCES = evas_image_load_bmp.c
30libevas_loader_bmp_la_LIBADD =
31
32endif
33endif
diff --git a/libraries/evas/src/modules/loaders/bmp/Makefile.in b/libraries/evas/src/modules/loaders/bmp/Makefile.in
new file mode 100644
index 0000000..f2c3e20
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/bmp/Makefile.in
@@ -0,0 +1,758 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/bmp
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_bmp_la_DEPENDENCIES =
83am__libevas_loader_bmp_la_SOURCES_DIST = evas_image_load_bmp.c
84@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_TRUE@am_libevas_loader_bmp_la_OBJECTS = evas_image_load_bmp.lo
85libevas_loader_bmp_la_OBJECTS = $(am_libevas_loader_bmp_la_OBJECTS)
86AM_V_lt = $(am__v_lt_$(V))
87am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88am__v_lt_0 = --silent
89@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_TRUE@am_libevas_loader_bmp_la_rpath =
90@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la
91am__module_la_SOURCES_DIST = evas_image_load_bmp.c
92@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_bmp.lo
93module_la_OBJECTS = $(am_module_la_OBJECTS)
94module_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_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@am_module_la_rpath = \
98@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@ -rpath \
99@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@ $(pkgdir)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_bmp_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_bmp_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184FGREP = @FGREP@
185FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
186FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
187FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
188FREETYPE_LIBS = @FREETYPE_LIBS@
189FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
190FRIBIDI_LIBS = @FRIBIDI_LIBS@
191GL_EET_CFLAGS = @GL_EET_CFLAGS@
192GL_EET_LIBS = @GL_EET_LIBS@
193GREP = @GREP@
194HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
195HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
196INSTALL = @INSTALL@
197INSTALL_DATA = @INSTALL_DATA@
198INSTALL_PROGRAM = @INSTALL_PROGRAM@
199INSTALL_SCRIPT = @INSTALL_SCRIPT@
200INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
201LD = @LD@
202LDFLAGS = @LDFLAGS@
203LIBOBJS = @LIBOBJS@
204LIBS = @LIBS@
205LIBTOOL = @LIBTOOL@
206LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
207LINEBREAK_LIBS = @LINEBREAK_LIBS@
208LIPO = @LIPO@
209LN_S = @LN_S@
210LTLIBOBJS = @LTLIBOBJS@
211MAKEINFO = @MAKEINFO@
212MKDIR_P = @MKDIR_P@
213MODULE_ARCH = @MODULE_ARCH@
214NM = @NM@
215NMEDIT = @NMEDIT@
216OBJC = @OBJC@
217OBJCDEPMODE = @OBJCDEPMODE@
218OBJCFLAGS = @OBJCFLAGS@
219OBJDUMP = @OBJDUMP@
220OBJEXT = @OBJEXT@
221OTOOL = @OTOOL@
222OTOOL64 = @OTOOL64@
223PACKAGE = @PACKAGE@
224PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225PACKAGE_NAME = @PACKAGE_NAME@
226PACKAGE_STRING = @PACKAGE_STRING@
227PACKAGE_TARNAME = @PACKAGE_TARNAME@
228PACKAGE_URL = @PACKAGE_URL@
229PACKAGE_VERSION = @PACKAGE_VERSION@
230PATH_SEPARATOR = @PATH_SEPARATOR@
231PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
232PIXMAN_LIBS = @PIXMAN_LIBS@
233PKG_CONFIG = @PKG_CONFIG@
234PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
235PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
236PNG_CFLAGS = @PNG_CFLAGS@
237PNG_LIBS = @PNG_LIBS@
238RANLIB = @RANLIB@
239SDL_CFLAGS = @SDL_CFLAGS@
240SDL_LIBS = @SDL_LIBS@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244SHM_OPEN_LINK = @SHM_OPEN_LINK@
245STRIP = @STRIP@
246SVG_CFLAGS = @SVG_CFLAGS@
247SVG_LIBS = @SVG_LIBS@
248VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
249VALGRIND_LIBS = @VALGRIND_LIBS@
250VERSION = @VERSION@
251VMAJ = @VMAJ@
252WIN32_CFLAGS = @WIN32_CFLAGS@
253WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
254XCB_CFLAGS = @XCB_CFLAGS@
255XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
256XCB_GL_LIBS = @XCB_GL_LIBS@
257XCB_LIBS = @XCB_LIBS@
258XEXT_CFLAGS = @XEXT_CFLAGS@
259XEXT_LIBS = @XEXT_LIBS@
260XMKMF = @XMKMF@
261X_CFLAGS = @X_CFLAGS@
262X_EXTRA_LIBS = @X_EXTRA_LIBS@
263X_LIBS = @X_LIBS@
264X_PRE_LIBS = @X_PRE_LIBS@
265abs_builddir = @abs_builddir@
266abs_srcdir = @abs_srcdir@
267abs_top_builddir = @abs_top_builddir@
268abs_top_srcdir = @abs_top_srcdir@
269ac_ct_CC = @ac_ct_CC@
270ac_ct_CXX = @ac_ct_CXX@
271ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272ac_ct_OBJC = @ac_ct_OBJC@
273altivec_cflags = @altivec_cflags@
274am__include = @am__include@
275am__leading_dot = @am__leading_dot@
276am__quote = @am__quote@
277am__tar = @am__tar@
278am__untar = @am__untar@
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
285builddir = @builddir@
286datadir = @datadir@
287datarootdir = @datarootdir@
288dlopen_libs = @dlopen_libs@
289docdir = @docdir@
290dvidir = @dvidir@
291edje_cc = @edje_cc@
292efl_doxygen = @efl_doxygen@
293efl_have_doxygen = @efl_have_doxygen@
294evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
295evas_engine_buffer_libs = @evas_engine_buffer_libs@
296evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
297evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
298evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
299evas_engine_directfb_libs = @evas_engine_directfb_libs@
300evas_engine_fb_cflags = @evas_engine_fb_cflags@
301evas_engine_fb_libs = @evas_engine_fb_libs@
302evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
303evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
304evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
305evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
306evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
307evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
308evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
309evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
310evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
311evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
312evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
313evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
314evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
315evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
316evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
317evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
318evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
319evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
320evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
321evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
322evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
323evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
324evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
325evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
326evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
327evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
328evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
334evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
335evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
336evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
337evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
338evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
339evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
340evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
341evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
342evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
343evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
344evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
345evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
346evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
347evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
348evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
349evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
350evas_image_loader_png_libs = @evas_image_loader_png_libs@
351evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
352evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
353evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
354evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
355evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
356evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
357evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
358evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
359evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
360evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
361evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
362evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
363exec_prefix = @exec_prefix@
364have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
365have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
366have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
367have_evas_engine_software_x11 = @have_evas_engine_software_x11@
368have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
369have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
370have_lcov = @have_lcov@
371host = @host@
372host_alias = @host_alias@
373host_cpu = @host_cpu@
374host_os = @host_os@
375host_vendor = @host_vendor@
376htmldir = @htmldir@
377includedir = @includedir@
378infodir = @infodir@
379install_sh = @install_sh@
380libdir = @libdir@
381libexecdir = @libexecdir@
382localedir = @localedir@
383localstatedir = @localstatedir@
384lt_ECHO = @lt_ECHO@
385lt_enable_auto_import = @lt_enable_auto_import@
386mandir = @mandir@
387mkdir_p = @mkdir_p@
388oldincludedir = @oldincludedir@
389pdfdir = @pdfdir@
390pkgconfig_requires_private = @pkgconfig_requires_private@
391prefix = @prefix@
392program_transform_name = @program_transform_name@
393psdir = @psdir@
394pthread_cflags = @pthread_cflags@
395pthread_libs = @pthread_libs@
396release_info = @release_info@
397requirement_evas = @requirement_evas@
398sbindir = @sbindir@
399sharedstatedir = @sharedstatedir@
400srcdir = @srcdir@
401sysconfdir = @sysconfdir@
402target_alias = @target_alias@
403top_build_prefix = @top_build_prefix@
404top_builddir = @top_builddir@
405top_srcdir = @top_srcdir@
406version_info = @version_info@
407MAINTAINERCLEANFILES = Makefile.in
408AM_CPPFLAGS = \
409-I. \
410-I$(top_srcdir)/src/lib \
411-I$(top_srcdir)/src/lib/include \
412@FREETYPE_CFLAGS@ \
413@PIXMAN_CFLAGS@ \
414@EINA_CFLAGS@ \
415@EVIL_CFLAGS@ \
416@WIN32_CPPFLAGS@
417
418@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@pkgdir = $(libdir)/evas/modules/loaders/bmp/$(MODULE_ARCH)
419@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@pkg_LTLIBRARIES = module.la
420@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@module_la_SOURCES = evas_image_load_bmp.c
421@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
422@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
423@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
424@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_TRUE@noinst_LTLIBRARIES = libevas_loader_bmp.la
425@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_TRUE@libevas_loader_bmp_la_SOURCES = evas_image_load_bmp.c
426@BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_TRUE@libevas_loader_bmp_la_LIBADD =
427all: all-am
428
429.SUFFIXES:
430.SUFFIXES: .c .lo .o .obj
431$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
432 @for dep in $?; do \
433 case '$(am__configure_deps)' in \
434 *$$dep*) \
435 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
436 && { if test -f $@; then exit 0; else break; fi; }; \
437 exit 1;; \
438 esac; \
439 done; \
440 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/bmp/Makefile'; \
441 $(am__cd) $(top_srcdir) && \
442 $(AUTOMAKE) --gnu src/modules/loaders/bmp/Makefile
443.PRECIOUS: Makefile
444Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
445 @case '$?' in \
446 *config.status*) \
447 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
448 *) \
449 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
450 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
451 esac;
452
453$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
454 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
455
456$(top_srcdir)/configure: $(am__configure_deps)
457 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
458$(ACLOCAL_M4): $(am__aclocal_m4_deps)
459 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
460$(am__aclocal_m4_deps):
461
462clean-noinstLTLIBRARIES:
463 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
464 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
465 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
466 test "$$dir" != "$$p" || dir=.; \
467 echo "rm -f \"$${dir}/so_locations\""; \
468 rm -f "$${dir}/so_locations"; \
469 done
470install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
471 @$(NORMAL_INSTALL)
472 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
473 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
474 list2=; for p in $$list; do \
475 if test -f $$p; then \
476 list2="$$list2 $$p"; \
477 else :; fi; \
478 done; \
479 test -z "$$list2" || { \
480 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
481 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
482 }
483
484uninstall-pkgLTLIBRARIES:
485 @$(NORMAL_UNINSTALL)
486 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
487 for p in $$list; do \
488 $(am__strip_dir) \
489 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
490 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
491 done
492
493clean-pkgLTLIBRARIES:
494 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
495 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
496 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
497 test "$$dir" != "$$p" || dir=.; \
498 echo "rm -f \"$${dir}/so_locations\""; \
499 rm -f "$${dir}/so_locations"; \
500 done
501libevas_loader_bmp.la: $(libevas_loader_bmp_la_OBJECTS) $(libevas_loader_bmp_la_DEPENDENCIES)
502 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_bmp_la_rpath) $(libevas_loader_bmp_la_OBJECTS) $(libevas_loader_bmp_la_LIBADD) $(LIBS)
503module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
504 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
505
506mostlyclean-compile:
507 -rm -f *.$(OBJEXT)
508
509distclean-compile:
510 -rm -f *.tab.c
511
512@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_bmp.Plo@am__quote@
513@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_bmp.Plo@am__quote@
514
515.c.o:
516@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
517@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
518@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
519@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
520@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
521@am__fastdepCC_FALSE@ $(COMPILE) -c $<
522
523.c.obj:
524@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
525@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
526@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
527@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
528@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
529@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
530
531.c.lo:
532@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
533@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
534@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
535@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
536@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
537@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
538
539module_la-evas_image_load_bmp.lo: evas_image_load_bmp.c
540@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_bmp.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_bmp.Tpo -c -o module_la-evas_image_load_bmp.lo `test -f 'evas_image_load_bmp.c' || echo '$(srcdir)/'`evas_image_load_bmp.c
541@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_bmp.Tpo $(DEPDIR)/module_la-evas_image_load_bmp.Plo
542@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
543@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_bmp.c' object='module_la-evas_image_load_bmp.lo' libtool=yes @AMDEPBACKSLASH@
544@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
545@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_bmp.lo `test -f 'evas_image_load_bmp.c' || echo '$(srcdir)/'`evas_image_load_bmp.c
546
547mostlyclean-libtool:
548 -rm -f *.lo
549
550clean-libtool:
551 -rm -rf .libs _libs
552
553ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
554 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
555 unique=`for i in $$list; do \
556 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
557 done | \
558 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
559 END { if (nonempty) { for (i in files) print i; }; }'`; \
560 mkid -fID $$unique
561tags: TAGS
562
563TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
564 $(TAGS_FILES) $(LISP)
565 set x; \
566 here=`pwd`; \
567 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
568 unique=`for i in $$list; do \
569 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
570 done | \
571 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
572 END { if (nonempty) { for (i in files) print i; }; }'`; \
573 shift; \
574 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
575 test -n "$$unique" || unique=$$empty_fix; \
576 if test $$# -gt 0; then \
577 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
578 "$$@" $$unique; \
579 else \
580 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
581 $$unique; \
582 fi; \
583 fi
584ctags: CTAGS
585CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
586 $(TAGS_FILES) $(LISP)
587 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
588 unique=`for i in $$list; do \
589 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
590 done | \
591 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
592 END { if (nonempty) { for (i in files) print i; }; }'`; \
593 test -z "$(CTAGS_ARGS)$$unique" \
594 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
595 $$unique
596
597GTAGS:
598 here=`$(am__cd) $(top_builddir) && pwd` \
599 && $(am__cd) $(top_srcdir) \
600 && gtags -i $(GTAGS_ARGS) "$$here"
601
602distclean-tags:
603 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
604
605distdir: $(DISTFILES)
606 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
607 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
608 list='$(DISTFILES)'; \
609 dist_files=`for file in $$list; do echo $$file; done | \
610 sed -e "s|^$$srcdirstrip/||;t" \
611 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
612 case $$dist_files in \
613 */*) $(MKDIR_P) `echo "$$dist_files" | \
614 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
615 sort -u` ;; \
616 esac; \
617 for file in $$dist_files; do \
618 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
619 if test -d $$d/$$file; then \
620 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
621 if test -d "$(distdir)/$$file"; then \
622 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
623 fi; \
624 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
625 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
626 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
627 fi; \
628 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
629 else \
630 test -f "$(distdir)/$$file" \
631 || cp -p $$d/$$file "$(distdir)/$$file" \
632 || exit 1; \
633 fi; \
634 done
635check-am: all-am
636check: check-am
637all-am: Makefile $(LTLIBRARIES)
638installdirs:
639 for dir in "$(DESTDIR)$(pkgdir)"; do \
640 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
641 done
642install: install-am
643install-exec: install-exec-am
644install-data: install-data-am
645uninstall: uninstall-am
646
647install-am: all-am
648 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
649
650installcheck: installcheck-am
651install-strip:
652 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
653 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
654 `test -z '$(STRIP)' || \
655 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
656mostlyclean-generic:
657
658clean-generic:
659
660distclean-generic:
661 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
662 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
663
664maintainer-clean-generic:
665 @echo "This command is intended for maintainers to use"
666 @echo "it deletes files that may require special tools to rebuild."
667 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
668clean: clean-am
669
670clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
671 clean-pkgLTLIBRARIES mostlyclean-am
672
673distclean: distclean-am
674 -rm -rf ./$(DEPDIR)
675 -rm -f Makefile
676distclean-am: clean-am distclean-compile distclean-generic \
677 distclean-tags
678
679dvi: dvi-am
680
681dvi-am:
682
683html: html-am
684
685html-am:
686
687info: info-am
688
689info-am:
690
691install-data-am: install-pkgLTLIBRARIES
692
693install-dvi: install-dvi-am
694
695install-dvi-am:
696
697install-exec-am:
698
699install-html: install-html-am
700
701install-html-am:
702
703install-info: install-info-am
704
705install-info-am:
706
707install-man:
708
709install-pdf: install-pdf-am
710
711install-pdf-am:
712
713install-ps: install-ps-am
714
715install-ps-am:
716
717installcheck-am:
718
719maintainer-clean: maintainer-clean-am
720 -rm -rf ./$(DEPDIR)
721 -rm -f Makefile
722maintainer-clean-am: distclean-am maintainer-clean-generic
723
724mostlyclean: mostlyclean-am
725
726mostlyclean-am: mostlyclean-compile mostlyclean-generic \
727 mostlyclean-libtool
728
729pdf: pdf-am
730
731pdf-am:
732
733ps: ps-am
734
735ps-am:
736
737uninstall-am: uninstall-pkgLTLIBRARIES
738
739.MAKE: install-am install-strip
740
741.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
742 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
743 ctags distclean distclean-compile distclean-generic \
744 distclean-libtool distclean-tags distdir dvi dvi-am html \
745 html-am info info-am install install-am install-data \
746 install-data-am install-dvi install-dvi-am install-exec \
747 install-exec-am install-html install-html-am install-info \
748 install-info-am install-man install-pdf install-pdf-am \
749 install-pkgLTLIBRARIES install-ps install-ps-am install-strip \
750 installcheck installcheck-am installdirs maintainer-clean \
751 maintainer-clean-generic mostlyclean mostlyclean-compile \
752 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
753 tags uninstall uninstall-am uninstall-pkgLTLIBRARIES
754
755
756# Tell versions [3.59,3.63) of GNU make to not export all variables.
757# Otherwise a system limit (for SysV at least) may be exceeded.
758.NOEXPORT:
diff --git a/libraries/evas/src/modules/loaders/bmp/evas_image_load_bmp.c b/libraries/evas/src/modules/loaders/bmp/evas_image_load_bmp.c
new file mode 100644
index 0000000..38e3680
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/bmp/evas_image_load_bmp.c
@@ -0,0 +1,1451 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#include <stdio.h>
6
7#ifdef HAVE_EVIL
8# include <Evil.h>
9#endif
10
11#include <math.h>
12
13#include "evas_common.h"
14#include "evas_private.h"
15
16static Eina_Bool evas_image_load_file_head_bmp(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
17static Eina_Bool evas_image_load_file_data_bmp(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
18
19static Evas_Image_Load_Func evas_image_load_bmp_func =
20{
21 EINA_TRUE,
22 evas_image_load_file_head_bmp,
23 evas_image_load_file_data_bmp,
24 NULL
25};
26
27static int
28read_short(FILE *file, short *ret)
29{
30 unsigned char b[2];
31 if (fread(b, sizeof(unsigned char), 2, file) != 2) return 0;
32 *ret = (b[1] << 8) | b[0];
33 return 1;
34}
35
36static int
37read_ushort(FILE *file, unsigned short *ret)
38{
39 unsigned char b[2];
40 if (fread(b, sizeof(unsigned char), 2, file) != 2) return 0;
41 *ret = (b[1] << 8) | b[0];
42 return 1;
43}
44
45static int
46read_int(FILE *file, int *ret)
47{
48 unsigned char b[4];
49 if (fread(b, sizeof(unsigned char), 4, file) != 4) return 0;
50 *ret = ARGB_JOIN(b[3], b[2], b[1], b[0]);
51 return 1;
52}
53
54static int
55read_uint(FILE *file, unsigned int *ret)
56{
57 unsigned char b[4];
58 if (fread(b, sizeof(unsigned char), 4, file) != 4) return 0;
59 *ret = ARGB_JOIN(b[3], b[2], b[1], b[0]);
60 return 1;
61}
62
63static Eina_Bool
64evas_image_load_file_head_bmp(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
65{
66 FILE *f;
67 char buf[4096];
68 char hasa = 0;
69 int w = 0, h = 0, planes = 0, bit_count = 0,
70 image_size = 0, comp = 0, hdpi = 0, vdpi = 0,
71 palette_size = -1, important_colors = 0;
72 unsigned int offset, head_size, rmask = 0, gmask = 0, bmask = 0, amask = 0;
73 unsigned int pal_num = 0;
74 int right_way_up = 0;
75 int fsize = 0;
76 unsigned int bmpsize;
77 unsigned short res1, res2;
78
79 f = fopen(file, "rb");
80 if (!f)
81 {
82 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
83 return EINA_FALSE;
84 }
85
86 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
87 fseek(f, 0, SEEK_END);
88 fsize = ftell(f);
89 fseek(f, 0, SEEK_SET);
90 if (fsize < 2) goto close_file;
91
92 if (fread(buf, 2, 1, f) != 1) goto close_file;
93 if (strncmp(buf, "BM", 2)) goto close_file; // magic number
94 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
95 if (!read_uint(f, &bmpsize)) goto close_file;
96 if (!read_ushort(f, &res1)) goto close_file;
97 if (!read_ushort(f, &res2)) goto close_file;
98 if (!read_uint(f, &offset)) goto close_file;
99 if (!read_uint(f, &head_size)) goto close_file;
100 if (head_size == 12) // OS/2 V1 + Windows 3.0
101 {
102 short tmp;
103
104 if (!read_short(f, &tmp)) goto close_file;
105 w = tmp; // width
106 if (!read_short(f, &tmp)) goto close_file;
107 h = tmp; // height
108 if (!read_short(f, &tmp)) goto close_file;
109 planes = tmp; // must be 1
110 if (!read_short(f, &tmp)) goto close_file;
111 bit_count = tmp; // bits per pixel: 1, 4, 8 & 24
112 }
113 else if (head_size == 64) // OS/2 V2
114 {
115 short tmp;
116 int tmp2;
117
118 if (!read_int(f, &tmp2)) goto close_file;
119 w = tmp2; // width
120 if (!read_int(f, &tmp2)) goto close_file;
121 h = tmp2; // height
122 if (!read_short(f, &tmp)) goto close_file;
123 planes = tmp; // must be 1
124 if (!read_short(f, &tmp)) goto close_file;
125 bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32
126 if (!read_int(f, &tmp2)) goto close_file;
127 comp = tmp2; // compression method
128 if (!read_int(f, &tmp2)) goto close_file;
129 image_size = tmp2; // bitmap data size
130 if (!read_int(f, &tmp2)) goto close_file;
131 hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter
132 if (!read_int(f, &tmp2)) goto close_file;
133 vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter
134 if (!read_int(f, &tmp2)) goto close_file;
135 palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8)
136 if (!read_int(f, &tmp2)) goto close_file;
137 important_colors = tmp2; // number of important colors - 0 if all
138 if (fread(buf, 24, 1, f) != 1) goto close_file; // skip unused header
139 if (image_size == 0) image_size = fsize - offset;
140 }
141 else if (head_size == 40) // Windows 3.0 + (v3)
142 {
143 short tmp;
144 int tmp2;
145
146 if (!read_int(f, &tmp2)) goto close_file;
147 w = tmp2; // width
148 if (!read_int(f, &tmp2)) goto close_file;
149 h = tmp2; // height
150 if (!read_short(f, &tmp)) goto close_file;
151 planes = tmp; // must be 1
152 if (!read_short(f, &tmp)) goto close_file;
153 bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32
154 if (!read_int(f, &tmp2)) goto close_file;
155 comp = tmp2; // compression method
156 if (!read_int(f, &tmp2)) goto close_file;
157 image_size = tmp2; // bitmap data size
158 if (!read_int(f, &tmp2)) goto close_file;
159 hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter
160 if (!read_int(f, &tmp2)) goto close_file;
161 vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter
162 if (!read_int(f, &tmp2)) goto close_file;
163 palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8)
164 if (!read_int(f, &tmp2)) goto close_file;
165 important_colors = tmp2; // number of important colors - 0 if all
166 if (image_size == 0) image_size = fsize - offset;
167 if ((comp == 0) && (bit_count == 32)) hasa = 1; // GIMP seems to store it this way
168 }
169 else if (head_size == 108) // Windows 95/NT4 + (v4)
170 {
171 short tmp;
172 int tmp2;
173
174 if (!read_int(f, &tmp2)) goto close_file;
175 w = tmp2; // width
176 if (!read_int(f, &tmp2)) goto close_file;
177 h = tmp2; // height
178 if (!read_short(f, &tmp)) goto close_file;
179 planes = tmp; // must be 1
180 if (!read_short(f, &tmp)) goto close_file;
181 bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32
182 if (!read_int(f, &tmp2)) goto close_file;
183 comp = tmp2; // compression method
184 if (!read_int(f, &tmp2)) goto close_file;
185 image_size = tmp2; // bitmap data size
186 if (!read_int(f, &tmp2)) goto close_file;
187 hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter
188 if (!read_int(f, &tmp2)) goto close_file;
189 vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter
190 if (!read_int(f, &tmp2)) goto close_file;
191 palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8)
192 if (!read_int(f, &tmp2)) goto close_file;
193 important_colors = tmp2; // number of important colors - 0 if all
194 if (!read_int(f, &tmp2)) goto close_file;
195 rmask = tmp2; // red mask
196 if (!read_int(f, &tmp2)) goto close_file;
197 gmask = tmp2; // green mask
198 if (!read_int(f, &tmp2)) goto close_file;
199 bmask = tmp2; // blue mask
200 if (!read_int(f, &tmp2)) goto close_file;
201 amask = tmp2; // alpha mask
202 if (fread(buf, 36, 1, f) != 1) goto close_file; // skip unused cie
203 if (fread(buf, 12, 1, f) != 1) goto close_file; // skip unused gamma
204 if (image_size == 0) image_size = fsize - offset;
205 if ((amask) && (bit_count == 32)) hasa = 1;
206 }
207 else if (head_size == 124) // Windows 98/2000 + (v5)
208 {
209 short tmp;
210 int tmp2;
211
212 if (!read_int(f, &tmp2)) goto close_file;
213 w = tmp2; // width
214 if (!read_int(f, &tmp2)) goto close_file;
215 h = tmp2; // height
216 if (!read_short(f, &tmp)) goto close_file;
217 planes = tmp; // must be 1
218 if (!read_short(f, &tmp)) goto close_file;
219 bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32
220 if (!read_int(f, &tmp2)) goto close_file;
221 comp = tmp2; // compression method
222 if (!read_int(f, &tmp2)) goto close_file;
223 image_size = tmp2; // bitmap data size
224 if (!read_int(f, &tmp2)) goto close_file;
225 hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter
226 if (!read_int(f, &tmp2)) goto close_file;
227 vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter
228 if (!read_int(f, &tmp2)) goto close_file;
229 palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8)
230 if (!read_int(f, &tmp2)) goto close_file;
231 important_colors = tmp2; // number of important colors - 0 if all
232 if (!read_int(f, &tmp2)) goto close_file;
233 rmask = tmp2; // red mask
234 if (!read_int(f, &tmp2)) goto close_file;
235 gmask = tmp2; // green mask
236 if (!read_int(f, &tmp2)) goto close_file;
237 bmask = tmp2; // blue mask
238 if (!read_int(f, &tmp2)) goto close_file;
239 amask = tmp2; // alpha mask
240 if (fread(buf, 36, 1, f) != 1) goto close_file; // skip unused cie
241 if (fread(buf, 12, 1, f) != 1) goto close_file; // skip unused gamma
242 if (fread(buf, 16, 1, f) != 1) goto close_file; // skip others
243 if (image_size == 0) image_size = fsize - offset;
244 if ((amask) && (bit_count == 32)) hasa = 1;
245 }
246 else
247 goto close_file;
248
249 if (h < 0)
250 {
251 h = -h;
252 right_way_up = 1;
253 }
254
255 if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) ||
256 IMG_TOO_BIG(w, h))
257 {
258 if (IMG_TOO_BIG(w, h))
259 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
260 else
261 *error = EVAS_LOAD_ERROR_GENERIC;
262 goto close_file;
263 }
264 /* It is not bad idea that bmp loader support scale down decoding
265 * because of memory issue in mobile world.*/
266 if (ie->load_opts.scale_down_by > 1)
267 {
268 w /= ie->load_opts.scale_down_by;
269 h /= ie->load_opts.scale_down_by;
270 }
271
272 if (bit_count < 16)
273 {
274 if ((palette_size < 0) || (palette_size > 256)) pal_num = 256;
275 else pal_num = palette_size;
276 if (bit_count == 1)
277 {
278 if (comp == 0) // no compression
279 {
280 }
281 else
282 goto close_file;
283 }
284 else if (bit_count == 4)
285 {
286 if (comp == 0) // no compression
287 {
288 }
289 else if (comp == 2) // rle 4bit/pixel
290 {
291 }
292 else
293 goto close_file;
294 }
295 else if (bit_count == 8)
296 {
297 if (comp == 0) // no compression
298 {
299 }
300 else if (comp == 1) // rle 8bit/pixel
301 {
302 }
303 else
304 goto close_file;
305 }
306 }
307 else if ((bit_count == 16) || (bit_count == 24) || (bit_count == 32))
308 {
309 if (comp == 0) // no compression
310 {
311 // handled
312 }
313 else if (comp == 3) // bit field
314 {
315 // handled
316 }
317 else if (comp == 4) // jpeg - only printer drivers
318 goto close_file;
319 else if (comp == 3) // png - only printer drivers
320 goto close_file;
321 else
322 goto close_file;
323 }
324 else
325 goto close_file;
326
327 ie->w = w;
328 ie->h = h;
329 if (hasa) ie->flags.alpha = 1;
330
331 fclose(f);
332 *error = EVAS_LOAD_ERROR_NONE;
333 return EINA_TRUE;
334
335 close_file:
336 fclose(f);
337 return EINA_FALSE;
338}
339
340static Eina_Bool
341evas_image_load_file_data_bmp(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
342{
343 FILE *f;
344 char buf[4096];
345 unsigned char *buffer = NULL, *buffer_end = NULL, *p;
346 char hasa = 0;
347 int x = 0, y = 0, w = 0, h = 0, planes = 0, bit_count = 0, image_size = 0,
348 comp = 0, hdpi = 0, vdpi = 0, palette_size = -1, important_colors = 0;
349 unsigned int offset = 0, head_size = 0;
350 unsigned int *pal = NULL, pal_num = 0, *pix = NULL, *surface = NULL, fix,
351 rmask = 0, gmask = 0, bmask = 0, amask = 0;
352 int right_way_up = 0;
353 unsigned char r, g, b, a;
354 int fsize = 0;
355 unsigned int bmpsize;
356 unsigned short res1, res2;
357
358 /* for scale decoding */
359 unsigned int *scale_surface = NULL, *scale_pix = NULL;
360 int scale_ratio = 1, image_w = 0, image_h = 0;
361 int row_size = 0; /* Row size is rounded up to a multiple of 4bytes */
362 int read_line = 0; /* total read line */
363
364
365 f = fopen(file, "rb");
366 if (!f)
367 {
368 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
369 return EINA_FALSE;
370 }
371
372 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
373 fseek(f, 0, SEEK_END);
374 fsize = ftell(f);
375 fseek(f, 0, SEEK_SET);
376 if (fsize < 2) goto close_file;
377
378 if (fread(buf, 2, 1, f) != 1) goto close_file;
379 if (strncmp(buf, "BM", 2)) goto close_file; // magic number
380 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
381 if (!read_uint(f, &bmpsize)) goto close_file;
382 if (!read_ushort(f, &res1)) goto close_file;
383 if (!read_ushort(f, &res2)) goto close_file;
384 if (!read_uint(f, &offset)) goto close_file;
385 if (!read_uint(f, &head_size)) goto close_file;
386 image_size = fsize - offset;
387 if (image_size < 1) goto close_file;
388
389 if (head_size == 12) // OS/2 V1 + Windows 3.0
390 {
391 short tmp;
392
393 if (!read_short(f, &tmp)) goto close_file;
394 w = tmp; // width
395 if (!read_short(f, &tmp)) goto close_file;
396 h = tmp; // height
397 if (!read_short(f, &tmp)) goto close_file;
398 planes = tmp; // must be 1
399 if (!read_short(f, &tmp)) goto close_file;
400 bit_count = tmp; // bits per pixel: 1, 4, 8 & 24
401 }
402 else if (head_size == 64) // OS/2 V2
403 {
404 short tmp;
405 int tmp2;
406
407 if (!read_int(f, &tmp2)) goto close_file;
408 w = tmp2; // width
409 if (!read_int(f, &tmp2)) goto close_file;
410 h = tmp2; // height
411 if (!read_short(f, &tmp)) goto close_file;
412 planes = tmp; // must be 1
413 if (!read_short(f, &tmp)) goto close_file;
414 bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32
415 if (!read_int(f, &tmp2)) goto close_file;
416 comp = tmp2; // compression method
417 if (!read_int(f, &tmp2)) goto close_file;
418 image_size = tmp2; // bitmap data size
419 if (!read_int(f, &tmp2)) goto close_file;
420 hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter
421 if (!read_int(f, &tmp2)) goto close_file;
422 vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter
423 if (!read_int(f, &tmp2)) goto close_file;
424 palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8)
425 if (!read_int(f, &tmp2)) goto close_file;
426 important_colors = tmp2; // number of important colors - 0 if all
427 if (fread(buf, 24, 1, f) != 1) goto close_file; // skip unused header
428 if (image_size == 0) image_size = fsize - offset;
429 }
430 else if (head_size == 40) // Windows 3.0 + (v3)
431 {
432 short tmp;
433 int tmp2;
434
435 if (!read_int(f, &tmp2)) goto close_file;
436 w = tmp2; // width
437 if (!read_int(f, &tmp2)) goto close_file;
438 h = tmp2; // height
439 if (!read_short(f, &tmp)) goto close_file;
440 planes = tmp; // must be 1
441 if (!read_short(f, &tmp)) goto close_file;
442 bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32
443 if (!read_int(f, &tmp2)) goto close_file;
444 comp = tmp2; // compression method
445 if (!read_int(f, &tmp2)) goto close_file;
446 image_size = tmp2; // bitmap data size
447 if (!read_int(f, &tmp2)) goto close_file;
448 hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter
449 if (!read_int(f, &tmp2)) goto close_file;
450 vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter
451 if (!read_int(f, &tmp2)) goto close_file;
452 palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8)
453 if (!read_int(f, &tmp2)) goto close_file;
454 important_colors = tmp2; // number of important colors - 0 if all
455 if (image_size == 0) image_size = fsize - offset;
456 if ((comp == 0) && (bit_count == 32)) hasa = 1; // GIMP seems to store it this way
457 }
458 else if (head_size == 108) // Windows 95/NT4 + (v4)
459 {
460 short tmp;
461 int tmp2;
462
463 if (!read_int(f, &tmp2)) goto close_file;
464 w = tmp2; // width
465 if (!read_int(f, &tmp2)) goto close_file;
466 h = tmp2; // height
467 if (!read_short(f, &tmp)) goto close_file;
468 planes = tmp; // must be 1
469 if (!read_short(f, &tmp)) goto close_file;
470 bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32
471 if (!read_int(f, &tmp2)) goto close_file;
472 comp = tmp2; // compression method
473 if (!read_int(f, &tmp2)) goto close_file;
474 image_size = tmp2; // bitmap data size
475 if (!read_int(f, &tmp2)) goto close_file;
476 hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter
477 if (!read_int(f, &tmp2)) goto close_file;
478 vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter
479 if (!read_int(f, &tmp2)) goto close_file;
480 palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8)
481 if (!read_int(f, &tmp2)) goto close_file;
482 important_colors = tmp2; // number of important colors - 0 if all
483 if (!read_int(f, &tmp2)) goto close_file;
484 rmask = tmp2; // red mask
485 if (!read_int(f, &tmp2)) goto close_file;
486 gmask = tmp2; // green mask
487 if (!read_int(f, &tmp2)) goto close_file;
488 bmask = tmp2; // blue mask
489 if (!read_int(f, &tmp2)) goto close_file;
490 amask = tmp2; // alpha mask
491 if (fread(buf, 36, 1, f) != 1) goto close_file; // skip unused cie
492 if (fread(buf, 12, 1, f) != 1) goto close_file; // skip unused gamma
493 if (image_size == 0) image_size = fsize - offset;
494 if ((amask) && (bit_count == 32)) hasa = 1;
495 }
496 else if (head_size == 124) // Windows 98/2000 + (v5)
497 {
498 short tmp;
499 int tmp2;
500
501 if (!read_int(f, &tmp2)) goto close_file;
502 w = tmp2; // width
503 if (!read_int(f, &tmp2)) goto close_file;
504 h = tmp2; // height
505 if (!read_short(f, &tmp)) goto close_file;
506 planes = tmp; // must be 1
507 if (!read_short(f, &tmp)) goto close_file;
508 bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32
509 if (!read_int(f, &tmp2)) goto close_file;
510 comp = tmp2; // compression method
511 if (!read_int(f, &tmp2)) goto close_file;
512 image_size = tmp2; // bitmap data size
513 if (!read_int(f, &tmp2)) goto close_file;
514 hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter
515 if (!read_int(f, &tmp2)) goto close_file;
516 vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter
517 if (!read_int(f, &tmp2)) goto close_file;
518 palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8)
519 if (!read_int(f, &tmp2)) goto close_file;
520 important_colors = tmp2; // number of important colors - 0 if all
521 if (!read_int(f, &tmp2)) goto close_file;
522 rmask = tmp2; // red mask
523 if (!read_int(f, &tmp2)) goto close_file;
524 gmask = tmp2; // green mask
525 if (!read_int(f, &tmp2)) goto close_file;
526 bmask = tmp2; // blue mask
527 if (!read_int(f, &tmp2)) goto close_file;
528 amask = tmp2; // alpha mask
529 if (fread(buf, 36, 1, f) != 1) goto close_file; // skip unused cie
530 if (fread(buf, 12, 1, f) != 1) goto close_file; // skip unused gamma
531 if (fread(buf, 16, 1, f) != 1) goto close_file; // skip others
532 if (image_size == 0) image_size = fsize - offset;
533 if ((amask) && (bit_count == 32)) hasa = 1;
534 }
535 else
536 goto close_file;
537
538 if (h < 0)
539 {
540 h = -h;
541 right_way_up = 1;
542 }
543 if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) ||
544 IMG_TOO_BIG(w, h))
545 {
546 if (IMG_TOO_BIG(w, h))
547 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
548 else
549 *error = EVAS_LOAD_ERROR_GENERIC;
550 goto close_file;
551 }
552 /* It is not bad idea that bmp loader support scale down decoding
553 * because of memory issue in mobile world. */
554 if (ie->load_opts.scale_down_by > 1)
555 scale_ratio = ie->load_opts.scale_down_by;
556 image_w = w;
557 image_h = h;
558
559 if (scale_ratio > 1)
560 {
561 w /= scale_ratio;
562 h /= scale_ratio;
563
564 if ((w < 1) || (h < 1) )
565 {
566 *error = EVAS_LOAD_ERROR_GENERIC;
567 goto close_file;
568 }
569 }
570
571 if ((w != (int)ie->w) || (h != (int)ie->h))
572 {
573 *error = EVAS_LOAD_ERROR_GENERIC;
574 goto close_file;
575 }
576 evas_cache_image_surface_alloc(ie, ie->w, ie->h);
577 surface = evas_cache_image_pixels(ie);
578 if (!surface)
579 {
580 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
581 goto close_file;
582 }
583
584 row_size = ceil((double)(image_w * bit_count) / 32) * 4;
585
586 if (bit_count < 16)
587 {
588 unsigned int i;
589
590 if (bit_count == 1)
591 {
592 if ((palette_size <= 0) || (palette_size > 2)) pal_num = 2;
593 else pal_num = palette_size;
594 }
595 else if (bit_count == 4)
596 {
597 if ((palette_size <= 0) || (palette_size > 16)) pal_num = 16;
598 else pal_num = palette_size;
599 }
600 else if (bit_count == 8)
601 {
602 if ((palette_size <= 0) || (palette_size > 256)) pal_num = 256;
603 else pal_num = palette_size;
604 }
605 pal = alloca(256 * 4);
606 for (i = 0; i < pal_num; i++)
607 {
608 if (fread(&b, 1, 1, f) != 1) goto close_file;
609 if (fread(&g, 1, 1, f) != 1) goto close_file;
610 if (fread(&r, 1, 1, f) != 1) goto close_file;
611 if ((head_size != 12) /*&& (palette_size != 0)*/)
612 { // OS/2 V1 doesn't do the pad byte
613 if (fread(&a, 1, 1, f) != 1) goto close_file;
614 }
615 a = 0xff; // fillin a as solid for paletted images
616 pal[i] = ARGB_JOIN(a, r, g, b);
617 }
618 fseek(f, offset, SEEK_SET);
619
620 if ((scale_ratio == 1) || (comp !=0))
621 buffer = malloc(image_size + 8); // add 8 for padding to avoid checks
622 else
623 {
624 scale_surface = malloc(image_w * sizeof(DATA32)); //for one line decoding
625 if (!scale_surface)
626 {
627 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
628 goto close_file;
629 }
630 buffer = malloc(row_size); // scale down is usually set because of memory issue, so read line by line
631 }
632
633 if (!buffer)
634 {
635 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
636 goto close_file;
637 }
638 if ((scale_ratio == 1) || (comp !=0))
639 buffer_end = buffer + image_size;
640 else
641 buffer_end = buffer + row_size;
642 p = buffer;
643
644 if ((scale_ratio == 1) || (comp !=0))
645 {
646 if (fread(buffer, image_size, 1, f) != 1) goto close_file;
647 }
648 else
649 {
650 if (fread(buffer, row_size, 1, f) != 1) goto close_file;
651 }
652
653 if (bit_count == 1)
654 {
655 if (comp == 0) // no compression
656 {
657 pix = surface;
658
659 for (y = 0; y < h; y++)
660 {
661 if (!right_way_up) pix = surface + ((h - 1 - y) * w);
662 if (scale_ratio > 1) pix = scale_surface; // one line decoding
663
664 for (x = 0; x < image_w; x++)
665 {
666 if ((x & 0x7) == 0x0)
667 {
668 *pix = pal[*p >> 7];
669 }
670 else if ((x & 0x7) == 0x1)
671 {
672 *pix = pal[(*p >> 6) & 0x1];
673 }
674 else if ((x & 0x7) == 0x2)
675 {
676 *pix = pal[(*p >> 5) & 0x1];
677 }
678 else if ((x & 0x7) == 0x3)
679 {
680 *pix = pal[(*p >> 4) & 0x1];
681 }
682 else if ((x & 0x7) == 0x4)
683 {
684 *pix = pal[(*p >> 3) & 0x1];
685 }
686 else if ((x & 0x7) == 0x5)
687 {
688 *pix = pal[(*p >> 2) & 0x1];
689 }
690 else if ((x & 0x7) == 0x6)
691 {
692 *pix = pal[(*p >> 1) & 0x1];
693 }
694 else
695 {
696 *pix = pal[*p & 0x1];
697 p++;
698 }
699 if (p >= buffer_end) break;
700 pix++;
701 }
702
703 if (scale_ratio > 1)
704 {
705 if (!right_way_up) scale_pix = surface + ((h - 1 - y) * w);
706 else scale_pix = surface + (y * w);
707
708 pix = scale_surface;
709 for (x = 0; x < w; x++)
710 {
711 *scale_pix = *pix;
712 scale_pix ++;
713 pix += scale_ratio;
714 }
715 read_line += scale_ratio;
716 if (read_line >= image_h) break;
717
718 fseek(f, row_size * (scale_ratio - 1), SEEK_CUR);
719 if (fread(buffer, row_size, 1, f) != 1) goto close_file;
720 p = buffer;
721 buffer_end = buffer + row_size;
722 }
723 else
724 {
725 if ((x & 0x7) != 0) p++;
726 fix = (int)(((unsigned long)p) & 0x3);
727 if (fix > 0) p += 4 - fix; // align row read
728 if (p >= buffer_end) break;
729 }
730 }
731 }
732 else
733 goto close_file;
734 }
735 else if (bit_count == 4)
736 {
737 if (comp == 0) // no compression
738 {
739 pix = surface;
740 for (y = 0; y < h; y++)
741 {
742 if (!right_way_up) pix = surface + ((h - 1 - y) * w);
743 if (scale_ratio > 1) pix = scale_surface; // one line decoding
744 for (x = 0; x < image_w; x++)
745 {
746 if ((x & 0x1) == 0x1)
747 {
748 *pix = pal[*p & 0x0f];
749 p++;
750 }
751 else
752 {
753 *pix = pal[*p >> 4];
754 }
755 if (p >= buffer_end) break;
756 pix++;
757 }
758 if (scale_ratio > 1)
759 {
760 if (!right_way_up) scale_pix = surface + ((h - 1 - y) * w);
761 else scale_pix = surface + (y * w);
762
763 pix = scale_surface;
764 for (x = 0; x < w; x++)
765 {
766 *scale_pix = *pix;
767 scale_pix ++;
768 pix += scale_ratio;
769 }
770 read_line += scale_ratio;
771 if (read_line >= image_h) break;
772
773 fseek(f, row_size * (scale_ratio - 1), SEEK_CUR);
774 if (fread(buffer, row_size, 1, f) != 1) goto close_file;
775 p = buffer;
776 buffer_end = buffer + row_size;
777 }
778 else
779 {
780 if ((x & 0x1) != 0) p++;
781 fix = (int)(((unsigned long)p) & 0x3);
782 if (fix > 0) p += 4 - fix; // align row read
783 if (p >= buffer_end) break;
784 }
785 }
786 }
787 else if (comp == 2) // rle 4bit/pixel
788 {
789 int count = 0, done = 0, wpad;
790 int scale_x = 0, scale_y = 0;
791 Eina_Bool scale_down_line = EINA_TRUE;
792
793 pix = surface;
794 if (!right_way_up) pix = surface + ((h - 1 - y) * w);
795 wpad = ((image_w + 1) / 2) * 2;
796 while (p < buffer_end)
797 {
798 if (p[0])
799 {
800 if (scale_down_line)
801 {
802 if ((x + p[0]) <= wpad)
803 {
804 unsigned int col1 = pal[p[1] >> 4];
805 unsigned int col2 = pal[p[1] & 0xf];
806
807 count = p[0] / 2;
808 while (count > 0)
809 {
810 if (x < w)
811 {
812 if (((x % scale_ratio) == 0) && (scale_x < w))
813 {
814 *pix = col1;
815 pix++;
816 scale_x++;
817 }
818 x++;
819 }
820 if (x < w)
821 {
822 if (((x % scale_ratio) == 0) && (scale_x < w))
823 {
824 *pix = col2;
825 pix++;
826 scale_x++;
827 }
828 x++;
829 }
830 count--;
831 }
832 if (p[0] & 0x1)
833 {
834 if (((x % scale_ratio) == 0) && (scale_x < w))
835 {
836 *pix = col1;
837 pix++;
838 scale_x++;
839 }
840 x++;
841 }
842 }
843 }
844 p += 2;
845 }
846 else
847 {
848 switch (p[1])
849 {
850 case 0: // EOL
851 x = 0;
852 scale_x = 0;
853 y++;
854 if ((y % scale_ratio) == 0)
855 {
856 scale_y++;
857 scale_down_line = EINA_TRUE;
858 if (!right_way_up)
859 pix = surface + ((h - 1 - scale_y) * w);
860 else
861 pix = surface + (scale_y * w);
862 }
863 else
864 scale_down_line = EINA_FALSE;
865 if (scale_y >= h)
866 {
867 p = buffer_end;
868 }
869 p += 2;
870 break;
871 case 1: // EOB
872 p = buffer_end;
873 break;
874 case 2: // DELTA
875 x += p[2];
876 y += p[3];
877 scale_x = x / scale_ratio;
878 scale_y = y / scale_ratio;
879 if ((scale_x >= w) || (scale_y >= h))
880 {
881 p = buffer_end;
882 }
883 if (!right_way_up)
884 pix = surface + scale_x + ((h - 1 - scale_y) * w);
885 else
886 pix = surface + scale_x + (scale_y * w);
887 p += 4;
888 break;
889 default:
890 count = p[1];
891 if (((p + count) > buffer_end) ||
892 ((x + count) > w))
893 {
894 p = buffer_end;
895 break;
896 }
897 p += 2;
898 done = count;
899 count /= 2;
900 while (count > 0)
901 {
902 if (((x % scale_ratio) == 0) && (scale_x < w))
903 {
904 *pix = pal[*p >> 4];
905 pix++;
906 scale_x++;
907 }
908 x++;
909 if (((x % scale_ratio) == 0) && (scale_x < w))
910 {
911 *pix = pal[*p & 0xf];
912 pix++;
913 scale_x++;
914 }
915 x++;
916
917 p++;
918 count--;
919 }
920
921 if (done & 0x1)
922 {
923 if (((x % scale_ratio) == 0) && (scale_x < w))
924 {
925 *pix = pal[*p >> 4];
926 scale_x++;
927 }
928 x++;
929 p++;
930 }
931 if ((done & 0x3) == 0x1)
932 p += 2;
933 else if ((done & 0x3) == 0x2)
934 p += 1;
935 break;
936 }
937 }
938 }
939 }
940 else
941 goto close_file;
942 }
943 else if (bit_count == 8)
944 {
945 if (comp == 0) // no compression
946 {
947 pix = surface;
948 for (y = 0; y < h; y++)
949 {
950 if (!right_way_up) pix = surface + ((h - 1 - y) * w);
951 for (x = 0; x < w; x++)
952 {
953 *pix = pal[*p];
954 p += scale_ratio;
955 if (p >= buffer_end) break;
956 pix++;
957 }
958 if (scale_ratio > 1)
959 {
960 read_line += scale_ratio;
961 if (read_line >= image_h) break;
962
963 fseek(f, row_size * (scale_ratio - 1), SEEK_CUR);
964 if (fread(buffer, row_size, 1, f) != 1) goto close_file;
965 p = buffer;
966 buffer_end = buffer + row_size;
967 }
968 else
969 {
970 fix = (int)(((unsigned long)p) & 0x3);
971 if (fix > 0) p += 4 - fix; // align row read
972 if (p >= buffer_end) break;
973 }
974 }
975 }
976 else if (comp == 1) // rle 8bit/pixel
977 {
978 int count = 0, done = 0;
979 int scale_x = 0, scale_y = 0;
980 Eina_Bool scale_down_line = EINA_TRUE;
981
982 pix = surface;
983 if (!right_way_up) pix = surface + ((h - 1 - y) * w);
984
985 while (p < buffer_end)
986 {
987 if (p[0])
988 {
989 if (scale_down_line)
990 {
991 if ((x + p[0]) <= image_w)
992 {
993 unsigned int col = pal[p[1]];
994
995 count = p[0];
996 while (count > 0)
997 {
998 if (((x % scale_ratio) == 0) && (scale_x < w))
999 {
1000 *pix = col;
1001 pix++;
1002 scale_x ++;
1003 }
1004 x++;
1005 count--;
1006 }
1007 }
1008 }
1009 p += 2;
1010 }
1011 else
1012 {
1013 switch (p[1])
1014 {
1015 case 0: // EOL
1016 x = 0;
1017 scale_x = 0;
1018 y++;
1019 if ((y % scale_ratio) == 0)
1020 {
1021 scale_y++;
1022 scale_down_line = EINA_TRUE;
1023 if (!right_way_up)
1024 pix = surface + ((h - 1 - scale_y) * w);
1025 else
1026 pix = surface + (scale_y * w);
1027 }
1028 else
1029 scale_down_line = EINA_FALSE;
1030
1031 if (scale_y >= h)
1032 {
1033 p = buffer_end;
1034 }
1035 p += 2;
1036 break;
1037 case 1: // EOB
1038 p = buffer_end;
1039 break;
1040 case 2: // DELTA
1041 x += p[2];
1042 y += p[3];
1043 scale_x = x / scale_ratio;
1044 scale_y = y / scale_ratio;
1045 if ((scale_x >= w) || (scale_y >= h))
1046 {
1047 p = buffer_end;
1048 }
1049 if (!right_way_up)
1050 pix = surface + scale_x + ((h - 1 - scale_y) * w);
1051 else
1052 pix = surface + scale_x + (scale_y * w);
1053 p += 4;
1054 break;
1055 default:
1056 count = p[1];
1057 if (((p + count) > buffer_end) ||
1058 ((x + count) > image_w))
1059 {
1060 p = buffer_end;
1061 break;
1062 }
1063 p += 2;
1064 done = count;
1065 while (count > 0)
1066 {
1067 if (((x % scale_ratio) == 0) && (scale_x < w))
1068 {
1069 *pix = pal[*p];
1070 pix++;
1071 scale_x ++;
1072 }
1073 p++;
1074 x++;
1075 count--;
1076 }
1077 if (done & 0x1) p++;
1078 break;
1079 }
1080 }
1081 }
1082 }
1083 else
1084 goto close_file;
1085 }
1086 }
1087 else if ((bit_count == 16) || (bit_count == 24) || (bit_count == 32))
1088 {
1089 if (comp == 0) // no compression
1090 {
1091 fseek(f, offset, SEEK_SET);
1092 if (scale_ratio == 1)
1093 buffer = malloc(image_size + 8); // add 8 for padding to avoid checks
1094 else
1095 buffer = malloc(row_size); // scale down is usually set because of memory issue, so read line by line
1096 if (!buffer)
1097 {
1098 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
1099 goto close_file;
1100 }
1101 if (scale_ratio == 1)
1102 buffer_end = buffer + image_size;
1103 else
1104 buffer_end = buffer + row_size;
1105
1106 p = buffer;
1107 if (scale_ratio == 1)
1108 {
1109 if (fread(buffer, image_size, 1, f) != 1) goto close_file;
1110 }
1111 else
1112 {
1113 if (fread(buffer, row_size, 1, f) != 1) goto close_file;
1114 }
1115 if (bit_count == 16)
1116 {
1117 unsigned short tmp;
1118
1119 pix = surface;
1120 for (y = 0; y < h; y++)
1121 {
1122 if (!right_way_up) pix = surface + ((h - 1 - y) * w);
1123 for (x = 0; x < w; x++)
1124 {
1125 tmp = *((unsigned short *)(p));
1126
1127 r = (tmp >> 7) & 0xf8; r |= r >> 5;
1128 g = (tmp >> 2) & 0xf8; g |= g >> 5;
1129 b = (tmp << 3) & 0xf8; b |= b >> 5;
1130 *pix = ARGB_JOIN(0xff, r, g, b);
1131
1132 p += 2 * scale_ratio;
1133
1134 if (p >= buffer_end) break;
1135 pix++;
1136 }
1137 if (scale_ratio > 1)
1138 {
1139 read_line += scale_ratio;
1140 if (read_line >= image_h) break;
1141
1142 fseek(f, row_size * (scale_ratio - 1), SEEK_CUR);
1143 if (fread(buffer, row_size, 1, f) != 1) goto close_file;
1144 p = buffer;
1145 buffer_end = buffer + row_size;
1146 }
1147 else
1148 {
1149 fix = (int)(((unsigned long)p) & 0x3);
1150 if (fix > 0) p += 4 - fix; // align row read
1151 if (p >= buffer_end) break;
1152 }
1153 }
1154 }
1155 else if (bit_count == 24)
1156 {
1157 pix = surface;
1158 for (y = 0; y < h; y++)
1159 {
1160 if (!right_way_up) pix = surface + ((h - 1 - y) * w);
1161 for (x = 0; x < w; x++)
1162 {
1163 b = p[0];
1164 g = p[1];
1165 r = p[2];
1166 *pix = ARGB_JOIN(0xff, r, g, b);
1167 p += 3 * scale_ratio;
1168 if (p >= buffer_end) break;
1169 pix++;
1170 }
1171 if (scale_ratio > 1)
1172 {
1173 read_line += scale_ratio;
1174 if (read_line >= image_h) break;
1175
1176 fseek(f, row_size * (scale_ratio - 1), SEEK_CUR);
1177 if (fread(buffer, row_size, 1, f) != 1) goto close_file;
1178 p = buffer;
1179 buffer_end = buffer + row_size;
1180 }
1181 else
1182 {
1183 fix = (int)(((unsigned long)p) & 0x3);
1184 if (fix > 0) p += 4 - fix; // align row read
1185 if (p >= buffer_end) break;
1186 }
1187 }
1188 }
1189 else if (bit_count == 32)
1190 {
1191 int none_zero_alpha = 0;
1192 pix = surface;
1193 for (y = 0; y < h; y++)
1194 {
1195 if (!right_way_up) pix = surface + ((h - 1 - y) * w);
1196 for (x = 0; x < w; x++)
1197 {
1198 b = p[0];
1199 g = p[1];
1200 r = p[2];
1201 a = p[3];
1202 if (a) none_zero_alpha = 1;
1203 if (!hasa) a = 0xff;
1204 *pix = ARGB_JOIN(a, r, g, b);
1205 p += 4 * scale_ratio;
1206
1207 if (p >= buffer_end) break;
1208 pix++;
1209 }
1210 if (scale_ratio > 1)
1211 {
1212 read_line += scale_ratio;
1213 if (read_line >= image_h) break;
1214
1215 fseek(f, row_size * (scale_ratio - 1), SEEK_CUR);
1216 if (fread(buffer, row_size, 1, f) != 1) goto close_file;
1217 p = buffer;
1218 buffer_end = buffer + row_size;
1219 }
1220 else
1221 {
1222 fix = (int)(((unsigned long)p) & 0x3);
1223 if (fix > 0) p += 4 - fix; // align row read
1224 if (p >= buffer_end) break;
1225 }
1226 }
1227 if (!none_zero_alpha)
1228 {
1229 ie->flags.alpha = 0;
1230 if (hasa)
1231 {
1232 unsigned int *pixend = surface + (w * h);
1233
1234 for (pix = surface; pix < pixend; pix++)
1235 A_VAL(pix) = 0xff;
1236 }
1237 }
1238 }
1239 else
1240 goto close_file;
1241 }
1242 else if (comp == 3) // bit field
1243 {
1244 if (!read_uint(f, &rmask)) goto close_file;
1245 if (!read_uint(f, &gmask)) goto close_file;
1246 if (!read_uint(f, &bmask)) goto close_file;
1247
1248 fseek(f, offset, SEEK_SET);
1249 if (scale_ratio == 1)
1250 buffer = malloc(image_size + 8); // add 8 for padding to avoid checks
1251 else
1252 buffer = malloc(row_size); // scale down is usually set because of memory issue, so read line by line
1253
1254 if (!buffer)
1255 {
1256 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
1257 goto close_file;
1258 }
1259 if (scale_ratio == 1)
1260 buffer_end = buffer + image_size;
1261 else
1262 buffer_end = buffer + row_size;
1263
1264 p = buffer;
1265 if (scale_ratio == 1)
1266 {
1267 if (fread(buffer, image_size, 1, f) != 1) goto close_file;
1268 }
1269 else
1270 {
1271 if (fread(buffer, row_size, 1, f) != 1) goto close_file;
1272 }
1273
1274 if ((bit_count == 16) &&
1275 (rmask == 0xf800) && (gmask == 0x07e0) && (bmask == 0x001f)
1276 )
1277 {
1278 unsigned short tmp;
1279
1280 pix = surface;
1281 for (y = 0; y < h; y++)
1282 {
1283 if (!right_way_up) pix = surface + ((h - 1 - y) * w);
1284 for (x = 0; x < w; x++)
1285 {
1286 tmp = *((unsigned short *)(p));
1287
1288 r = (tmp >> 8) & 0xf8; r |= r >> 5;
1289 g = (tmp >> 3) & 0xfc; g |= g >> 6;
1290 b = (tmp << 3) & 0xf8; b |= b >> 5;
1291 *pix = ARGB_JOIN(0xff, r, g, b);
1292
1293 p += 2 * scale_ratio;
1294
1295 if (p >= buffer_end) break;
1296 pix++;
1297 }
1298 if (scale_ratio > 1)
1299 {
1300 read_line += scale_ratio;
1301 if (read_line >= image_h) break;
1302 fseek(f, row_size * (scale_ratio - 1), SEEK_CUR);
1303 if (fread(buffer, row_size, 1, f) != 1) goto close_file;
1304 p = buffer;
1305 buffer_end = buffer + row_size;
1306 }
1307 else
1308 {
1309 fix = (int)(((unsigned long)p) & 0x3);
1310 if (fix > 0) p += 4 - fix; // align row read
1311 if (p >= buffer_end) break;
1312 }
1313 }
1314 }
1315 else if ((bit_count == 16) &&
1316 (rmask == 0x7c00) && (gmask == 0x03e0) && (bmask == 0x001f)
1317 )
1318 {
1319 unsigned short tmp;
1320 pix = surface;
1321 for (y = 0; y < h; y++)
1322 {
1323 if (!right_way_up) pix = surface + ((h - 1 - y) * w);
1324 for (x = 0; x < w; x++)
1325 {
1326 tmp = *((unsigned short *)(p));
1327
1328 r = (tmp >> 7) & 0xf8; r |= r >> 5;
1329 g = (tmp >> 2) & 0xf8; g |= g >> 5;
1330 b = (tmp << 3) & 0xf8; b |= b >> 5;
1331 *pix = ARGB_JOIN(0xff, r, g, b);
1332 p += 2 * scale_ratio;
1333
1334 if (p >= buffer_end) break;
1335 pix++;
1336 }
1337 if (scale_ratio > 1)
1338 {
1339 read_line += scale_ratio;
1340 if (read_line >= image_h) break;
1341 fseek(f, row_size * (scale_ratio - 1), SEEK_CUR);
1342 if (fread(buffer, row_size, 1, f) != 1) goto close_file;
1343 p = buffer;
1344 buffer_end = buffer + row_size;
1345 }
1346 else
1347 {
1348 fix = (int)(((unsigned long)p) & 0x3);
1349 if (fix > 0) p += 4 - fix; // align row read
1350 if (p >= buffer_end) break;
1351 }
1352 }
1353 }
1354 else if (bit_count == 32)
1355 {
1356 pix = surface;
1357 for (y = 0; y < h; y++)
1358 {
1359 if (!right_way_up) pix = surface + ((h - 1 - y) * w);
1360 for (x = 0; x < w; x++)
1361 {
1362 b = p[0];
1363 g = p[1];
1364 r = p[2];
1365 a = p[3];
1366 if (!hasa) a = 0xff;
1367 *pix = ARGB_JOIN(a, r, g, b);
1368
1369 p += 4 * scale_ratio;
1370
1371 if (p >= buffer_end) break;
1372 pix++;
1373 }
1374 if (scale_ratio > 1)
1375 {
1376 read_line += scale_ratio;
1377 if (read_line >= image_h) break;
1378 fseek(f, row_size * (scale_ratio - 1), SEEK_CUR);
1379 if (fread(buffer, row_size, 1, f) != 1) goto close_file;
1380 p = buffer;
1381 buffer_end = buffer + row_size;
1382 }
1383 else
1384 {
1385 fix = (int)(((unsigned long)p) & 0x3);
1386 if (fix > 0) p += 4 - fix; // align row read
1387 if (p >= buffer_end) break;
1388 }
1389 }
1390 }
1391 else
1392 goto close_file;
1393 }
1394 else if (comp == 4) // jpeg - only printer drivers
1395 {
1396 goto close_file;
1397 }
1398 else if (comp == 3) // png - only printer drivers
1399 {
1400 goto close_file;
1401 }
1402 else
1403 goto close_file;
1404 }
1405 else
1406 goto close_file;
1407
1408 if (buffer) free(buffer);
1409 if (scale_surface) free(scale_surface);
1410 fclose(f);
1411
1412 evas_common_image_premul(ie);
1413 *error = EVAS_LOAD_ERROR_NONE;
1414 return EINA_TRUE;
1415
1416 close_file:
1417 if (buffer) free(buffer);
1418 if (scale_surface) free(scale_surface);
1419 fclose(f);
1420 return EINA_FALSE;
1421}
1422
1423static int
1424module_open(Evas_Module *em)
1425{
1426 if (!em) return 0;
1427 em->functions = (void *)(&evas_image_load_bmp_func);
1428 return 1;
1429}
1430
1431static void
1432module_close(Evas_Module *em __UNUSED__)
1433{
1434}
1435
1436static Evas_Module_Api evas_modapi =
1437{
1438 EVAS_MODULE_API_VERSION,
1439 "bmp",
1440 "none",
1441 {
1442 module_open,
1443 module_close
1444 }
1445};
1446
1447EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, bmp);
1448
1449#ifndef EVAS_STATIC_BUILD_BMP
1450EVAS_EINA_MODULE_DEFINE(image_loader, bmp);
1451#endif
diff --git a/libraries/evas/src/modules/loaders/edb/Makefile.am b/libraries/evas/src/modules/loaders/edb/Makefile.am
new file mode 100644
index 0000000..a0baf6b
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/edb/Makefile.am
@@ -0,0 +1,34 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_CPPFLAGS = \
5-I. \
6-I$(top_srcdir)/src/lib \
7-I$(top_srcdir)/src/lib/include \
8@FREETYPE_CFLAGS@ \
9@PIXMAN_CFLAGS@ \
10@evas_image_loader_edb_cflags@ \
11@EINA_CFLAGS@
12
13
14if BUILD_LOADER_EDB
15if !EVAS_STATIC_BUILD_EDB
16
17pkgdir = $(libdir)/evas/modules/loaders/edb/$(MODULE_ARCH)
18pkg_LTLIBRARIES = module.la
19
20module_la_SOURCES = evas_image_load_edb.c
21
22module_la_LIBADD = @evas_image_loader_edb_libs@ @EINA_LIBS@ $(top_builddir)/src/lib/libevas.la
23module_la_LDFLAGS = -no-undefined -module -avoid-version
24module_la_LIBTOOLFLAGS = --tag=disable-static
25
26else
27
28noinst_LTLIBRARIES = libevas_loader_edb.la
29
30libevas_loader_edb_la_SOURCES = evas_image_load_edb.c
31libevas_loader_edb_la_LIBADD = @evas_image_loader_edb_libs@
32
33endif
34endif
diff --git a/libraries/evas/src/modules/loaders/edb/Makefile.in b/libraries/evas/src/modules/loaders/edb/Makefile.in
new file mode 100644
index 0000000..38c1fa2
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/edb/Makefile.in
@@ -0,0 +1,757 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/edb
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_edb_la_DEPENDENCIES =
83am__libevas_loader_edb_la_SOURCES_DIST = evas_image_load_edb.c
84@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_TRUE@am_libevas_loader_edb_la_OBJECTS = evas_image_load_edb.lo
85libevas_loader_edb_la_OBJECTS = $(am_libevas_loader_edb_la_OBJECTS)
86AM_V_lt = $(am__v_lt_$(V))
87am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88am__v_lt_0 = --silent
89@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_TRUE@am_libevas_loader_edb_la_rpath =
90@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la
91am__module_la_SOURCES_DIST = evas_image_load_edb.c
92@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_edb.lo
93module_la_OBJECTS = $(am_module_la_OBJECTS)
94module_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_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@am_module_la_rpath = \
98@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@ -rpath \
99@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@ $(pkgdir)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_edb_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_edb_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184FGREP = @FGREP@
185FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
186FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
187FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
188FREETYPE_LIBS = @FREETYPE_LIBS@
189FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
190FRIBIDI_LIBS = @FRIBIDI_LIBS@
191GL_EET_CFLAGS = @GL_EET_CFLAGS@
192GL_EET_LIBS = @GL_EET_LIBS@
193GREP = @GREP@
194HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
195HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
196INSTALL = @INSTALL@
197INSTALL_DATA = @INSTALL_DATA@
198INSTALL_PROGRAM = @INSTALL_PROGRAM@
199INSTALL_SCRIPT = @INSTALL_SCRIPT@
200INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
201LD = @LD@
202LDFLAGS = @LDFLAGS@
203LIBOBJS = @LIBOBJS@
204LIBS = @LIBS@
205LIBTOOL = @LIBTOOL@
206LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
207LINEBREAK_LIBS = @LINEBREAK_LIBS@
208LIPO = @LIPO@
209LN_S = @LN_S@
210LTLIBOBJS = @LTLIBOBJS@
211MAKEINFO = @MAKEINFO@
212MKDIR_P = @MKDIR_P@
213MODULE_ARCH = @MODULE_ARCH@
214NM = @NM@
215NMEDIT = @NMEDIT@
216OBJC = @OBJC@
217OBJCDEPMODE = @OBJCDEPMODE@
218OBJCFLAGS = @OBJCFLAGS@
219OBJDUMP = @OBJDUMP@
220OBJEXT = @OBJEXT@
221OTOOL = @OTOOL@
222OTOOL64 = @OTOOL64@
223PACKAGE = @PACKAGE@
224PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225PACKAGE_NAME = @PACKAGE_NAME@
226PACKAGE_STRING = @PACKAGE_STRING@
227PACKAGE_TARNAME = @PACKAGE_TARNAME@
228PACKAGE_URL = @PACKAGE_URL@
229PACKAGE_VERSION = @PACKAGE_VERSION@
230PATH_SEPARATOR = @PATH_SEPARATOR@
231PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
232PIXMAN_LIBS = @PIXMAN_LIBS@
233PKG_CONFIG = @PKG_CONFIG@
234PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
235PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
236PNG_CFLAGS = @PNG_CFLAGS@
237PNG_LIBS = @PNG_LIBS@
238RANLIB = @RANLIB@
239SDL_CFLAGS = @SDL_CFLAGS@
240SDL_LIBS = @SDL_LIBS@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244SHM_OPEN_LINK = @SHM_OPEN_LINK@
245STRIP = @STRIP@
246SVG_CFLAGS = @SVG_CFLAGS@
247SVG_LIBS = @SVG_LIBS@
248VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
249VALGRIND_LIBS = @VALGRIND_LIBS@
250VERSION = @VERSION@
251VMAJ = @VMAJ@
252WIN32_CFLAGS = @WIN32_CFLAGS@
253WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
254XCB_CFLAGS = @XCB_CFLAGS@
255XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
256XCB_GL_LIBS = @XCB_GL_LIBS@
257XCB_LIBS = @XCB_LIBS@
258XEXT_CFLAGS = @XEXT_CFLAGS@
259XEXT_LIBS = @XEXT_LIBS@
260XMKMF = @XMKMF@
261X_CFLAGS = @X_CFLAGS@
262X_EXTRA_LIBS = @X_EXTRA_LIBS@
263X_LIBS = @X_LIBS@
264X_PRE_LIBS = @X_PRE_LIBS@
265abs_builddir = @abs_builddir@
266abs_srcdir = @abs_srcdir@
267abs_top_builddir = @abs_top_builddir@
268abs_top_srcdir = @abs_top_srcdir@
269ac_ct_CC = @ac_ct_CC@
270ac_ct_CXX = @ac_ct_CXX@
271ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272ac_ct_OBJC = @ac_ct_OBJC@
273altivec_cflags = @altivec_cflags@
274am__include = @am__include@
275am__leading_dot = @am__leading_dot@
276am__quote = @am__quote@
277am__tar = @am__tar@
278am__untar = @am__untar@
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
285builddir = @builddir@
286datadir = @datadir@
287datarootdir = @datarootdir@
288dlopen_libs = @dlopen_libs@
289docdir = @docdir@
290dvidir = @dvidir@
291edje_cc = @edje_cc@
292efl_doxygen = @efl_doxygen@
293efl_have_doxygen = @efl_have_doxygen@
294evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
295evas_engine_buffer_libs = @evas_engine_buffer_libs@
296evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
297evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
298evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
299evas_engine_directfb_libs = @evas_engine_directfb_libs@
300evas_engine_fb_cflags = @evas_engine_fb_cflags@
301evas_engine_fb_libs = @evas_engine_fb_libs@
302evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
303evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
304evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
305evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
306evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
307evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
308evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
309evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
310evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
311evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
312evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
313evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
314evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
315evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
316evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
317evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
318evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
319evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
320evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
321evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
322evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
323evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
324evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
325evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
326evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
327evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
328evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
334evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
335evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
336evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
337evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
338evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
339evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
340evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
341evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
342evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
343evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
344evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
345evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
346evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
347evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
348evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
349evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
350evas_image_loader_png_libs = @evas_image_loader_png_libs@
351evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
352evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
353evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
354evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
355evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
356evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
357evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
358evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
359evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
360evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
361evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
362evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
363exec_prefix = @exec_prefix@
364have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
365have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
366have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
367have_evas_engine_software_x11 = @have_evas_engine_software_x11@
368have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
369have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
370have_lcov = @have_lcov@
371host = @host@
372host_alias = @host_alias@
373host_cpu = @host_cpu@
374host_os = @host_os@
375host_vendor = @host_vendor@
376htmldir = @htmldir@
377includedir = @includedir@
378infodir = @infodir@
379install_sh = @install_sh@
380libdir = @libdir@
381libexecdir = @libexecdir@
382localedir = @localedir@
383localstatedir = @localstatedir@
384lt_ECHO = @lt_ECHO@
385lt_enable_auto_import = @lt_enable_auto_import@
386mandir = @mandir@
387mkdir_p = @mkdir_p@
388oldincludedir = @oldincludedir@
389pdfdir = @pdfdir@
390pkgconfig_requires_private = @pkgconfig_requires_private@
391prefix = @prefix@
392program_transform_name = @program_transform_name@
393psdir = @psdir@
394pthread_cflags = @pthread_cflags@
395pthread_libs = @pthread_libs@
396release_info = @release_info@
397requirement_evas = @requirement_evas@
398sbindir = @sbindir@
399sharedstatedir = @sharedstatedir@
400srcdir = @srcdir@
401sysconfdir = @sysconfdir@
402target_alias = @target_alias@
403top_build_prefix = @top_build_prefix@
404top_builddir = @top_builddir@
405top_srcdir = @top_srcdir@
406version_info = @version_info@
407MAINTAINERCLEANFILES = Makefile.in
408AM_CPPFLAGS = \
409-I. \
410-I$(top_srcdir)/src/lib \
411-I$(top_srcdir)/src/lib/include \
412@FREETYPE_CFLAGS@ \
413@PIXMAN_CFLAGS@ \
414@evas_image_loader_edb_cflags@ \
415@EINA_CFLAGS@
416
417@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@pkgdir = $(libdir)/evas/modules/loaders/edb/$(MODULE_ARCH)
418@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@pkg_LTLIBRARIES = module.la
419@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@module_la_SOURCES = evas_image_load_edb.c
420@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@module_la_LIBADD = @evas_image_loader_edb_libs@ @EINA_LIBS@ $(top_builddir)/src/lib/libevas.la
421@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@module_la_LDFLAGS = -no-undefined -module -avoid-version
422@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
423@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_TRUE@noinst_LTLIBRARIES = libevas_loader_edb.la
424@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_TRUE@libevas_loader_edb_la_SOURCES = evas_image_load_edb.c
425@BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_TRUE@libevas_loader_edb_la_LIBADD = @evas_image_loader_edb_libs@
426all: all-am
427
428.SUFFIXES:
429.SUFFIXES: .c .lo .o .obj
430$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
431 @for dep in $?; do \
432 case '$(am__configure_deps)' in \
433 *$$dep*) \
434 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
435 && { if test -f $@; then exit 0; else break; fi; }; \
436 exit 1;; \
437 esac; \
438 done; \
439 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/edb/Makefile'; \
440 $(am__cd) $(top_srcdir) && \
441 $(AUTOMAKE) --gnu src/modules/loaders/edb/Makefile
442.PRECIOUS: Makefile
443Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
444 @case '$?' in \
445 *config.status*) \
446 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
447 *) \
448 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
449 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
450 esac;
451
452$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
453 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
454
455$(top_srcdir)/configure: $(am__configure_deps)
456 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
457$(ACLOCAL_M4): $(am__aclocal_m4_deps)
458 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
459$(am__aclocal_m4_deps):
460
461clean-noinstLTLIBRARIES:
462 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
463 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
464 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
465 test "$$dir" != "$$p" || dir=.; \
466 echo "rm -f \"$${dir}/so_locations\""; \
467 rm -f "$${dir}/so_locations"; \
468 done
469install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
470 @$(NORMAL_INSTALL)
471 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
472 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
473 list2=; for p in $$list; do \
474 if test -f $$p; then \
475 list2="$$list2 $$p"; \
476 else :; fi; \
477 done; \
478 test -z "$$list2" || { \
479 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
480 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
481 }
482
483uninstall-pkgLTLIBRARIES:
484 @$(NORMAL_UNINSTALL)
485 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
486 for p in $$list; do \
487 $(am__strip_dir) \
488 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
489 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
490 done
491
492clean-pkgLTLIBRARIES:
493 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
494 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
495 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
496 test "$$dir" != "$$p" || dir=.; \
497 echo "rm -f \"$${dir}/so_locations\""; \
498 rm -f "$${dir}/so_locations"; \
499 done
500libevas_loader_edb.la: $(libevas_loader_edb_la_OBJECTS) $(libevas_loader_edb_la_DEPENDENCIES)
501 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_edb_la_rpath) $(libevas_loader_edb_la_OBJECTS) $(libevas_loader_edb_la_LIBADD) $(LIBS)
502module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
503 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
504
505mostlyclean-compile:
506 -rm -f *.$(OBJEXT)
507
508distclean-compile:
509 -rm -f *.tab.c
510
511@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_edb.Plo@am__quote@
512@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_edb.Plo@am__quote@
513
514.c.o:
515@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
516@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
517@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
518@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
519@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
520@am__fastdepCC_FALSE@ $(COMPILE) -c $<
521
522.c.obj:
523@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
524@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
525@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
526@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
527@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
528@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
529
530.c.lo:
531@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
532@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
533@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
534@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
535@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
536@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
537
538module_la-evas_image_load_edb.lo: evas_image_load_edb.c
539@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_edb.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_edb.Tpo -c -o module_la-evas_image_load_edb.lo `test -f 'evas_image_load_edb.c' || echo '$(srcdir)/'`evas_image_load_edb.c
540@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_edb.Tpo $(DEPDIR)/module_la-evas_image_load_edb.Plo
541@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
542@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_edb.c' object='module_la-evas_image_load_edb.lo' libtool=yes @AMDEPBACKSLASH@
543@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
544@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_edb.lo `test -f 'evas_image_load_edb.c' || echo '$(srcdir)/'`evas_image_load_edb.c
545
546mostlyclean-libtool:
547 -rm -f *.lo
548
549clean-libtool:
550 -rm -rf .libs _libs
551
552ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
553 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
554 unique=`for i in $$list; do \
555 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
556 done | \
557 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
558 END { if (nonempty) { for (i in files) print i; }; }'`; \
559 mkid -fID $$unique
560tags: TAGS
561
562TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
563 $(TAGS_FILES) $(LISP)
564 set x; \
565 here=`pwd`; \
566 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
567 unique=`for i in $$list; do \
568 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
569 done | \
570 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
571 END { if (nonempty) { for (i in files) print i; }; }'`; \
572 shift; \
573 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
574 test -n "$$unique" || unique=$$empty_fix; \
575 if test $$# -gt 0; then \
576 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
577 "$$@" $$unique; \
578 else \
579 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
580 $$unique; \
581 fi; \
582 fi
583ctags: CTAGS
584CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
585 $(TAGS_FILES) $(LISP)
586 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
587 unique=`for i in $$list; do \
588 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
589 done | \
590 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
591 END { if (nonempty) { for (i in files) print i; }; }'`; \
592 test -z "$(CTAGS_ARGS)$$unique" \
593 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
594 $$unique
595
596GTAGS:
597 here=`$(am__cd) $(top_builddir) && pwd` \
598 && $(am__cd) $(top_srcdir) \
599 && gtags -i $(GTAGS_ARGS) "$$here"
600
601distclean-tags:
602 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
603
604distdir: $(DISTFILES)
605 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
606 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
607 list='$(DISTFILES)'; \
608 dist_files=`for file in $$list; do echo $$file; done | \
609 sed -e "s|^$$srcdirstrip/||;t" \
610 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
611 case $$dist_files in \
612 */*) $(MKDIR_P) `echo "$$dist_files" | \
613 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
614 sort -u` ;; \
615 esac; \
616 for file in $$dist_files; do \
617 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
618 if test -d $$d/$$file; then \
619 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
620 if test -d "$(distdir)/$$file"; then \
621 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
622 fi; \
623 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
624 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
625 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
626 fi; \
627 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
628 else \
629 test -f "$(distdir)/$$file" \
630 || cp -p $$d/$$file "$(distdir)/$$file" \
631 || exit 1; \
632 fi; \
633 done
634check-am: all-am
635check: check-am
636all-am: Makefile $(LTLIBRARIES)
637installdirs:
638 for dir in "$(DESTDIR)$(pkgdir)"; do \
639 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
640 done
641install: install-am
642install-exec: install-exec-am
643install-data: install-data-am
644uninstall: uninstall-am
645
646install-am: all-am
647 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
648
649installcheck: installcheck-am
650install-strip:
651 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
652 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
653 `test -z '$(STRIP)' || \
654 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
655mostlyclean-generic:
656
657clean-generic:
658
659distclean-generic:
660 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
661 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
662
663maintainer-clean-generic:
664 @echo "This command is intended for maintainers to use"
665 @echo "it deletes files that may require special tools to rebuild."
666 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
667clean: clean-am
668
669clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
670 clean-pkgLTLIBRARIES mostlyclean-am
671
672distclean: distclean-am
673 -rm -rf ./$(DEPDIR)
674 -rm -f Makefile
675distclean-am: clean-am distclean-compile distclean-generic \
676 distclean-tags
677
678dvi: dvi-am
679
680dvi-am:
681
682html: html-am
683
684html-am:
685
686info: info-am
687
688info-am:
689
690install-data-am: install-pkgLTLIBRARIES
691
692install-dvi: install-dvi-am
693
694install-dvi-am:
695
696install-exec-am:
697
698install-html: install-html-am
699
700install-html-am:
701
702install-info: install-info-am
703
704install-info-am:
705
706install-man:
707
708install-pdf: install-pdf-am
709
710install-pdf-am:
711
712install-ps: install-ps-am
713
714install-ps-am:
715
716installcheck-am:
717
718maintainer-clean: maintainer-clean-am
719 -rm -rf ./$(DEPDIR)
720 -rm -f Makefile
721maintainer-clean-am: distclean-am maintainer-clean-generic
722
723mostlyclean: mostlyclean-am
724
725mostlyclean-am: mostlyclean-compile mostlyclean-generic \
726 mostlyclean-libtool
727
728pdf: pdf-am
729
730pdf-am:
731
732ps: ps-am
733
734ps-am:
735
736uninstall-am: uninstall-pkgLTLIBRARIES
737
738.MAKE: install-am install-strip
739
740.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
741 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
742 ctags distclean distclean-compile distclean-generic \
743 distclean-libtool distclean-tags distdir dvi dvi-am html \
744 html-am info info-am install install-am install-data \
745 install-data-am install-dvi install-dvi-am install-exec \
746 install-exec-am install-html install-html-am install-info \
747 install-info-am install-man install-pdf install-pdf-am \
748 install-pkgLTLIBRARIES install-ps install-ps-am install-strip \
749 installcheck installcheck-am installdirs maintainer-clean \
750 maintainer-clean-generic mostlyclean mostlyclean-compile \
751 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
752 tags uninstall uninstall-am uninstall-pkgLTLIBRARIES
753
754
755# Tell versions [3.59,3.63) of GNU make to not export all variables.
756# Otherwise a system limit (for SysV at least) may be exceeded.
757.NOEXPORT:
diff --git a/libraries/evas/src/modules/loaders/edb/evas_image_load_edb.c b/libraries/evas/src/modules/loaders/edb/evas_image_load_edb.c
new file mode 100644
index 0000000..94b121e
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/edb/evas_image_load_edb.c
@@ -0,0 +1,250 @@
1#include "evas_common.h"
2#include "evas_private.h"
3
4#include <Edb.h>
5#include <zlib.h>
6
7
8#define SWAP32(x) (x) = ((((x) & 0x000000ff ) << 24) | (((x) & 0x0000ff00 ) << 8) | (((x) & 0x00ff0000 ) >> 8) | (((x) & 0xff000000 ) >> 24))
9
10
11static Eina_Bool evas_image_load_file_head_edb(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
12static Eina_Bool evas_image_load_file_data_edb(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
13
14static Evas_Image_Load_Func evas_image_load_edb_func =
15{
16 EINA_TRUE,
17 evas_image_load_file_head_edb,
18 evas_image_load_file_data_edb,
19 NULL
20};
21
22static Eina_Bool
23evas_image_load_file_head_edb(Image_Entry *ie, const char *file, const char *key, int *error)
24{
25 int w, h, alpha, compression, size;
26 E_DB_File *db;
27 DATA32 *ret;
28 DATA32 header[8];
29
30 if (!key)
31 {
32 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
33 return EINA_FALSE;
34 }
35 db = e_db_open_read((char *)file);
36 if (!db)
37 {
38 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
39 return EINA_FALSE;
40 }
41 ret = e_db_data_get(db, (char *)key, &size);
42 if (!ret)
43 {
44 e_db_close(db);
45 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
46 return EINA_FALSE;
47 }
48 if (size < 32)
49 {
50 free(ret);
51 e_db_close(db);
52 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
53 return EINA_FALSE;
54 }
55 memcpy(header, ret, 32);
56#ifdef WORDS_BIGENDIAN
57 {
58 int i;
59
60 for (i = 0; i < 8; i++) SWAP32(header[i]);
61 }
62#endif
63 if (header[0] != 0xac1dfeed)
64 {
65 free(ret);
66 e_db_close(db);
67 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
68 return EINA_FALSE;
69 }
70 w = header[1];
71 h = header[2];
72 if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) ||
73 IMG_TOO_BIG(w, h))
74 {
75 free(ret);
76 e_db_close(db);
77 if (IMG_TOO_BIG(w, h))
78 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
79 else
80 *error = EVAS_LOAD_ERROR_GENERIC;
81 return EINA_FALSE;
82 }
83 alpha = header[3];
84 compression = header[4];
85
86 if ((compression == 0) && (size < ((w * h * 4) + 32)))
87 {
88 free(ret);
89 e_db_close(db);
90 *error = EVAS_LOAD_ERROR_GENERIC;
91 return EINA_FALSE;
92 }
93 if (alpha) ie->flags.alpha = 1;
94 ie->w = w;
95 ie->h = h;
96 free(ret);
97 e_db_close(db);
98 *error = EVAS_LOAD_ERROR_NONE;
99 return EINA_TRUE;
100}
101
102static Eina_Bool
103evas_image_load_file_data_edb(Image_Entry *ie, const char *file, const char *key, int *error)
104{
105 int w, h, alpha, compression, size;
106 E_DB_File *db;
107 DATA32 *ret;
108 DATA32 *body;
109 DATA32 *surface;
110 DATA32 header[8];
111
112 if (!key)
113 {
114 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
115 return EINA_FALSE;
116 }
117 db = e_db_open_read((char *)file);
118 if (!db)
119 {
120 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
121 return EINA_FALSE;
122 }
123 ret = e_db_data_get(db, (char *)key, &size);
124 if (!ret)
125 {
126 e_db_close(db);
127 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
128 return EINA_FALSE;
129 }
130 if (size < 32)
131 {
132 free(ret);
133 e_db_close(db);
134 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
135 return EINA_FALSE;
136 }
137 memcpy(header, ret, 32);
138#ifdef WORDS_BIGENDIAN
139 {
140 int i;
141
142 for (i = 0; i < 8; i++) SWAP32(header[i]);
143 }
144#endif
145 if (header[0] != 0xac1dfeed)
146 {
147 free(ret);
148 e_db_close(db);
149 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
150 return EINA_FALSE;
151 }
152 w = header[1];
153 h = header[2];
154 if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) ||
155 IMG_TOO_BIG(w, h))
156 {
157 free(ret);
158 e_db_close(db);
159 if (IMG_TOO_BIG(w, h))
160 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
161 else
162 *error = EVAS_LOAD_ERROR_GENERIC;
163 return EINA_FALSE;
164 }
165
166 alpha = header[3];
167 compression = header[4];
168
169 if ((compression == 0) && (size < ((w * h * 4) + 32)))
170 {
171 free(ret);
172 e_db_close(db);
173 *error = EVAS_LOAD_ERROR_GENERIC;
174 return EINA_FALSE;
175 }
176 if (alpha) ie->flags.alpha = 1;
177 body = &(ret[8]);
178 evas_cache_image_surface_alloc(ie, w, h);
179 surface = evas_cache_image_pixels(ie);
180 if (!surface)
181 {
182 free(ret);
183 e_db_close(db);
184 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
185 return EINA_FALSE;
186 }
187 if (!compression)
188 {
189#ifdef WORDS_BIGENDIAN
190 {
191 int x;
192
193 memcpy(surface, body, w * h * sizeof(DATA32));
194 for (x = 0; x < (w * h); x++) SWAP32(surface[x]);
195 }
196#else
197 memcpy(surface, body, w * h * sizeof(DATA32));
198#endif
199 }
200 else
201 {
202 uLongf dlen;
203
204 dlen = w * h * sizeof(DATA32);
205 uncompress((Bytef *)surface, &dlen, (Bytef *)body,
206 (uLongf)(size - 32));
207#ifdef WORDS_BIGENDIAN
208 {
209 int x;
210
211 for (x = 0; x < (w * h); x++) SWAP32(surface[x]);
212 }
213#endif
214 }
215 evas_common_image_premul(ie);
216 free(ret);
217 e_db_close(db);
218 *error = EVAS_LOAD_ERROR_NONE;
219 return EINA_TRUE;
220}
221
222static int
223module_open(Evas_Module *em)
224{
225 if (!em) return 0;
226 em->functions = (void *)(&evas_image_load_edb_func);
227 return 1;
228}
229
230static void
231module_close(Evas_Module *em)
232{
233}
234
235static Evas_Module_Api evas_modapi =
236{
237 EVAS_MODULE_API_VERSION,
238 "edb",
239 "none",
240 {
241 module_open,
242 module_close
243 }
244};
245
246EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, edb);
247
248#ifndef EVAS_STATIC_BUILD_EDB
249EVAS_EINA_MODULE_DEFINE(image_loader, edb);
250#endif
diff --git a/libraries/evas/src/modules/loaders/eet/Makefile.am b/libraries/evas/src/modules/loaders/eet/Makefile.am
new file mode 100644
index 0000000..c96a8d3
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/eet/Makefile.am
@@ -0,0 +1,36 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_CPPFLAGS = \
5-I. \
6-I$(top_srcdir)/src/lib \
7-I$(top_srcdir)/src/lib/include \
8@FREETYPE_CFLAGS@ \
9@PIXMAN_CFLAGS@ \
10@evas_image_loader_eet_cflags@ \
11@EINA_CFLAGS@
12
13AM_CFLAGS = @WIN32_CFLAGS@
14
15
16if BUILD_LOADER_EET
17if !EVAS_STATIC_BUILD_EET
18
19pkgdir = $(libdir)/evas/modules/loaders/eet/$(MODULE_ARCH)
20pkg_LTLIBRARIES = module.la
21
22module_la_SOURCES = evas_image_load_eet.c
23
24module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_eet_libs@ $(top_builddir)/src/lib/libevas.la
25module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
26module_la_LIBTOOLFLAGS = --tag=disable-static
27
28else
29
30noinst_LTLIBRARIES = libevas_loader_eet.la
31
32libevas_loader_eet_la_SOURCES = evas_image_load_eet.c
33libevas_loader_eet_la_LIBADD = @evas_image_loader_eet_libs@
34
35endif
36endif
diff --git a/libraries/evas/src/modules/loaders/eet/Makefile.in b/libraries/evas/src/modules/loaders/eet/Makefile.in
new file mode 100644
index 0000000..6a6c40e
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/eet/Makefile.in
@@ -0,0 +1,758 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/eet
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_eet_la_DEPENDENCIES =
83am__libevas_loader_eet_la_SOURCES_DIST = evas_image_load_eet.c
84@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_TRUE@am_libevas_loader_eet_la_OBJECTS = evas_image_load_eet.lo
85libevas_loader_eet_la_OBJECTS = $(am_libevas_loader_eet_la_OBJECTS)
86AM_V_lt = $(am__v_lt_$(V))
87am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88am__v_lt_0 = --silent
89@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_TRUE@am_libevas_loader_eet_la_rpath =
90@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la
91am__module_la_SOURCES_DIST = evas_image_load_eet.c
92@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_eet.lo
93module_la_OBJECTS = $(am_module_la_OBJECTS)
94module_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_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@am_module_la_rpath = \
98@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@ -rpath \
99@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@ $(pkgdir)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_eet_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_eet_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184FGREP = @FGREP@
185FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
186FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
187FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
188FREETYPE_LIBS = @FREETYPE_LIBS@
189FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
190FRIBIDI_LIBS = @FRIBIDI_LIBS@
191GL_EET_CFLAGS = @GL_EET_CFLAGS@
192GL_EET_LIBS = @GL_EET_LIBS@
193GREP = @GREP@
194HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
195HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
196INSTALL = @INSTALL@
197INSTALL_DATA = @INSTALL_DATA@
198INSTALL_PROGRAM = @INSTALL_PROGRAM@
199INSTALL_SCRIPT = @INSTALL_SCRIPT@
200INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
201LD = @LD@
202LDFLAGS = @LDFLAGS@
203LIBOBJS = @LIBOBJS@
204LIBS = @LIBS@
205LIBTOOL = @LIBTOOL@
206LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
207LINEBREAK_LIBS = @LINEBREAK_LIBS@
208LIPO = @LIPO@
209LN_S = @LN_S@
210LTLIBOBJS = @LTLIBOBJS@
211MAKEINFO = @MAKEINFO@
212MKDIR_P = @MKDIR_P@
213MODULE_ARCH = @MODULE_ARCH@
214NM = @NM@
215NMEDIT = @NMEDIT@
216OBJC = @OBJC@
217OBJCDEPMODE = @OBJCDEPMODE@
218OBJCFLAGS = @OBJCFLAGS@
219OBJDUMP = @OBJDUMP@
220OBJEXT = @OBJEXT@
221OTOOL = @OTOOL@
222OTOOL64 = @OTOOL64@
223PACKAGE = @PACKAGE@
224PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225PACKAGE_NAME = @PACKAGE_NAME@
226PACKAGE_STRING = @PACKAGE_STRING@
227PACKAGE_TARNAME = @PACKAGE_TARNAME@
228PACKAGE_URL = @PACKAGE_URL@
229PACKAGE_VERSION = @PACKAGE_VERSION@
230PATH_SEPARATOR = @PATH_SEPARATOR@
231PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
232PIXMAN_LIBS = @PIXMAN_LIBS@
233PKG_CONFIG = @PKG_CONFIG@
234PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
235PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
236PNG_CFLAGS = @PNG_CFLAGS@
237PNG_LIBS = @PNG_LIBS@
238RANLIB = @RANLIB@
239SDL_CFLAGS = @SDL_CFLAGS@
240SDL_LIBS = @SDL_LIBS@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244SHM_OPEN_LINK = @SHM_OPEN_LINK@
245STRIP = @STRIP@
246SVG_CFLAGS = @SVG_CFLAGS@
247SVG_LIBS = @SVG_LIBS@
248VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
249VALGRIND_LIBS = @VALGRIND_LIBS@
250VERSION = @VERSION@
251VMAJ = @VMAJ@
252WIN32_CFLAGS = @WIN32_CFLAGS@
253WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
254XCB_CFLAGS = @XCB_CFLAGS@
255XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
256XCB_GL_LIBS = @XCB_GL_LIBS@
257XCB_LIBS = @XCB_LIBS@
258XEXT_CFLAGS = @XEXT_CFLAGS@
259XEXT_LIBS = @XEXT_LIBS@
260XMKMF = @XMKMF@
261X_CFLAGS = @X_CFLAGS@
262X_EXTRA_LIBS = @X_EXTRA_LIBS@
263X_LIBS = @X_LIBS@
264X_PRE_LIBS = @X_PRE_LIBS@
265abs_builddir = @abs_builddir@
266abs_srcdir = @abs_srcdir@
267abs_top_builddir = @abs_top_builddir@
268abs_top_srcdir = @abs_top_srcdir@
269ac_ct_CC = @ac_ct_CC@
270ac_ct_CXX = @ac_ct_CXX@
271ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272ac_ct_OBJC = @ac_ct_OBJC@
273altivec_cflags = @altivec_cflags@
274am__include = @am__include@
275am__leading_dot = @am__leading_dot@
276am__quote = @am__quote@
277am__tar = @am__tar@
278am__untar = @am__untar@
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
285builddir = @builddir@
286datadir = @datadir@
287datarootdir = @datarootdir@
288dlopen_libs = @dlopen_libs@
289docdir = @docdir@
290dvidir = @dvidir@
291edje_cc = @edje_cc@
292efl_doxygen = @efl_doxygen@
293efl_have_doxygen = @efl_have_doxygen@
294evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
295evas_engine_buffer_libs = @evas_engine_buffer_libs@
296evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
297evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
298evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
299evas_engine_directfb_libs = @evas_engine_directfb_libs@
300evas_engine_fb_cflags = @evas_engine_fb_cflags@
301evas_engine_fb_libs = @evas_engine_fb_libs@
302evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
303evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
304evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
305evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
306evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
307evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
308evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
309evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
310evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
311evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
312evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
313evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
314evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
315evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
316evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
317evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
318evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
319evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
320evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
321evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
322evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
323evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
324evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
325evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
326evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
327evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
328evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
334evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
335evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
336evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
337evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
338evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
339evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
340evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
341evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
342evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
343evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
344evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
345evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
346evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
347evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
348evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
349evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
350evas_image_loader_png_libs = @evas_image_loader_png_libs@
351evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
352evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
353evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
354evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
355evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
356evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
357evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
358evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
359evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
360evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
361evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
362evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
363exec_prefix = @exec_prefix@
364have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
365have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
366have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
367have_evas_engine_software_x11 = @have_evas_engine_software_x11@
368have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
369have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
370have_lcov = @have_lcov@
371host = @host@
372host_alias = @host_alias@
373host_cpu = @host_cpu@
374host_os = @host_os@
375host_vendor = @host_vendor@
376htmldir = @htmldir@
377includedir = @includedir@
378infodir = @infodir@
379install_sh = @install_sh@
380libdir = @libdir@
381libexecdir = @libexecdir@
382localedir = @localedir@
383localstatedir = @localstatedir@
384lt_ECHO = @lt_ECHO@
385lt_enable_auto_import = @lt_enable_auto_import@
386mandir = @mandir@
387mkdir_p = @mkdir_p@
388oldincludedir = @oldincludedir@
389pdfdir = @pdfdir@
390pkgconfig_requires_private = @pkgconfig_requires_private@
391prefix = @prefix@
392program_transform_name = @program_transform_name@
393psdir = @psdir@
394pthread_cflags = @pthread_cflags@
395pthread_libs = @pthread_libs@
396release_info = @release_info@
397requirement_evas = @requirement_evas@
398sbindir = @sbindir@
399sharedstatedir = @sharedstatedir@
400srcdir = @srcdir@
401sysconfdir = @sysconfdir@
402target_alias = @target_alias@
403top_build_prefix = @top_build_prefix@
404top_builddir = @top_builddir@
405top_srcdir = @top_srcdir@
406version_info = @version_info@
407MAINTAINERCLEANFILES = Makefile.in
408AM_CPPFLAGS = \
409-I. \
410-I$(top_srcdir)/src/lib \
411-I$(top_srcdir)/src/lib/include \
412@FREETYPE_CFLAGS@ \
413@PIXMAN_CFLAGS@ \
414@evas_image_loader_eet_cflags@ \
415@EINA_CFLAGS@
416
417AM_CFLAGS = @WIN32_CFLAGS@
418@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@pkgdir = $(libdir)/evas/modules/loaders/eet/$(MODULE_ARCH)
419@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@pkg_LTLIBRARIES = module.la
420@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@module_la_SOURCES = evas_image_load_eet.c
421@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_eet_libs@ $(top_builddir)/src/lib/libevas.la
422@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
423@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
424@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_TRUE@noinst_LTLIBRARIES = libevas_loader_eet.la
425@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_TRUE@libevas_loader_eet_la_SOURCES = evas_image_load_eet.c
426@BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_TRUE@libevas_loader_eet_la_LIBADD = @evas_image_loader_eet_libs@
427all: all-am
428
429.SUFFIXES:
430.SUFFIXES: .c .lo .o .obj
431$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
432 @for dep in $?; do \
433 case '$(am__configure_deps)' in \
434 *$$dep*) \
435 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
436 && { if test -f $@; then exit 0; else break; fi; }; \
437 exit 1;; \
438 esac; \
439 done; \
440 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/eet/Makefile'; \
441 $(am__cd) $(top_srcdir) && \
442 $(AUTOMAKE) --gnu src/modules/loaders/eet/Makefile
443.PRECIOUS: Makefile
444Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
445 @case '$?' in \
446 *config.status*) \
447 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
448 *) \
449 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
450 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
451 esac;
452
453$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
454 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
455
456$(top_srcdir)/configure: $(am__configure_deps)
457 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
458$(ACLOCAL_M4): $(am__aclocal_m4_deps)
459 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
460$(am__aclocal_m4_deps):
461
462clean-noinstLTLIBRARIES:
463 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
464 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
465 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
466 test "$$dir" != "$$p" || dir=.; \
467 echo "rm -f \"$${dir}/so_locations\""; \
468 rm -f "$${dir}/so_locations"; \
469 done
470install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
471 @$(NORMAL_INSTALL)
472 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
473 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
474 list2=; for p in $$list; do \
475 if test -f $$p; then \
476 list2="$$list2 $$p"; \
477 else :; fi; \
478 done; \
479 test -z "$$list2" || { \
480 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
481 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
482 }
483
484uninstall-pkgLTLIBRARIES:
485 @$(NORMAL_UNINSTALL)
486 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
487 for p in $$list; do \
488 $(am__strip_dir) \
489 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
490 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
491 done
492
493clean-pkgLTLIBRARIES:
494 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
495 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
496 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
497 test "$$dir" != "$$p" || dir=.; \
498 echo "rm -f \"$${dir}/so_locations\""; \
499 rm -f "$${dir}/so_locations"; \
500 done
501libevas_loader_eet.la: $(libevas_loader_eet_la_OBJECTS) $(libevas_loader_eet_la_DEPENDENCIES)
502 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_eet_la_rpath) $(libevas_loader_eet_la_OBJECTS) $(libevas_loader_eet_la_LIBADD) $(LIBS)
503module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
504 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
505
506mostlyclean-compile:
507 -rm -f *.$(OBJEXT)
508
509distclean-compile:
510 -rm -f *.tab.c
511
512@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_eet.Plo@am__quote@
513@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_eet.Plo@am__quote@
514
515.c.o:
516@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
517@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
518@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
519@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
520@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
521@am__fastdepCC_FALSE@ $(COMPILE) -c $<
522
523.c.obj:
524@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
525@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
526@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
527@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
528@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
529@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
530
531.c.lo:
532@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
533@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
534@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
535@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
536@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
537@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
538
539module_la-evas_image_load_eet.lo: evas_image_load_eet.c
540@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_eet.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_eet.Tpo -c -o module_la-evas_image_load_eet.lo `test -f 'evas_image_load_eet.c' || echo '$(srcdir)/'`evas_image_load_eet.c
541@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_eet.Tpo $(DEPDIR)/module_la-evas_image_load_eet.Plo
542@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
543@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_eet.c' object='module_la-evas_image_load_eet.lo' libtool=yes @AMDEPBACKSLASH@
544@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
545@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_eet.lo `test -f 'evas_image_load_eet.c' || echo '$(srcdir)/'`evas_image_load_eet.c
546
547mostlyclean-libtool:
548 -rm -f *.lo
549
550clean-libtool:
551 -rm -rf .libs _libs
552
553ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
554 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
555 unique=`for i in $$list; do \
556 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
557 done | \
558 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
559 END { if (nonempty) { for (i in files) print i; }; }'`; \
560 mkid -fID $$unique
561tags: TAGS
562
563TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
564 $(TAGS_FILES) $(LISP)
565 set x; \
566 here=`pwd`; \
567 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
568 unique=`for i in $$list; do \
569 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
570 done | \
571 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
572 END { if (nonempty) { for (i in files) print i; }; }'`; \
573 shift; \
574 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
575 test -n "$$unique" || unique=$$empty_fix; \
576 if test $$# -gt 0; then \
577 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
578 "$$@" $$unique; \
579 else \
580 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
581 $$unique; \
582 fi; \
583 fi
584ctags: CTAGS
585CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
586 $(TAGS_FILES) $(LISP)
587 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
588 unique=`for i in $$list; do \
589 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
590 done | \
591 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
592 END { if (nonempty) { for (i in files) print i; }; }'`; \
593 test -z "$(CTAGS_ARGS)$$unique" \
594 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
595 $$unique
596
597GTAGS:
598 here=`$(am__cd) $(top_builddir) && pwd` \
599 && $(am__cd) $(top_srcdir) \
600 && gtags -i $(GTAGS_ARGS) "$$here"
601
602distclean-tags:
603 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
604
605distdir: $(DISTFILES)
606 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
607 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
608 list='$(DISTFILES)'; \
609 dist_files=`for file in $$list; do echo $$file; done | \
610 sed -e "s|^$$srcdirstrip/||;t" \
611 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
612 case $$dist_files in \
613 */*) $(MKDIR_P) `echo "$$dist_files" | \
614 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
615 sort -u` ;; \
616 esac; \
617 for file in $$dist_files; do \
618 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
619 if test -d $$d/$$file; then \
620 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
621 if test -d "$(distdir)/$$file"; then \
622 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
623 fi; \
624 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
625 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
626 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
627 fi; \
628 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
629 else \
630 test -f "$(distdir)/$$file" \
631 || cp -p $$d/$$file "$(distdir)/$$file" \
632 || exit 1; \
633 fi; \
634 done
635check-am: all-am
636check: check-am
637all-am: Makefile $(LTLIBRARIES)
638installdirs:
639 for dir in "$(DESTDIR)$(pkgdir)"; do \
640 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
641 done
642install: install-am
643install-exec: install-exec-am
644install-data: install-data-am
645uninstall: uninstall-am
646
647install-am: all-am
648 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
649
650installcheck: installcheck-am
651install-strip:
652 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
653 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
654 `test -z '$(STRIP)' || \
655 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
656mostlyclean-generic:
657
658clean-generic:
659
660distclean-generic:
661 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
662 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
663
664maintainer-clean-generic:
665 @echo "This command is intended for maintainers to use"
666 @echo "it deletes files that may require special tools to rebuild."
667 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
668clean: clean-am
669
670clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
671 clean-pkgLTLIBRARIES mostlyclean-am
672
673distclean: distclean-am
674 -rm -rf ./$(DEPDIR)
675 -rm -f Makefile
676distclean-am: clean-am distclean-compile distclean-generic \
677 distclean-tags
678
679dvi: dvi-am
680
681dvi-am:
682
683html: html-am
684
685html-am:
686
687info: info-am
688
689info-am:
690
691install-data-am: install-pkgLTLIBRARIES
692
693install-dvi: install-dvi-am
694
695install-dvi-am:
696
697install-exec-am:
698
699install-html: install-html-am
700
701install-html-am:
702
703install-info: install-info-am
704
705install-info-am:
706
707install-man:
708
709install-pdf: install-pdf-am
710
711install-pdf-am:
712
713install-ps: install-ps-am
714
715install-ps-am:
716
717installcheck-am:
718
719maintainer-clean: maintainer-clean-am
720 -rm -rf ./$(DEPDIR)
721 -rm -f Makefile
722maintainer-clean-am: distclean-am maintainer-clean-generic
723
724mostlyclean: mostlyclean-am
725
726mostlyclean-am: mostlyclean-compile mostlyclean-generic \
727 mostlyclean-libtool
728
729pdf: pdf-am
730
731pdf-am:
732
733ps: ps-am
734
735ps-am:
736
737uninstall-am: uninstall-pkgLTLIBRARIES
738
739.MAKE: install-am install-strip
740
741.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
742 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
743 ctags distclean distclean-compile distclean-generic \
744 distclean-libtool distclean-tags distdir dvi dvi-am html \
745 html-am info info-am install install-am install-data \
746 install-data-am install-dvi install-dvi-am install-exec \
747 install-exec-am install-html install-html-am install-info \
748 install-info-am install-man install-pdf install-pdf-am \
749 install-pkgLTLIBRARIES install-ps install-ps-am install-strip \
750 installcheck installcheck-am installdirs maintainer-clean \
751 maintainer-clean-generic mostlyclean mostlyclean-compile \
752 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
753 tags uninstall uninstall-am uninstall-pkgLTLIBRARIES
754
755
756# Tell versions [3.59,3.63) of GNU make to not export all variables.
757# Otherwise a system limit (for SysV at least) may be exceeded.
758.NOEXPORT:
diff --git a/libraries/evas/src/modules/loaders/eet/evas_image_load_eet.c b/libraries/evas/src/modules/loaders/eet/evas_image_load_eet.c
new file mode 100644
index 0000000..a187b9e
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/eet/evas_image_load_eet.c
@@ -0,0 +1,182 @@
1#ifdef HAVE_CONFIG_H
2# include "config.h" /* so that EAPI in Eet.h is correctly defined */
3#endif
4
5#include <Eet.h>
6
7#include "evas_common.h"
8#include "evas_private.h"
9
10
11static Eina_Bool evas_image_load_file_head_eet(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
12static Eina_Bool evas_image_load_file_data_eet(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
13
14Evas_Image_Load_Func evas_image_load_eet_func =
15{
16 EINA_TRUE,
17 evas_image_load_file_head_eet,
18 evas_image_load_file_data_eet,
19 NULL
20};
21
22
23static Eina_Bool
24evas_image_load_file_head_eet(Image_Entry *ie, const char *file, const char *key, int *error)
25{
26 int alpha, compression, quality, lossy;
27 unsigned int w, h;
28 Eet_File *ef;
29 int ok;
30 Eina_Bool res = EINA_FALSE;
31
32 if (!key)
33 {
34 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
35 return EINA_FALSE;
36 }
37
38 ef = eet_open((char *)file, EET_FILE_MODE_READ);
39 if (!ef)
40 {
41 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
42 return EINA_FALSE;
43 }
44 ok = eet_data_image_header_read(ef, key,
45 &w, &h, &alpha, &compression, &quality, &lossy);
46 if (!ok)
47 {
48 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
49 goto on_error;
50 }
51 if (IMG_TOO_BIG(w, h))
52 {
53 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
54 goto on_error;
55 }
56 if (alpha) ie->flags.alpha = 1;
57 ie->w = w;
58 ie->h = h;
59 res = EINA_TRUE;
60 *error = EVAS_LOAD_ERROR_NONE;
61
62 on_error:
63 eet_close(ef);
64 return res;
65}
66
67Eina_Bool
68evas_image_load_file_data_eet(Image_Entry *ie, const char *file, const char *key, int *error)
69{
70 unsigned int w, h;
71 int alpha, compression, quality, lossy, ok;
72 Eet_File *ef;
73 DATA32 *body, *p, *end, *data;
74 DATA32 nas = 0;
75 Eina_Bool res = EINA_FALSE;
76
77 if (!key)
78 {
79 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
80 return EINA_FALSE;
81 }
82 if (ie->flags.loaded)
83 {
84 *error = EVAS_LOAD_ERROR_NONE;
85 return EINA_TRUE;
86 }
87 ef = eet_open(file, EET_FILE_MODE_READ);
88 if (!ef)
89 {
90 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
91 return EINA_FALSE;
92 }
93 ok = eet_data_image_header_read(ef, key,
94 &w, &h, &alpha, &compression, &quality, &lossy);
95 if (IMG_TOO_BIG(w, h))
96 {
97 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
98 goto on_error;
99 }
100 if (!ok)
101 {
102 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
103 goto on_error;
104 }
105 evas_cache_image_surface_alloc(ie, w, h);
106 data = evas_cache_image_pixels(ie);
107 if (!data)
108 {
109 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
110 goto on_error;
111 }
112 ok = eet_data_image_read_to_surface(ef, key, 0, 0,
113 data, w, h, w * 4,
114 &alpha, &compression, &quality, &lossy);
115 if (!ok)
116 {
117 *error = EVAS_LOAD_ERROR_GENERIC;
118 goto on_error;
119 }
120 if (alpha)
121 {
122 ie->flags.alpha = 1;
123
124 body = evas_cache_image_pixels(ie);
125
126 end = body +(w * h);
127 for (p = body; p < end; p++)
128 {
129 DATA32 r, g, b, a;
130
131 a = A_VAL(p);
132 r = R_VAL(p);
133 g = G_VAL(p);
134 b = B_VAL(p);
135 if ((a == 0) || (a == 255)) nas++;
136 if (r > a) r = a;
137 if (g > a) g = a;
138 if (b > a) b = a;
139 *p = ARGB_JOIN(a, r, g, b);
140 }
141 if ((ALPHA_SPARSE_INV_FRACTION * nas) >= (ie->w * ie->h))
142 ie->flags.alpha_sparse = 1;
143 }
144// result is already premultiplied now if u compile with edje
145// evas_common_image_premul(im);
146 *error = EVAS_LOAD_ERROR_NONE;
147 res = EINA_TRUE;
148
149 on_error:
150 eet_close(ef);
151 return res;
152}
153
154static int
155module_open(Evas_Module *em)
156{
157 if (!em) return 0;
158 em->functions = (void *)(&evas_image_load_eet_func);
159 return 1;
160}
161
162static void
163module_close(Evas_Module *em __UNUSED__)
164{
165}
166
167static Evas_Module_Api evas_modapi =
168{
169 EVAS_MODULE_API_VERSION,
170 "eet",
171 "none",
172 {
173 module_open,
174 module_close
175 }
176};
177
178EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, eet);
179
180#ifndef EVAS_STATIC_BUILD_EET
181EVAS_EINA_MODULE_DEFINE(image_loader, eet);
182#endif
diff --git a/libraries/evas/src/modules/loaders/generic/Makefile.am b/libraries/evas/src/modules/loaders/generic/Makefile.am
new file mode 100644
index 0000000..a9e522e
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/generic/Makefile.am
@@ -0,0 +1,38 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_CPPFLAGS = \
5-I. \
6-I$(top_srcdir)/src/lib \
7-I$(top_srcdir)/src/lib/include \
8@FREETYPE_CFLAGS@ \
9@PIXMAN_CFLAGS@ \
10@evas_image_loader_generic_cflags@ \
11@EINA_CFLAGS@ \
12@EVIL_CFLAGS@ \
13@WIN32_CPPFLAGS@
14
15AM_CFLAGS = @WIN32_CFLAGS@
16
17
18if BUILD_LOADER_GENERIC
19if !EVAS_STATIC_BUILD_GENERIC
20
21pkgdir = $(libdir)/evas/modules/loaders/generic/$(MODULE_ARCH)
22pkg_LTLIBRARIES = module.la
23
24module_la_SOURCES = evas_image_load_generic.c
25
26module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_generic_libs@ @SHM_OPEN_LINK@ $(top_builddir)/src/lib/libevas.la
27module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
28module_la_LIBTOOLFLAGS = --tag=disable-static
29
30else
31
32noinst_LTLIBRARIES = libevas_loader_generic.la
33
34libevas_loader_generic_la_SOURCES = evas_image_load_generic.c
35libevas_loader_generic_la_LIBADD = @evas_image_loader_generic_libs@ @SHM_OPEN_LINK@
36
37endif
38endif
diff --git a/libraries/evas/src/modules/loaders/generic/Makefile.in b/libraries/evas/src/modules/loaders/generic/Makefile.in
new file mode 100644
index 0000000..65a0bac
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/generic/Makefile.in
@@ -0,0 +1,761 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/generic
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_generic_la_DEPENDENCIES =
83am__libevas_loader_generic_la_SOURCES_DIST = \
84 evas_image_load_generic.c
85@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_TRUE@am_libevas_loader_generic_la_OBJECTS = evas_image_load_generic.lo
86libevas_loader_generic_la_OBJECTS = \
87 $(am_libevas_loader_generic_la_OBJECTS)
88AM_V_lt = $(am__v_lt_$(V))
89am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
90am__v_lt_0 = --silent
91@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_TRUE@am_libevas_loader_generic_la_rpath =
92@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la
93am__module_la_SOURCES_DIST = evas_image_load_generic.c
94@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_generic.lo
95module_la_OBJECTS = $(am_module_la_OBJECTS)
96module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
97 $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
98 $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@
99@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@am_module_la_rpath = -rpath \
100@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@ $(pkgdir)
101DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
102depcomp = $(SHELL) $(top_srcdir)/depcomp
103am__depfiles_maybe = depfiles
104am__mv = mv -f
105COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
106 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
107LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
108 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
109 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
110 $(AM_CFLAGS) $(CFLAGS)
111AM_V_CC = $(am__v_CC_$(V))
112am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
113am__v_CC_0 = @echo " CC " $@;
114AM_V_at = $(am__v_at_$(V))
115am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
116am__v_at_0 = @
117CCLD = $(CC)
118LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
119 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
120 $(AM_LDFLAGS) $(LDFLAGS) -o $@
121AM_V_CCLD = $(am__v_CCLD_$(V))
122am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
123am__v_CCLD_0 = @echo " CCLD " $@;
124AM_V_GEN = $(am__v_GEN_$(V))
125am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
126am__v_GEN_0 = @echo " GEN " $@;
127SOURCES = $(libevas_loader_generic_la_SOURCES) $(module_la_SOURCES)
128DIST_SOURCES = $(am__libevas_loader_generic_la_SOURCES_DIST) \
129 $(am__module_la_SOURCES_DIST)
130ETAGS = etags
131CTAGS = ctags
132DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
133ACLOCAL = @ACLOCAL@
134ALLOCA = @ALLOCA@
135AMTAR = @AMTAR@
136AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
137AR = @AR@
138AS = @AS@
139AUTOCONF = @AUTOCONF@
140AUTOHEADER = @AUTOHEADER@
141AUTOMAKE = @AUTOMAKE@
142AWK = @AWK@
143CC = @CC@
144CCDEPMODE = @CCDEPMODE@
145CFLAGS = @CFLAGS@
146CHECK_CFLAGS = @CHECK_CFLAGS@
147CHECK_LIBS = @CHECK_LIBS@
148CPP = @CPP@
149CPPFLAGS = @CPPFLAGS@
150CXX = @CXX@
151CXXCPP = @CXXCPP@
152CXXDEPMODE = @CXXDEPMODE@
153CXXFLAGS = @CXXFLAGS@
154CYGPATH_W = @CYGPATH_W@
155DEFS = @DEFS@
156DEPDIR = @DEPDIR@
157DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
158DIRECTFB_LIBS = @DIRECTFB_LIBS@
159DLLTOOL = @DLLTOOL@
160DSYMUTIL = @DSYMUTIL@
161DUMPBIN = @DUMPBIN@
162ECHO_C = @ECHO_C@
163ECHO_N = @ECHO_N@
164ECHO_T = @ECHO_T@
165ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
166ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
167EDB_CFLAGS = @EDB_CFLAGS@
168EDB_LIBS = @EDB_LIBS@
169EDJE_CFLAGS = @EDJE_CFLAGS@
170EDJE_LIBS = @EDJE_LIBS@
171EET_CFLAGS = @EET_CFLAGS@
172EET_LIBS = @EET_LIBS@
173EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
174EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
175EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
176EGREP = @EGREP@
177EINA_CFLAGS = @EINA_CFLAGS@
178EINA_LIBS = @EINA_LIBS@
179EVAS_CFLAGS = @EVAS_CFLAGS@
180EVAS_LIBS = @EVAS_LIBS@
181EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
182EVIL_CFLAGS = @EVIL_CFLAGS@
183EVIL_LIBS = @EVIL_LIBS@
184EXEEXT = @EXEEXT@
185FGREP = @FGREP@
186FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
187FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
188FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
189FREETYPE_LIBS = @FREETYPE_LIBS@
190FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
191FRIBIDI_LIBS = @FRIBIDI_LIBS@
192GL_EET_CFLAGS = @GL_EET_CFLAGS@
193GL_EET_LIBS = @GL_EET_LIBS@
194GREP = @GREP@
195HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
196HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
197INSTALL = @INSTALL@
198INSTALL_DATA = @INSTALL_DATA@
199INSTALL_PROGRAM = @INSTALL_PROGRAM@
200INSTALL_SCRIPT = @INSTALL_SCRIPT@
201INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
202LD = @LD@
203LDFLAGS = @LDFLAGS@
204LIBOBJS = @LIBOBJS@
205LIBS = @LIBS@
206LIBTOOL = @LIBTOOL@
207LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
208LINEBREAK_LIBS = @LINEBREAK_LIBS@
209LIPO = @LIPO@
210LN_S = @LN_S@
211LTLIBOBJS = @LTLIBOBJS@
212MAKEINFO = @MAKEINFO@
213MKDIR_P = @MKDIR_P@
214MODULE_ARCH = @MODULE_ARCH@
215NM = @NM@
216NMEDIT = @NMEDIT@
217OBJC = @OBJC@
218OBJCDEPMODE = @OBJCDEPMODE@
219OBJCFLAGS = @OBJCFLAGS@
220OBJDUMP = @OBJDUMP@
221OBJEXT = @OBJEXT@
222OTOOL = @OTOOL@
223OTOOL64 = @OTOOL64@
224PACKAGE = @PACKAGE@
225PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
226PACKAGE_NAME = @PACKAGE_NAME@
227PACKAGE_STRING = @PACKAGE_STRING@
228PACKAGE_TARNAME = @PACKAGE_TARNAME@
229PACKAGE_URL = @PACKAGE_URL@
230PACKAGE_VERSION = @PACKAGE_VERSION@
231PATH_SEPARATOR = @PATH_SEPARATOR@
232PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
233PIXMAN_LIBS = @PIXMAN_LIBS@
234PKG_CONFIG = @PKG_CONFIG@
235PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
236PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
237PNG_CFLAGS = @PNG_CFLAGS@
238PNG_LIBS = @PNG_LIBS@
239RANLIB = @RANLIB@
240SDL_CFLAGS = @SDL_CFLAGS@
241SDL_LIBS = @SDL_LIBS@
242SED = @SED@
243SET_MAKE = @SET_MAKE@
244SHELL = @SHELL@
245SHM_OPEN_LINK = @SHM_OPEN_LINK@
246STRIP = @STRIP@
247SVG_CFLAGS = @SVG_CFLAGS@
248SVG_LIBS = @SVG_LIBS@
249VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
250VALGRIND_LIBS = @VALGRIND_LIBS@
251VERSION = @VERSION@
252VMAJ = @VMAJ@
253WIN32_CFLAGS = @WIN32_CFLAGS@
254WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
255XCB_CFLAGS = @XCB_CFLAGS@
256XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
257XCB_GL_LIBS = @XCB_GL_LIBS@
258XCB_LIBS = @XCB_LIBS@
259XEXT_CFLAGS = @XEXT_CFLAGS@
260XEXT_LIBS = @XEXT_LIBS@
261XMKMF = @XMKMF@
262X_CFLAGS = @X_CFLAGS@
263X_EXTRA_LIBS = @X_EXTRA_LIBS@
264X_LIBS = @X_LIBS@
265X_PRE_LIBS = @X_PRE_LIBS@
266abs_builddir = @abs_builddir@
267abs_srcdir = @abs_srcdir@
268abs_top_builddir = @abs_top_builddir@
269abs_top_srcdir = @abs_top_srcdir@
270ac_ct_CC = @ac_ct_CC@
271ac_ct_CXX = @ac_ct_CXX@
272ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
273ac_ct_OBJC = @ac_ct_OBJC@
274altivec_cflags = @altivec_cflags@
275am__include = @am__include@
276am__leading_dot = @am__leading_dot@
277am__quote = @am__quote@
278am__tar = @am__tar@
279am__untar = @am__untar@
280bindir = @bindir@
281build = @build@
282build_alias = @build_alias@
283build_cpu = @build_cpu@
284build_os = @build_os@
285build_vendor = @build_vendor@
286builddir = @builddir@
287datadir = @datadir@
288datarootdir = @datarootdir@
289dlopen_libs = @dlopen_libs@
290docdir = @docdir@
291dvidir = @dvidir@
292edje_cc = @edje_cc@
293efl_doxygen = @efl_doxygen@
294efl_have_doxygen = @efl_have_doxygen@
295evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
296evas_engine_buffer_libs = @evas_engine_buffer_libs@
297evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
298evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
299evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
300evas_engine_directfb_libs = @evas_engine_directfb_libs@
301evas_engine_fb_cflags = @evas_engine_fb_cflags@
302evas_engine_fb_libs = @evas_engine_fb_libs@
303evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
304evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
305evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
306evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
307evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
308evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
309evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
310evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
311evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
312evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
313evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
314evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
315evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
316evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
317evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
318evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
319evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
320evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
321evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
322evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
323evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
324evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
325evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
326evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
327evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
328evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
329evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
330evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
331evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
332evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
333evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
334evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
335evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
336evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
337evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
338evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
339evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
340evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
341evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
342evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
343evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
344evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
345evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
346evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
347evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
348evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
349evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
350evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
351evas_image_loader_png_libs = @evas_image_loader_png_libs@
352evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
353evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
354evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
355evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
356evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
357evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
358evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
359evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
360evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
361evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
362evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
363evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
364exec_prefix = @exec_prefix@
365have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
366have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
367have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
368have_evas_engine_software_x11 = @have_evas_engine_software_x11@
369have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
370have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
371have_lcov = @have_lcov@
372host = @host@
373host_alias = @host_alias@
374host_cpu = @host_cpu@
375host_os = @host_os@
376host_vendor = @host_vendor@
377htmldir = @htmldir@
378includedir = @includedir@
379infodir = @infodir@
380install_sh = @install_sh@
381libdir = @libdir@
382libexecdir = @libexecdir@
383localedir = @localedir@
384localstatedir = @localstatedir@
385lt_ECHO = @lt_ECHO@
386lt_enable_auto_import = @lt_enable_auto_import@
387mandir = @mandir@
388mkdir_p = @mkdir_p@
389oldincludedir = @oldincludedir@
390pdfdir = @pdfdir@
391pkgconfig_requires_private = @pkgconfig_requires_private@
392prefix = @prefix@
393program_transform_name = @program_transform_name@
394psdir = @psdir@
395pthread_cflags = @pthread_cflags@
396pthread_libs = @pthread_libs@
397release_info = @release_info@
398requirement_evas = @requirement_evas@
399sbindir = @sbindir@
400sharedstatedir = @sharedstatedir@
401srcdir = @srcdir@
402sysconfdir = @sysconfdir@
403target_alias = @target_alias@
404top_build_prefix = @top_build_prefix@
405top_builddir = @top_builddir@
406top_srcdir = @top_srcdir@
407version_info = @version_info@
408MAINTAINERCLEANFILES = Makefile.in
409AM_CPPFLAGS = \
410-I. \
411-I$(top_srcdir)/src/lib \
412-I$(top_srcdir)/src/lib/include \
413@FREETYPE_CFLAGS@ \
414@PIXMAN_CFLAGS@ \
415@evas_image_loader_generic_cflags@ \
416@EINA_CFLAGS@ \
417@EVIL_CFLAGS@ \
418@WIN32_CPPFLAGS@
419
420AM_CFLAGS = @WIN32_CFLAGS@
421@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@pkgdir = $(libdir)/evas/modules/loaders/generic/$(MODULE_ARCH)
422@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@pkg_LTLIBRARIES = module.la
423@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@module_la_SOURCES = evas_image_load_generic.c
424@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_generic_libs@ @SHM_OPEN_LINK@ $(top_builddir)/src/lib/libevas.la
425@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
426@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
427@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_TRUE@noinst_LTLIBRARIES = libevas_loader_generic.la
428@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_TRUE@libevas_loader_generic_la_SOURCES = evas_image_load_generic.c
429@BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_TRUE@libevas_loader_generic_la_LIBADD = @evas_image_loader_generic_libs@ @SHM_OPEN_LINK@
430all: 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/generic/Makefile'; \
444 $(am__cd) $(top_srcdir) && \
445 $(AUTOMAKE) --gnu src/modules/loaders/generic/Makefile
446.PRECIOUS: Makefile
447Makefile: $(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
465clean-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
473install-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
487uninstall-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
496clean-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
504libevas_loader_generic.la: $(libevas_loader_generic_la_OBJECTS) $(libevas_loader_generic_la_DEPENDENCIES)
505 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_generic_la_rpath) $(libevas_loader_generic_la_OBJECTS) $(libevas_loader_generic_la_LIBADD) $(LIBS)
506module.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
509mostlyclean-compile:
510 -rm -f *.$(OBJEXT)
511
512distclean-compile:
513 -rm -f *.tab.c
514
515@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_generic.Plo@am__quote@
516@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_generic.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
542module_la-evas_image_load_generic.lo: evas_image_load_generic.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_generic.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_generic.Tpo -c -o module_la-evas_image_load_generic.lo `test -f 'evas_image_load_generic.c' || echo '$(srcdir)/'`evas_image_load_generic.c
544@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_generic.Tpo $(DEPDIR)/module_la-evas_image_load_generic.Plo
545@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
546@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_generic.c' object='module_la-evas_image_load_generic.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_generic.lo `test -f 'evas_image_load_generic.c' || echo '$(srcdir)/'`evas_image_load_generic.c
549
550mostlyclean-libtool:
551 -rm -f *.lo
552
553clean-libtool:
554 -rm -rf .libs _libs
555
556ID: $(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
564tags: TAGS
565
566TAGS: $(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
587ctags: CTAGS
588CTAGS: $(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
600GTAGS:
601 here=`$(am__cd) $(top_builddir) && pwd` \
602 && $(am__cd) $(top_srcdir) \
603 && gtags -i $(GTAGS_ARGS) "$$here"
604
605distclean-tags:
606 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
607
608distdir: $(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
638check-am: all-am
639check: check-am
640all-am: Makefile $(LTLIBRARIES)
641installdirs:
642 for dir in "$(DESTDIR)$(pkgdir)"; do \
643 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
644 done
645install: install-am
646install-exec: install-exec-am
647install-data: install-data-am
648uninstall: uninstall-am
649
650install-am: all-am
651 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
652
653installcheck: installcheck-am
654install-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
659mostlyclean-generic:
660
661clean-generic:
662
663distclean-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
667maintainer-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)
671clean: clean-am
672
673clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
674 clean-pkgLTLIBRARIES mostlyclean-am
675
676distclean: distclean-am
677 -rm -rf ./$(DEPDIR)
678 -rm -f Makefile
679distclean-am: clean-am distclean-compile distclean-generic \
680 distclean-tags
681
682dvi: dvi-am
683
684dvi-am:
685
686html: html-am
687
688html-am:
689
690info: info-am
691
692info-am:
693
694install-data-am: install-pkgLTLIBRARIES
695
696install-dvi: install-dvi-am
697
698install-dvi-am:
699
700install-exec-am:
701
702install-html: install-html-am
703
704install-html-am:
705
706install-info: install-info-am
707
708install-info-am:
709
710install-man:
711
712install-pdf: install-pdf-am
713
714install-pdf-am:
715
716install-ps: install-ps-am
717
718install-ps-am:
719
720installcheck-am:
721
722maintainer-clean: maintainer-clean-am
723 -rm -rf ./$(DEPDIR)
724 -rm -f Makefile
725maintainer-clean-am: distclean-am maintainer-clean-generic
726
727mostlyclean: mostlyclean-am
728
729mostlyclean-am: mostlyclean-compile mostlyclean-generic \
730 mostlyclean-libtool
731
732pdf: pdf-am
733
734pdf-am:
735
736ps: ps-am
737
738ps-am:
739
740uninstall-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/generic/evas_image_load_generic.c b/libraries/evas/src/modules/loaders/generic/evas_image_load_generic.c
new file mode 100644
index 0000000..88c189d
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/generic/evas_image_load_generic.c
@@ -0,0 +1,430 @@
1#ifdef HAVE_CONFIG_H
2# include "config.h"
3#endif
4
5#ifdef HAVE_EVIL
6# include <Evil.h>
7#endif
8
9#include "evas_common.h"
10#include "evas_private.h"
11
12#include <stdio.h>
13#include <sys/types.h>
14#include <sys/mman.h>
15#include <sys/stat.h>
16#include <fcntl.h>
17#include <ctype.h>
18
19static Eina_Bool evas_image_load_file_head_generic(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
20static Eina_Bool evas_image_load_file_data_generic(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
21
22Evas_Image_Load_Func evas_image_load_generic_func =
23{
24 EINA_TRUE,
25 evas_image_load_file_head_generic,
26 evas_image_load_file_data_generic,
27 NULL
28};
29
30static Eina_Bool
31illegal_char(const char *str)
32{
33 const char *p;
34
35 for (p = str; *p; p++)
36 {
37 if (*p < '-') return EINA_TRUE;
38 if (*p == '/') return EINA_TRUE;
39 if (*p == ';') return EINA_TRUE;
40 if (*p == ':') return EINA_TRUE;
41 if (*p == '<') return EINA_TRUE;
42 if (*p == '>') return EINA_TRUE;
43 if (*p == '?') return EINA_TRUE;
44 if (*p == '[') return EINA_TRUE;
45 if (*p == '\\') return EINA_TRUE;
46 if (*p == ']') return EINA_TRUE;
47 if (*p == '`') return EINA_TRUE;
48 if (*p == '{') return EINA_TRUE;
49 if (*p == '|') return EINA_TRUE;
50 if (*p == '}') return EINA_TRUE;
51 if (*p == '~') return EINA_TRUE;
52 if (*p == 0x7f) return EINA_TRUE;
53 }
54 return EINA_FALSE;
55}
56
57static void
58escape_copy(const char *src, char *dst)
59{
60 const char *s;
61 char *d;
62
63 for (s = src, d = dst; *s; s++, d++)
64 {
65 // FIXME: escape tab, newline linefeed and friends
66 if ((*s == ' ') ||
67 (*s == '!') ||
68 (*s == '"') ||
69 (*s == '#') ||
70 (*s == '$') ||
71 (*s == '%') ||
72 (*s == '&') ||
73 (*s == '\'') ||
74 (*s == '(') ||
75 (*s == ')') ||
76 (*s == '*') ||
77 (*s == '[') ||
78 (*s == '\\') ||
79 (*s == ']') ||
80 (*s == '`') ||
81 (*s == '{') ||
82 (*s == '|') ||
83 (*s == '}') ||
84 (*s == '~'))
85 {
86 *d = '\\';
87 d++;
88 }
89 *d = *s;
90 }
91 *d = 0;
92}
93
94static void
95dotcat(char *dest, const char *src)
96{
97 int len = strlen(dest);
98 const char *s;
99 char *d;
100
101 for (d = dest + len, s = src; *s; d++, s++) *d = tolower(*s);
102 *d = 0;
103}
104
105static Eina_Bool
106_load(Image_Entry *ie, const char *file, const char *key, int *error, Eina_Bool get_data)
107{
108 Eina_Bool res = EINA_FALSE;
109 int w = 0, h = 0, alpha = 0;
110 const char *dot1 = NULL, *dot2 = NULL, *end, *p;
111 char *cmd = NULL, decoders[3][128], buf[4096];
112 char *loader = "/evas/utils/evas_image_loader";
113 char *img_loader = NULL;
114 const char *libdir;
115 // eg $libdir/evas/generic_loaders
116 int cmd_len, len, decoders_num = 0, try_count = 0;
117 int read_data = 0;
118 char *tmpfname = NULL, *shmfname = NULL;
119 DATA32 *body;
120 FILE *f;
121
122 libdir = _evas_module_libdir_get();
123 cmd_len = strlen(libdir);
124 cmd_len += strlen(loader);
125 img_loader = alloca(cmd_len + 1);
126 strcpy(img_loader, libdir);
127 strcat(img_loader, loader);
128 // params excluding file, key and loadopts
129 cmd_len += 1024;
130 cmd_len += strlen(file) * 2;
131 if (key) cmd_len += strlen(key) * 2;
132 cmd = alloca(cmd_len + 1);
133
134 len = strlen(file);
135 if (len < 1)
136 {
137 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
138 return EINA_FALSE;
139 }
140 end = file + len;
141 for (p = end - 1; p >= file; p--)
142 {
143 if ((!dot1) && (*p == '.')) dot1 = p;
144 else if ((!dot2) && (*p == '.')) dot2 = p;
145 else if ((dot1) && (dot2)) break;
146 }
147 if (dot2)
148 {
149 // double extn not too long
150 if (((end - dot2) <= 10) && (!illegal_char(dot2)))
151 {
152 strcpy(&(decoders[decoders_num][0]), img_loader);
153 dotcat(&(decoders[decoders_num][0]), dot2);
154 decoders_num++;
155 }
156 // single extn not too long
157 if (((end - dot1) <= 5) && (!illegal_char(dot1)))
158 {
159 strcpy(&(decoders[decoders_num][0]), img_loader);
160 dotcat(&(decoders[decoders_num][0]), dot1);
161 decoders_num++;
162 }
163 strcpy(decoders[decoders_num], img_loader);
164 decoders_num++;
165 }
166 else if (dot1)
167 {
168 // single extn not too long
169 if (((end - dot1) <= 5) && (!illegal_char(dot1)))
170 {
171 strcpy(&(decoders[decoders_num][0]), img_loader);
172 dotcat(&(decoders[decoders_num][0]), dot1);
173 decoders_num++;
174 }
175 strcpy(decoders[decoders_num], img_loader);
176 decoders_num++;
177 }
178 else
179 {
180 strcpy(decoders[decoders_num], img_loader);
181 decoders_num++;
182 }
183
184 for (try_count = 0; try_count < decoders_num; try_count++)
185 {
186 // FIXME: strcats could be more efficient, not that it matters much
187 // here as we are about to build a cmd to exec via a shell that
188 // will interpret shell stuff and path hunt that will then exec the
189 // program itself that will dynamically link that will again
190 // parse the arguments and finally do something...
191 strcpy(cmd, decoders[try_count]);
192 strcat(cmd, " ");
193 // filename first arg
194 len = strlen(cmd);
195 escape_copy(file, cmd + len);
196 if (!get_data)
197 {
198 strcat(cmd, " -head ");
199 }
200 if (key)
201 {
202 strcat(cmd, " -key ");
203 len = strlen(cmd);
204 escape_copy(key, cmd + len);
205 }
206 if (ie->load_opts.scale_down_by > 1)
207 {
208 strcat(cmd, " -opt-scale-down-by ");
209 snprintf(buf, sizeof(buf), "%i", ie->load_opts.scale_down_by);
210 strcat(cmd, buf);
211 }
212 if (ie->load_opts.dpi > 0.0)
213 {
214 strcat(cmd, " -opt-dpi ");
215 snprintf(buf, sizeof(buf), "%i", (int)(ie->load_opts.dpi * 1000.0));
216 strcat(cmd, buf);
217 }
218 if ((ie->load_opts.w > 0) &&
219 (ie->load_opts.h > 0))
220 {
221 strcat(cmd, " -opt-size ");
222 snprintf(buf, sizeof(buf), "%i %i", ie->load_opts.w, ie->load_opts.h);
223 strcat(cmd, buf);
224 }
225 f = popen(cmd, "r");
226 if (f) break;
227 }
228 if (!f)
229 {
230 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
231 return EINA_FALSE;
232 }
233 while (fgets(buf, sizeof(buf), f))
234 {
235 len = strlen(buf);
236 if (len > 0)
237 {
238 if (buf[len - 1] == '\n') buf[len - 1] = 0;
239 if (!strncmp(buf, "size ", 5))
240 {
241 int tw = 0, th = 0;
242
243 len = sscanf(buf, "%*s %i %i", &tw, &th);
244 if (len == 2)
245 {
246 if ((tw > 0) && (th > 0))
247 {
248 w = tw;
249 h = th;
250 }
251 }
252 }
253 else if (!strncmp(buf, "alpha ", 6))
254 {
255 int ta;
256
257 len = sscanf(buf, "%*s %i", &ta);
258 if (len == 1)
259 {
260 alpha = ta;
261 }
262 }
263 else if (!strncmp(buf, "tmpfile ", 8))
264 {
265 tmpfname = buf + 8;
266 goto getdata;
267 }
268#ifdef HAVE_SHM_OPEN
269 else if (!strncmp(buf, "shmfile ", 8))
270 {
271 shmfname = buf + 8;
272 goto getdata;
273 }
274#endif
275 else if (!strncmp(buf, "data", 4))
276 {
277 read_data = 1;
278 goto getdata;
279 }
280 else if (!strncmp(buf, "done", 4))
281 {
282 read_data = 2;
283 goto getdata;
284 }
285 }
286 }
287getdata:
288 if ((!read_data) && (!tmpfname) && (!shmfname))
289 {
290 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
291 goto on_error;
292 }
293 if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) ||
294 IMG_TOO_BIG(w, h))
295 {
296 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
297 goto on_error;
298 }
299 body = evas_cache_image_pixels(ie);
300 if (body)
301 {
302 if ((w != (int)ie->w) || (h != (int)ie->h))
303 {
304 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
305 goto on_error;
306 }
307 }
308 if (alpha) ie->flags.alpha = 1;
309 ie->w = w;
310 ie->h = h;
311
312 if (get_data)
313 {
314 if (!body) evas_cache_image_surface_alloc(ie, ie->w, ie->h);
315 body = evas_cache_image_pixels(ie);
316 if (!body)
317 {
318 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
319 goto on_error;
320 }
321
322 if ((tmpfname) || (shmfname))
323 {
324 int fd = -1;
325
326 // open
327 if (tmpfname)
328 fd = open(tmpfname, O_RDONLY, S_IRUSR);
329#ifdef HAVE_SHM_OPEN
330 else if (shmfname)
331 fd = shm_open(shmfname, O_RDONLY, S_IRUSR);
332#endif
333 if (fd >= 0)
334 {
335 void *addr;
336
337 eina_mmap_safety_enabled_set(EINA_TRUE);
338
339 // mmap
340 addr = mmap(NULL, w * h * sizeof(DATA32),
341 PROT_READ, MAP_SHARED, fd, 0);
342 if (addr != MAP_FAILED)
343 {
344 memcpy(body, addr, w * h * sizeof(DATA32));
345 munmap(addr, w * h * sizeof(DATA32));
346 }
347 // close
348 if (tmpfname)
349 {
350 close(fd);
351 unlink(tmpfname);
352 }
353#ifdef HAVE_SHM_OPEN
354 else if (shmfname)
355 {
356 close(fd);
357 shm_unlink(shmfname);
358 }
359#endif
360 }
361 else
362 {
363 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
364 goto on_error;
365 }
366 }
367 else if (read_data)
368 {
369 if (fread(body, w * h * sizeof(DATA32), 1, f) != 1)
370 {
371 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
372 goto on_error;
373 }
374 }
375 }
376
377 res = EINA_TRUE;
378 *error = EVAS_LOAD_ERROR_NONE;
379
380 on_error:
381 if (f) pclose(f);
382 return res;
383}
384
385static Eina_Bool
386evas_image_load_file_head_generic(Image_Entry *ie, const char *file, const char *key, int *error)
387{
388 return _load(ie, file, key, error, EINA_FALSE);
389}
390
391static Eina_Bool
392evas_image_load_file_data_generic(Image_Entry *ie, const char *file, const char *key, int *error)
393{
394 DATA32 *body;
395
396 body = evas_cache_image_pixels(ie);
397 if (!body) return _load(ie, file, key, error, EINA_TRUE);
398 *error = EVAS_LOAD_ERROR_NONE;
399 return EINA_TRUE;
400}
401
402static int
403module_open(Evas_Module *em)
404{
405 if (!em) return 0;
406 em->functions = (void *)(&evas_image_load_generic_func);
407 return 1;
408}
409
410static void
411module_close(Evas_Module *em __UNUSED__)
412{
413}
414
415static Evas_Module_Api evas_modapi =
416{
417 EVAS_MODULE_API_VERSION,
418 "generic",
419 "none",
420 {
421 module_open,
422 module_close
423 }
424};
425
426EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, generic);
427
428#ifndef EVAS_STATIC_BUILD_GENERIC
429EVAS_EINA_MODULE_DEFINE(image_loader, generic);
430#endif
diff --git a/libraries/evas/src/modules/loaders/gif/Makefile.am b/libraries/evas/src/modules/loaders/gif/Makefile.am
new file mode 100644
index 0000000..9234370
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/gif/Makefile.am
@@ -0,0 +1,35 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_CPPFLAGS = \
5-I. \
6-I$(top_srcdir)/src/lib \
7-I$(top_srcdir)/src/lib/include \
8@FREETYPE_CFLAGS@ \
9@PIXMAN_CFLAGS@ \
10@evas_image_loader_gif_cflags@ \
11@EINA_CFLAGS@
12
13AM_CFLAGS = @WIN32_CFLAGS@
14
15if BUILD_LOADER_GIF
16if !EVAS_STATIC_BUILD_GIF
17
18pkgdir = $(libdir)/evas/modules/loaders/gif/$(MODULE_ARCH)
19pkg_LTLIBRARIES = module.la
20
21module_la_SOURCES = evas_image_load_gif.c
22
23module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_gif_libs@ $(top_builddir)/src/lib/libevas.la
24module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
25module_la_LIBTOOLFLAGS = --tag=disable-static
26
27else
28
29noinst_LTLIBRARIES = libevas_loader_gif.la
30
31libevas_loader_gif_la_SOURCES = evas_image_load_gif.c
32libevas_loader_gif_la_LIBADD = @evas_image_loader_gif_libs@
33
34endif
35endif
diff --git a/libraries/evas/src/modules/loaders/gif/Makefile.in b/libraries/evas/src/modules/loaders/gif/Makefile.in
new file mode 100644
index 0000000..7fcd6a7
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/gif/Makefile.in
@@ -0,0 +1,758 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/gif
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_gif_la_DEPENDENCIES =
83am__libevas_loader_gif_la_SOURCES_DIST = evas_image_load_gif.c
84@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_TRUE@am_libevas_loader_gif_la_OBJECTS = evas_image_load_gif.lo
85libevas_loader_gif_la_OBJECTS = $(am_libevas_loader_gif_la_OBJECTS)
86AM_V_lt = $(am__v_lt_$(V))
87am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88am__v_lt_0 = --silent
89@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_TRUE@am_libevas_loader_gif_la_rpath =
90@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la
91am__module_la_SOURCES_DIST = evas_image_load_gif.c
92@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_gif.lo
93module_la_OBJECTS = $(am_module_la_OBJECTS)
94module_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_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@am_module_la_rpath = \
98@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@ -rpath \
99@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@ $(pkgdir)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_gif_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_gif_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184FGREP = @FGREP@
185FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
186FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
187FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
188FREETYPE_LIBS = @FREETYPE_LIBS@
189FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
190FRIBIDI_LIBS = @FRIBIDI_LIBS@
191GL_EET_CFLAGS = @GL_EET_CFLAGS@
192GL_EET_LIBS = @GL_EET_LIBS@
193GREP = @GREP@
194HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
195HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
196INSTALL = @INSTALL@
197INSTALL_DATA = @INSTALL_DATA@
198INSTALL_PROGRAM = @INSTALL_PROGRAM@
199INSTALL_SCRIPT = @INSTALL_SCRIPT@
200INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
201LD = @LD@
202LDFLAGS = @LDFLAGS@
203LIBOBJS = @LIBOBJS@
204LIBS = @LIBS@
205LIBTOOL = @LIBTOOL@
206LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
207LINEBREAK_LIBS = @LINEBREAK_LIBS@
208LIPO = @LIPO@
209LN_S = @LN_S@
210LTLIBOBJS = @LTLIBOBJS@
211MAKEINFO = @MAKEINFO@
212MKDIR_P = @MKDIR_P@
213MODULE_ARCH = @MODULE_ARCH@
214NM = @NM@
215NMEDIT = @NMEDIT@
216OBJC = @OBJC@
217OBJCDEPMODE = @OBJCDEPMODE@
218OBJCFLAGS = @OBJCFLAGS@
219OBJDUMP = @OBJDUMP@
220OBJEXT = @OBJEXT@
221OTOOL = @OTOOL@
222OTOOL64 = @OTOOL64@
223PACKAGE = @PACKAGE@
224PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225PACKAGE_NAME = @PACKAGE_NAME@
226PACKAGE_STRING = @PACKAGE_STRING@
227PACKAGE_TARNAME = @PACKAGE_TARNAME@
228PACKAGE_URL = @PACKAGE_URL@
229PACKAGE_VERSION = @PACKAGE_VERSION@
230PATH_SEPARATOR = @PATH_SEPARATOR@
231PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
232PIXMAN_LIBS = @PIXMAN_LIBS@
233PKG_CONFIG = @PKG_CONFIG@
234PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
235PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
236PNG_CFLAGS = @PNG_CFLAGS@
237PNG_LIBS = @PNG_LIBS@
238RANLIB = @RANLIB@
239SDL_CFLAGS = @SDL_CFLAGS@
240SDL_LIBS = @SDL_LIBS@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244SHM_OPEN_LINK = @SHM_OPEN_LINK@
245STRIP = @STRIP@
246SVG_CFLAGS = @SVG_CFLAGS@
247SVG_LIBS = @SVG_LIBS@
248VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
249VALGRIND_LIBS = @VALGRIND_LIBS@
250VERSION = @VERSION@
251VMAJ = @VMAJ@
252WIN32_CFLAGS = @WIN32_CFLAGS@
253WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
254XCB_CFLAGS = @XCB_CFLAGS@
255XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
256XCB_GL_LIBS = @XCB_GL_LIBS@
257XCB_LIBS = @XCB_LIBS@
258XEXT_CFLAGS = @XEXT_CFLAGS@
259XEXT_LIBS = @XEXT_LIBS@
260XMKMF = @XMKMF@
261X_CFLAGS = @X_CFLAGS@
262X_EXTRA_LIBS = @X_EXTRA_LIBS@
263X_LIBS = @X_LIBS@
264X_PRE_LIBS = @X_PRE_LIBS@
265abs_builddir = @abs_builddir@
266abs_srcdir = @abs_srcdir@
267abs_top_builddir = @abs_top_builddir@
268abs_top_srcdir = @abs_top_srcdir@
269ac_ct_CC = @ac_ct_CC@
270ac_ct_CXX = @ac_ct_CXX@
271ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272ac_ct_OBJC = @ac_ct_OBJC@
273altivec_cflags = @altivec_cflags@
274am__include = @am__include@
275am__leading_dot = @am__leading_dot@
276am__quote = @am__quote@
277am__tar = @am__tar@
278am__untar = @am__untar@
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
285builddir = @builddir@
286datadir = @datadir@
287datarootdir = @datarootdir@
288dlopen_libs = @dlopen_libs@
289docdir = @docdir@
290dvidir = @dvidir@
291edje_cc = @edje_cc@
292efl_doxygen = @efl_doxygen@
293efl_have_doxygen = @efl_have_doxygen@
294evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
295evas_engine_buffer_libs = @evas_engine_buffer_libs@
296evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
297evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
298evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
299evas_engine_directfb_libs = @evas_engine_directfb_libs@
300evas_engine_fb_cflags = @evas_engine_fb_cflags@
301evas_engine_fb_libs = @evas_engine_fb_libs@
302evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
303evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
304evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
305evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
306evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
307evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
308evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
309evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
310evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
311evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
312evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
313evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
314evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
315evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
316evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
317evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
318evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
319evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
320evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
321evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
322evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
323evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
324evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
325evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
326evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
327evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
328evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
334evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
335evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
336evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
337evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
338evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
339evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
340evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
341evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
342evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
343evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
344evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
345evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
346evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
347evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
348evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
349evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
350evas_image_loader_png_libs = @evas_image_loader_png_libs@
351evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
352evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
353evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
354evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
355evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
356evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
357evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
358evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
359evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
360evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
361evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
362evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
363exec_prefix = @exec_prefix@
364have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
365have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
366have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
367have_evas_engine_software_x11 = @have_evas_engine_software_x11@
368have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
369have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
370have_lcov = @have_lcov@
371host = @host@
372host_alias = @host_alias@
373host_cpu = @host_cpu@
374host_os = @host_os@
375host_vendor = @host_vendor@
376htmldir = @htmldir@
377includedir = @includedir@
378infodir = @infodir@
379install_sh = @install_sh@
380libdir = @libdir@
381libexecdir = @libexecdir@
382localedir = @localedir@
383localstatedir = @localstatedir@
384lt_ECHO = @lt_ECHO@
385lt_enable_auto_import = @lt_enable_auto_import@
386mandir = @mandir@
387mkdir_p = @mkdir_p@
388oldincludedir = @oldincludedir@
389pdfdir = @pdfdir@
390pkgconfig_requires_private = @pkgconfig_requires_private@
391prefix = @prefix@
392program_transform_name = @program_transform_name@
393psdir = @psdir@
394pthread_cflags = @pthread_cflags@
395pthread_libs = @pthread_libs@
396release_info = @release_info@
397requirement_evas = @requirement_evas@
398sbindir = @sbindir@
399sharedstatedir = @sharedstatedir@
400srcdir = @srcdir@
401sysconfdir = @sysconfdir@
402target_alias = @target_alias@
403top_build_prefix = @top_build_prefix@
404top_builddir = @top_builddir@
405top_srcdir = @top_srcdir@
406version_info = @version_info@
407MAINTAINERCLEANFILES = Makefile.in
408AM_CPPFLAGS = \
409-I. \
410-I$(top_srcdir)/src/lib \
411-I$(top_srcdir)/src/lib/include \
412@FREETYPE_CFLAGS@ \
413@PIXMAN_CFLAGS@ \
414@evas_image_loader_gif_cflags@ \
415@EINA_CFLAGS@
416
417AM_CFLAGS = @WIN32_CFLAGS@
418@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@pkgdir = $(libdir)/evas/modules/loaders/gif/$(MODULE_ARCH)
419@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@pkg_LTLIBRARIES = module.la
420@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@module_la_SOURCES = evas_image_load_gif.c
421@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_gif_libs@ $(top_builddir)/src/lib/libevas.la
422@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
423@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
424@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_TRUE@noinst_LTLIBRARIES = libevas_loader_gif.la
425@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_TRUE@libevas_loader_gif_la_SOURCES = evas_image_load_gif.c
426@BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_TRUE@libevas_loader_gif_la_LIBADD = @evas_image_loader_gif_libs@
427all: all-am
428
429.SUFFIXES:
430.SUFFIXES: .c .lo .o .obj
431$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
432 @for dep in $?; do \
433 case '$(am__configure_deps)' in \
434 *$$dep*) \
435 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
436 && { if test -f $@; then exit 0; else break; fi; }; \
437 exit 1;; \
438 esac; \
439 done; \
440 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/gif/Makefile'; \
441 $(am__cd) $(top_srcdir) && \
442 $(AUTOMAKE) --gnu src/modules/loaders/gif/Makefile
443.PRECIOUS: Makefile
444Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
445 @case '$?' in \
446 *config.status*) \
447 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
448 *) \
449 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
450 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
451 esac;
452
453$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
454 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
455
456$(top_srcdir)/configure: $(am__configure_deps)
457 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
458$(ACLOCAL_M4): $(am__aclocal_m4_deps)
459 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
460$(am__aclocal_m4_deps):
461
462clean-noinstLTLIBRARIES:
463 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
464 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
465 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
466 test "$$dir" != "$$p" || dir=.; \
467 echo "rm -f \"$${dir}/so_locations\""; \
468 rm -f "$${dir}/so_locations"; \
469 done
470install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
471 @$(NORMAL_INSTALL)
472 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
473 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
474 list2=; for p in $$list; do \
475 if test -f $$p; then \
476 list2="$$list2 $$p"; \
477 else :; fi; \
478 done; \
479 test -z "$$list2" || { \
480 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
481 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
482 }
483
484uninstall-pkgLTLIBRARIES:
485 @$(NORMAL_UNINSTALL)
486 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
487 for p in $$list; do \
488 $(am__strip_dir) \
489 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
490 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
491 done
492
493clean-pkgLTLIBRARIES:
494 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
495 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
496 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
497 test "$$dir" != "$$p" || dir=.; \
498 echo "rm -f \"$${dir}/so_locations\""; \
499 rm -f "$${dir}/so_locations"; \
500 done
501libevas_loader_gif.la: $(libevas_loader_gif_la_OBJECTS) $(libevas_loader_gif_la_DEPENDENCIES)
502 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_gif_la_rpath) $(libevas_loader_gif_la_OBJECTS) $(libevas_loader_gif_la_LIBADD) $(LIBS)
503module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
504 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
505
506mostlyclean-compile:
507 -rm -f *.$(OBJEXT)
508
509distclean-compile:
510 -rm -f *.tab.c
511
512@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_gif.Plo@am__quote@
513@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_gif.Plo@am__quote@
514
515.c.o:
516@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
517@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
518@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
519@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
520@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
521@am__fastdepCC_FALSE@ $(COMPILE) -c $<
522
523.c.obj:
524@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
525@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
526@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
527@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
528@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
529@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
530
531.c.lo:
532@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
533@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
534@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
535@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
536@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
537@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
538
539module_la-evas_image_load_gif.lo: evas_image_load_gif.c
540@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_gif.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_gif.Tpo -c -o module_la-evas_image_load_gif.lo `test -f 'evas_image_load_gif.c' || echo '$(srcdir)/'`evas_image_load_gif.c
541@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_gif.Tpo $(DEPDIR)/module_la-evas_image_load_gif.Plo
542@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
543@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_gif.c' object='module_la-evas_image_load_gif.lo' libtool=yes @AMDEPBACKSLASH@
544@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
545@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_gif.lo `test -f 'evas_image_load_gif.c' || echo '$(srcdir)/'`evas_image_load_gif.c
546
547mostlyclean-libtool:
548 -rm -f *.lo
549
550clean-libtool:
551 -rm -rf .libs _libs
552
553ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
554 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
555 unique=`for i in $$list; do \
556 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
557 done | \
558 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
559 END { if (nonempty) { for (i in files) print i; }; }'`; \
560 mkid -fID $$unique
561tags: TAGS
562
563TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
564 $(TAGS_FILES) $(LISP)
565 set x; \
566 here=`pwd`; \
567 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
568 unique=`for i in $$list; do \
569 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
570 done | \
571 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
572 END { if (nonempty) { for (i in files) print i; }; }'`; \
573 shift; \
574 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
575 test -n "$$unique" || unique=$$empty_fix; \
576 if test $$# -gt 0; then \
577 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
578 "$$@" $$unique; \
579 else \
580 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
581 $$unique; \
582 fi; \
583 fi
584ctags: CTAGS
585CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
586 $(TAGS_FILES) $(LISP)
587 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
588 unique=`for i in $$list; do \
589 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
590 done | \
591 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
592 END { if (nonempty) { for (i in files) print i; }; }'`; \
593 test -z "$(CTAGS_ARGS)$$unique" \
594 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
595 $$unique
596
597GTAGS:
598 here=`$(am__cd) $(top_builddir) && pwd` \
599 && $(am__cd) $(top_srcdir) \
600 && gtags -i $(GTAGS_ARGS) "$$here"
601
602distclean-tags:
603 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
604
605distdir: $(DISTFILES)
606 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
607 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
608 list='$(DISTFILES)'; \
609 dist_files=`for file in $$list; do echo $$file; done | \
610 sed -e "s|^$$srcdirstrip/||;t" \
611 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
612 case $$dist_files in \
613 */*) $(MKDIR_P) `echo "$$dist_files" | \
614 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
615 sort -u` ;; \
616 esac; \
617 for file in $$dist_files; do \
618 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
619 if test -d $$d/$$file; then \
620 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
621 if test -d "$(distdir)/$$file"; then \
622 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
623 fi; \
624 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
625 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
626 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
627 fi; \
628 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
629 else \
630 test -f "$(distdir)/$$file" \
631 || cp -p $$d/$$file "$(distdir)/$$file" \
632 || exit 1; \
633 fi; \
634 done
635check-am: all-am
636check: check-am
637all-am: Makefile $(LTLIBRARIES)
638installdirs:
639 for dir in "$(DESTDIR)$(pkgdir)"; do \
640 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
641 done
642install: install-am
643install-exec: install-exec-am
644install-data: install-data-am
645uninstall: uninstall-am
646
647install-am: all-am
648 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
649
650installcheck: installcheck-am
651install-strip:
652 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
653 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
654 `test -z '$(STRIP)' || \
655 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
656mostlyclean-generic:
657
658clean-generic:
659
660distclean-generic:
661 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
662 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
663
664maintainer-clean-generic:
665 @echo "This command is intended for maintainers to use"
666 @echo "it deletes files that may require special tools to rebuild."
667 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
668clean: clean-am
669
670clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
671 clean-pkgLTLIBRARIES mostlyclean-am
672
673distclean: distclean-am
674 -rm -rf ./$(DEPDIR)
675 -rm -f Makefile
676distclean-am: clean-am distclean-compile distclean-generic \
677 distclean-tags
678
679dvi: dvi-am
680
681dvi-am:
682
683html: html-am
684
685html-am:
686
687info: info-am
688
689info-am:
690
691install-data-am: install-pkgLTLIBRARIES
692
693install-dvi: install-dvi-am
694
695install-dvi-am:
696
697install-exec-am:
698
699install-html: install-html-am
700
701install-html-am:
702
703install-info: install-info-am
704
705install-info-am:
706
707install-man:
708
709install-pdf: install-pdf-am
710
711install-pdf-am:
712
713install-ps: install-ps-am
714
715install-ps-am:
716
717installcheck-am:
718
719maintainer-clean: maintainer-clean-am
720 -rm -rf ./$(DEPDIR)
721 -rm -f Makefile
722maintainer-clean-am: distclean-am maintainer-clean-generic
723
724mostlyclean: mostlyclean-am
725
726mostlyclean-am: mostlyclean-compile mostlyclean-generic \
727 mostlyclean-libtool
728
729pdf: pdf-am
730
731pdf-am:
732
733ps: ps-am
734
735ps-am:
736
737uninstall-am: uninstall-pkgLTLIBRARIES
738
739.MAKE: install-am install-strip
740
741.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
742 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
743 ctags distclean distclean-compile distclean-generic \
744 distclean-libtool distclean-tags distdir dvi dvi-am html \
745 html-am info info-am install install-am install-data \
746 install-data-am install-dvi install-dvi-am install-exec \
747 install-exec-am install-html install-html-am install-info \
748 install-info-am install-man install-pdf install-pdf-am \
749 install-pkgLTLIBRARIES install-ps install-ps-am install-strip \
750 installcheck installcheck-am installdirs maintainer-clean \
751 maintainer-clean-generic mostlyclean mostlyclean-compile \
752 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
753 tags uninstall uninstall-am uninstall-pkgLTLIBRARIES
754
755
756# Tell versions [3.59,3.63) of GNU make to not export all variables.
757# Otherwise a system limit (for SysV at least) may be exceeded.
758.NOEXPORT:
diff --git a/libraries/evas/src/modules/loaders/gif/evas_image_load_gif.c b/libraries/evas/src/modules/loaders/gif/evas_image_load_gif.c
new file mode 100644
index 0000000..976df0d
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/gif/evas_image_load_gif.c
@@ -0,0 +1,1030 @@
1#include "evas_common.h"
2#include "evas_private.h"
3
4#include <sys/types.h>
5#include <sys/stat.h>
6#include <fcntl.h>
7#include <unistd.h>
8
9#include <gif_lib.h>
10
11typedef struct _Gif_Frame Gif_Frame;
12
13typedef enum _Frame_Load_Type
14{
15 LOAD_FRAME_NONE = 0,
16 LOAD_FRAME_INFO = 1,
17 LOAD_FRAME_DATA = 2,
18 LOAD_FRAME_DATA_INFO = 3
19} Frame_Load_Type;
20
21struct _Gif_Frame
22{
23 struct {
24 /* Image descriptor */
25 int x;
26 int y;
27 int w;
28 int h;
29 int interlace;
30 } image_des;
31
32 struct {
33 /* Graphic Control*/
34 int disposal;
35 int transparent;
36 int delay;
37 int input;
38 } frame_info;
39};
40
41static Eina_Bool evas_image_load_file_data_gif_internal(Image_Entry *ie, Image_Entry_Frame *frame, int *error);
42
43static Eina_Bool evas_image_load_file_head_gif(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
44static Eina_Bool evas_image_load_file_data_gif(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
45static double evas_image_load_frame_duration_gif(Image_Entry *ie, const char *file, int start_frame, int frame_num) ;
46static Eina_Bool evas_image_load_specific_frame(Image_Entry *ie, const char *file, int frame_index, int *error);
47
48static Evas_Image_Load_Func evas_image_load_gif_func =
49{
50 EINA_TRUE,
51 evas_image_load_file_head_gif,
52 evas_image_load_file_data_gif,
53 evas_image_load_frame_duration_gif
54};
55#define byte2_to_int(a,b) (((b)<<8)|(a))
56
57#define FRAME_MAX 1024
58
59/* find specific frame in image entry */
60static Eina_Bool
61_find_frame(Image_Entry *ie, int frame_index, Image_Entry_Frame **frame)
62{
63 Eina_List *l;
64 Image_Entry_Frame *hit_frame = NULL;
65
66 if (!ie) return EINA_FALSE;
67 if (!ie->frames) return EINA_FALSE;
68
69 EINA_LIST_FOREACH(ie->frames, l, hit_frame)
70 {
71 if (hit_frame->index == frame_index)
72 {
73 *frame = hit_frame;
74 return EINA_TRUE;
75 }
76 }
77 return EINA_FALSE;
78}
79
80static Eina_Bool
81_find_close_frame(Image_Entry *ie, int frame_index, Image_Entry_Frame **frame)
82{
83 int i;
84 Eina_Bool hit = EINA_FALSE;
85 i = frame_index -1;
86
87 if (!ie) return EINA_FALSE;
88 if (!ie->frames) return EINA_FALSE;
89
90 for (; i > 0; i--)
91 {
92 hit = _find_frame(ie, i, frame);
93 if (hit)
94 return EINA_TRUE;
95 }
96 return EINA_FALSE;
97}
98
99static Eina_Bool
100_evas_image_skip_frame(GifFileType *gif, int frame)
101{
102 int remain_frame = 0;
103 GifRecordType rec;
104
105 if (!gif) return EINA_FALSE;
106 if (frame == 0) return EINA_TRUE; /* no need to skip */
107 if (frame < 0 || frame > FRAME_MAX) return EINA_FALSE;
108
109 remain_frame = frame;
110
111 do
112 {
113 if (DGifGetRecordType(gif, &rec) == GIF_ERROR) return EINA_FALSE;
114
115 if (rec == EXTENSION_RECORD_TYPE)
116 {
117 int ext_code;
118 GifByteType *ext;
119
120 ext = NULL;
121 DGifGetExtension(gif, &ext_code, &ext);
122 while (ext)
123 { /*skip extention */
124 ext = NULL;
125 DGifGetExtensionNext(gif, &ext);
126 }
127 }
128
129 if (rec == IMAGE_DESC_RECORD_TYPE)
130 {
131 int img_code;
132 GifByteType *img;
133
134 if (DGifGetImageDesc(gif) == GIF_ERROR) return EINA_FALSE;
135
136 remain_frame --;
137 /* we have to count frame, so use DGifGetCode and skip decoding */
138 if (DGifGetCode(gif, &img_code, &img) == GIF_ERROR) return EINA_FALSE;
139
140 while (img)
141 {
142 img = NULL;
143 DGifGetCodeNext(gif, &img);
144 }
145 if (remain_frame < 1) return EINA_TRUE;
146 }
147 if (rec == TERMINATE_RECORD_TYPE) return EINA_FALSE; /* end of file */
148
149 } while ((rec != TERMINATE_RECORD_TYPE) && (remain_frame > 0));
150 return EINA_FALSE;
151}
152
153static Eina_Bool
154_evas_image_load_frame_graphic_info(Image_Entry_Frame *frame, GifByteType *ext)
155{
156 Gif_Frame *gif_frame = NULL;
157 if ((!frame) || (!ext)) return EINA_FALSE;
158
159 gif_frame = (Gif_Frame *) frame->info;
160
161 /* transparent */
162 if ((ext[1] & 0x1) != 0)
163 gif_frame->frame_info.transparent = ext[4];
164 else
165 gif_frame->frame_info.transparent = -1;
166
167 gif_frame->frame_info.input = (ext[1] >>1) & 0x1;
168 gif_frame->frame_info.disposal = (ext[1] >>2) & 0x7;
169 gif_frame->frame_info.delay = byte2_to_int(ext[2], ext[3]);
170 return EINA_TRUE;
171}
172
173static Eina_Bool
174_evas_image_load_frame_image_des_info(GifFileType *gif, Image_Entry_Frame *frame)
175{
176 Gif_Frame *gif_frame = NULL;
177 if ((!gif) || (!frame)) return EINA_FALSE;
178
179 gif_frame = (Gif_Frame *) frame->info;
180 gif_frame->image_des.x = gif->Image.Left;
181 gif_frame->image_des.y = gif->Image.Top;
182 gif_frame->image_des.w = gif->Image.Width;
183 gif_frame->image_des.h = gif->Image.Height;
184 gif_frame->image_des.interlace = gif->Image.Interlace;
185 return EINA_TRUE;
186}
187
188static Eina_Bool
189_evas_image_load_frame_image_data(Image_Entry *ie, GifFileType *gif, Image_Entry_Frame *frame, int *error)
190{
191 int w;
192 int h;
193 int x;
194 int y;
195 int i,j;
196 int bg;
197 int r;
198 int g;
199 int b;
200 int alpha;
201 double per;
202 double per_inc;
203 ColorMapObject *cmap;
204 GifRowType *rows;
205 int intoffset[] = { 0, 4, 2, 1 };
206 int intjump[] = { 8, 8, 4, 2 };
207 size_t siz;
208 int cache_w;
209 int cache_h;
210 int cur_h;
211 int cur_w;
212 int disposal = 0;
213 int bg_val = 0;
214 DATA32 *ptr;
215 Gif_Frame *gif_frame = NULL;
216
217 if ((!gif) || (!frame)) return EINA_FALSE;
218
219 gif_frame = (Gif_Frame *) frame->info;
220 w = gif->Image.Width;
221 h = gif->Image.Height;
222 x = gif->Image.Left;
223 y = gif->Image.Top;
224 cache_w = ie->w;
225 cache_h = ie->h;
226
227 rows = malloc(h * sizeof(GifRowType *));
228 if (!rows)
229 {
230 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
231 return EINA_FALSE;
232 }
233 for (i = 0; i < h; i++)
234 {
235 rows[i] = NULL;
236 }
237 for (i = 0; i < h; i++)
238 {
239 rows[i] = malloc(w * sizeof(GifPixelType));
240 if (!rows[i])
241 {
242 for (i = 0; i < h; i++)
243 {
244 if (rows[i])
245 {
246 free(rows[i]);
247 }
248 }
249 free(rows);
250 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
251 return EINA_FALSE;
252 }
253 }
254 if (gif->Image.Interlace)
255 {
256 for (i = 0; i < 4; i++)
257 {
258 for (j = intoffset[i]; j < h; j += intjump[i])
259 {
260 DGifGetLine(gif, rows[j], w);
261 }
262 }
263 }
264 else
265 {
266 for (i = 0; i < h; i++)
267 {
268 if (DGifGetLine(gif, rows[i], w) != GIF_OK)
269 {
270 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
271 goto error;
272 }
273 }
274 }
275 alpha = gif_frame->frame_info.transparent;
276 siz = cache_w *cache_h * sizeof(DATA32);
277 frame->data = malloc(siz);
278 if (!frame->data)
279 {
280 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
281 goto error;
282 }
283 ptr = frame->data;
284 bg = gif->SBackGroundColor;
285 cmap = (gif->Image.ColorMap ? gif->Image.ColorMap : gif->SColorMap);
286
287 if (!cmap)
288 {
289 DGifCloseFile(gif);
290 for (i = 0; i < h; i++)
291 {
292 free(rows[i]);
293 }
294 free(rows);
295 if (frame->data) free(frame->data);
296 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
297 return EINA_FALSE;
298 }
299
300 /* get the background value */
301 r = cmap->Colors[bg].Red;
302 g = cmap->Colors[bg].Green;
303 b = cmap->Colors[bg].Blue;
304 bg_val = ARGB_JOIN(0xff, r, g, b);
305
306 per_inc = 100.0 / (((double)w) * h);
307 cur_h = h;
308 cur_w = w;
309 if (cur_h > cache_h) cur_h = cache_h;
310 if (cur_w > cache_w) cur_w = cache_w;
311
312 if (frame->index > 1)
313 {
314 /* get previous frame only frame index is bigger than 1 */
315 DATA32 *ptr_src;
316 Image_Entry_Frame *new_frame = NULL;
317 int cur_frame = frame->index;
318 int start_frame = 1;
319 int j = 0;
320
321 if (_find_close_frame(ie, cur_frame, &new_frame))
322 start_frame = new_frame->index + 1;
323
324 if ((start_frame < 1) || (start_frame > cur_frame))
325 {
326 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
327 goto error;
328 }
329 /* load previous frame of cur_frame */
330 for (j = start_frame; j < cur_frame ; j++)
331 {
332 if (!evas_image_load_specific_frame(ie, ie->file, j, error))
333 {
334 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
335 goto error;
336 }
337 }
338 if (!_find_frame(ie, cur_frame - 1, &new_frame))
339 {
340 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
341 goto error;
342 }
343 else
344 {
345 Gif_Frame *gif_frame = NULL;
346 ptr_src = new_frame->data;
347 if (new_frame->info)
348 {
349 gif_frame = (Gif_Frame *)(new_frame->info);
350 disposal = gif_frame->frame_info.disposal;
351 }
352 switch(disposal) /* we only support disposal flag 0,1,2 */
353 {
354 case 1: /* Do not dispose. need previous frame*/
355 memcpy(ptr, ptr_src, siz);
356 /* composite frames */
357 ptr = ptr + cache_w * y;
358
359 for (i = 0; i < cur_h; i++)
360 {
361 ptr = ptr + x;
362 for (j = 0; j < cur_w; j++)
363 {
364 if (rows[i][j] == alpha)
365 {
366 ptr++ ;
367 }
368 else
369 {
370 r = cmap->Colors[rows[i][j]].Red;
371 g = cmap->Colors[rows[i][j]].Green;
372 b = cmap->Colors[rows[i][j]].Blue;
373 *ptr++ = ARGB_JOIN(0xff, r, g, b);
374 }
375 per += per_inc;
376 }
377 ptr = ptr + (cache_w - (x + cur_w));
378 }
379 break;
380 case 2: /* Restore to background color */
381 memcpy(ptr, ptr_src, siz);
382 /* composite frames */
383 for (i = 0; i < cache_h; i++)
384 {
385 if ((i < y) || (i >= (y + cur_h)))
386 {
387 for (j = 0; j < cache_w; j++)
388 {
389 *ptr = bg_val;
390 ptr++;
391 }
392 }
393 else
394 {
395 int i1, j1;
396 i1 = i -y;
397
398 for (j = 0; j < cache_w; j++)
399 {
400 j1 = j - x;
401 if ((j < x) || (j >= (x + cur_w)))
402 {
403 *ptr = bg_val;
404 ptr++;
405 }
406 else
407 {
408 r = cmap->Colors[rows[i1][j1]].Red;
409 g = cmap->Colors[rows[i1][j1]].Green;
410 b = cmap->Colors[rows[i1][j1]].Blue;
411 *ptr++ = ARGB_JOIN(0xff, r, g, b);
412 }
413 }
414 }
415 }
416 break;
417 case 0: /* No disposal specified */
418 default:
419 memset(ptr, 0, siz);
420 for (i = 0; i < cache_h; i++)
421 {
422 if ((i < y) || (i >= (y + cur_h)))
423 {
424 for (j = 0; j < cache_w; j++)
425 {
426 *ptr = bg_val;
427 ptr++;
428 }
429 }
430 else
431 {
432 int i1, j1;
433 i1 = i -y;
434
435 for (j = 0; j < cache_w; j++)
436 {
437 j1 = j - x;
438 if ((j < x) || (j >= (x + cur_w)))
439 {
440 *ptr = bg_val;
441 ptr++;
442 }
443 else
444 {
445 r = cmap->Colors[rows[i1][j1]].Red;
446 g = cmap->Colors[rows[i1][j1]].Green;
447 b = cmap->Colors[rows[i1][j1]].Blue;
448 *ptr++ = ARGB_JOIN(0xff, r, g, b);
449 }
450 }
451 }
452 }
453 break;
454 }
455 }
456 }
457 else /* first frame decoding */
458 {
459 /* fill background color */
460 for (i = 0; i < cache_h; i++)
461 {
462 if ((i < y) || (i >= (y + cur_h)))
463 {
464 for (j = 0; j < cache_w; j++)
465 {
466 *ptr = bg_val;
467 ptr++;
468 }
469 }
470 else
471 {
472 int i1, j1;
473 i1 = i -y;
474
475 for (j = 0; j < cache_w; j++)
476 {
477 j1 = j - x;
478 if ((j < x) || (j >= (x + cur_w)))
479 {
480 *ptr = bg_val;
481 ptr++;
482 }
483 else
484 {
485 r = cmap->Colors[rows[i1][j1]].Red;
486 g = cmap->Colors[rows[i1][j1]].Green;
487 b = cmap->Colors[rows[i1][j1]].Blue;
488 *ptr++ = ARGB_JOIN(0xff, r, g, b);
489 }
490 }
491 }
492 }
493 }
494
495 for (i = 0; i < h; i++)
496 {
497 if (rows[i]) free(rows[i]);
498 }
499 if (rows) free(rows);
500 frame->loaded = EINA_TRUE;
501 return EINA_TRUE;
502error:
503 for (i = 0; i < h; i++)
504 {
505 if (rows[i]) free(rows[i]);
506 }
507 if (rows) free(rows);
508 return EINA_FALSE;
509}
510
511static Eina_Bool
512_evas_image_load_frame(Image_Entry *ie, GifFileType *gif, Image_Entry_Frame *frame, Frame_Load_Type type, int *error)
513{
514 GifRecordType rec;
515 int gra_res = 0, img_res = 0;
516 Eina_Bool res = EINA_FALSE;
517 Gif_Frame *gif_frame = NULL;
518
519 if ((!gif) || (!frame)) return EINA_FALSE;
520 gif_frame = (Gif_Frame *) frame->info;
521
522 if (type > LOAD_FRAME_DATA_INFO) return EINA_FALSE;
523
524 do
525 {
526 if (DGifGetRecordType(gif, &rec) == GIF_ERROR) return EINA_FALSE;
527 if (rec == IMAGE_DESC_RECORD_TYPE)
528 {
529 img_res++;
530 break;
531 }
532 else if (rec == EXTENSION_RECORD_TYPE)
533 {
534 int ext_code;
535 GifByteType *ext;
536
537 ext = NULL;
538 DGifGetExtension(gif, &ext_code, &ext);
539 while (ext)
540 {
541 if (ext_code == 0xf9) /* Graphic Control Extension */
542 {
543 gra_res++;
544 /* fill frame info */
545 if ((type == LOAD_FRAME_INFO) || (type == LOAD_FRAME_DATA_INFO))
546 _evas_image_load_frame_graphic_info(frame,ext);
547 }
548 ext = NULL;
549 DGifGetExtensionNext(gif, &ext);
550 }
551 }
552 } while ((rec != TERMINATE_RECORD_TYPE) && (img_res == 0));
553 if (img_res != 1) return EINA_FALSE;
554 if (DGifGetImageDesc(gif) == GIF_ERROR) return EINA_FALSE;
555 if ((type == LOAD_FRAME_INFO) || (type == LOAD_FRAME_DATA_INFO))
556 _evas_image_load_frame_image_des_info(gif, frame);
557
558 if ((type == LOAD_FRAME_DATA) || (type == LOAD_FRAME_DATA_INFO))
559 {
560 res = _evas_image_load_frame_image_data(ie, gif,frame, error);
561 if (!res) return EINA_FALSE;
562 }
563 return EINA_TRUE;
564}
565
566
567/* set frame data to cache entry's data */
568static Eina_Bool
569evas_image_load_file_data_gif_internal(Image_Entry *ie, Image_Entry_Frame *frame, int *error)
570{
571 int w;
572 int h;
573 int dst_x;
574 int dst_y;
575 DATA32 *dst;
576 DATA32 *src;
577 int cache_w, cache_h;
578 size_t siz;
579 Gif_Frame *gif_frame = NULL;
580
581 gif_frame = (Gif_Frame *) frame->info;
582 cache_w = ie->w;
583 cache_h = ie->h;
584 w = gif_frame->image_des.w;
585 h = gif_frame->image_des.h;
586 dst_x = gif_frame->image_des.x;
587 dst_y = gif_frame->image_des.y;
588
589 src = frame->data;
590
591 if (!evas_cache_image_pixels(ie))
592 {
593 evas_cache_image_surface_alloc(ie, cache_w, cache_h);
594 }
595
596 if (!evas_cache_image_pixels(ie))
597 {
598 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
599 return EINA_FALSE;
600 }
601
602 /* only copy real frame part */
603 siz = cache_w * cache_h * sizeof(DATA32);
604 dst = evas_cache_image_pixels(ie);
605
606 memcpy(dst, src, siz);
607
608 evas_common_image_premul(ie);
609
610 *error = EVAS_LOAD_ERROR_NONE;
611 return EINA_TRUE;
612}
613
614static Eina_Bool
615evas_image_load_file_head_gif(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
616{
617 int fd;
618 GifFileType *gif;
619 GifRecordType rec;
620 int w;
621 int h;
622 int alpha;
623 int loop_count = -1;
624
625 w = 0;
626 h = 0;
627 alpha = -1;
628
629#ifndef __EMX__
630 fd = open(file, O_RDONLY);
631#else
632 fd = open(file, O_RDONLY | O_BINARY);
633#endif
634 if (fd < 0)
635 {
636 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
637 return EINA_FALSE;
638 }
639
640 gif = DGifOpenFileHandle(fd);
641 if (!gif)
642 {
643 if (fd) close(fd);
644 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
645 return EINA_FALSE;
646 }
647
648 /* check logical screen size */
649 w = gif->SWidth;
650 h = gif->SHeight;
651
652 if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) ||
653 IMG_TOO_BIG(w, h))
654 {
655 DGifCloseFile(gif);
656 if (IMG_TOO_BIG(w, h))
657 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
658 else
659 *error = EVAS_LOAD_ERROR_GENERIC;
660 return EINA_FALSE;
661 }
662 ie->w = w;
663 ie->h = h;
664
665 do
666 {
667 if (DGifGetRecordType(gif, &rec) == GIF_ERROR)
668 {
669 /* PrintGifError(); */
670 DGifCloseFile(gif);
671 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
672 return EINA_FALSE;
673 }
674
675 /* image descript info */
676 if (rec == IMAGE_DESC_RECORD_TYPE)
677 {
678 int img_code;
679 GifByteType *img;
680
681 if (DGifGetImageDesc(gif) == GIF_ERROR)
682 {
683 /* PrintGifError(); */
684 DGifCloseFile(gif);
685 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
686 return EINA_FALSE;
687 }
688 /* we have to count frame, so use DGifGetCode and skip decoding */
689 if (DGifGetCode(gif, &img_code, &img) == GIF_ERROR)
690 {
691 /* PrintGifError(); */
692 DGifCloseFile(gif);
693 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
694 return EINA_FALSE;
695 }
696 while (img)
697 {
698 img = NULL;
699 DGifGetCodeNext(gif, &img);
700 }
701 }
702 else if (rec == EXTENSION_RECORD_TYPE)
703 {
704 int ext_code;
705 GifByteType *ext;
706
707 ext = NULL;
708 DGifGetExtension(gif, &ext_code, &ext);
709 while (ext)
710 {
711 if (ext_code == 0xf9) /* Graphic Control Extension */
712 {
713 if ((ext[1] & 1) && (alpha < 0)) alpha = (int)ext[4];
714 }
715 else if (ext_code == 0xff) /* application extension */
716 {
717 if (!strncmp ((char*)(&ext[1]), "NETSCAPE2.0", 11) ||
718 !strncmp ((char*)(&ext[1]), "ANIMEXTS1.0", 11))
719 {
720 ext=NULL;
721 DGifGetExtensionNext(gif, &ext);
722
723 if (ext[1] == 0x01)
724 {
725 loop_count = ext[2] + (ext[3] << 8);
726 if (loop_count > 0) loop_count++;
727 }
728 }
729 }
730
731 ext = NULL;
732 DGifGetExtensionNext(gif, &ext);
733 }
734 }
735 } while (rec != TERMINATE_RECORD_TYPE);
736
737 if (alpha >= 0) ie->flags.alpha = 1;
738
739 if (gif->ImageCount > 1)
740 {
741 ie->flags.animated = 1;
742 ie->loop_count = loop_count;
743 ie->loop_hint = EVAS_IMAGE_ANIMATED_HINT_LOOP;
744 ie->frame_count = gif->ImageCount;
745 ie->frames = NULL;
746 }
747
748 DGifCloseFile(gif);
749 *error = EVAS_LOAD_ERROR_NONE;
750 return EINA_TRUE;
751}
752
753static Eina_Bool
754evas_image_load_specific_frame(Image_Entry *ie, const char *file, int frame_index, int *error)
755{
756 int fd;
757 GifFileType *gif;
758 Image_Entry_Frame *frame = NULL;
759 Gif_Frame *gif_frame = NULL;
760
761#ifndef __EMX__
762 fd = open(file, O_RDONLY);
763#else
764 fd = open(file, O_RDONLY | O_BINARY);
765#endif
766 if (fd < 0)
767 {
768 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
769 return EINA_FALSE;
770 }
771
772 gif = DGifOpenFileHandle(fd);
773 if (!gif)
774 {
775 if (fd) close(fd);
776 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
777 return EINA_FALSE;
778 }
779 if (!_evas_image_skip_frame(gif, frame_index-1))
780 {
781 if (fd) close(fd);
782 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
783 return EINA_FALSE;
784 }
785
786 frame = malloc(sizeof (Image_Entry_Frame));
787 if (!frame)
788 {
789 if (fd) close(fd);
790 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
791 return EINA_FALSE;
792 }
793
794 gif_frame = malloc(sizeof (Gif_Frame));
795 if (!gif_frame)
796 {
797 if (fd) close(fd);
798 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
799 return EINA_FALSE;
800 }
801 frame->info = gif_frame;
802 frame->index = frame_index;
803 if (!_evas_image_load_frame(ie,gif, frame, LOAD_FRAME_DATA_INFO,error))
804 {
805 if (fd) close(fd);
806 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
807 return EINA_FALSE;
808 }
809
810 ie->frames = eina_list_append(ie->frames, frame);
811 DGifCloseFile(gif);
812 return EINA_TRUE;
813}
814
815static Eina_Bool
816evas_image_load_file_data_gif(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
817{
818 int cur_frame_index;
819 Image_Entry_Frame *frame = NULL;
820 Eina_Bool hit;
821
822 if(!ie->flags.animated)
823 cur_frame_index = 1;
824 else
825 cur_frame_index = ie->cur_frame;
826
827 if ((ie->flags.animated) &&
828 ((cur_frame_index <0) || (cur_frame_index > FRAME_MAX) || (cur_frame_index > ie->frame_count)))
829 {
830 *error = EVAS_LOAD_ERROR_GENERIC;
831 return EINA_FALSE;
832 }
833
834 /* first time frame is set to be 0. so default is 1 */
835 if (cur_frame_index == 0) cur_frame_index++;
836
837 /* Check current frame exists in hash table */
838 hit = _find_frame(ie, cur_frame_index, &frame);
839
840 /* if current frame exist in has table, check load flag */
841 if (hit)
842 {
843 if (frame->loaded)
844 evas_image_load_file_data_gif_internal(ie,frame,error);
845 else
846 {
847 int fd;
848 GifFileType *gif;
849
850#ifndef __EMX__
851 fd = open(file, O_RDONLY);
852#else
853 fd = open(file, O_RDONLY | O_BINARY);
854#endif
855 if (fd < 0)
856 {
857 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
858 return EINA_FALSE;
859 }
860
861 gif = DGifOpenFileHandle(fd);
862 if (!gif)
863 {
864 if (fd) close(fd);
865 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
866 return EINA_FALSE;
867 }
868 _evas_image_skip_frame(gif, cur_frame_index-1);
869 if (!_evas_image_load_frame(ie, gif, frame, LOAD_FRAME_DATA,error))
870 {
871 if (fd) close(fd);
872 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
873 return EINA_FALSE;
874 }
875 if (!evas_image_load_file_data_gif_internal(ie, frame, error))
876 {
877 if (fd) close(fd);
878 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
879 return EINA_FALSE;
880 }
881 DGifCloseFile(gif);
882 *error = EVAS_LOAD_ERROR_NONE;
883 return EINA_TRUE;
884 }
885 }
886 /* current frame does is not exist */
887 else
888 {
889 if (!evas_image_load_specific_frame(ie, file, cur_frame_index, error))
890 {
891 return EINA_FALSE;
892 }
893 hit = EINA_FALSE;
894 frame = NULL;
895 hit = _find_frame(ie, cur_frame_index, &frame);
896 if (!hit) return EINA_FALSE;
897 if (!evas_image_load_file_data_gif_internal(ie, frame, error))
898 {
899 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
900 return EINA_FALSE;
901 }
902 return EINA_TRUE;
903 }
904 return EINA_FALSE;
905}
906
907static double
908evas_image_load_frame_duration_gif(Image_Entry *ie, const char *file, const int start_frame, const int frame_num)
909{
910 int fd;
911 GifFileType *gif;
912 GifRecordType rec;
913 int done;
914 int current_frame = 1;
915 int remain_frames = frame_num;
916 double duration = 0;
917 int frame_count = 0;
918
919 frame_count = ie->frame_count;
920
921 if (!ie->flags.animated) return -1;
922 if ((start_frame + frame_num) > frame_count) return -1;
923 if (frame_num < 0) return -1;
924
925 done = 0;
926
927#ifndef __EMX__
928 fd = open(file, O_RDONLY);
929#else
930 fd = open(file, O_RDONLY | O_BINARY);
931#endif
932 if (fd < 0) return -1;
933
934 gif = DGifOpenFileHandle(fd);
935 if (!gif)
936 {
937 if (fd) close(fd);
938 return -1;
939 }
940
941 do
942 {
943 if (DGifGetRecordType(gif, &rec) == GIF_ERROR)
944 {
945 rec = TERMINATE_RECORD_TYPE;
946 }
947 if (rec == IMAGE_DESC_RECORD_TYPE)
948 {
949 int img_code;
950 GifByteType *img;
951
952 if (DGifGetImageDesc(gif) == GIF_ERROR)
953 {
954 /* PrintGifError(); */
955 rec = TERMINATE_RECORD_TYPE;
956 }
957 current_frame++;
958 /* we have to count frame, so use DGifGetCode and skip decoding */
959 if (DGifGetCode(gif, &img_code, &img) == GIF_ERROR)
960 {
961 rec = TERMINATE_RECORD_TYPE;
962 }
963 while (img)
964 {
965 img = NULL;
966 DGifGetExtensionNext(gif, &img);
967 }
968 }
969 else if (rec == EXTENSION_RECORD_TYPE)
970 {
971 int ext_code;
972 GifByteType *ext;
973
974 ext = NULL;
975 DGifGetExtension(gif, &ext_code, &ext);
976 while (ext)
977 {
978 if (ext_code == 0xf9) /* Graphic Control Extension */
979 {
980 if ((current_frame >= start_frame) && (current_frame <= frame_count))
981 {
982 int frame_duration = 0;
983 if (remain_frames < 0) break;
984 frame_duration = byte2_to_int (ext[2], ext[3]);
985 if (frame_duration == 0)
986 duration += 0.1;
987 else
988 duration += (double)frame_duration/100;
989 remain_frames --;
990 }
991 }
992 ext = NULL;
993 DGifGetExtensionNext(gif, &ext);
994 }
995 }
996 } while (rec != TERMINATE_RECORD_TYPE);
997
998 DGifCloseFile(gif);
999 return duration;
1000}
1001
1002static int
1003module_open(Evas_Module *em)
1004{
1005 if (!em) return 0;
1006 em->functions = (void *)(&evas_image_load_gif_func);
1007 return 1;
1008}
1009
1010static void
1011module_close(Evas_Module *em __UNUSED__)
1012{
1013}
1014
1015static Evas_Module_Api evas_modapi =
1016{
1017 EVAS_MODULE_API_VERSION,
1018 "gif",
1019 "none",
1020 {
1021 module_open,
1022 module_close
1023 }
1024};
1025
1026EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, gif);
1027
1028#ifndef EVAS_STATIC_BUILD_GIF
1029EVAS_EINA_MODULE_DEFINE(image_loader, gif);
1030#endif
diff --git a/libraries/evas/src/modules/loaders/ico/Makefile.am b/libraries/evas/src/modules/loaders/ico/Makefile.am
new file mode 100644
index 0000000..044dd0d
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/ico/Makefile.am
@@ -0,0 +1,33 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_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@WIN32_CPPFLAGS@
13
14if BUILD_LOADER_ICO
15if !EVAS_STATIC_BUILD_ICO
16
17pkgdir = $(libdir)/evas/modules/loaders/ico/$(MODULE_ARCH)
18pkg_LTLIBRARIES = module.la
19
20module_la_SOURCES = evas_image_load_ico.c
21
22module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
23module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
24module_la_LIBTOOLFLAGS = --tag=disable-static
25
26else
27
28noinst_LTLIBRARIES = libevas_loader_ico.la
29libevas_loader_ico_la_SOURCES = evas_image_load_ico.c
30libevas_loader_ico_la_LIBADD =
31
32endif
33endif
diff --git a/libraries/evas/src/modules/loaders/ico/Makefile.in b/libraries/evas/src/modules/loaders/ico/Makefile.in
new file mode 100644
index 0000000..5c26adf
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/ico/Makefile.in
@@ -0,0 +1,758 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/ico
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_ico_la_DEPENDENCIES =
83am__libevas_loader_ico_la_SOURCES_DIST = evas_image_load_ico.c
84@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_TRUE@am_libevas_loader_ico_la_OBJECTS = evas_image_load_ico.lo
85libevas_loader_ico_la_OBJECTS = $(am_libevas_loader_ico_la_OBJECTS)
86AM_V_lt = $(am__v_lt_$(V))
87am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88am__v_lt_0 = --silent
89@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_TRUE@am_libevas_loader_ico_la_rpath =
90@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la
91am__module_la_SOURCES_DIST = evas_image_load_ico.c
92@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_ico.lo
93module_la_OBJECTS = $(am_module_la_OBJECTS)
94module_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_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@am_module_la_rpath = \
98@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@ -rpath \
99@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@ $(pkgdir)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_ico_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_ico_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184FGREP = @FGREP@
185FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
186FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
187FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
188FREETYPE_LIBS = @FREETYPE_LIBS@
189FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
190FRIBIDI_LIBS = @FRIBIDI_LIBS@
191GL_EET_CFLAGS = @GL_EET_CFLAGS@
192GL_EET_LIBS = @GL_EET_LIBS@
193GREP = @GREP@
194HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
195HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
196INSTALL = @INSTALL@
197INSTALL_DATA = @INSTALL_DATA@
198INSTALL_PROGRAM = @INSTALL_PROGRAM@
199INSTALL_SCRIPT = @INSTALL_SCRIPT@
200INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
201LD = @LD@
202LDFLAGS = @LDFLAGS@
203LIBOBJS = @LIBOBJS@
204LIBS = @LIBS@
205LIBTOOL = @LIBTOOL@
206LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
207LINEBREAK_LIBS = @LINEBREAK_LIBS@
208LIPO = @LIPO@
209LN_S = @LN_S@
210LTLIBOBJS = @LTLIBOBJS@
211MAKEINFO = @MAKEINFO@
212MKDIR_P = @MKDIR_P@
213MODULE_ARCH = @MODULE_ARCH@
214NM = @NM@
215NMEDIT = @NMEDIT@
216OBJC = @OBJC@
217OBJCDEPMODE = @OBJCDEPMODE@
218OBJCFLAGS = @OBJCFLAGS@
219OBJDUMP = @OBJDUMP@
220OBJEXT = @OBJEXT@
221OTOOL = @OTOOL@
222OTOOL64 = @OTOOL64@
223PACKAGE = @PACKAGE@
224PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225PACKAGE_NAME = @PACKAGE_NAME@
226PACKAGE_STRING = @PACKAGE_STRING@
227PACKAGE_TARNAME = @PACKAGE_TARNAME@
228PACKAGE_URL = @PACKAGE_URL@
229PACKAGE_VERSION = @PACKAGE_VERSION@
230PATH_SEPARATOR = @PATH_SEPARATOR@
231PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
232PIXMAN_LIBS = @PIXMAN_LIBS@
233PKG_CONFIG = @PKG_CONFIG@
234PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
235PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
236PNG_CFLAGS = @PNG_CFLAGS@
237PNG_LIBS = @PNG_LIBS@
238RANLIB = @RANLIB@
239SDL_CFLAGS = @SDL_CFLAGS@
240SDL_LIBS = @SDL_LIBS@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244SHM_OPEN_LINK = @SHM_OPEN_LINK@
245STRIP = @STRIP@
246SVG_CFLAGS = @SVG_CFLAGS@
247SVG_LIBS = @SVG_LIBS@
248VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
249VALGRIND_LIBS = @VALGRIND_LIBS@
250VERSION = @VERSION@
251VMAJ = @VMAJ@
252WIN32_CFLAGS = @WIN32_CFLAGS@
253WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
254XCB_CFLAGS = @XCB_CFLAGS@
255XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
256XCB_GL_LIBS = @XCB_GL_LIBS@
257XCB_LIBS = @XCB_LIBS@
258XEXT_CFLAGS = @XEXT_CFLAGS@
259XEXT_LIBS = @XEXT_LIBS@
260XMKMF = @XMKMF@
261X_CFLAGS = @X_CFLAGS@
262X_EXTRA_LIBS = @X_EXTRA_LIBS@
263X_LIBS = @X_LIBS@
264X_PRE_LIBS = @X_PRE_LIBS@
265abs_builddir = @abs_builddir@
266abs_srcdir = @abs_srcdir@
267abs_top_builddir = @abs_top_builddir@
268abs_top_srcdir = @abs_top_srcdir@
269ac_ct_CC = @ac_ct_CC@
270ac_ct_CXX = @ac_ct_CXX@
271ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272ac_ct_OBJC = @ac_ct_OBJC@
273altivec_cflags = @altivec_cflags@
274am__include = @am__include@
275am__leading_dot = @am__leading_dot@
276am__quote = @am__quote@
277am__tar = @am__tar@
278am__untar = @am__untar@
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
285builddir = @builddir@
286datadir = @datadir@
287datarootdir = @datarootdir@
288dlopen_libs = @dlopen_libs@
289docdir = @docdir@
290dvidir = @dvidir@
291edje_cc = @edje_cc@
292efl_doxygen = @efl_doxygen@
293efl_have_doxygen = @efl_have_doxygen@
294evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
295evas_engine_buffer_libs = @evas_engine_buffer_libs@
296evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
297evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
298evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
299evas_engine_directfb_libs = @evas_engine_directfb_libs@
300evas_engine_fb_cflags = @evas_engine_fb_cflags@
301evas_engine_fb_libs = @evas_engine_fb_libs@
302evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
303evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
304evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
305evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
306evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
307evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
308evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
309evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
310evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
311evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
312evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
313evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
314evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
315evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
316evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
317evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
318evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
319evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
320evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
321evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
322evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
323evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
324evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
325evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
326evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
327evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
328evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
334evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
335evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
336evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
337evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
338evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
339evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
340evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
341evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
342evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
343evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
344evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
345evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
346evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
347evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
348evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
349evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
350evas_image_loader_png_libs = @evas_image_loader_png_libs@
351evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
352evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
353evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
354evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
355evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
356evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
357evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
358evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
359evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
360evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
361evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
362evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
363exec_prefix = @exec_prefix@
364have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
365have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
366have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
367have_evas_engine_software_x11 = @have_evas_engine_software_x11@
368have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
369have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
370have_lcov = @have_lcov@
371host = @host@
372host_alias = @host_alias@
373host_cpu = @host_cpu@
374host_os = @host_os@
375host_vendor = @host_vendor@
376htmldir = @htmldir@
377includedir = @includedir@
378infodir = @infodir@
379install_sh = @install_sh@
380libdir = @libdir@
381libexecdir = @libexecdir@
382localedir = @localedir@
383localstatedir = @localstatedir@
384lt_ECHO = @lt_ECHO@
385lt_enable_auto_import = @lt_enable_auto_import@
386mandir = @mandir@
387mkdir_p = @mkdir_p@
388oldincludedir = @oldincludedir@
389pdfdir = @pdfdir@
390pkgconfig_requires_private = @pkgconfig_requires_private@
391prefix = @prefix@
392program_transform_name = @program_transform_name@
393psdir = @psdir@
394pthread_cflags = @pthread_cflags@
395pthread_libs = @pthread_libs@
396release_info = @release_info@
397requirement_evas = @requirement_evas@
398sbindir = @sbindir@
399sharedstatedir = @sharedstatedir@
400srcdir = @srcdir@
401sysconfdir = @sysconfdir@
402target_alias = @target_alias@
403top_build_prefix = @top_build_prefix@
404top_builddir = @top_builddir@
405top_srcdir = @top_srcdir@
406version_info = @version_info@
407MAINTAINERCLEANFILES = Makefile.in
408AM_CPPFLAGS = \
409-I. \
410-I$(top_srcdir)/src/lib \
411-I$(top_srcdir)/src/lib/include \
412@FREETYPE_CFLAGS@ \
413@PIXMAN_CFLAGS@ \
414@EINA_CFLAGS@ \
415@EVIL_CFLAGS@ \
416@WIN32_CPPFLAGS@
417
418@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@pkgdir = $(libdir)/evas/modules/loaders/ico/$(MODULE_ARCH)
419@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@pkg_LTLIBRARIES = module.la
420@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@module_la_SOURCES = evas_image_load_ico.c
421@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
422@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
423@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
424@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_TRUE@noinst_LTLIBRARIES = libevas_loader_ico.la
425@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_TRUE@libevas_loader_ico_la_SOURCES = evas_image_load_ico.c
426@BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_TRUE@libevas_loader_ico_la_LIBADD =
427all: all-am
428
429.SUFFIXES:
430.SUFFIXES: .c .lo .o .obj
431$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
432 @for dep in $?; do \
433 case '$(am__configure_deps)' in \
434 *$$dep*) \
435 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
436 && { if test -f $@; then exit 0; else break; fi; }; \
437 exit 1;; \
438 esac; \
439 done; \
440 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/ico/Makefile'; \
441 $(am__cd) $(top_srcdir) && \
442 $(AUTOMAKE) --gnu src/modules/loaders/ico/Makefile
443.PRECIOUS: Makefile
444Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
445 @case '$?' in \
446 *config.status*) \
447 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
448 *) \
449 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
450 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
451 esac;
452
453$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
454 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
455
456$(top_srcdir)/configure: $(am__configure_deps)
457 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
458$(ACLOCAL_M4): $(am__aclocal_m4_deps)
459 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
460$(am__aclocal_m4_deps):
461
462clean-noinstLTLIBRARIES:
463 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
464 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
465 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
466 test "$$dir" != "$$p" || dir=.; \
467 echo "rm -f \"$${dir}/so_locations\""; \
468 rm -f "$${dir}/so_locations"; \
469 done
470install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
471 @$(NORMAL_INSTALL)
472 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
473 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
474 list2=; for p in $$list; do \
475 if test -f $$p; then \
476 list2="$$list2 $$p"; \
477 else :; fi; \
478 done; \
479 test -z "$$list2" || { \
480 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
481 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
482 }
483
484uninstall-pkgLTLIBRARIES:
485 @$(NORMAL_UNINSTALL)
486 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
487 for p in $$list; do \
488 $(am__strip_dir) \
489 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
490 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
491 done
492
493clean-pkgLTLIBRARIES:
494 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
495 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
496 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
497 test "$$dir" != "$$p" || dir=.; \
498 echo "rm -f \"$${dir}/so_locations\""; \
499 rm -f "$${dir}/so_locations"; \
500 done
501libevas_loader_ico.la: $(libevas_loader_ico_la_OBJECTS) $(libevas_loader_ico_la_DEPENDENCIES)
502 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_ico_la_rpath) $(libevas_loader_ico_la_OBJECTS) $(libevas_loader_ico_la_LIBADD) $(LIBS)
503module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
504 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
505
506mostlyclean-compile:
507 -rm -f *.$(OBJEXT)
508
509distclean-compile:
510 -rm -f *.tab.c
511
512@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_ico.Plo@am__quote@
513@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_ico.Plo@am__quote@
514
515.c.o:
516@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
517@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
518@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
519@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
520@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
521@am__fastdepCC_FALSE@ $(COMPILE) -c $<
522
523.c.obj:
524@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
525@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
526@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
527@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
528@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
529@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
530
531.c.lo:
532@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
533@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
534@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
535@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
536@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
537@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
538
539module_la-evas_image_load_ico.lo: evas_image_load_ico.c
540@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_ico.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_ico.Tpo -c -o module_la-evas_image_load_ico.lo `test -f 'evas_image_load_ico.c' || echo '$(srcdir)/'`evas_image_load_ico.c
541@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_ico.Tpo $(DEPDIR)/module_la-evas_image_load_ico.Plo
542@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
543@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_ico.c' object='module_la-evas_image_load_ico.lo' libtool=yes @AMDEPBACKSLASH@
544@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
545@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_ico.lo `test -f 'evas_image_load_ico.c' || echo '$(srcdir)/'`evas_image_load_ico.c
546
547mostlyclean-libtool:
548 -rm -f *.lo
549
550clean-libtool:
551 -rm -rf .libs _libs
552
553ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
554 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
555 unique=`for i in $$list; do \
556 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
557 done | \
558 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
559 END { if (nonempty) { for (i in files) print i; }; }'`; \
560 mkid -fID $$unique
561tags: TAGS
562
563TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
564 $(TAGS_FILES) $(LISP)
565 set x; \
566 here=`pwd`; \
567 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
568 unique=`for i in $$list; do \
569 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
570 done | \
571 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
572 END { if (nonempty) { for (i in files) print i; }; }'`; \
573 shift; \
574 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
575 test -n "$$unique" || unique=$$empty_fix; \
576 if test $$# -gt 0; then \
577 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
578 "$$@" $$unique; \
579 else \
580 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
581 $$unique; \
582 fi; \
583 fi
584ctags: CTAGS
585CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
586 $(TAGS_FILES) $(LISP)
587 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
588 unique=`for i in $$list; do \
589 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
590 done | \
591 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
592 END { if (nonempty) { for (i in files) print i; }; }'`; \
593 test -z "$(CTAGS_ARGS)$$unique" \
594 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
595 $$unique
596
597GTAGS:
598 here=`$(am__cd) $(top_builddir) && pwd` \
599 && $(am__cd) $(top_srcdir) \
600 && gtags -i $(GTAGS_ARGS) "$$here"
601
602distclean-tags:
603 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
604
605distdir: $(DISTFILES)
606 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
607 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
608 list='$(DISTFILES)'; \
609 dist_files=`for file in $$list; do echo $$file; done | \
610 sed -e "s|^$$srcdirstrip/||;t" \
611 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
612 case $$dist_files in \
613 */*) $(MKDIR_P) `echo "$$dist_files" | \
614 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
615 sort -u` ;; \
616 esac; \
617 for file in $$dist_files; do \
618 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
619 if test -d $$d/$$file; then \
620 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
621 if test -d "$(distdir)/$$file"; then \
622 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
623 fi; \
624 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
625 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
626 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
627 fi; \
628 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
629 else \
630 test -f "$(distdir)/$$file" \
631 || cp -p $$d/$$file "$(distdir)/$$file" \
632 || exit 1; \
633 fi; \
634 done
635check-am: all-am
636check: check-am
637all-am: Makefile $(LTLIBRARIES)
638installdirs:
639 for dir in "$(DESTDIR)$(pkgdir)"; do \
640 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
641 done
642install: install-am
643install-exec: install-exec-am
644install-data: install-data-am
645uninstall: uninstall-am
646
647install-am: all-am
648 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
649
650installcheck: installcheck-am
651install-strip:
652 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
653 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
654 `test -z '$(STRIP)' || \
655 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
656mostlyclean-generic:
657
658clean-generic:
659
660distclean-generic:
661 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
662 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
663
664maintainer-clean-generic:
665 @echo "This command is intended for maintainers to use"
666 @echo "it deletes files that may require special tools to rebuild."
667 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
668clean: clean-am
669
670clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
671 clean-pkgLTLIBRARIES mostlyclean-am
672
673distclean: distclean-am
674 -rm -rf ./$(DEPDIR)
675 -rm -f Makefile
676distclean-am: clean-am distclean-compile distclean-generic \
677 distclean-tags
678
679dvi: dvi-am
680
681dvi-am:
682
683html: html-am
684
685html-am:
686
687info: info-am
688
689info-am:
690
691install-data-am: install-pkgLTLIBRARIES
692
693install-dvi: install-dvi-am
694
695install-dvi-am:
696
697install-exec-am:
698
699install-html: install-html-am
700
701install-html-am:
702
703install-info: install-info-am
704
705install-info-am:
706
707install-man:
708
709install-pdf: install-pdf-am
710
711install-pdf-am:
712
713install-ps: install-ps-am
714
715install-ps-am:
716
717installcheck-am:
718
719maintainer-clean: maintainer-clean-am
720 -rm -rf ./$(DEPDIR)
721 -rm -f Makefile
722maintainer-clean-am: distclean-am maintainer-clean-generic
723
724mostlyclean: mostlyclean-am
725
726mostlyclean-am: mostlyclean-compile mostlyclean-generic \
727 mostlyclean-libtool
728
729pdf: pdf-am
730
731pdf-am:
732
733ps: ps-am
734
735ps-am:
736
737uninstall-am: uninstall-pkgLTLIBRARIES
738
739.MAKE: install-am install-strip
740
741.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
742 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
743 ctags distclean distclean-compile distclean-generic \
744 distclean-libtool distclean-tags distdir dvi dvi-am html \
745 html-am info info-am install install-am install-data \
746 install-data-am install-dvi install-dvi-am install-exec \
747 install-exec-am install-html install-html-am install-info \
748 install-info-am install-man install-pdf install-pdf-am \
749 install-pkgLTLIBRARIES install-ps install-ps-am install-strip \
750 installcheck installcheck-am installdirs maintainer-clean \
751 maintainer-clean-generic mostlyclean mostlyclean-compile \
752 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
753 tags uninstall uninstall-am uninstall-pkgLTLIBRARIES
754
755
756# Tell versions [3.59,3.63) of GNU make to not export all variables.
757# Otherwise a system limit (for SysV at least) may be exceeded.
758.NOEXPORT:
diff --git a/libraries/evas/src/modules/loaders/ico/evas_image_load_ico.c b/libraries/evas/src/modules/loaders/ico/evas_image_load_ico.c
new file mode 100644
index 0000000..17a7f7e
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/ico/evas_image_load_ico.c
@@ -0,0 +1,770 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#include <stdio.h>
6
7#ifdef HAVE_EVIL
8# include <Evil.h>
9#endif
10
11#include "evas_common.h"
12#include "evas_private.h"
13
14static Eina_Bool evas_image_load_file_head_ico(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
15static Eina_Bool evas_image_load_file_data_ico(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
16
17static Evas_Image_Load_Func evas_image_load_ico_func =
18{
19 EINA_TRUE,
20 evas_image_load_file_head_ico,
21 evas_image_load_file_data_ico,
22 NULL
23};
24
25static int
26read_ushort(FILE *file, unsigned short *ret)
27{
28 unsigned char b[2];
29 if (fread(b, sizeof(unsigned char), 2, file) != 2) return 0;
30 *ret = (b[1] << 8) | b[0];
31 return 1;
32}
33
34static int
35read_uint(FILE *file, unsigned int *ret)
36{
37 unsigned char b[4];
38 if (fread(b, sizeof(unsigned char), 4, file) != 4) return 0;
39 *ret = ARGB_JOIN(b[3], b[2], b[1], b[0]);
40 return 1;
41}
42
43enum
44{
45 SMALLEST,
46 BIGGEST,
47 SMALLER,
48 BIGGER
49};
50
51enum
52{
53 ICON = 1,
54 CURSOR = 2
55};
56
57static Eina_Bool
58evas_image_load_file_head_ico(Image_Entry *ie, const char *file, const char *key, int *error)
59{
60 unsigned short word;
61 unsigned char byte;
62 FILE *f;
63 int wanted_w = 0, wanted_h = 0, w, h, cols, i, planes = 0,
64 hot_x = 0, hot_y = 0, bpp = 0, pdelta, search = -1, have_choice = 0,
65 hasa = 1;
66 unsigned int bmoffset, bmsize, fsize;
67 unsigned short reserved, type, count;
68 struct {
69 int pdelta;
70 int w, h;
71 int cols;
72 int bpp, planes;
73 int hot_x, hot_y;
74 unsigned int bmoffset, bmsize;
75 } chosen = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
76
77 f = fopen(file, "rb");
78 if (!f)
79 {
80 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
81 return EINA_FALSE;
82 }
83
84 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
85 fseek(f, 0, SEEK_END);
86 fsize = ftell(f);
87 fseek(f, 0, SEEK_SET);
88 if (fsize < (6 + 16 + 40)) goto close_file;
89
90 // key:
91 // NULL == highest res
92 // biggest == highest res
93 // smallest == lowest res
94 //
95 // smaller == next size SMALLER than load opts WxH (if possible)
96 // bigger == next size BIGGER than load opts WxH (if possible)
97 // more ?
98
99 search = BIGGEST;
100 if ((ie->load_opts.w > 0) && (ie->load_opts.h > 0))
101 {
102 wanted_w = ie->load_opts.w;
103 wanted_h = ie->load_opts.h;
104 search = SMALLER;
105 }
106
107 if (!read_ushort(f, &reserved)) goto close_file;
108 if (!read_ushort(f, &type)) goto close_file;
109 if (!read_ushort(f, &count)) goto close_file;
110 if (!((reserved == 0) &&
111 ((type == ICON) || (type == CURSOR)) && (count > 0)))
112 goto close_file;
113 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
114
115 if (key)
116 {
117 if (!strcmp(key, "biggest"))
118 {
119 wanted_w = 0;
120 wanted_h = 0;
121 search = BIGGEST;
122 chosen.pdelta = 0;
123 }
124 else if (!strcmp(key, "smallest"))
125 {
126 wanted_w = 1;
127 wanted_h = 1;
128 search = SMALLEST;
129 chosen.pdelta = 0x7fffffff;
130 }
131 else if (!strcmp(key, "smaller"))
132 {
133 chosen.pdelta = 0x7fffffff;
134 search = SMALLER;
135 }
136 else if (!strcmp(key, "bigger"))
137 {
138 chosen.pdelta = 0x7fffffff;
139 search = BIGGER;
140 }
141 }
142 for (i = 0; i < count; i++)
143 {
144 if (fread(&byte, 1, 1, f) != 1) goto close_file;
145 w = byte;
146 if (w <= 0) w = 256;
147 if (fread(&byte, 1, 1, f) != 1) goto close_file;
148 h = byte;
149 if (h <= 0) h = 256;
150 if (fread(&byte, 1, 1, f) != 1) goto close_file;
151 cols = byte;
152 if (cols <= 0) cols = 256;
153 if (fread(&byte, 1, 1, f) != 1) goto close_file;
154 if (!read_ushort(f, &word)) goto close_file;
155 if (type == CURSOR) planes = word;
156 else hot_x = word;
157 if (!read_ushort(f, &word)) goto close_file;
158 if (type == CURSOR) bpp = word;
159 else hot_y = word;
160 if (!read_uint(f, &bmsize)) goto close_file;
161 if (!read_uint(f, &bmoffset)) goto close_file;
162 if ((bmsize <= 0) || (bmoffset <= 0) || (bmoffset >= fsize)) goto close_file;
163 if (search == BIGGEST)
164 {
165 pdelta = w * h;
166 if ((!have_choice) ||
167 ((pdelta >= chosen.pdelta) &&
168 (((bpp >= 3) && (bpp >= chosen.bpp)) ||
169 ((bpp < 3) && (cols >= chosen.cols)))))
170 {
171 have_choice = 1;
172 chosen.pdelta = pdelta;
173 chosen.w = w;
174 chosen.h = h;
175 chosen.cols = cols;
176 chosen.bpp = bpp;
177 chosen.planes = planes;
178 chosen.bmsize = bmsize;
179 chosen.bmoffset = bmoffset;
180 }
181 }
182 else
183 {
184 if (search == SMALLEST)
185 {
186 pdelta = w * h;
187 if ((!have_choice) ||
188 ((pdelta <= chosen.pdelta) &&
189 (((bpp >= 3) && (bpp >= chosen.bpp)) ||
190 ((bpp < 3) && (cols >= chosen.cols)))))
191 {
192 have_choice = 1;
193 chosen.pdelta = pdelta;
194 chosen.w = w;
195 chosen.h = h;
196 chosen.cols = cols;
197 chosen.bpp = bpp;
198 chosen.planes = planes;
199 chosen.bmsize = bmsize;
200 chosen.bmoffset = bmoffset;
201 }
202 }
203 else if (search == SMALLER)
204 {
205 pdelta = (wanted_w * wanted_h) - (w * h);
206 if ((!have_choice) ||
207 ((w <= wanted_w) && (h <= wanted_h) &&
208 (pdelta <= chosen.pdelta) &&
209 (((bpp >= 3) && (bpp >= chosen.bpp)) ||
210 ((bpp < 3) && (cols >= chosen.cols)))))
211 {
212 have_choice = 1;
213 if (pdelta < 0) pdelta = 0x7fffffff;
214 chosen.pdelta = pdelta;
215 chosen.w = w;
216 chosen.h = h;
217 chosen.cols = cols;
218 chosen.bpp = bpp;
219 chosen.planes = planes;
220 chosen.bmsize = bmsize;
221 chosen.bmoffset = bmoffset;
222 }
223 }
224 else if (search == BIGGER)
225 {
226 pdelta = (w * h) - (wanted_w * wanted_h);
227 if ((!have_choice) ||
228 ((w >= wanted_w) && (h >= wanted_h) &&
229 (pdelta <= chosen.pdelta) &&
230 (((bpp >= 3) && (bpp >= chosen.bpp)) ||
231 ((bpp < 3) && (cols >= chosen.cols)))))
232 {
233 have_choice = 1;
234 if (pdelta < 0) pdelta = 0x7fffffff;
235 chosen.pdelta = pdelta;
236 chosen.w = w;
237 chosen.h = h;
238 chosen.cols = cols;
239 chosen.bpp = bpp;
240 chosen.planes = planes;
241 chosen.bmsize = bmsize;
242 chosen.bmoffset = bmoffset;
243 }
244 }
245 }
246 }
247 if (chosen.bmoffset == 0) goto close_file;
248 if (fseek(f, chosen.bmoffset, SEEK_SET) != 0) goto close_file;
249
250 w = chosen.w;
251 h = chosen.h;
252 if ((w > 256) || (h > 256)) goto close_file;
253 if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) ||
254 IMG_TOO_BIG(w, h))
255 {
256 if (IMG_TOO_BIG(w, h))
257 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
258 else
259 *error = EVAS_LOAD_ERROR_GENERIC;
260 goto close_file;
261 }
262
263 ie->w = w;
264 ie->h = h;
265 if (hasa) ie->flags.alpha = 1;
266
267 fclose(f);
268 *error = EVAS_LOAD_ERROR_NONE;
269 return EINA_TRUE;
270
271 close_file:
272 fclose(f);
273 return EINA_FALSE;
274}
275
276static Eina_Bool
277evas_image_load_file_data_ico(Image_Entry *ie, const char *file, const char *key, int *error)
278{
279 unsigned short word;
280 unsigned char byte;
281 unsigned int dword;
282 FILE *f;
283 int wanted_w = 0, wanted_h = 0, w, h, cols, i, planes = 0,
284 hot_x = 0, hot_y = 0, bpp = 0, pdelta, search = -1, have_choice = 0,
285 stride, pstride, j, right_way_up = 0, diff_size = 0, cols2;
286 unsigned int bmoffset, bmsize, bitcount, compression, imagesize, fsize,
287 colorsused, colorsimportant, *pal, *surface, *pix, none_zero_alpha = 0;
288 unsigned short reserved, type, count, planes2;
289 unsigned char *maskbuf, *pixbuf, *p;
290 struct {
291 int pdelta;
292 int w, h;
293 int cols;
294 int bpp, planes;
295 int hot_x, hot_y;
296 unsigned int bmoffset, bmsize;
297 } chosen = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
298
299 f = fopen(file, "rb");
300 if (!f)
301 {
302 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
303 return EINA_FALSE;
304 }
305
306 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
307 fseek(f, 0, SEEK_END);
308 fsize = ftell(f);
309 fseek(f, 0, SEEK_SET);
310 if (fsize < (6 + 16 + 40)) goto close_file;
311
312 // key:
313 // NULL == highest res
314 // biggest == highest res
315 // smallest == lowest res
316 //
317 // smaller == next size SMALLER than load opts WxH (if possible)
318 // bigger == next size BIGGER than load opts WxH (if possible)
319 // more ?
320
321 search = BIGGEST;
322 if ((ie->load_opts.w > 0) && (ie->load_opts.h > 0))
323 {
324 wanted_w = ie->load_opts.w;
325 wanted_h = ie->load_opts.h;
326 search = SMALLER;
327 }
328
329 if (!read_ushort(f, &reserved)) goto close_file;
330 if (!read_ushort(f, &type)) goto close_file;
331 if (!read_ushort(f, &count)) goto close_file;
332 if (!((reserved == 0) &&
333 ((type == ICON) || (type == CURSOR)) && (count > 0)))
334 goto close_file;
335 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
336
337 if (key)
338 {
339 if (!strcmp(key, "biggest"))
340 {
341 wanted_w = 0;
342 wanted_h = 0;
343 search = BIGGEST;
344 chosen.pdelta = 0;
345 }
346 else if (!strcmp(key, "smallest"))
347 {
348 wanted_w = 1;
349 wanted_h = 1;
350 search = SMALLEST;
351 chosen.pdelta = 0x7fffffff;
352 }
353 else if (!strcmp(key, "smaller"))
354 {
355 chosen.pdelta = 0x7fffffff;
356 search = SMALLER;
357 }
358 else if (!strcmp(key, "bigger"))
359 {
360 chosen.pdelta = 0x7fffffff;
361 search = BIGGER;
362 }
363 }
364 for (i = 0; i < count; i++)
365 {
366 if (fread(&byte, 1, 1, f) != 1) goto close_file;
367 w = byte;
368 if (w <= 0) w = 256;
369 if (fread(&byte, 1, 1, f) != 1) goto close_file;
370 h = byte;
371 if (h <= 0) h = 256;
372 if (fread(&byte, 1, 1, f) != 1) goto close_file;
373 cols = byte;
374 if (cols <= 0) cols = 256;
375 if (fread(&byte, 1, 1, f) != 1) goto close_file;
376 if (!read_ushort(f, &word)) goto close_file;
377 if (type == 1) planes = word;
378 else hot_x = word;
379 if (!read_ushort(f, &word)) goto close_file;
380 if (type == 1) bpp = word;
381 else hot_y = word;
382 if (!read_uint(f, &bmsize)) goto close_file;
383 if (!read_uint(f, &bmoffset)) goto close_file;
384 if ((bmsize <= 0) || (bmoffset <= 0) || (bmoffset >= fsize)) goto close_file;
385 if (search == BIGGEST)
386 {
387 pdelta = w * h;
388 if ((!have_choice) ||
389 ((pdelta >= chosen.pdelta) &&
390 (((bpp >= 3) && (bpp >= chosen.bpp)) ||
391 ((bpp < 3) && (cols >= chosen.cols)))))
392 {
393 have_choice = 1;
394 chosen.pdelta = pdelta;
395 chosen.w = w;
396 chosen.h = h;
397 chosen.cols = cols;
398 chosen.bpp = bpp;
399 chosen.planes = planes;
400 chosen.bmsize = bmsize;
401 chosen.bmoffset = bmoffset;
402 }
403 }
404 else
405 {
406 if (search == SMALLEST)
407 {
408 pdelta = w * h;
409 if ((!have_choice) ||
410 ((pdelta <= chosen.pdelta) &&
411 (((bpp >= 3) && (bpp >= chosen.bpp)) ||
412 ((bpp < 3) && (cols >= chosen.cols)))))
413 {
414 have_choice = 1;
415 chosen.pdelta = pdelta;
416 chosen.w = w;
417 chosen.h = h;
418 chosen.cols = cols;
419 chosen.bpp = bpp;
420 chosen.planes = planes;
421 chosen.bmsize = bmsize;
422 chosen.bmoffset = bmoffset;
423 }
424 }
425 else if (search == SMALLER)
426 {
427 pdelta = (wanted_w * wanted_h) - (w * h);
428 if ((!have_choice) ||
429 ((w <= wanted_w) && (h <= wanted_h) &&
430 (pdelta <= chosen.pdelta) &&
431 (((bpp >= 3) && (bpp >= chosen.bpp)) ||
432 ((bpp < 3) && (cols >= chosen.cols)))))
433 {
434 have_choice = 1;
435 if (pdelta < 0) pdelta = 0x7fffffff;
436 chosen.pdelta = pdelta;
437 chosen.w = w;
438 chosen.h = h;
439 chosen.cols = cols;
440 chosen.bpp = bpp;
441 chosen.planes = planes;
442 chosen.bmsize = bmsize;
443 chosen.bmoffset = bmoffset;
444 }
445 }
446 else if (search == BIGGER)
447 {
448 pdelta = (w * h) - (wanted_w * wanted_h);
449 if ((!have_choice) ||
450 ((w >= wanted_w) && (h >= wanted_h) &&
451 (pdelta <= chosen.pdelta) &&
452 (((bpp >= 3) && (bpp >= chosen.bpp)) ||
453 ((bpp < 3) && (cols >= chosen.cols)))))
454 {
455 have_choice = 1;
456 if (pdelta < 0) pdelta = 0x7fffffff;
457 chosen.pdelta = pdelta;
458 chosen.w = w;
459 chosen.h = h;
460 chosen.cols = cols;
461 chosen.bpp = bpp;
462 chosen.planes = planes;
463 chosen.bmsize = bmsize;
464 chosen.bmoffset = bmoffset;
465 }
466 }
467 }
468 }
469 if (chosen.bmoffset == 0) goto close_file;
470 if (fseek(f, chosen.bmoffset, SEEK_SET) != 0) goto close_file;
471
472 w = chosen.w;
473 h = chosen.h;
474 cols = chosen.cols;
475 bpp = chosen.bpp;
476 // changed since we loaded header?
477 if (((int)ie->w != w) || ((int)ie->h != h)) goto close_file;
478
479 // read bmp header time... let's do some checking
480 if (!read_uint(f, &dword)) goto close_file; // headersize - dont care
481 if (!read_uint(f, &dword)) goto close_file; // width
482 if (dword > 0)
483 {
484 if ((int)dword != w)
485 {
486 w = dword;
487 diff_size = 1;
488 }
489 }
490 if (!read_uint(f, &dword)) goto close_file; // height
491 if (dword > 0)
492 {
493 if ((int)dword != (h * 2))
494 {
495 h = dword / 2;
496 diff_size = 1;
497 }
498 }
499 if (diff_size)
500 {
501 ERR("Broken ICO file: %s - "
502 " Reporting size of %ix%i in index, but bitmap is %ix%i. "
503 " May be expanded or cropped.",
504 file, ie->w, ie->h, w, h);
505 }
506 if (!read_ushort(f, &word)) goto close_file; // planes
507 planes2 = word;
508 if (!read_ushort(f, &word)) goto close_file; // bitcount
509 bitcount = word;
510 if (!read_uint(f, &dword)) goto close_file; // compression
511 compression = dword;
512 if (!read_uint(f, &dword)) goto close_file; // imagesize
513 imagesize = dword;
514 if (!read_uint(f, &dword)) goto close_file; // z pixels per m
515 if (!read_uint(f, &dword)) goto close_file; // y pizels per m
516 if (!read_uint(f, &dword)) goto close_file; // colors used
517 colorsused = dword;
518 if (!read_uint(f, &dword)) goto close_file; // colors important
519 colorsimportant = dword;
520
521 evas_cache_image_surface_alloc(ie, ie->w, ie->h);
522 surface = evas_cache_image_pixels(ie);
523 if (!surface)
524 {
525 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
526 goto close_file;
527 }
528 memset(surface, 0, ie->w * ie->h * 4);
529
530 if (!((bitcount == 1) || (bitcount == 4) || (bitcount == 8) ||
531 (bitcount == 24) || (bitcount == 32)))
532 goto close_file;
533 if (bitcount <= 8)
534 {
535 cols2 = 1 << bitcount;
536 if (cols == 0) cols = cols2;
537 if (cols > cols2) cols = cols2;
538 if (cols > 256) cols = 256;
539 }
540 else
541 cols = 0;
542 if (bitcount > 8) cols = 0;
543
544 pal = alloca(256 * 4);
545 for (i = 0; i < cols; i++)
546 {
547 unsigned char a, r, g, b;
548
549 if (fread(&b, 1, 1, f) != 1) goto close_file;
550 if (fread(&g, 1, 1, f) != 1) goto close_file;
551 if (fread(&r, 1, 1, f) != 1) goto close_file;
552 if (fread(&a, 1, 1, f) != 1) goto close_file;
553 a = 0xff;
554 pal[i] = ARGB_JOIN(a, r, g, b);
555 }
556 stride = ((w + 31) / 32);
557 maskbuf = alloca(stride * h);
558 pixbuf = alloca(stride * 32 * 4); // more than enough
559 if (bitcount == 1)
560 {
561 pstride = stride * 4;
562 for (i = 0; i < h; i++)
563 {
564 pix = surface + (i * ie->w);
565 if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w);
566 if (fread(pixbuf, pstride, 1, f) != 1) goto close_file;
567 p = pixbuf;
568 if (i >= (int)ie->h) continue;
569 for (j = 0; j < w; j++)
570 {
571 if (j >= (int)ie->w) break;
572 if ((j & 0x7) == 0x0)
573 {
574 *pix = pal[*p >> 7];
575 }
576 else if ((j & 0x7) == 0x1)
577 {
578 *pix = pal[(*p >> 6) & 0x1];
579 }
580 else if ((j & 0x7) == 0x2)
581 {
582 *pix = pal[(*p >> 5) & 0x1];
583 }
584 else if ((j & 0x7) == 0x3)
585 {
586 *pix = pal[(*p >> 4) & 0x1];
587 }
588 else if ((j & 0x7) == 0x4)
589 {
590 *pix = pal[(*p >> 3) & 0x1];
591 }
592 else if ((j & 0x7) == 0x5)
593 {
594 *pix = pal[(*p >> 2) & 0x1];
595 }
596 else if ((j & 0x7) == 0x6)
597 {
598 *pix = pal[(*p >> 1) & 0x1];
599 }
600 else
601 {
602 *pix = pal[*p & 0x1];
603 p++;
604 }
605 pix++;
606 }
607 }
608 }
609 else if (bitcount == 4)
610 {
611 pstride = ((w + 7) / 8) * 4;
612 for (i = 0; i < h; i++)
613 {
614 pix = surface + (i * ie->w);
615 if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w);
616 if (fread(pixbuf, pstride, 1, f) != 1) goto close_file;
617 p = pixbuf;
618 if (i >= (int)ie->h) continue;
619 for (j = 0; j < w; j++)
620 {
621 if (j >= (int)ie->w) break;
622 if ((j & 0x1) == 0x1)
623 {
624 *pix = pal[*p & 0x0f];
625 p++;
626 }
627 else
628 {
629 *pix = pal[*p >> 4];
630 }
631 pix++;
632 }
633 }
634 }
635 else if (bitcount == 8)
636 {
637 pstride = ((w + 3) / 4) * 4;
638 for (i = 0; i < h; i++)
639 {
640 pix = surface + (i * ie->w);
641 if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w);
642 if (fread(pixbuf, pstride, 1, f) != 1) goto close_file;
643 p = pixbuf;
644 if (i >= (int)ie->h) continue;
645 for (j = 0; j < w; j++)
646 {
647 if (j >= (int)ie->w) break;
648 *pix = pal[*p];
649 p++;
650 pix++;
651 }
652 }
653 }
654 else if (bitcount == 24)
655 {
656 pstride = w * 3;
657 for (i = 0; i < h; i++)
658 {
659 pix = surface + (i * ie->w);
660 if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w);
661 if (fread(pixbuf, pstride, 1, f) != 1) goto close_file;
662 p = pixbuf;
663 if (i >= (int)ie->h) continue;
664 for (j = 0; j < w; j++)
665 {
666 unsigned char a, r, g, b;
667
668 if (j >= (int)ie->w) break;
669 b = p[0];
670 g = p[1];
671 r = p[2];
672 p += 3;
673 a = 0xff;
674 *pix = ARGB_JOIN(a, r, g, b);
675 pix++;
676 }
677 }
678 }
679 else if (bitcount == 32)
680 {
681 pstride = w * 4;
682 for (i = 0; i < h; i++)
683 {
684 pix = surface + (i * ie->w);
685 if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w);
686 if (fread(pixbuf, pstride, 1, f) != 1) goto close_file;
687 p = pixbuf;
688 if (i >= (int)ie->h) continue;
689 for (j = 0; j < w; j++)
690 {
691 unsigned char a, r, g, b;
692
693 if (j >= (int)ie->w) break;
694 b = p[0];
695 g = p[1];
696 r = p[2];
697 a = p[3];
698 p += 4;
699 if (a) none_zero_alpha = 1;
700 *pix = ARGB_JOIN(a, r, g, b);
701 pix++;
702 }
703 }
704 }
705 if (!none_zero_alpha)
706 {
707 if (fread(maskbuf, stride * 4 * h, 1, f) != 1) goto close_file;
708 // apply mask
709 pix = surface;
710 for (i = 0; i < h; i++)
711 {
712 unsigned char *m;
713
714 pix = surface + (i * ie->w);
715 if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w);
716 m = maskbuf + (stride * i * 4);
717 if (i >= (int)ie->h) continue;
718 for (j = 0; j < w; j++)
719 {
720 if (j >= (int)ie->w) break;
721 if (*m & (1 << (7 - (j & 0x7))))
722 A_VAL(pix) = 0x00;
723 else
724 A_VAL(pix) = 0xff;
725 if ((j & 0x7) == 0x7) m++;
726 pix++;
727 }
728 }
729 }
730
731 fclose(f);
732
733 evas_common_image_premul(ie);
734 *error = EVAS_LOAD_ERROR_NONE;
735 return EINA_TRUE;
736
737 close_file:
738 fclose(f);
739 return EINA_FALSE;
740}
741
742static int
743module_open(Evas_Module *em)
744{
745 if (!em) return 0;
746 em->functions = (void *)(&evas_image_load_ico_func);
747 return 1;
748}
749
750static void
751module_close(Evas_Module *em __UNUSED__)
752{
753}
754
755static Evas_Module_Api evas_modapi =
756{
757 EVAS_MODULE_API_VERSION,
758 "ico",
759 "none",
760 {
761 module_open,
762 module_close
763 }
764};
765
766EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, ico);
767
768#ifndef EVAS_STATIC_BUILD_ICO
769EVAS_EINA_MODULE_DEFINE(image_loader, ico);
770#endif
diff --git a/libraries/evas/src/modules/loaders/jpeg/Makefile.am b/libraries/evas/src/modules/loaders/jpeg/Makefile.am
new file mode 100644
index 0000000..2088ba8
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/jpeg/Makefile.am
@@ -0,0 +1,36 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_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@evas_image_loader_jpeg_cflags@ \
12@EVIL_CFLAGS@ \
13@WIN32_CPPFLAGS@
14
15AM_CFLAGS = @WIN32_CFLAGS@
16
17if BUILD_LOADER_JPEG
18if !EVAS_STATIC_BUILD_JPEG
19
20pkgdir = $(libdir)/evas/modules/loaders/jpeg/$(MODULE_ARCH)
21pkg_LTLIBRARIES = module.la
22
23module_la_SOURCES = evas_image_load_jpeg.c
24
25module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @evas_image_loader_jpeg_libs@ $(top_builddir)/src/lib/libevas.la
26module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
27module_la_LIBTOOLFLAGS = --tag=disable-static
28
29else
30
31noinst_LTLIBRARIES = libevas_loader_jpeg.la
32libevas_loader_jpeg_la_SOURCES = evas_image_load_jpeg.c
33libevas_loader_jpeg_la_LIBADD = @evas_image_loader_jpeg_libs@
34
35endif
36endif
diff --git a/libraries/evas/src/modules/loaders/jpeg/Makefile.in b/libraries/evas/src/modules/loaders/jpeg/Makefile.in
new file mode 100644
index 0000000..ce4b194
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/jpeg/Makefile.in
@@ -0,0 +1,760 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/jpeg
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_jpeg_la_DEPENDENCIES =
83am__libevas_loader_jpeg_la_SOURCES_DIST = evas_image_load_jpeg.c
84@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_TRUE@am_libevas_loader_jpeg_la_OBJECTS = evas_image_load_jpeg.lo
85libevas_loader_jpeg_la_OBJECTS = $(am_libevas_loader_jpeg_la_OBJECTS)
86AM_V_lt = $(am__v_lt_$(V))
87am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88am__v_lt_0 = --silent
89@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_TRUE@am_libevas_loader_jpeg_la_rpath =
90@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la
91am__module_la_SOURCES_DIST = evas_image_load_jpeg.c
92@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_jpeg.lo
93module_la_OBJECTS = $(am_module_la_OBJECTS)
94module_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_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@am_module_la_rpath = \
98@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@ -rpath \
99@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@ $(pkgdir)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_jpeg_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_jpeg_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184FGREP = @FGREP@
185FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
186FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
187FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
188FREETYPE_LIBS = @FREETYPE_LIBS@
189FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
190FRIBIDI_LIBS = @FRIBIDI_LIBS@
191GL_EET_CFLAGS = @GL_EET_CFLAGS@
192GL_EET_LIBS = @GL_EET_LIBS@
193GREP = @GREP@
194HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
195HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
196INSTALL = @INSTALL@
197INSTALL_DATA = @INSTALL_DATA@
198INSTALL_PROGRAM = @INSTALL_PROGRAM@
199INSTALL_SCRIPT = @INSTALL_SCRIPT@
200INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
201LD = @LD@
202LDFLAGS = @LDFLAGS@
203LIBOBJS = @LIBOBJS@
204LIBS = @LIBS@
205LIBTOOL = @LIBTOOL@
206LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
207LINEBREAK_LIBS = @LINEBREAK_LIBS@
208LIPO = @LIPO@
209LN_S = @LN_S@
210LTLIBOBJS = @LTLIBOBJS@
211MAKEINFO = @MAKEINFO@
212MKDIR_P = @MKDIR_P@
213MODULE_ARCH = @MODULE_ARCH@
214NM = @NM@
215NMEDIT = @NMEDIT@
216OBJC = @OBJC@
217OBJCDEPMODE = @OBJCDEPMODE@
218OBJCFLAGS = @OBJCFLAGS@
219OBJDUMP = @OBJDUMP@
220OBJEXT = @OBJEXT@
221OTOOL = @OTOOL@
222OTOOL64 = @OTOOL64@
223PACKAGE = @PACKAGE@
224PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225PACKAGE_NAME = @PACKAGE_NAME@
226PACKAGE_STRING = @PACKAGE_STRING@
227PACKAGE_TARNAME = @PACKAGE_TARNAME@
228PACKAGE_URL = @PACKAGE_URL@
229PACKAGE_VERSION = @PACKAGE_VERSION@
230PATH_SEPARATOR = @PATH_SEPARATOR@
231PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
232PIXMAN_LIBS = @PIXMAN_LIBS@
233PKG_CONFIG = @PKG_CONFIG@
234PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
235PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
236PNG_CFLAGS = @PNG_CFLAGS@
237PNG_LIBS = @PNG_LIBS@
238RANLIB = @RANLIB@
239SDL_CFLAGS = @SDL_CFLAGS@
240SDL_LIBS = @SDL_LIBS@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244SHM_OPEN_LINK = @SHM_OPEN_LINK@
245STRIP = @STRIP@
246SVG_CFLAGS = @SVG_CFLAGS@
247SVG_LIBS = @SVG_LIBS@
248VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
249VALGRIND_LIBS = @VALGRIND_LIBS@
250VERSION = @VERSION@
251VMAJ = @VMAJ@
252WIN32_CFLAGS = @WIN32_CFLAGS@
253WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
254XCB_CFLAGS = @XCB_CFLAGS@
255XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
256XCB_GL_LIBS = @XCB_GL_LIBS@
257XCB_LIBS = @XCB_LIBS@
258XEXT_CFLAGS = @XEXT_CFLAGS@
259XEXT_LIBS = @XEXT_LIBS@
260XMKMF = @XMKMF@
261X_CFLAGS = @X_CFLAGS@
262X_EXTRA_LIBS = @X_EXTRA_LIBS@
263X_LIBS = @X_LIBS@
264X_PRE_LIBS = @X_PRE_LIBS@
265abs_builddir = @abs_builddir@
266abs_srcdir = @abs_srcdir@
267abs_top_builddir = @abs_top_builddir@
268abs_top_srcdir = @abs_top_srcdir@
269ac_ct_CC = @ac_ct_CC@
270ac_ct_CXX = @ac_ct_CXX@
271ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272ac_ct_OBJC = @ac_ct_OBJC@
273altivec_cflags = @altivec_cflags@
274am__include = @am__include@
275am__leading_dot = @am__leading_dot@
276am__quote = @am__quote@
277am__tar = @am__tar@
278am__untar = @am__untar@
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
285builddir = @builddir@
286datadir = @datadir@
287datarootdir = @datarootdir@
288dlopen_libs = @dlopen_libs@
289docdir = @docdir@
290dvidir = @dvidir@
291edje_cc = @edje_cc@
292efl_doxygen = @efl_doxygen@
293efl_have_doxygen = @efl_have_doxygen@
294evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
295evas_engine_buffer_libs = @evas_engine_buffer_libs@
296evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
297evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
298evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
299evas_engine_directfb_libs = @evas_engine_directfb_libs@
300evas_engine_fb_cflags = @evas_engine_fb_cflags@
301evas_engine_fb_libs = @evas_engine_fb_libs@
302evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
303evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
304evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
305evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
306evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
307evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
308evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
309evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
310evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
311evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
312evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
313evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
314evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
315evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
316evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
317evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
318evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
319evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
320evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
321evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
322evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
323evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
324evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
325evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
326evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
327evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
328evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
334evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
335evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
336evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
337evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
338evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
339evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
340evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
341evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
342evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
343evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
344evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
345evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
346evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
347evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
348evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
349evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
350evas_image_loader_png_libs = @evas_image_loader_png_libs@
351evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
352evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
353evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
354evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
355evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
356evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
357evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
358evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
359evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
360evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
361evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
362evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
363exec_prefix = @exec_prefix@
364have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
365have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
366have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
367have_evas_engine_software_x11 = @have_evas_engine_software_x11@
368have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
369have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
370have_lcov = @have_lcov@
371host = @host@
372host_alias = @host_alias@
373host_cpu = @host_cpu@
374host_os = @host_os@
375host_vendor = @host_vendor@
376htmldir = @htmldir@
377includedir = @includedir@
378infodir = @infodir@
379install_sh = @install_sh@
380libdir = @libdir@
381libexecdir = @libexecdir@
382localedir = @localedir@
383localstatedir = @localstatedir@
384lt_ECHO = @lt_ECHO@
385lt_enable_auto_import = @lt_enable_auto_import@
386mandir = @mandir@
387mkdir_p = @mkdir_p@
388oldincludedir = @oldincludedir@
389pdfdir = @pdfdir@
390pkgconfig_requires_private = @pkgconfig_requires_private@
391prefix = @prefix@
392program_transform_name = @program_transform_name@
393psdir = @psdir@
394pthread_cflags = @pthread_cflags@
395pthread_libs = @pthread_libs@
396release_info = @release_info@
397requirement_evas = @requirement_evas@
398sbindir = @sbindir@
399sharedstatedir = @sharedstatedir@
400srcdir = @srcdir@
401sysconfdir = @sysconfdir@
402target_alias = @target_alias@
403top_build_prefix = @top_build_prefix@
404top_builddir = @top_builddir@
405top_srcdir = @top_srcdir@
406version_info = @version_info@
407MAINTAINERCLEANFILES = Makefile.in
408AM_CPPFLAGS = \
409-I. \
410-I$(top_srcdir)/src/lib \
411-I$(top_srcdir)/src/lib/include \
412@FREETYPE_CFLAGS@ \
413@PIXMAN_CFLAGS@ \
414@EINA_CFLAGS@ \
415@evas_image_loader_jpeg_cflags@ \
416@EVIL_CFLAGS@ \
417@WIN32_CPPFLAGS@
418
419AM_CFLAGS = @WIN32_CFLAGS@
420@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@pkgdir = $(libdir)/evas/modules/loaders/jpeg/$(MODULE_ARCH)
421@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@pkg_LTLIBRARIES = module.la
422@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@module_la_SOURCES = evas_image_load_jpeg.c
423@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @evas_image_loader_jpeg_libs@ $(top_builddir)/src/lib/libevas.la
424@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
425@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
426@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_TRUE@noinst_LTLIBRARIES = libevas_loader_jpeg.la
427@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_TRUE@libevas_loader_jpeg_la_SOURCES = evas_image_load_jpeg.c
428@BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_TRUE@libevas_loader_jpeg_la_LIBADD = @evas_image_loader_jpeg_libs@
429all: all-am
430
431.SUFFIXES:
432.SUFFIXES: .c .lo .o .obj
433$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
434 @for dep in $?; do \
435 case '$(am__configure_deps)' in \
436 *$$dep*) \
437 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
438 && { if test -f $@; then exit 0; else break; fi; }; \
439 exit 1;; \
440 esac; \
441 done; \
442 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/jpeg/Makefile'; \
443 $(am__cd) $(top_srcdir) && \
444 $(AUTOMAKE) --gnu src/modules/loaders/jpeg/Makefile
445.PRECIOUS: Makefile
446Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
447 @case '$?' in \
448 *config.status*) \
449 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
450 *) \
451 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
452 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
453 esac;
454
455$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
456 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
457
458$(top_srcdir)/configure: $(am__configure_deps)
459 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
460$(ACLOCAL_M4): $(am__aclocal_m4_deps)
461 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
462$(am__aclocal_m4_deps):
463
464clean-noinstLTLIBRARIES:
465 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
466 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
467 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
468 test "$$dir" != "$$p" || dir=.; \
469 echo "rm -f \"$${dir}/so_locations\""; \
470 rm -f "$${dir}/so_locations"; \
471 done
472install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
473 @$(NORMAL_INSTALL)
474 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
475 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
476 list2=; for p in $$list; do \
477 if test -f $$p; then \
478 list2="$$list2 $$p"; \
479 else :; fi; \
480 done; \
481 test -z "$$list2" || { \
482 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
483 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
484 }
485
486uninstall-pkgLTLIBRARIES:
487 @$(NORMAL_UNINSTALL)
488 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
489 for p in $$list; do \
490 $(am__strip_dir) \
491 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
492 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
493 done
494
495clean-pkgLTLIBRARIES:
496 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
497 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
498 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
499 test "$$dir" != "$$p" || dir=.; \
500 echo "rm -f \"$${dir}/so_locations\""; \
501 rm -f "$${dir}/so_locations"; \
502 done
503libevas_loader_jpeg.la: $(libevas_loader_jpeg_la_OBJECTS) $(libevas_loader_jpeg_la_DEPENDENCIES)
504 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_jpeg_la_rpath) $(libevas_loader_jpeg_la_OBJECTS) $(libevas_loader_jpeg_la_LIBADD) $(LIBS)
505module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
506 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
507
508mostlyclean-compile:
509 -rm -f *.$(OBJEXT)
510
511distclean-compile:
512 -rm -f *.tab.c
513
514@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_jpeg.Plo@am__quote@
515@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_jpeg.Plo@am__quote@
516
517.c.o:
518@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
519@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
520@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
521@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
522@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
523@am__fastdepCC_FALSE@ $(COMPILE) -c $<
524
525.c.obj:
526@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
527@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
528@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
529@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
530@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
531@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
532
533.c.lo:
534@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
535@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
536@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
537@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
538@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
539@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
540
541module_la-evas_image_load_jpeg.lo: evas_image_load_jpeg.c
542@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_jpeg.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_jpeg.Tpo -c -o module_la-evas_image_load_jpeg.lo `test -f 'evas_image_load_jpeg.c' || echo '$(srcdir)/'`evas_image_load_jpeg.c
543@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_jpeg.Tpo $(DEPDIR)/module_la-evas_image_load_jpeg.Plo
544@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
545@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_jpeg.c' object='module_la-evas_image_load_jpeg.lo' libtool=yes @AMDEPBACKSLASH@
546@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
547@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_jpeg.lo `test -f 'evas_image_load_jpeg.c' || echo '$(srcdir)/'`evas_image_load_jpeg.c
548
549mostlyclean-libtool:
550 -rm -f *.lo
551
552clean-libtool:
553 -rm -rf .libs _libs
554
555ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
556 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
557 unique=`for i in $$list; do \
558 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
559 done | \
560 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
561 END { if (nonempty) { for (i in files) print i; }; }'`; \
562 mkid -fID $$unique
563tags: TAGS
564
565TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
566 $(TAGS_FILES) $(LISP)
567 set x; \
568 here=`pwd`; \
569 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
570 unique=`for i in $$list; do \
571 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
572 done | \
573 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
574 END { if (nonempty) { for (i in files) print i; }; }'`; \
575 shift; \
576 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
577 test -n "$$unique" || unique=$$empty_fix; \
578 if test $$# -gt 0; then \
579 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
580 "$$@" $$unique; \
581 else \
582 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
583 $$unique; \
584 fi; \
585 fi
586ctags: CTAGS
587CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
588 $(TAGS_FILES) $(LISP)
589 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
590 unique=`for i in $$list; do \
591 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
592 done | \
593 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
594 END { if (nonempty) { for (i in files) print i; }; }'`; \
595 test -z "$(CTAGS_ARGS)$$unique" \
596 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
597 $$unique
598
599GTAGS:
600 here=`$(am__cd) $(top_builddir) && pwd` \
601 && $(am__cd) $(top_srcdir) \
602 && gtags -i $(GTAGS_ARGS) "$$here"
603
604distclean-tags:
605 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
606
607distdir: $(DISTFILES)
608 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
609 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
610 list='$(DISTFILES)'; \
611 dist_files=`for file in $$list; do echo $$file; done | \
612 sed -e "s|^$$srcdirstrip/||;t" \
613 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
614 case $$dist_files in \
615 */*) $(MKDIR_P) `echo "$$dist_files" | \
616 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
617 sort -u` ;; \
618 esac; \
619 for file in $$dist_files; do \
620 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
621 if test -d $$d/$$file; then \
622 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
623 if test -d "$(distdir)/$$file"; then \
624 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
625 fi; \
626 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
627 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
628 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
629 fi; \
630 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
631 else \
632 test -f "$(distdir)/$$file" \
633 || cp -p $$d/$$file "$(distdir)/$$file" \
634 || exit 1; \
635 fi; \
636 done
637check-am: all-am
638check: check-am
639all-am: Makefile $(LTLIBRARIES)
640installdirs:
641 for dir in "$(DESTDIR)$(pkgdir)"; do \
642 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
643 done
644install: install-am
645install-exec: install-exec-am
646install-data: install-data-am
647uninstall: uninstall-am
648
649install-am: all-am
650 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
651
652installcheck: installcheck-am
653install-strip:
654 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
655 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
656 `test -z '$(STRIP)' || \
657 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
658mostlyclean-generic:
659
660clean-generic:
661
662distclean-generic:
663 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
664 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
665
666maintainer-clean-generic:
667 @echo "This command is intended for maintainers to use"
668 @echo "it deletes files that may require special tools to rebuild."
669 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
670clean: clean-am
671
672clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
673 clean-pkgLTLIBRARIES mostlyclean-am
674
675distclean: distclean-am
676 -rm -rf ./$(DEPDIR)
677 -rm -f Makefile
678distclean-am: clean-am distclean-compile distclean-generic \
679 distclean-tags
680
681dvi: dvi-am
682
683dvi-am:
684
685html: html-am
686
687html-am:
688
689info: info-am
690
691info-am:
692
693install-data-am: install-pkgLTLIBRARIES
694
695install-dvi: install-dvi-am
696
697install-dvi-am:
698
699install-exec-am:
700
701install-html: install-html-am
702
703install-html-am:
704
705install-info: install-info-am
706
707install-info-am:
708
709install-man:
710
711install-pdf: install-pdf-am
712
713install-pdf-am:
714
715install-ps: install-ps-am
716
717install-ps-am:
718
719installcheck-am:
720
721maintainer-clean: maintainer-clean-am
722 -rm -rf ./$(DEPDIR)
723 -rm -f Makefile
724maintainer-clean-am: distclean-am maintainer-clean-generic
725
726mostlyclean: mostlyclean-am
727
728mostlyclean-am: mostlyclean-compile mostlyclean-generic \
729 mostlyclean-libtool
730
731pdf: pdf-am
732
733pdf-am:
734
735ps: ps-am
736
737ps-am:
738
739uninstall-am: uninstall-pkgLTLIBRARIES
740
741.MAKE: install-am install-strip
742
743.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
744 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
745 ctags distclean distclean-compile distclean-generic \
746 distclean-libtool distclean-tags distdir dvi dvi-am html \
747 html-am info info-am install install-am install-data \
748 install-data-am install-dvi install-dvi-am install-exec \
749 install-exec-am install-html install-html-am install-info \
750 install-info-am install-man install-pdf install-pdf-am \
751 install-pkgLTLIBRARIES install-ps install-ps-am install-strip \
752 installcheck installcheck-am installdirs maintainer-clean \
753 maintainer-clean-generic mostlyclean mostlyclean-compile \
754 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
755 tags uninstall uninstall-am uninstall-pkgLTLIBRARIES
756
757
758# Tell versions [3.59,3.63) of GNU make to not export all variables.
759# Otherwise a system limit (for SysV at least) may be exceeded.
760.NOEXPORT:
diff --git a/libraries/evas/src/modules/loaders/jpeg/evas_image_load_jpeg.c b/libraries/evas/src/modules/loaders/jpeg/evas_image_load_jpeg.c
new file mode 100644
index 0000000..0dbabab
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/jpeg/evas_image_load_jpeg.c
@@ -0,0 +1,1265 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#include <stdio.h>
6
7#ifdef HAVE_EVIL
8# include <Evil.h>
9#endif
10
11#include <setjmp.h>
12#include <jpeglib.h>
13
14#include "evas_common.h"
15#include "evas_private.h"
16
17
18typedef struct _JPEG_error_mgr *emptr;
19struct _JPEG_error_mgr
20{
21 struct jpeg_error_mgr pub;
22 jmp_buf setjmp_buffer;
23};
24
25static void _JPEGFatalErrorHandler(j_common_ptr cinfo);
26static void _JPEGErrorHandler(j_common_ptr cinfo);
27static void _JPEGErrorHandler2(j_common_ptr cinfo, int msg_level);
28
29static Eina_Bool evas_image_load_file_head_jpeg_internal(Image_Entry *ie,
30 void *map,
31 size_t len,
32 int *error) EINA_ARG_NONNULL(1, 2, 4);
33static Eina_Bool evas_image_load_file_data_jpeg_internal(Image_Entry *ie,
34 void *map,
35 size_t len,
36 int *error) EINA_ARG_NONNULL(1, 2, 4);
37#if 0 /* not used at the moment */
38static int evas_image_load_file_data_jpeg_alpha_internal(Image_Entry *ie, FILE *f) EINA_ARG_NONNULL(1, 2);
39#endif
40
41static Eina_Bool evas_image_load_file_head_jpeg(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
42static Eina_Bool evas_image_load_file_data_jpeg(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
43
44static Evas_Image_Load_Func evas_image_load_jpeg_func =
45{
46 EINA_TRUE,
47 evas_image_load_file_head_jpeg,
48 evas_image_load_file_data_jpeg,
49 NULL
50};
51
52
53static void
54_JPEGFatalErrorHandler(j_common_ptr cinfo)
55{
56 emptr errmgr;
57
58 errmgr = (emptr) cinfo->err;
59 /* cinfo->err->output_message(cinfo);*/
60 longjmp(errmgr->setjmp_buffer, 1);
61 return;
62}
63
64static void
65_JPEGErrorHandler(j_common_ptr cinfo __UNUSED__)
66{
67/* emptr errmgr; */
68
69/* errmgr = (emptr) cinfo->err; */
70 /* cinfo->err->output_message(cinfo);*/
71 /* longjmp(errmgr->setjmp_buffer, 1);*/
72 return;
73}
74
75static void
76_JPEGErrorHandler2(j_common_ptr cinfo __UNUSED__, int msg_level __UNUSED__)
77{
78/* emptr errmgr; */
79
80/* errmgr = (emptr) cinfo->err; */
81 /* cinfo->err->output_message(cinfo);*/
82 /* longjmp(errmgr->setjmp_buffer, 1);*/
83 return;
84}
85
86struct jpeg_membuf_src
87{
88 struct jpeg_source_mgr pub;
89
90 const unsigned char *buf;
91 size_t len;
92 struct jpeg_membuf_src *self;
93};
94
95static void
96_evas_jpeg_membuf_src_init(j_decompress_ptr cinfo __UNUSED__)
97{
98}
99
100static boolean
101_evas_jpeg_membuf_src_fill(j_decompress_ptr cinfo)
102{
103 static const JOCTET jpeg_eoi[2] = { 0xFF, JPEG_EOI };
104 struct jpeg_membuf_src *src = (struct jpeg_membuf_src *)cinfo->src;
105
106 src->pub.bytes_in_buffer = sizeof(jpeg_eoi);
107 src->pub.next_input_byte = jpeg_eoi;
108
109 return TRUE;
110}
111
112static void
113_evas_jpeg_membuf_src_skip(j_decompress_ptr cinfo,
114 long num_bytes)
115{
116 struct jpeg_membuf_src *src = (struct jpeg_membuf_src *)cinfo->src;
117
118 if ((((long)src->pub.bytes_in_buffer - (long)src->len) > num_bytes) ||
119 ((long)src->pub.bytes_in_buffer < num_bytes))
120 {
121 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo));
122 return;
123 }
124 src->pub.bytes_in_buffer -= num_bytes;
125 src->pub.next_input_byte += num_bytes;
126}
127
128static void
129_evas_jpeg_membuf_src_term(j_decompress_ptr cinfo)
130{
131 struct jpeg_membuf_src *src = (struct jpeg_membuf_src *)cinfo->src;
132 if (!src) return;
133 free(src);
134 cinfo->src = NULL;
135}
136
137static int
138_evas_jpeg_membuf_src(j_decompress_ptr cinfo,
139 void *map, size_t length)
140{
141 struct jpeg_membuf_src *src;
142
143 src = calloc(1, sizeof(*src));
144 if (!src)
145 return -1;
146
147 src->self = src;
148
149 cinfo->src = &src->pub;
150 src->buf = map;
151 src->len = length;
152 src->pub.init_source = _evas_jpeg_membuf_src_init;
153 src->pub.fill_input_buffer = _evas_jpeg_membuf_src_fill;
154 src->pub.skip_input_data = _evas_jpeg_membuf_src_skip;
155 src->pub.resync_to_restart = jpeg_resync_to_restart;
156 src->pub.term_source = _evas_jpeg_membuf_src_term;
157 src->pub.bytes_in_buffer = src->len;
158 src->pub.next_input_byte = src->buf;
159
160 return 0;
161}
162
163/*! Magic number for EXIF header & App1*/
164static const unsigned char ExifHeader[] = {0x45, 0x78, 0x69, 0x66, 0x00, 0x00};
165static const unsigned char App1[] = {0xff, 0xe1};
166typedef enum {
167 EXIF_BYTE_ALIGN_II,
168 EXIF_BYTE_ALIGN_MM
169} ExifByteAlign;
170
171static int
172_get_orientation(void *map, size_t length)
173{
174 char *buf;
175 char orientation[2];
176 ExifByteAlign byte_align;
177 unsigned int num_directory = 0;
178 unsigned int i, j;
179 int direction;
180
181 /* open file and get 22 byte frome file */
182 if (!map) return 0;
183 /* 1. read 22byte */
184 if (length < 22) return 0;
185 buf = (char *)map;
186
187 /* 2. check 2,3 bypte with APP1(0xFFE1) */
188 if (memcmp(buf + 2, App1, sizeof (App1))) return 0;
189
190 /* 3. check 6~11bype with Exif Header (0x45786966 0000) */
191 if (memcmp(buf + 6, ExifHeader, sizeof (ExifHeader))) return 0;
192
193 /* 4. get 12&13 byte get info of "II(0x4949)" or "MM(0x4d4d)" */
194 /* 5. get [20]&[21] get directory entry # */
195 if (!strncmp(buf + 12, "MM", 2))
196 {
197 byte_align = EXIF_BYTE_ALIGN_MM;
198 num_directory = ((*(buf + 20) << 8) + *(buf + 21));
199 orientation[0] = 0x01;
200 orientation[1] = 0x12;
201 }
202 else if (!strncmp(buf + 12, "II", 2))
203 {
204 byte_align = EXIF_BYTE_ALIGN_II;
205 num_directory = ((*(buf + 21) << 8) + *(buf + 20));
206 orientation[0] = 0x12;
207 orientation[1] = 0x01;
208 }
209 else return 0;
210
211 buf = map + 22;
212
213 if (length < (12 * num_directory + 22)) return 0;
214
215 j = 0;
216
217 for (i = 0; i < num_directory; i++ )
218 {
219 if (!strncmp(buf + j, orientation, 2))
220 {
221 /*get orientation tag */
222 if (byte_align == EXIF_BYTE_ALIGN_MM)
223 direction = *(buf+ j + 11);
224 else direction = *(buf+ j + 8);
225 switch (direction)
226 {
227 case 3:
228 case 4:
229 return 180;
230 case 6:
231 case 7:
232 return 90;
233 case 5:
234 case 8:
235 return 270;
236 default:
237 return 0;
238 }
239 }
240 else
241 j = j + 12;
242 }
243 return 0;
244}
245
246static Eina_Bool
247evas_image_load_file_head_jpeg_internal(Image_Entry *ie,
248 void *map, size_t length,
249 int *error)
250{
251 unsigned int w, h, scalew, scaleh;
252 struct jpeg_decompress_struct cinfo;
253 struct _JPEG_error_mgr jerr;
254
255 /* for rotation decoding */
256 int degree = 0;
257 Eina_Bool change_wh = EINA_FALSE;
258 unsigned int load_opts_w = 0, load_opts_h = 0;
259
260 cinfo.err = jpeg_std_error(&(jerr.pub));
261 jerr.pub.error_exit = _JPEGFatalErrorHandler;
262 jerr.pub.emit_message = _JPEGErrorHandler2;
263 jerr.pub.output_message = _JPEGErrorHandler;
264 if (setjmp(jerr.setjmp_buffer))
265 {
266 jpeg_destroy_decompress(&cinfo);
267 _evas_jpeg_membuf_src_term(&cinfo);
268 if (cinfo.saw_JFIF_marker)
269 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
270 else
271 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
272 return EINA_FALSE;
273 }
274 jpeg_create_decompress(&cinfo);
275
276 if (_evas_jpeg_membuf_src(&cinfo, map, length))
277 {
278 jpeg_destroy_decompress(&cinfo);
279 _evas_jpeg_membuf_src_term(&cinfo);
280 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
281 return EINA_FALSE;
282 }
283
284 jpeg_read_header(&cinfo, TRUE);
285 cinfo.do_fancy_upsampling = FALSE;
286 cinfo.do_block_smoothing = FALSE;
287 cinfo.dct_method = JDCT_ISLOW; // JDCT_FLOAT JDCT_IFAST(quality loss)
288 cinfo.dither_mode = JDITHER_ORDERED;
289 jpeg_start_decompress(&cinfo);
290
291 /* rotation decoding */
292 if (ie->load_opts.orientation)
293 {
294 degree = _get_orientation(map, length);
295 if (degree != 0)
296 {
297 ie->load_opts.degree = degree;
298 ie->flags.rotated = EINA_TRUE;
299
300 if (degree == 90 || degree == 270)
301 change_wh = EINA_TRUE;
302 }
303
304 }
305
306 /* head decoding */
307 w = cinfo.output_width;
308 h = cinfo.output_height;
309 if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) ||
310 (IMG_TOO_BIG(w, h)))
311 {
312 jpeg_destroy_decompress(&cinfo);
313 _evas_jpeg_membuf_src_term(&cinfo);
314 if (IMG_TOO_BIG(w, h))
315 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
316 else
317 *error = EVAS_LOAD_ERROR_GENERIC;
318 return EINA_FALSE;
319 }
320 if (ie->load_opts.scale_down_by > 1)
321 {
322 w /= ie->load_opts.scale_down_by;
323 h /= ie->load_opts.scale_down_by;
324 }
325 else if (ie->load_opts.dpi > 0.0)
326 {
327 w = (w * ie->load_opts.dpi) / 90.0;
328 h = (h * ie->load_opts.dpi) / 90.0;
329 }
330 else if ((ie->load_opts.w > 0) && (ie->load_opts.h > 0))
331 {
332 unsigned int w2 = w, h2 = h;
333 /* user set load_opts' w,h on the assumption
334 that image already rotated according to it's orientation info */
335 if (change_wh)
336 {
337 load_opts_w = ie->load_opts.w;
338 load_opts_h = ie->load_opts.h;
339 ie->load_opts.w = load_opts_h;
340 ie->load_opts.h = load_opts_w;
341 }
342
343 if (ie->load_opts.w > 0)
344 {
345 w2 = ie->load_opts.w;
346 h2 = (ie->load_opts.w * h) / w;
347 if ((ie->load_opts.h > 0) && (h2 > ie->load_opts.h))
348 {
349 unsigned int w3;
350 h2 = ie->load_opts.h;
351 w3 = (ie->load_opts.h * w) / h;
352 if (w3 > w2)
353 w2 = w3;
354 }
355 }
356 else if (ie->load_opts.h > 0)
357 {
358 h2 = ie->load_opts.h;
359 w2 = (ie->load_opts.h * w) / h;
360 }
361 w = w2;
362 h = h2;
363 if (change_wh)
364 {
365 ie->load_opts.w = load_opts_w;
366 ie->load_opts.h = load_opts_h;
367 }
368 }
369 if (w < 1) w = 1;
370 if (h < 1) h = 1;
371
372 if ((w != cinfo.output_width) || (h != cinfo.output_height))
373 {
374 scalew = cinfo.output_width / w;
375 scaleh = cinfo.output_height / h;
376
377 ie->scale = scalew;
378 if (scaleh < scalew) ie->scale = scaleh;
379
380 if (ie->scale > 8) ie->scale = 8;
381 else if (ie->scale < 1) ie->scale = 1;
382
383 if (ie->scale == 3) ie->scale = 2;
384 else if (ie->scale == 5) ie->scale = 4;
385 else if (ie->scale == 6) ie->scale = 4;
386 else if (ie->scale == 7) ie->scale = 4;
387 }
388
389 if (ie->scale > 1)
390 {
391 jpeg_destroy_decompress(&cinfo);
392 _evas_jpeg_membuf_src_term(&cinfo);
393 jpeg_create_decompress(&cinfo);
394
395 if (_evas_jpeg_membuf_src(&cinfo, map, length))
396 {
397 jpeg_destroy_decompress(&cinfo);
398 _evas_jpeg_membuf_src_term(&cinfo);
399 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
400 return EINA_FALSE;
401 }
402
403 jpeg_read_header(&cinfo, TRUE);
404 cinfo.do_fancy_upsampling = FALSE;
405 cinfo.do_block_smoothing = FALSE;
406 cinfo.scale_num = 1;
407 cinfo.scale_denom = ie->scale;
408 jpeg_calc_output_dimensions(&(cinfo));
409 jpeg_start_decompress(&cinfo);
410 }
411
412 ie->w = cinfo.output_width;
413 ie->h = cinfo.output_height;
414
415 // be nice and clip region to image. if its totally outside, fail load
416 if ((ie->load_opts.region.w > 0) && (ie->load_opts.region.h > 0))
417 {
418 unsigned int load_region_x = 0, load_region_y = 0;
419 unsigned int load_region_w = 0, load_region_h = 0;
420 if (ie->flags.rotated)
421 {
422 load_region_x = ie->load_opts.region.x;
423 load_region_y = ie->load_opts.region.y;
424 load_region_w = ie->load_opts.region.w;
425 load_region_h = ie->load_opts.region.h;
426
427 switch (degree)
428 {
429 case 90:
430 ie->load_opts.region.x = load_region_y;
431 ie->load_opts.region.y = h - (load_region_x + load_region_w);
432 ie->load_opts.region.w = load_region_h;
433 ie->load_opts.region.h = load_region_w;
434 break;
435 case 180:
436 ie->load_opts.region.x = w - (load_region_x+ load_region_w);
437 ie->load_opts.region.y = h - (load_region_y + load_region_h);
438
439 break;
440 case 270:
441 ie->load_opts.region.x = w - (load_region_y + load_region_h);
442 ie->load_opts.region.y = load_region_x;
443 ie->load_opts.region.w = load_region_h;
444 ie->load_opts.region.h = load_region_w;
445 break;
446 default:
447 break;
448 }
449
450 }
451 RECTS_CLIP_TO_RECT(ie->load_opts.region.x, ie->load_opts.region.y,
452 ie->load_opts.region.w, ie->load_opts.region.h,
453 0, 0, ie->w, ie->h);
454 if ((ie->load_opts.region.w <= 0) || (ie->load_opts.region.h <= 0))
455 {
456 jpeg_destroy_decompress(&cinfo);
457 _evas_jpeg_membuf_src_term(&cinfo);
458 *error = EVAS_LOAD_ERROR_GENERIC;
459 return EINA_FALSE;
460 }
461 ie->w = ie->load_opts.region.w;
462 ie->h = ie->load_opts.region.h;
463 if (ie->flags.rotated)
464 {
465 ie->load_opts.region.x = load_region_x;
466 ie->load_opts.region.y = load_region_y;
467 ie->load_opts.region.w = load_region_w;
468 ie->load_opts.region.h = load_region_h;
469 }
470 }
471/* end head decoding */
472
473 if (change_wh)
474 {
475 unsigned int tmp;
476 tmp = ie->w;
477 ie->w = ie->h;
478 ie->h = tmp;
479 }
480 jpeg_destroy_decompress(&cinfo);
481 _evas_jpeg_membuf_src_term(&cinfo);
482 *error = EVAS_LOAD_ERROR_NONE;
483 return EINA_TRUE;
484}
485
486/*
487static double
488get_time(void)
489{
490 struct timeval timev;
491
492 gettimeofday(&timev, NULL);
493 return (double)timev.tv_sec + (((double)timev.tv_usec) / 1000000);
494}
495*/
496
497static Eina_Bool
498evas_image_load_file_data_jpeg_internal(Image_Entry *ie,
499 void *map, size_t size,
500 int *error)
501{
502 unsigned int w, h;
503 struct jpeg_decompress_struct cinfo;
504 struct _JPEG_error_mgr jerr;
505 DATA8 *ptr, *line[16], *data;
506 DATA32 *ptr2, *ptr_rotate = NULL;
507 unsigned int x, y, l, i, scans;
508 int region = 0;
509 /* rotation setting */
510 unsigned int tmp;
511 unsigned int load_region_x = 0, load_region_y = 0;
512 unsigned int load_region_w = 0, load_region_h = 0;
513 int degree = 0;
514 Eina_Bool change_wh = EINA_FALSE;
515 Eina_Bool line_done = EINA_FALSE;
516
517 if (ie->flags.rotated)
518 {
519 degree = ie->load_opts.degree;
520 if (degree == 90 || degree == 270)
521 change_wh = EINA_TRUE;
522 }
523
524 cinfo.err = jpeg_std_error(&(jerr.pub));
525 jerr.pub.error_exit = _JPEGFatalErrorHandler;
526 jerr.pub.emit_message = _JPEGErrorHandler2;
527 jerr.pub.output_message = _JPEGErrorHandler;
528 if (setjmp(jerr.setjmp_buffer))
529 {
530 jpeg_destroy_decompress(&cinfo);
531 _evas_jpeg_membuf_src_term(&cinfo);
532 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
533 return EINA_FALSE;
534 }
535 jpeg_create_decompress(&cinfo);
536
537 if (_evas_jpeg_membuf_src(&cinfo, map, size))
538 {
539 jpeg_destroy_decompress(&cinfo);
540 _evas_jpeg_membuf_src_term(&cinfo);
541 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
542 return 0;
543 }
544
545 jpeg_read_header(&cinfo, TRUE);
546 cinfo.do_fancy_upsampling = FALSE;
547 cinfo.do_block_smoothing = FALSE;
548 cinfo.dct_method = JDCT_ISLOW; // JDCT_FLOAT JDCT_IFAST(quality loss)
549 cinfo.dither_mode = JDITHER_ORDERED;
550
551 if (ie->scale > 1)
552 {
553 cinfo.scale_num = 1;
554 cinfo.scale_denom = ie->scale;
555 }
556
557 /* Colorspace conversion options */
558 /* libjpeg can do the following conversions: */
559 /* GRAYSCLAE => RGB YCbCr => RGB and YCCK => CMYK */
560 switch (cinfo.jpeg_color_space)
561 {
562 case JCS_UNKNOWN:
563 break;
564 case JCS_GRAYSCALE:
565 case JCS_RGB:
566 case JCS_YCbCr:
567 cinfo.out_color_space = JCS_RGB;
568 break;
569 case JCS_CMYK:
570 case JCS_YCCK:
571 cinfo.out_color_space = JCS_CMYK;
572 break;
573 }
574
575/* head decoding */
576 jpeg_calc_output_dimensions(&(cinfo));
577 jpeg_start_decompress(&cinfo);
578
579 w = cinfo.output_width;
580 h = cinfo.output_height;
581
582 if (change_wh)
583 {
584 tmp = ie->w;
585 ie->w = ie->h;
586 ie->h = tmp;
587 }
588
589 if ((ie->load_opts.region.w > 0) && (ie->load_opts.region.h > 0))
590 {
591 region = 1;
592
593 if (ie->flags.rotated)
594 {
595 load_region_x = ie->load_opts.region.x;
596 load_region_y = ie->load_opts.region.y;
597 load_region_w = ie->load_opts.region.w;
598 load_region_h = ie->load_opts.region.h;
599
600 switch (degree)
601 {
602 case 90:
603 ie->load_opts.region.x = load_region_y;
604 ie->load_opts.region.y = h - (load_region_x + load_region_w);
605 ie->load_opts.region.w = load_region_h;
606 ie->load_opts.region.h = load_region_w;
607 break;
608 case 180:
609 ie->load_opts.region.x = w - (load_region_x+ load_region_w);
610 ie->load_opts.region.y = h - (load_region_y + load_region_h);
611
612 break;
613 case 270:
614 ie->load_opts.region.x = w - (load_region_y + load_region_h);
615 ie->load_opts.region.y = load_region_x;
616 ie->load_opts.region.w = load_region_h;
617 ie->load_opts.region.h = load_region_w;
618 break;
619 default:
620 break;
621 }
622
623 }
624#ifdef BUILD_LOADER_JPEG_REGION
625 cinfo.region_x = ie->load_opts.region.x;
626 cinfo.region_y = ie->load_opts.region.y;
627 cinfo.region_w = ie->load_opts.region.w;
628 cinfo.region_h = ie->load_opts.region.h;
629#endif
630 }
631 if ((!region) && ((w != ie->w) || (h != ie->h)))
632 {
633 // race condition, the file could have change from when we call header
634 // this test will not solve the problem with region code.
635 jpeg_destroy_decompress(&cinfo);
636 _evas_jpeg_membuf_src_term(&cinfo);
637 *error = EVAS_LOAD_ERROR_GENERIC;
638 return EINA_FALSE;
639 }
640 if ((region) &&
641 ((ie->w != ie->load_opts.region.w) || (ie->h != ie->load_opts.region.h)))
642 {
643 ie->w = ie->load_opts.region.w;
644 ie->h = ie->load_opts.region.h;
645 }
646
647 if (!(((cinfo.out_color_space == JCS_RGB) &&
648 ((cinfo.output_components == 3) || (cinfo.output_components == 1))) ||
649 ((cinfo.out_color_space == JCS_CMYK) && (cinfo.output_components == 4))))
650 {
651 jpeg_destroy_decompress(&cinfo);
652 _evas_jpeg_membuf_src_term(&cinfo);
653 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
654 return EINA_FALSE;
655 }
656
657/* end head decoding */
658/* data decoding */
659 if (cinfo.rec_outbuf_height > 16)
660 {
661 jpeg_destroy_decompress(&cinfo);
662 _evas_jpeg_membuf_src_term(&cinfo);
663 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
664 return EINA_FALSE;
665 }
666 data = alloca(w * 16 * cinfo.output_components);
667 evas_cache_image_surface_alloc(ie, ie->w, ie->h);
668 if (ie->flags.loaded)
669 {
670 jpeg_destroy_decompress(&cinfo);
671 _evas_jpeg_membuf_src_term(&cinfo);
672 *error = EVAS_LOAD_ERROR_NONE;
673 if (region && ie->flags.rotated)
674 {
675 ie->load_opts.region.x = load_region_x;
676 ie->load_opts.region.y = load_region_y;
677 ie->load_opts.region.w = load_region_w;
678 ie->load_opts.region.h = load_region_h;
679 }
680 return EINA_TRUE;
681 }
682 if ((ie->flags.rotated) && change_wh)
683 {
684 ptr2 = malloc(ie->w * ie->h * sizeof(DATA32));
685 ptr_rotate = ptr2;
686 }
687 else
688 ptr2 = evas_cache_image_pixels(ie);
689
690 if (!ptr2)
691 {
692 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
693 return EINA_FALSE;
694 }
695
696 /* We handle first CMYK (4 components) */
697 if (cinfo.output_components == 4)
698 {
699 // FIXME: handle region
700 for (i = 0; (int)i < cinfo.rec_outbuf_height; i++)
701 line[i] = data + (i * w * 4);
702 for (l = 0; l < h; l += cinfo.rec_outbuf_height)
703 {
704 jpeg_read_scanlines(&cinfo, line, cinfo.rec_outbuf_height);
705 scans = cinfo.rec_outbuf_height;
706 if ((h - l) < scans) scans = h - l;
707 ptr = data;
708 if (!region)
709 {
710 for (y = 0; y < scans; y++)
711 {
712 if (cinfo.saw_Adobe_marker)
713 {
714 for (x = 0; x < w; x++)
715 {
716 /* According to libjpeg doc, Photoshop inverse the values of C, M, Y and K, */
717 /* that is C is replaces by 255 - C, etc...*/
718 /* See the comment below for the computation of RGB values from CMYK ones. */
719 *ptr2 =
720 (0xff000000) |
721 ((ptr[0] * ptr[3] / 255) << 16) |
722 ((ptr[1] * ptr[3] / 255) << 8) |
723 ((ptr[2] * ptr[3] / 255));
724 ptr += 4;
725 ptr2++;
726 }
727 }
728 else
729 {
730 for (x = 0; x < w; x++)
731 {
732 /* Conversion from CMYK to RGB is done in 2 steps: */
733 /* CMYK => CMY => RGB (see http://www.easyrgb.com/index.php?X=MATH) */
734 /* after computation, if C, M, Y and K are between 0 and 1, we have: */
735 /* R = (1 - C) * (1 - K) * 255 */
736 /* G = (1 - M) * (1 - K) * 255 */
737 /* B = (1 - Y) * (1 - K) * 255 */
738 /* libjpeg stores CMYK values between 0 and 255, */
739 /* so we replace C by C * 255 / 255, etc... and we obtain: */
740 /* R = (255 - C) * (255 - K) / 255 */
741 /* G = (255 - M) * (255 - K) / 255 */
742 /* B = (255 - Y) * (255 - K) / 255 */
743 /* with C, M, Y and K between 0 and 255. */
744 *ptr2 =
745 (0xff000000) |
746 (((255 - ptr[0]) * (255 - ptr[3]) / 255) << 16) |
747 (((255 - ptr[1]) * (255 - ptr[3]) / 255) << 8) |
748 (((255 - ptr[2]) * (255 - ptr[3]) / 255));
749 ptr += 4;
750 ptr2++;
751 }
752 }
753 }
754 }
755 else
756 {
757 // if line # > region last line, break
758 if (l >= (ie->load_opts.region.y + ie->load_opts.region.h))
759 {
760 line_done = EINA_TRUE;
761 /* if rotation flag is set , we have to rotate image */
762 goto done;
763 /*jpeg_destroy_decompress(&cinfo);
764 _evas_jpeg_membuf_src_term(&cinfo);
765 *error = EVAS_LOAD_ERROR_NONE;
766 return EINA_FALSE;*/
767 }
768 // els if scan block intersects region start or later
769 else if ((l + scans) >
770 (ie->load_opts.region.y))
771 {
772 for (y = 0; y < scans; y++)
773 {
774 if (((y + l) >= ie->load_opts.region.y) &&
775 ((y + l) < (ie->load_opts.region.y + ie->load_opts.region.h)))
776 {
777 ptr += ie->load_opts.region.x;
778 if (cinfo.saw_Adobe_marker)
779 {
780 for (x = 0; x < ie->load_opts.region.w; x++)
781 {
782 /* According to libjpeg doc, Photoshop inverse the values of C, M, Y and K, */
783 /* that is C is replaces by 255 - C, etc...*/
784 /* See the comment below for the computation of RGB values from CMYK ones. */
785 *ptr2 =
786 (0xff000000) |
787 ((ptr[0] * ptr[3] / 255) << 16) |
788 ((ptr[1] * ptr[3] / 255) << 8) |
789 ((ptr[2] * ptr[3] / 255));
790 ptr += 4;
791 ptr2++;
792 }
793 }
794 else
795 {
796 for (x = 0; x < ie->load_opts.region.w; x++)
797 {
798 /* Conversion from CMYK to RGB is done in 2 steps: */
799 /* CMYK => CMY => RGB (see http://www.easyrgb.com/index.php?X=MATH) */
800 /* after computation, if C, M, Y and K are between 0 and 1, we have: */
801 /* R = (1 - C) * (1 - K) * 255 */
802 /* G = (1 - M) * (1 - K) * 255 */
803 /* B = (1 - Y) * (1 - K) * 255 */
804 /* libjpeg stores CMYK values between 0 and 255, */
805 /* so we replace C by C * 255 / 255, etc... and we obtain: */
806 /* R = (255 - C) * (255 - K) / 255 */
807 /* G = (255 - M) * (255 - K) / 255 */
808 /* B = (255 - Y) * (255 - K) / 255 */
809 /* with C, M, Y and K between 0 and 255. */
810 *ptr2 =
811 (0xff000000) |
812 (((255 - ptr[0]) * (255 - ptr[3]) / 255) << 16) |
813 (((255 - ptr[1]) * (255 - ptr[3]) / 255) << 8) |
814 (((255 - ptr[2]) * (255 - ptr[3]) / 255));
815 ptr += 4;
816 ptr2++;
817 }
818 }
819 ptr += (4 * (w - (ie->load_opts.region.x + ie->load_opts.region.w)));
820 }
821 else
822 ptr += (4 * w);
823 }
824 }
825 }
826 }
827 }
828 /* We handle then RGB with 3 components */
829 else if (cinfo.output_components == 3)
830 {
831/*
832 double t;
833 if (region)
834 {
835 // debug for now
836 printf("R| %p %5ix%5i %s: %5i %5i %5ix%5i - ",
837 ie,
838 ie->w, ie->h,
839 ie->file,
840 ie->load_opts.region.x,
841 ie->load_opts.region.y,
842 ie->load_opts.region.w,
843 ie->load_opts.region.h);
844 }
845 t = get_time();
846 */
847 for (i = 0; (int)i < cinfo.rec_outbuf_height; i++)
848 line[i] = data + (i * w * 3);
849 for (l = 0; l < h; l += cinfo.rec_outbuf_height)
850 {
851 jpeg_read_scanlines(&cinfo, line, cinfo.rec_outbuf_height);
852 scans = cinfo.rec_outbuf_height;
853 if ((h - l) < scans) scans = h - l;
854 ptr = data;
855 if (!region)
856 {
857 for (y = 0; y < scans; y++)
858 {
859 for (x = 0; x < w; x++)
860 {
861 *ptr2 = ARGB_JOIN(0xff, ptr[0], ptr[1], ptr[2]);
862 ptr += 3;
863 ptr2++;
864 }
865 }
866 }
867 else
868 {
869 // if line # > region last line, break
870 // but not return immediately for rotation job
871 if (l >= (ie->load_opts.region.y + ie->load_opts.region.h))
872 {
873 line_done = EINA_TRUE;
874 /* if rotation flag is set , we have to rotate image */
875 goto done;
876 }
877 // else if scan block intersects region start or later
878 else if ((l + scans) >
879 (ie->load_opts.region.y))
880 {
881 for (y = 0; y < scans; y++)
882 {
883 if (((y + l) >= ie->load_opts.region.y) &&
884 ((y + l) < (ie->load_opts.region.y + ie->load_opts.region.h)))
885 {
886 ptr += (3 * ie->load_opts.region.x);
887 for (x = 0; x < ie->load_opts.region.w; x++)
888 {
889 *ptr2 = ARGB_JOIN(0xff, ptr[0], ptr[1], ptr[2]);
890 ptr += 3;
891 ptr2++;
892 }
893 ptr += (3 * (w - (ie->load_opts.region.x + ie->load_opts.region.w)));
894 }
895 else
896 ptr += (3 * w);
897 }
898 }
899 }
900 }
901/*
902 t = get_time() - t;
903 printf("%3.3f\n", t);
904 */
905 }
906 /* We finally handle RGB with 1 component */
907 else if (cinfo.output_components == 1)
908 {
909 for (i = 0; (int)i < cinfo.rec_outbuf_height; i++)
910 line[i] = data + (i * w);
911 for (l = 0; l < h; l += cinfo.rec_outbuf_height)
912 {
913 jpeg_read_scanlines(&cinfo, line, cinfo.rec_outbuf_height);
914 scans = cinfo.rec_outbuf_height;
915 if ((h - l) < scans) scans = h - l;
916 ptr = data;
917 if (!region)
918 {
919 for (y = 0; y < scans; y++)
920 {
921 for (x = 0; x < w; x++)
922 {
923 *ptr2 = ARGB_JOIN(0xff, ptr[0], ptr[0], ptr[0]);
924 ptr++;
925 ptr2++;
926 }
927 }
928 }
929 else
930 {
931 // if line # > region last line, break
932 if (l >= (ie->load_opts.region.y + ie->load_opts.region.h))
933 {
934 line_done = EINA_TRUE;
935 /* if rotation flag is set , we have to rotate image */
936 goto done;
937 /*jpeg_destroy_decompress(&cinfo);
938 _evas_jpeg_membuf_src_term(&cinfo);
939 *error = EVAS_LOAD_ERROR_NONE;
940 return EINA_TRUE;*/
941 }
942 // els if scan block intersects region start or later
943 else if ((l + scans) >
944 (ie->load_opts.region.y))
945 {
946 for (y = 0; y < scans; y++)
947 {
948 if (((y + l) >= ie->load_opts.region.y) &&
949 ((y + l) < (ie->load_opts.region.y + ie->load_opts.region.h)))
950 {
951 ptr += ie->load_opts.region.x;
952 for (x = 0; x < ie->load_opts.region.w; x++)
953 {
954 *ptr2 = ARGB_JOIN(0xff, ptr[0], ptr[0], ptr[0]);
955 ptr++;
956 ptr2++;
957 }
958 ptr += w - (ie->load_opts.region.x + ie->load_opts.region.w);
959 }
960 else
961 ptr += w;
962 }
963 }
964 }
965 }
966 }
967 /* if rotation operation need, rotate it */
968done:
969
970 if (ie->flags.rotated)
971 {
972 DATA32 *data1, *data2, *to, *from;
973 int x, y, w, h, hw;
974
975 if (change_wh)
976 {
977 tmp = ie->w;
978 ie->w = ie->h;
979 ie->h = tmp;
980 }
981
982 w = ie->w;
983 h = ie->h;
984 hw =w * h;
985
986 data1 = evas_cache_image_pixels(ie);
987
988 if (degree == 180)
989 {
990 DATA32 tmp;
991
992 data2 = data1 + (h * w) -1;
993 for (x = (w * h) / 2; --x >= 0;)
994 {
995 tmp = *data1;
996 *data1 = *data2;
997 *data2 = tmp;
998 data1++;
999 data2--;
1000 }
1001 }
1002 else
1003 {
1004 data2 = NULL;
1005 to = NULL;
1006 if (ptr_rotate) data2 = ptr_rotate;
1007
1008 if (degree == 90)
1009 {
1010 to = data1 + w - 1;
1011 hw = -hw - 1;
1012 }
1013 else if (degree == 270)
1014 {
1015 to = data1 + hw - w;
1016 w = -w;
1017 hw = hw + 1;
1018 }
1019
1020 if (to)
1021 {
1022 from = data2;
1023 for (x = ie->w; --x >= 0;)
1024 {
1025 for (y =ie->h; --y >= 0;)
1026 {
1027 *to = *from;
1028 from++;
1029 to += w;
1030 }
1031 to += hw;
1032 }
1033 }
1034 if (ptr_rotate)
1035 {
1036 free(ptr_rotate);
1037 ptr_rotate = NULL;
1038 }
1039 }
1040 if (region)
1041 {
1042 ie->load_opts.region.x = load_region_x;
1043 ie->load_opts.region.y = load_region_y;
1044 ie->load_opts.region.w = load_region_w;
1045 ie->load_opts.region.h = load_region_h;
1046 }
1047 }
1048 if (line_done)
1049 {
1050 jpeg_destroy_decompress(&cinfo);
1051 _evas_jpeg_membuf_src_term(&cinfo);
1052 *error = EVAS_LOAD_ERROR_NONE;
1053 return EINA_FALSE;
1054 }
1055 /* end data decoding */
1056 jpeg_finish_decompress(&cinfo);
1057 jpeg_destroy_decompress(&cinfo);
1058 _evas_jpeg_membuf_src_term(&cinfo);
1059 *error = EVAS_LOAD_ERROR_NONE;
1060 return EINA_TRUE;
1061}
1062
1063#if 0 /* not used at the moment */
1064static Eina_Bool
1065evas_image_load_file_data_jpeg_alpha_internal(Image_Entry *ie, FILE *f, int *error)
1066{
1067 int w, h;
1068 struct jpeg_decompress_struct cinfo;
1069 struct _JPEG_error_mgr jerr;
1070 DATA8 *ptr, *line[16], *data;
1071 DATA32 *ptr2;
1072 int x, y, l, i, scans, prevy;
1073
1074 if (!f)
1075 {
1076 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
1077 return EINA_FALSE;
1078 }
1079 cinfo.err = jpeg_std_error(&(jerr.pub));
1080 jerr.pub.error_exit = _JPEGFatalErrorHandler;
1081 jerr.pub.emit_message = _JPEGErrorHandler2;
1082 jerr.pub.output_message = _JPEGErrorHandler;
1083 if (setjmp(jerr.setjmp_buffer))
1084 {
1085 jpeg_destroy_decompress(&cinfo);
1086 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
1087 return EINA_FALSE;
1088 }
1089 jpeg_create_decompress(&cinfo);
1090 jpeg_stdio_src(&cinfo, f);
1091 jpeg_read_header(&cinfo, TRUE);
1092 cinfo.do_fancy_upsampling = FALSE;
1093 cinfo.do_block_smoothing = FALSE;
1094 jpeg_start_decompress(&cinfo);
1095
1096/* head decoding */
1097 ie->w = w = cinfo.output_width;
1098 ie->h = h = cinfo.output_height;
1099/* end head decoding */
1100/* data decoding */
1101 if (cinfo.rec_outbuf_height > 16)
1102 {
1103 jpeg_destroy_decompress(&cinfo);
1104 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
1105 return EINA_FALSE;;
1106 }
1107 data = alloca(w * 16 * 3);
1108 if (!ie->flags.loaded)
1109 {
1110 jpeg_destroy_decompress(&cinfo);
1111 *error = EVAS_LOAD_ERROR_NONE;
1112 return EINA_TRUE;
1113 }
1114 ptr2 = evas_cache_image_pixels(ie);
1115 prevy = 0;
1116 if (cinfo.output_components == 3)
1117 {
1118 for (i = 0; i < cinfo.rec_outbuf_height; i++)
1119 line[i] = data + (i * w * 3);
1120 for (l = 0; l < h; l += cinfo.rec_outbuf_height)
1121 {
1122 jpeg_read_scanlines(&cinfo, line, cinfo.rec_outbuf_height);
1123 scans = cinfo.rec_outbuf_height;
1124 if ((h - l) < scans) scans = h - l;
1125 ptr = data;
1126 for (y = 0; y < scans; y++)
1127 {
1128 for (x = 0; x < w; x++)
1129 {
1130 *ptr2 =
1131 ((*ptr2) & 0x00ffffff) |
1132 (((ptr[0] + ptr[1] + ptr[2]) / 3) << 24);
1133 ptr += 3;
1134 ptr2++;
1135 }
1136 }
1137 }
1138 }
1139 else if (cinfo.output_components == 1)
1140 {
1141 for (i = 0; i < cinfo.rec_outbuf_height; i++)
1142 line[i] = data + (i * w);
1143 for (l = 0; l < h; l += cinfo.rec_outbuf_height)
1144 {
1145 jpeg_read_scanlines(&cinfo, line, cinfo.rec_outbuf_height);
1146 scans = cinfo.rec_outbuf_height;
1147 if ((h - l) < scans) scans = h - l;
1148 ptr = data;
1149 for (y = 0; y < scans; y++)
1150 {
1151 for (x = 0; x < w; x++)
1152 {
1153 *ptr2 =
1154 ((*ptr2) & 0x00ffffff) |
1155 ((ptr[0]) << 24);
1156 ptr++;
1157 ptr2++;
1158 }
1159 }
1160 }
1161 }
1162/* end data decoding */
1163 jpeg_finish_decompress(&cinfo);
1164 jpeg_destroy_decompress(&cinfo);
1165 *error = EVAS_LOAD_ERROR_NONE;
1166 return EINA_TRUE;
1167}
1168#endif
1169
1170static Eina_Bool
1171evas_image_load_file_head_jpeg(Image_Entry *ie,
1172 const char *file, const char *key __UNUSED__,
1173 int *error)
1174{
1175 Eina_File *f;
1176 void *map;
1177 Eina_Bool val = EINA_FALSE;
1178
1179 f = eina_file_open(file, EINA_FALSE);
1180 if (!f)
1181 {
1182 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
1183 return EINA_FALSE;
1184 }
1185 map = eina_file_map_all(f, EINA_FILE_WILLNEED);
1186 if (!map)
1187 {
1188 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
1189 goto on_error;
1190 }
1191
1192 val = evas_image_load_file_head_jpeg_internal(ie,
1193 map, eina_file_size_get(f),
1194 error);
1195
1196 eina_file_map_free(f, map);
1197
1198 on_error:
1199 eina_file_close(f);
1200 return val;
1201}
1202
1203static Eina_Bool
1204evas_image_load_file_data_jpeg(Image_Entry *ie,
1205 const char *file, const char *key __UNUSED__,
1206 int *error)
1207{
1208 Eina_File *f;
1209 void *map;
1210 Eina_Bool val = EINA_FALSE;
1211
1212 f = eina_file_open(file, EINA_FALSE);
1213 if (!f)
1214 {
1215 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
1216 return EINA_FALSE;
1217 }
1218 map = eina_file_map_all(f, EINA_FILE_WILLNEED);
1219 if (!map)
1220 {
1221 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
1222 goto on_error;
1223 }
1224
1225 val = evas_image_load_file_data_jpeg_internal(ie,
1226 map, eina_file_size_get(f),
1227 error);
1228
1229 eina_file_map_free(f, map);
1230
1231 on_error:
1232 eina_file_close(f);
1233 return val;
1234}
1235
1236static int
1237module_open(Evas_Module *em)
1238{
1239 if (!em) return 0;
1240 em->functions = (void *)(&evas_image_load_jpeg_func);
1241 return 1;
1242}
1243
1244static void
1245module_close(Evas_Module *em __UNUSED__)
1246{
1247}
1248
1249static Evas_Module_Api evas_modapi =
1250{
1251 EVAS_MODULE_API_VERSION,
1252 "jpeg",
1253 "none",
1254 {
1255 module_open,
1256 module_close
1257 }
1258};
1259
1260EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, jpeg);
1261
1262#ifndef EVAS_STATIC_BUILD_JPEG
1263EVAS_EINA_MODULE_DEFINE(image_loader, jpeg);
1264#endif
1265
diff --git a/libraries/evas/src/modules/loaders/pmaps/Makefile.am b/libraries/evas/src/modules/loaders/pmaps/Makefile.am
new file mode 100644
index 0000000..dc07a32
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/pmaps/Makefile.am
@@ -0,0 +1,36 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_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@evas_image_loader_pmaps_cflags@ \
12@EVIL_CFLAGS@ \
13@WIN32_CPPFLAGS@
14
15AM_CFLAGS = @WIN32_CFLAGS@
16
17if BUILD_LOADER_PMAPS
18if !EVAS_STATIC_BUILD_PMAPS
19
20pkgdir = $(libdir)/evas/modules/loaders/pmaps/$(MODULE_ARCH)
21pkg_LTLIBRARIES = module.la
22
23module_la_SOURCES = evas_image_load_pmaps.c
24
25module_la_LIBADD = @evas_image_loader_pmaps_libs@ @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
26module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
27module_la_LIBTOOLFLAGS = --tag=disable-static
28
29else
30
31noinst_LTLIBRARIES = libevas_loader_pmaps.la
32libevas_loader_pmaps_la_SOURCES = evas_image_load_pmaps.c
33libevas_loader_pmaps_la_LIBADD = @evas_image_loader_pmaps_libs@
34
35endif
36endif
diff --git a/libraries/evas/src/modules/loaders/pmaps/Makefile.in b/libraries/evas/src/modules/loaders/pmaps/Makefile.in
new file mode 100644
index 0000000..de7b779
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/pmaps/Makefile.in
@@ -0,0 +1,760 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/pmaps
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_pmaps_la_DEPENDENCIES =
83am__libevas_loader_pmaps_la_SOURCES_DIST = evas_image_load_pmaps.c
84@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_TRUE@am_libevas_loader_pmaps_la_OBJECTS = evas_image_load_pmaps.lo
85libevas_loader_pmaps_la_OBJECTS = \
86 $(am_libevas_loader_pmaps_la_OBJECTS)
87AM_V_lt = $(am__v_lt_$(V))
88am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
89am__v_lt_0 = --silent
90@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_TRUE@am_libevas_loader_pmaps_la_rpath =
91@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la
92am__module_la_SOURCES_DIST = evas_image_load_pmaps.c
93@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_pmaps.lo
94module_la_OBJECTS = $(am_module_la_OBJECTS)
95module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
96 $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
97 $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@
98@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@am_module_la_rpath = -rpath \
99@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@ $(pkgdir)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_pmaps_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_pmaps_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184FGREP = @FGREP@
185FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
186FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
187FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
188FREETYPE_LIBS = @FREETYPE_LIBS@
189FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
190FRIBIDI_LIBS = @FRIBIDI_LIBS@
191GL_EET_CFLAGS = @GL_EET_CFLAGS@
192GL_EET_LIBS = @GL_EET_LIBS@
193GREP = @GREP@
194HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
195HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
196INSTALL = @INSTALL@
197INSTALL_DATA = @INSTALL_DATA@
198INSTALL_PROGRAM = @INSTALL_PROGRAM@
199INSTALL_SCRIPT = @INSTALL_SCRIPT@
200INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
201LD = @LD@
202LDFLAGS = @LDFLAGS@
203LIBOBJS = @LIBOBJS@
204LIBS = @LIBS@
205LIBTOOL = @LIBTOOL@
206LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
207LINEBREAK_LIBS = @LINEBREAK_LIBS@
208LIPO = @LIPO@
209LN_S = @LN_S@
210LTLIBOBJS = @LTLIBOBJS@
211MAKEINFO = @MAKEINFO@
212MKDIR_P = @MKDIR_P@
213MODULE_ARCH = @MODULE_ARCH@
214NM = @NM@
215NMEDIT = @NMEDIT@
216OBJC = @OBJC@
217OBJCDEPMODE = @OBJCDEPMODE@
218OBJCFLAGS = @OBJCFLAGS@
219OBJDUMP = @OBJDUMP@
220OBJEXT = @OBJEXT@
221OTOOL = @OTOOL@
222OTOOL64 = @OTOOL64@
223PACKAGE = @PACKAGE@
224PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225PACKAGE_NAME = @PACKAGE_NAME@
226PACKAGE_STRING = @PACKAGE_STRING@
227PACKAGE_TARNAME = @PACKAGE_TARNAME@
228PACKAGE_URL = @PACKAGE_URL@
229PACKAGE_VERSION = @PACKAGE_VERSION@
230PATH_SEPARATOR = @PATH_SEPARATOR@
231PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
232PIXMAN_LIBS = @PIXMAN_LIBS@
233PKG_CONFIG = @PKG_CONFIG@
234PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
235PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
236PNG_CFLAGS = @PNG_CFLAGS@
237PNG_LIBS = @PNG_LIBS@
238RANLIB = @RANLIB@
239SDL_CFLAGS = @SDL_CFLAGS@
240SDL_LIBS = @SDL_LIBS@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244SHM_OPEN_LINK = @SHM_OPEN_LINK@
245STRIP = @STRIP@
246SVG_CFLAGS = @SVG_CFLAGS@
247SVG_LIBS = @SVG_LIBS@
248VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
249VALGRIND_LIBS = @VALGRIND_LIBS@
250VERSION = @VERSION@
251VMAJ = @VMAJ@
252WIN32_CFLAGS = @WIN32_CFLAGS@
253WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
254XCB_CFLAGS = @XCB_CFLAGS@
255XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
256XCB_GL_LIBS = @XCB_GL_LIBS@
257XCB_LIBS = @XCB_LIBS@
258XEXT_CFLAGS = @XEXT_CFLAGS@
259XEXT_LIBS = @XEXT_LIBS@
260XMKMF = @XMKMF@
261X_CFLAGS = @X_CFLAGS@
262X_EXTRA_LIBS = @X_EXTRA_LIBS@
263X_LIBS = @X_LIBS@
264X_PRE_LIBS = @X_PRE_LIBS@
265abs_builddir = @abs_builddir@
266abs_srcdir = @abs_srcdir@
267abs_top_builddir = @abs_top_builddir@
268abs_top_srcdir = @abs_top_srcdir@
269ac_ct_CC = @ac_ct_CC@
270ac_ct_CXX = @ac_ct_CXX@
271ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272ac_ct_OBJC = @ac_ct_OBJC@
273altivec_cflags = @altivec_cflags@
274am__include = @am__include@
275am__leading_dot = @am__leading_dot@
276am__quote = @am__quote@
277am__tar = @am__tar@
278am__untar = @am__untar@
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
285builddir = @builddir@
286datadir = @datadir@
287datarootdir = @datarootdir@
288dlopen_libs = @dlopen_libs@
289docdir = @docdir@
290dvidir = @dvidir@
291edje_cc = @edje_cc@
292efl_doxygen = @efl_doxygen@
293efl_have_doxygen = @efl_have_doxygen@
294evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
295evas_engine_buffer_libs = @evas_engine_buffer_libs@
296evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
297evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
298evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
299evas_engine_directfb_libs = @evas_engine_directfb_libs@
300evas_engine_fb_cflags = @evas_engine_fb_cflags@
301evas_engine_fb_libs = @evas_engine_fb_libs@
302evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
303evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
304evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
305evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
306evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
307evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
308evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
309evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
310evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
311evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
312evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
313evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
314evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
315evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
316evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
317evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
318evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
319evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
320evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
321evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
322evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
323evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
324evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
325evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
326evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
327evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
328evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
334evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
335evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
336evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
337evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
338evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
339evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
340evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
341evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
342evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
343evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
344evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
345evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
346evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
347evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
348evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
349evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
350evas_image_loader_png_libs = @evas_image_loader_png_libs@
351evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
352evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
353evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
354evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
355evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
356evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
357evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
358evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
359evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
360evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
361evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
362evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
363exec_prefix = @exec_prefix@
364have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
365have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
366have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
367have_evas_engine_software_x11 = @have_evas_engine_software_x11@
368have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
369have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
370have_lcov = @have_lcov@
371host = @host@
372host_alias = @host_alias@
373host_cpu = @host_cpu@
374host_os = @host_os@
375host_vendor = @host_vendor@
376htmldir = @htmldir@
377includedir = @includedir@
378infodir = @infodir@
379install_sh = @install_sh@
380libdir = @libdir@
381libexecdir = @libexecdir@
382localedir = @localedir@
383localstatedir = @localstatedir@
384lt_ECHO = @lt_ECHO@
385lt_enable_auto_import = @lt_enable_auto_import@
386mandir = @mandir@
387mkdir_p = @mkdir_p@
388oldincludedir = @oldincludedir@
389pdfdir = @pdfdir@
390pkgconfig_requires_private = @pkgconfig_requires_private@
391prefix = @prefix@
392program_transform_name = @program_transform_name@
393psdir = @psdir@
394pthread_cflags = @pthread_cflags@
395pthread_libs = @pthread_libs@
396release_info = @release_info@
397requirement_evas = @requirement_evas@
398sbindir = @sbindir@
399sharedstatedir = @sharedstatedir@
400srcdir = @srcdir@
401sysconfdir = @sysconfdir@
402target_alias = @target_alias@
403top_build_prefix = @top_build_prefix@
404top_builddir = @top_builddir@
405top_srcdir = @top_srcdir@
406version_info = @version_info@
407MAINTAINERCLEANFILES = Makefile.in
408AM_CPPFLAGS = \
409-I. \
410-I$(top_srcdir)/src/lib \
411-I$(top_srcdir)/src/lib/include \
412@FREETYPE_CFLAGS@ \
413@PIXMAN_CFLAGS@ \
414@EINA_CFLAGS@ \
415@evas_image_loader_pmaps_cflags@ \
416@EVIL_CFLAGS@ \
417@WIN32_CPPFLAGS@
418
419AM_CFLAGS = @WIN32_CFLAGS@
420@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@pkgdir = $(libdir)/evas/modules/loaders/pmaps/$(MODULE_ARCH)
421@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@pkg_LTLIBRARIES = module.la
422@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@module_la_SOURCES = evas_image_load_pmaps.c
423@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@module_la_LIBADD = @evas_image_loader_pmaps_libs@ @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
424@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
425@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
426@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_TRUE@noinst_LTLIBRARIES = libevas_loader_pmaps.la
427@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_TRUE@libevas_loader_pmaps_la_SOURCES = evas_image_load_pmaps.c
428@BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_TRUE@libevas_loader_pmaps_la_LIBADD = @evas_image_loader_pmaps_libs@
429all: all-am
430
431.SUFFIXES:
432.SUFFIXES: .c .lo .o .obj
433$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
434 @for dep in $?; do \
435 case '$(am__configure_deps)' in \
436 *$$dep*) \
437 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
438 && { if test -f $@; then exit 0; else break; fi; }; \
439 exit 1;; \
440 esac; \
441 done; \
442 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/pmaps/Makefile'; \
443 $(am__cd) $(top_srcdir) && \
444 $(AUTOMAKE) --gnu src/modules/loaders/pmaps/Makefile
445.PRECIOUS: Makefile
446Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
447 @case '$?' in \
448 *config.status*) \
449 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
450 *) \
451 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
452 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
453 esac;
454
455$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
456 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
457
458$(top_srcdir)/configure: $(am__configure_deps)
459 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
460$(ACLOCAL_M4): $(am__aclocal_m4_deps)
461 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
462$(am__aclocal_m4_deps):
463
464clean-noinstLTLIBRARIES:
465 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
466 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
467 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
468 test "$$dir" != "$$p" || dir=.; \
469 echo "rm -f \"$${dir}/so_locations\""; \
470 rm -f "$${dir}/so_locations"; \
471 done
472install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
473 @$(NORMAL_INSTALL)
474 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
475 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
476 list2=; for p in $$list; do \
477 if test -f $$p; then \
478 list2="$$list2 $$p"; \
479 else :; fi; \
480 done; \
481 test -z "$$list2" || { \
482 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
483 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
484 }
485
486uninstall-pkgLTLIBRARIES:
487 @$(NORMAL_UNINSTALL)
488 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
489 for p in $$list; do \
490 $(am__strip_dir) \
491 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
492 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
493 done
494
495clean-pkgLTLIBRARIES:
496 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
497 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
498 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
499 test "$$dir" != "$$p" || dir=.; \
500 echo "rm -f \"$${dir}/so_locations\""; \
501 rm -f "$${dir}/so_locations"; \
502 done
503libevas_loader_pmaps.la: $(libevas_loader_pmaps_la_OBJECTS) $(libevas_loader_pmaps_la_DEPENDENCIES)
504 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_pmaps_la_rpath) $(libevas_loader_pmaps_la_OBJECTS) $(libevas_loader_pmaps_la_LIBADD) $(LIBS)
505module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
506 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
507
508mostlyclean-compile:
509 -rm -f *.$(OBJEXT)
510
511distclean-compile:
512 -rm -f *.tab.c
513
514@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_pmaps.Plo@am__quote@
515@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_pmaps.Plo@am__quote@
516
517.c.o:
518@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
519@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
520@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
521@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
522@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
523@am__fastdepCC_FALSE@ $(COMPILE) -c $<
524
525.c.obj:
526@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
527@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
528@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
529@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
530@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
531@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
532
533.c.lo:
534@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
535@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
536@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
537@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
538@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
539@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
540
541module_la-evas_image_load_pmaps.lo: evas_image_load_pmaps.c
542@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_pmaps.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_pmaps.Tpo -c -o module_la-evas_image_load_pmaps.lo `test -f 'evas_image_load_pmaps.c' || echo '$(srcdir)/'`evas_image_load_pmaps.c
543@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_pmaps.Tpo $(DEPDIR)/module_la-evas_image_load_pmaps.Plo
544@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
545@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_pmaps.c' object='module_la-evas_image_load_pmaps.lo' libtool=yes @AMDEPBACKSLASH@
546@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
547@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_pmaps.lo `test -f 'evas_image_load_pmaps.c' || echo '$(srcdir)/'`evas_image_load_pmaps.c
548
549mostlyclean-libtool:
550 -rm -f *.lo
551
552clean-libtool:
553 -rm -rf .libs _libs
554
555ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
556 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
557 unique=`for i in $$list; do \
558 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
559 done | \
560 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
561 END { if (nonempty) { for (i in files) print i; }; }'`; \
562 mkid -fID $$unique
563tags: TAGS
564
565TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
566 $(TAGS_FILES) $(LISP)
567 set x; \
568 here=`pwd`; \
569 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
570 unique=`for i in $$list; do \
571 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
572 done | \
573 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
574 END { if (nonempty) { for (i in files) print i; }; }'`; \
575 shift; \
576 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
577 test -n "$$unique" || unique=$$empty_fix; \
578 if test $$# -gt 0; then \
579 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
580 "$$@" $$unique; \
581 else \
582 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
583 $$unique; \
584 fi; \
585 fi
586ctags: CTAGS
587CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
588 $(TAGS_FILES) $(LISP)
589 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
590 unique=`for i in $$list; do \
591 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
592 done | \
593 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
594 END { if (nonempty) { for (i in files) print i; }; }'`; \
595 test -z "$(CTAGS_ARGS)$$unique" \
596 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
597 $$unique
598
599GTAGS:
600 here=`$(am__cd) $(top_builddir) && pwd` \
601 && $(am__cd) $(top_srcdir) \
602 && gtags -i $(GTAGS_ARGS) "$$here"
603
604distclean-tags:
605 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
606
607distdir: $(DISTFILES)
608 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
609 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
610 list='$(DISTFILES)'; \
611 dist_files=`for file in $$list; do echo $$file; done | \
612 sed -e "s|^$$srcdirstrip/||;t" \
613 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
614 case $$dist_files in \
615 */*) $(MKDIR_P) `echo "$$dist_files" | \
616 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
617 sort -u` ;; \
618 esac; \
619 for file in $$dist_files; do \
620 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
621 if test -d $$d/$$file; then \
622 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
623 if test -d "$(distdir)/$$file"; then \
624 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
625 fi; \
626 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
627 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
628 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
629 fi; \
630 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
631 else \
632 test -f "$(distdir)/$$file" \
633 || cp -p $$d/$$file "$(distdir)/$$file" \
634 || exit 1; \
635 fi; \
636 done
637check-am: all-am
638check: check-am
639all-am: Makefile $(LTLIBRARIES)
640installdirs:
641 for dir in "$(DESTDIR)$(pkgdir)"; do \
642 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
643 done
644install: install-am
645install-exec: install-exec-am
646install-data: install-data-am
647uninstall: uninstall-am
648
649install-am: all-am
650 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
651
652installcheck: installcheck-am
653install-strip:
654 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
655 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
656 `test -z '$(STRIP)' || \
657 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
658mostlyclean-generic:
659
660clean-generic:
661
662distclean-generic:
663 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
664 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
665
666maintainer-clean-generic:
667 @echo "This command is intended for maintainers to use"
668 @echo "it deletes files that may require special tools to rebuild."
669 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
670clean: clean-am
671
672clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
673 clean-pkgLTLIBRARIES mostlyclean-am
674
675distclean: distclean-am
676 -rm -rf ./$(DEPDIR)
677 -rm -f Makefile
678distclean-am: clean-am distclean-compile distclean-generic \
679 distclean-tags
680
681dvi: dvi-am
682
683dvi-am:
684
685html: html-am
686
687html-am:
688
689info: info-am
690
691info-am:
692
693install-data-am: install-pkgLTLIBRARIES
694
695install-dvi: install-dvi-am
696
697install-dvi-am:
698
699install-exec-am:
700
701install-html: install-html-am
702
703install-html-am:
704
705install-info: install-info-am
706
707install-info-am:
708
709install-man:
710
711install-pdf: install-pdf-am
712
713install-pdf-am:
714
715install-ps: install-ps-am
716
717install-ps-am:
718
719installcheck-am:
720
721maintainer-clean: maintainer-clean-am
722 -rm -rf ./$(DEPDIR)
723 -rm -f Makefile
724maintainer-clean-am: distclean-am maintainer-clean-generic
725
726mostlyclean: mostlyclean-am
727
728mostlyclean-am: mostlyclean-compile mostlyclean-generic \
729 mostlyclean-libtool
730
731pdf: pdf-am
732
733pdf-am:
734
735ps: ps-am
736
737ps-am:
738
739uninstall-am: uninstall-pkgLTLIBRARIES
740
741.MAKE: install-am install-strip
742
743.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
744 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
745 ctags distclean distclean-compile distclean-generic \
746 distclean-libtool distclean-tags distdir dvi dvi-am html \
747 html-am info info-am install install-am install-data \
748 install-data-am install-dvi install-dvi-am install-exec \
749 install-exec-am install-html install-html-am install-info \
750 install-info-am install-man install-pdf install-pdf-am \
751 install-pkgLTLIBRARIES install-ps install-ps-am install-strip \
752 installcheck installcheck-am installdirs maintainer-clean \
753 maintainer-clean-generic mostlyclean mostlyclean-compile \
754 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
755 tags uninstall uninstall-am uninstall-pkgLTLIBRARIES
756
757
758# Tell versions [3.59,3.63) of GNU make to not export all variables.
759# Otherwise a system limit (for SysV at least) may be exceeded.
760.NOEXPORT:
diff --git a/libraries/evas/src/modules/loaders/pmaps/evas_image_load_pmaps.c b/libraries/evas/src/modules/loaders/pmaps/evas_image_load_pmaps.c
new file mode 100644
index 0000000..9ba8f81
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/pmaps/evas_image_load_pmaps.c
@@ -0,0 +1,558 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#ifdef HAVE_EVIL
6# include <Evil.h>
7#endif
8
9#include "evas_common.h"
10#include "evas_private.h"
11
12#define FILE_BUFFER_SIZE 1024 * 32
13#define FILE_BUFFER_UNREAD_SIZE 16
14
15static Eina_Bool evas_image_load_file_head_pmaps(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
16static Eina_Bool evas_image_load_file_data_pmaps(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
17
18Evas_Image_Load_Func evas_image_load_pmaps_func = {
19 EINA_TRUE,
20 evas_image_load_file_head_pmaps,
21 evas_image_load_file_data_pmaps,
22 NULL
23};
24
25/* The buffer to load pmaps images */
26typedef struct Pmaps_Buffer Pmaps_Buffer;
27
28struct Pmaps_Buffer
29{
30 FILE *file;
31
32 /* the buffer */
33 DATA8 buffer[FILE_BUFFER_SIZE];
34 DATA8 unread[FILE_BUFFER_UNREAD_SIZE];
35 DATA8 *current;
36 DATA8 *end;
37 char type[3];
38 unsigned char unread_len:7;
39 unsigned char last_buffer:1;
40
41 /* image properties */
42 int w;
43 int h;
44 int max;
45
46 /* interface */
47 int (*int_get) (Pmaps_Buffer *b, int *val);
48 int (*color_get) (Pmaps_Buffer *b, DATA32 *color);
49};
50
51/* internal used functions */
52static Eina_Bool pmaps_buffer_open(Pmaps_Buffer *b, const char *filename, int *error);
53static void pmaps_buffer_close(Pmaps_Buffer *b);
54static Eina_Bool pmaps_buffer_header_parse(Pmaps_Buffer *b, int *error);
55static int pmaps_buffer_plain_int_get(Pmaps_Buffer *b, int *val);
56static int pmaps_buffer_1byte_int_get(Pmaps_Buffer *b, int *val);
57static int pmaps_buffer_2byte_int_get(Pmaps_Buffer *b, int *val);
58static int pmaps_buffer_gray_get(Pmaps_Buffer *b, DATA32 *color);
59static int pmaps_buffer_rgb_get(Pmaps_Buffer *b, DATA32 *color);
60static int pmaps_buffer_plain_bw_get(Pmaps_Buffer *b, DATA32 *color);
61
62static size_t pmaps_buffer_plain_update(Pmaps_Buffer *b);
63static size_t pmaps_buffer_raw_update(Pmaps_Buffer *b);
64static int pmaps_buffer_comment_skip(Pmaps_Buffer *b);
65
66static Eina_Bool
67evas_image_load_file_head_pmaps(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
68{
69 Pmaps_Buffer b;
70
71 if (!pmaps_buffer_open(&b, file, error))
72 {
73 pmaps_buffer_close(&b);
74 return EINA_FALSE;
75 }
76
77 if (!pmaps_buffer_header_parse(&b, error))
78 {
79 pmaps_buffer_close(&b);
80 return EINA_FALSE;
81 }
82
83 ie->w = b.w;
84 ie->h = b.h;
85
86 pmaps_buffer_close(&b);
87 *error = EVAS_LOAD_ERROR_NONE;
88 return EINA_TRUE;
89}
90
91static Eina_Bool
92evas_image_load_file_data_pmaps(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
93{
94 Pmaps_Buffer b;
95 int pixels;
96 DATA32 *ptr;
97
98 if (!pmaps_buffer_open(&b, file, error))
99 {
100 pmaps_buffer_close(&b);
101 return EINA_FALSE;
102 }
103
104 if (!pmaps_buffer_header_parse(&b, error))
105 {
106 pmaps_buffer_close(&b);
107 return EINA_FALSE;
108 }
109
110 pixels = b.w * b.h;
111
112 evas_cache_image_surface_alloc(ie, b.w, b.h);
113 ptr = evas_cache_image_pixels(ie);
114 if (!ptr)
115 {
116 pmaps_buffer_close(&b);
117 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
118 return EINA_FALSE;
119 }
120
121 if (b.type[1] != '4')
122 {
123 while (pixels > 0 && b.color_get(&b, ptr))
124 {
125 pixels--;
126 ptr++;
127 }
128 }
129 else
130 {
131 while (pixels > 0
132 && (b.current != b.end || pmaps_buffer_raw_update(&b)))
133 {
134 int i;
135
136 for (i = 7; i >= 0 && pixels > 0; i--)
137 {
138 if (*b.current & (1 << i))
139 *ptr = 0xff000000;
140 else
141 *ptr = 0xffffffff;
142 ptr++;
143 pixels--;
144 }
145 b.current++;
146 }
147 }
148
149 /* if there are some pix missing, give them a proper default */
150 memset(ptr, 0xff, 4 * pixels);
151 pmaps_buffer_close(&b);
152
153 *error = EVAS_LOAD_ERROR_NONE;
154 return EINA_TRUE;
155}
156
157/* internal used functions */
158static Eina_Bool
159pmaps_buffer_open(Pmaps_Buffer *b, const char *filename, int *error)
160{
161 size_t len;
162
163 b->file = fopen(filename, "rb");
164 if (!b->file)
165 {
166 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
167 return EINA_FALSE;
168 }
169
170 *b->buffer = 0;
171 *b->unread = 0;
172 b->last_buffer = 0;
173 b->unread_len = 0;
174
175 len = pmaps_buffer_plain_update(b);
176
177 if (len < 3)
178 {
179 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
180 fclose(b->file);
181 b->file = NULL;
182 return EINA_FALSE;
183 }
184
185 /* copy the type */
186 b->type[0] = b->buffer[0];
187 b->type[1] = b->buffer[1];
188 b->type[2] = 0;
189 /* skip the PX */
190 b->current = b->buffer + 2;
191
192 *error = EVAS_LOAD_ERROR_NONE;
193 return EINA_TRUE;
194}
195
196static void
197pmaps_buffer_close(Pmaps_Buffer *b)
198{
199 if (b->file)
200 fclose(b->file);
201}
202
203static Eina_Bool
204pmaps_buffer_header_parse(Pmaps_Buffer *b, int *error)
205{
206 /* if there is no P at the beginning it is not a file we can parse */
207 if (b->type[0] != 'P')
208 {
209 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
210 return EINA_FALSE;
211 }
212
213 /* get the width */
214 if (!pmaps_buffer_plain_int_get(b, &(b->w)) || b->w < 1)
215 {
216 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
217 return EINA_FALSE;
218 }
219
220 /* get the height */
221 if (!pmaps_buffer_plain_int_get(b, &(b->h)) || b->h < 1)
222 {
223 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
224 return EINA_FALSE;
225 }
226
227 /* get the maximum value. P1 and P4 don't have a maximum value. */
228 if (!(b->type[1] == '1' || b->type[1] == '4')
229 && (!pmaps_buffer_plain_int_get(b, &(b->max)) || b->max < 1))
230 {
231 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
232 return EINA_FALSE;
233 }
234
235 /* set up the color get callback */
236 switch (b->type[1])
237 {
238 /* Black and White */
239 case '1':
240 b->color_get = pmaps_buffer_plain_bw_get;
241 break;
242 case '4':
243 /* Binary black and white use another format */
244 b->color_get = NULL;
245 break;
246 case '2':
247 case '5':
248 b->color_get = pmaps_buffer_gray_get;
249 break;
250 case '3':
251 case '6':
252 b->color_get = pmaps_buffer_rgb_get;
253 break;
254 case '7':
255 /* XXX write me */
256 return 0;
257 break;
258 default:
259 return 0;
260 }
261 /* set up the int get callback */
262 switch (b->type[1])
263 {
264 /* RAW */
265 case '5':
266 case '6':
267 if (b->max < 256)
268 b->int_get = pmaps_buffer_1byte_int_get;
269 else
270 b->int_get = pmaps_buffer_2byte_int_get;
271
272 if (b->current == b->end && !pmaps_buffer_raw_update(b))
273 return 0;
274
275 b->current++;
276 break;
277 /* Plain */
278 case '2':
279 case '3':
280 b->int_get = pmaps_buffer_plain_int_get;
281 break;
282 /* Black and White Bitmaps don't use that callback */
283 case '1':
284 case '4':
285 b->int_get = NULL;
286 /* we need to skip the next character fpr P4 it
287 * doesn't hurt if we do it for the P1 as well */
288 b->current++;
289 break;
290 }
291 return 1;
292}
293
294static size_t
295pmaps_buffer_plain_update(Pmaps_Buffer *b)
296{
297 size_t r;
298
299 /* if we already are in the last buffer we can not update it */
300 if (b->last_buffer)
301 return 0;
302
303 /* if we have unread bytes we need to put them before the new read
304 * stuff */
305 if (b->unread_len)
306 memcpy(b->buffer, b->unread, b->unread_len);
307
308 r = fread(&b->buffer[b->unread_len], 1,
309 FILE_BUFFER_SIZE - b->unread_len - 1, b->file) + b->unread_len;
310
311 /* we haven't read anything nor have we bytes in the unread buffer */
312 if (r == 0)
313 {
314 b->buffer[0] = '\0';
315 b->end = b->buffer;
316 b->last_buffer = 1;
317 return 0;
318 }
319
320 if (r < FILE_BUFFER_SIZE - 1)
321 {
322 /*we reached eof */ ;
323 b->last_buffer = 1;
324 }
325
326 b->buffer[r] = 0;
327
328 b->unread[0] = '\0';
329 b->unread_len = 0;
330
331 b->buffer[r] = '\0';
332 b->current = b->buffer;
333 b->end = b->buffer + r;
334
335 return r;
336}
337
338static size_t
339pmaps_buffer_raw_update(Pmaps_Buffer *b)
340{
341 size_t r;
342
343 if (b->last_buffer)
344 return 0;
345
346 if (b->unread_len)
347 memcpy(b->buffer, b->unread, b->unread_len);
348
349 r = fread(&b->buffer[b->unread_len], 1, FILE_BUFFER_SIZE - b->unread_len,
350 b->file) + b->unread_len;
351
352 if (r < FILE_BUFFER_SIZE)
353 {
354 /*we reached eof */
355 b->last_buffer = 1;
356 }
357
358 b->end = b->buffer + r;
359 b->current = b->buffer;
360
361 if (b->unread_len)
362 {
363 /* the buffer is now read */
364 *b->unread = 0;
365 b->unread_len = 0;
366 }
367
368 return r;
369}
370
371static int
372pmaps_buffer_plain_int_get(Pmaps_Buffer *b, int *val)
373{
374 char *start;
375 DATA8 lastc;
376
377 /* first skip all white space
378 * Note: we are skipping here actually every character than is not
379 * a digit */
380 while (!isdigit(*b->current))
381 {
382 if (*b->current == '\0')
383 {
384 if (!pmaps_buffer_plain_update(b))
385 return 0;
386
387 continue;
388 }
389 if (*b->current == '#' && !pmaps_buffer_comment_skip(b))
390 return 0;
391 b->current++;
392 }
393
394 start = (char *)b->current;
395 /* now find the end of the number */
396 while (isdigit(*b->current))
397 b->current++;
398
399 lastc = *b->current;
400 *b->current = '\0';
401 *val = atoi(start);
402 *b->current = lastc;
403
404 return 1;
405}
406
407static int
408pmaps_buffer_1byte_int_get(Pmaps_Buffer *b, int *val)
409{
410 /* are we at the end of the buffer? */
411 if (b->current == b->end && !pmaps_buffer_raw_update(b))
412 return 0;
413
414 *val = *b->current;
415 b->current++;
416
417 return 1;
418}
419static int
420pmaps_buffer_2byte_int_get(Pmaps_Buffer *b, int *val)
421{
422 /* are we at the end of the buffer? */
423 if (b->current == b->end && !pmaps_buffer_raw_update(b))
424 return 0;
425
426 *val = (int)(*b->current << 8);
427 b->current++;
428
429 /* are we at the end of the buffer? */
430 if (b->current == b->end && !pmaps_buffer_raw_update(b))
431 return 0;
432
433 *val |= *b->current;
434 b->current++;
435
436 return 1;
437}
438
439static int
440pmaps_buffer_comment_skip(Pmaps_Buffer *b)
441{
442 while (*b->current != '\n')
443 {
444 if (*b->current == '\0')
445 {
446 if (!pmaps_buffer_plain_update(b))
447 return 0;
448
449 continue;
450 }
451 b->current++;
452 }
453 return 1;
454}
455
456static int
457pmaps_buffer_rgb_get(Pmaps_Buffer *b, DATA32 *color)
458{
459 int vr, vg, vb;
460
461 if (!b->int_get(b, &vr) || !b->int_get(b, &vg) || !b->int_get(b, &vb))
462 return 0;
463
464 if (b->max != 255)
465 {
466 vr = (vr * 255) / b->max;
467 vg = (vg * 255) / b->max;
468 vb = (vb * 255) / b->max;
469 }
470 if (vr > 255)
471 vr = 255;
472 if (vg > 255)
473 vg = 255;
474 if (vb > 255)
475 vb = 255;
476
477 *color = ARGB_JOIN(0xff, vr, vg, vb);
478
479 return 1;
480}
481
482static int
483pmaps_buffer_gray_get(Pmaps_Buffer *b, DATA32 *color)
484{
485 int val;
486
487 if (!b->int_get(b, &val))
488 return 0;
489
490 if (b->max != 255)
491 val = (val * 255) / b->max;
492 if (val > 255)
493 val = 255;
494 *color = ARGB_JOIN(0xff, val, val, val);
495
496 return 1;
497}
498
499static int
500pmaps_buffer_plain_bw_get(Pmaps_Buffer *b, DATA32 *val)
501{
502 /* first skip all white space
503 * Note: we are skipping here actually every character than is not
504 * a digit */
505 while (!isdigit(*b->current))
506 {
507 if (*b->current == '\0')
508 {
509 if (!pmaps_buffer_raw_update(b))
510 return 0;
511
512 continue;
513 }
514 if (*b->current == '#' && !pmaps_buffer_comment_skip(b))
515 return 0;
516 b->current++;
517 }
518
519 if (*b->current == '0')
520 *val = 0xffffffff;
521 else
522 *val = 0xff000000;
523
524 b->current++;
525
526 return 1;
527}
528
529/* external functions */
530static int
531module_open(Evas_Module *em)
532{
533 if (!em)
534 return 0;
535 em->functions = (void *)(&evas_image_load_pmaps_func);
536 return 1;
537}
538
539static void
540module_close(Evas_Module *em __UNUSED__)
541{
542}
543
544static Evas_Module_Api evas_modapi = {
545 EVAS_MODULE_API_VERSION,
546 "pmaps",
547 "none",
548 {
549 module_open,
550 module_close
551 }
552};
553
554EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, pmaps);
555
556#ifndef EVAS_STATIC_BUILD_PMAPS
557EVAS_EINA_MODULE_DEFINE(image_loader, pmaps);
558#endif
diff --git a/libraries/evas/src/modules/loaders/png/Makefile.am b/libraries/evas/src/modules/loaders/png/Makefile.am
new file mode 100644
index 0000000..f9387a5
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/png/Makefile.am
@@ -0,0 +1,34 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_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@evas_image_loader_png_cflags@ \
12@EVIL_CFLAGS@ \
13@WIN32_CPPFLAGS@
14
15if BUILD_LOADER_PNG
16if !EVAS_STATIC_BUILD_PNG
17
18pkgdir = $(libdir)/evas/modules/loaders/png/$(MODULE_ARCH)
19pkg_LTLIBRARIES = module.la
20
21module_la_SOURCES = evas_image_load_png.c
22
23module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_png_libs@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
24module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
25module_la_LIBTOOLFLAGS = --tag=disable-static
26
27else
28
29noinst_LTLIBRARIES = libevas_loader_png.la
30libevas_loader_png_la_SOURCES = evas_image_load_png.c
31libevas_loader_png_la_LIBADD = @evas_image_loader_png_libs@
32
33endif
34endif
diff --git a/libraries/evas/src/modules/loaders/png/Makefile.in b/libraries/evas/src/modules/loaders/png/Makefile.in
new file mode 100644
index 0000000..0717299
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/png/Makefile.in
@@ -0,0 +1,759 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/png
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_png_la_DEPENDENCIES =
83am__libevas_loader_png_la_SOURCES_DIST = evas_image_load_png.c
84@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_TRUE@am_libevas_loader_png_la_OBJECTS = evas_image_load_png.lo
85libevas_loader_png_la_OBJECTS = $(am_libevas_loader_png_la_OBJECTS)
86AM_V_lt = $(am__v_lt_$(V))
87am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88am__v_lt_0 = --silent
89@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_TRUE@am_libevas_loader_png_la_rpath =
90@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la
91am__module_la_SOURCES_DIST = evas_image_load_png.c
92@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_png.lo
93module_la_OBJECTS = $(am_module_la_OBJECTS)
94module_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_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@am_module_la_rpath = \
98@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@ -rpath \
99@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@ $(pkgdir)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_png_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_png_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184FGREP = @FGREP@
185FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
186FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
187FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
188FREETYPE_LIBS = @FREETYPE_LIBS@
189FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
190FRIBIDI_LIBS = @FRIBIDI_LIBS@
191GL_EET_CFLAGS = @GL_EET_CFLAGS@
192GL_EET_LIBS = @GL_EET_LIBS@
193GREP = @GREP@
194HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
195HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
196INSTALL = @INSTALL@
197INSTALL_DATA = @INSTALL_DATA@
198INSTALL_PROGRAM = @INSTALL_PROGRAM@
199INSTALL_SCRIPT = @INSTALL_SCRIPT@
200INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
201LD = @LD@
202LDFLAGS = @LDFLAGS@
203LIBOBJS = @LIBOBJS@
204LIBS = @LIBS@
205LIBTOOL = @LIBTOOL@
206LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
207LINEBREAK_LIBS = @LINEBREAK_LIBS@
208LIPO = @LIPO@
209LN_S = @LN_S@
210LTLIBOBJS = @LTLIBOBJS@
211MAKEINFO = @MAKEINFO@
212MKDIR_P = @MKDIR_P@
213MODULE_ARCH = @MODULE_ARCH@
214NM = @NM@
215NMEDIT = @NMEDIT@
216OBJC = @OBJC@
217OBJCDEPMODE = @OBJCDEPMODE@
218OBJCFLAGS = @OBJCFLAGS@
219OBJDUMP = @OBJDUMP@
220OBJEXT = @OBJEXT@
221OTOOL = @OTOOL@
222OTOOL64 = @OTOOL64@
223PACKAGE = @PACKAGE@
224PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225PACKAGE_NAME = @PACKAGE_NAME@
226PACKAGE_STRING = @PACKAGE_STRING@
227PACKAGE_TARNAME = @PACKAGE_TARNAME@
228PACKAGE_URL = @PACKAGE_URL@
229PACKAGE_VERSION = @PACKAGE_VERSION@
230PATH_SEPARATOR = @PATH_SEPARATOR@
231PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
232PIXMAN_LIBS = @PIXMAN_LIBS@
233PKG_CONFIG = @PKG_CONFIG@
234PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
235PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
236PNG_CFLAGS = @PNG_CFLAGS@
237PNG_LIBS = @PNG_LIBS@
238RANLIB = @RANLIB@
239SDL_CFLAGS = @SDL_CFLAGS@
240SDL_LIBS = @SDL_LIBS@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244SHM_OPEN_LINK = @SHM_OPEN_LINK@
245STRIP = @STRIP@
246SVG_CFLAGS = @SVG_CFLAGS@
247SVG_LIBS = @SVG_LIBS@
248VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
249VALGRIND_LIBS = @VALGRIND_LIBS@
250VERSION = @VERSION@
251VMAJ = @VMAJ@
252WIN32_CFLAGS = @WIN32_CFLAGS@
253WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
254XCB_CFLAGS = @XCB_CFLAGS@
255XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
256XCB_GL_LIBS = @XCB_GL_LIBS@
257XCB_LIBS = @XCB_LIBS@
258XEXT_CFLAGS = @XEXT_CFLAGS@
259XEXT_LIBS = @XEXT_LIBS@
260XMKMF = @XMKMF@
261X_CFLAGS = @X_CFLAGS@
262X_EXTRA_LIBS = @X_EXTRA_LIBS@
263X_LIBS = @X_LIBS@
264X_PRE_LIBS = @X_PRE_LIBS@
265abs_builddir = @abs_builddir@
266abs_srcdir = @abs_srcdir@
267abs_top_builddir = @abs_top_builddir@
268abs_top_srcdir = @abs_top_srcdir@
269ac_ct_CC = @ac_ct_CC@
270ac_ct_CXX = @ac_ct_CXX@
271ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272ac_ct_OBJC = @ac_ct_OBJC@
273altivec_cflags = @altivec_cflags@
274am__include = @am__include@
275am__leading_dot = @am__leading_dot@
276am__quote = @am__quote@
277am__tar = @am__tar@
278am__untar = @am__untar@
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
285builddir = @builddir@
286datadir = @datadir@
287datarootdir = @datarootdir@
288dlopen_libs = @dlopen_libs@
289docdir = @docdir@
290dvidir = @dvidir@
291edje_cc = @edje_cc@
292efl_doxygen = @efl_doxygen@
293efl_have_doxygen = @efl_have_doxygen@
294evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
295evas_engine_buffer_libs = @evas_engine_buffer_libs@
296evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
297evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
298evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
299evas_engine_directfb_libs = @evas_engine_directfb_libs@
300evas_engine_fb_cflags = @evas_engine_fb_cflags@
301evas_engine_fb_libs = @evas_engine_fb_libs@
302evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
303evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
304evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
305evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
306evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
307evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
308evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
309evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
310evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
311evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
312evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
313evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
314evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
315evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
316evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
317evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
318evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
319evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
320evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
321evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
322evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
323evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
324evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
325evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
326evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
327evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
328evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
334evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
335evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
336evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
337evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
338evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
339evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
340evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
341evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
342evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
343evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
344evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
345evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
346evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
347evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
348evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
349evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
350evas_image_loader_png_libs = @evas_image_loader_png_libs@
351evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
352evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
353evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
354evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
355evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
356evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
357evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
358evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
359evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
360evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
361evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
362evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
363exec_prefix = @exec_prefix@
364have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
365have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
366have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
367have_evas_engine_software_x11 = @have_evas_engine_software_x11@
368have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
369have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
370have_lcov = @have_lcov@
371host = @host@
372host_alias = @host_alias@
373host_cpu = @host_cpu@
374host_os = @host_os@
375host_vendor = @host_vendor@
376htmldir = @htmldir@
377includedir = @includedir@
378infodir = @infodir@
379install_sh = @install_sh@
380libdir = @libdir@
381libexecdir = @libexecdir@
382localedir = @localedir@
383localstatedir = @localstatedir@
384lt_ECHO = @lt_ECHO@
385lt_enable_auto_import = @lt_enable_auto_import@
386mandir = @mandir@
387mkdir_p = @mkdir_p@
388oldincludedir = @oldincludedir@
389pdfdir = @pdfdir@
390pkgconfig_requires_private = @pkgconfig_requires_private@
391prefix = @prefix@
392program_transform_name = @program_transform_name@
393psdir = @psdir@
394pthread_cflags = @pthread_cflags@
395pthread_libs = @pthread_libs@
396release_info = @release_info@
397requirement_evas = @requirement_evas@
398sbindir = @sbindir@
399sharedstatedir = @sharedstatedir@
400srcdir = @srcdir@
401sysconfdir = @sysconfdir@
402target_alias = @target_alias@
403top_build_prefix = @top_build_prefix@
404top_builddir = @top_builddir@
405top_srcdir = @top_srcdir@
406version_info = @version_info@
407MAINTAINERCLEANFILES = Makefile.in
408AM_CPPFLAGS = \
409-I. \
410-I$(top_srcdir)/src/lib \
411-I$(top_srcdir)/src/lib/include \
412@FREETYPE_CFLAGS@ \
413@PIXMAN_CFLAGS@ \
414@EINA_CFLAGS@ \
415@evas_image_loader_png_cflags@ \
416@EVIL_CFLAGS@ \
417@WIN32_CPPFLAGS@
418
419@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@pkgdir = $(libdir)/evas/modules/loaders/png/$(MODULE_ARCH)
420@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@pkg_LTLIBRARIES = module.la
421@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@module_la_SOURCES = evas_image_load_png.c
422@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_png_libs@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
423@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
424@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
425@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_TRUE@noinst_LTLIBRARIES = libevas_loader_png.la
426@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_TRUE@libevas_loader_png_la_SOURCES = evas_image_load_png.c
427@BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_TRUE@libevas_loader_png_la_LIBADD = @evas_image_loader_png_libs@
428all: all-am
429
430.SUFFIXES:
431.SUFFIXES: .c .lo .o .obj
432$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
433 @for dep in $?; do \
434 case '$(am__configure_deps)' in \
435 *$$dep*) \
436 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
437 && { if test -f $@; then exit 0; else break; fi; }; \
438 exit 1;; \
439 esac; \
440 done; \
441 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/png/Makefile'; \
442 $(am__cd) $(top_srcdir) && \
443 $(AUTOMAKE) --gnu src/modules/loaders/png/Makefile
444.PRECIOUS: Makefile
445Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
446 @case '$?' in \
447 *config.status*) \
448 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
449 *) \
450 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
451 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
452 esac;
453
454$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
455 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
456
457$(top_srcdir)/configure: $(am__configure_deps)
458 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
459$(ACLOCAL_M4): $(am__aclocal_m4_deps)
460 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
461$(am__aclocal_m4_deps):
462
463clean-noinstLTLIBRARIES:
464 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
465 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
466 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
467 test "$$dir" != "$$p" || dir=.; \
468 echo "rm -f \"$${dir}/so_locations\""; \
469 rm -f "$${dir}/so_locations"; \
470 done
471install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
472 @$(NORMAL_INSTALL)
473 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
474 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
475 list2=; for p in $$list; do \
476 if test -f $$p; then \
477 list2="$$list2 $$p"; \
478 else :; fi; \
479 done; \
480 test -z "$$list2" || { \
481 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
482 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
483 }
484
485uninstall-pkgLTLIBRARIES:
486 @$(NORMAL_UNINSTALL)
487 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
488 for p in $$list; do \
489 $(am__strip_dir) \
490 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
491 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
492 done
493
494clean-pkgLTLIBRARIES:
495 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
496 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
497 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
498 test "$$dir" != "$$p" || dir=.; \
499 echo "rm -f \"$${dir}/so_locations\""; \
500 rm -f "$${dir}/so_locations"; \
501 done
502libevas_loader_png.la: $(libevas_loader_png_la_OBJECTS) $(libevas_loader_png_la_DEPENDENCIES)
503 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_png_la_rpath) $(libevas_loader_png_la_OBJECTS) $(libevas_loader_png_la_LIBADD) $(LIBS)
504module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
505 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
506
507mostlyclean-compile:
508 -rm -f *.$(OBJEXT)
509
510distclean-compile:
511 -rm -f *.tab.c
512
513@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_png.Plo@am__quote@
514@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_png.Plo@am__quote@
515
516.c.o:
517@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
518@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
519@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
520@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
521@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
522@am__fastdepCC_FALSE@ $(COMPILE) -c $<
523
524.c.obj:
525@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
526@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
527@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
528@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
529@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
530@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
531
532.c.lo:
533@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
534@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
535@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
536@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
537@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
538@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
539
540module_la-evas_image_load_png.lo: evas_image_load_png.c
541@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_png.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_png.Tpo -c -o module_la-evas_image_load_png.lo `test -f 'evas_image_load_png.c' || echo '$(srcdir)/'`evas_image_load_png.c
542@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_png.Tpo $(DEPDIR)/module_la-evas_image_load_png.Plo
543@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
544@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_png.c' object='module_la-evas_image_load_png.lo' libtool=yes @AMDEPBACKSLASH@
545@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
546@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_png.lo `test -f 'evas_image_load_png.c' || echo '$(srcdir)/'`evas_image_load_png.c
547
548mostlyclean-libtool:
549 -rm -f *.lo
550
551clean-libtool:
552 -rm -rf .libs _libs
553
554ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
555 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
556 unique=`for i in $$list; do \
557 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
558 done | \
559 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
560 END { if (nonempty) { for (i in files) print i; }; }'`; \
561 mkid -fID $$unique
562tags: TAGS
563
564TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
565 $(TAGS_FILES) $(LISP)
566 set x; \
567 here=`pwd`; \
568 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
569 unique=`for i in $$list; do \
570 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
571 done | \
572 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
573 END { if (nonempty) { for (i in files) print i; }; }'`; \
574 shift; \
575 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
576 test -n "$$unique" || unique=$$empty_fix; \
577 if test $$# -gt 0; then \
578 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
579 "$$@" $$unique; \
580 else \
581 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
582 $$unique; \
583 fi; \
584 fi
585ctags: CTAGS
586CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
587 $(TAGS_FILES) $(LISP)
588 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
589 unique=`for i in $$list; do \
590 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
591 done | \
592 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
593 END { if (nonempty) { for (i in files) print i; }; }'`; \
594 test -z "$(CTAGS_ARGS)$$unique" \
595 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
596 $$unique
597
598GTAGS:
599 here=`$(am__cd) $(top_builddir) && pwd` \
600 && $(am__cd) $(top_srcdir) \
601 && gtags -i $(GTAGS_ARGS) "$$here"
602
603distclean-tags:
604 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
605
606distdir: $(DISTFILES)
607 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
608 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
609 list='$(DISTFILES)'; \
610 dist_files=`for file in $$list; do echo $$file; done | \
611 sed -e "s|^$$srcdirstrip/||;t" \
612 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
613 case $$dist_files in \
614 */*) $(MKDIR_P) `echo "$$dist_files" | \
615 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
616 sort -u` ;; \
617 esac; \
618 for file in $$dist_files; do \
619 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
620 if test -d $$d/$$file; then \
621 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
622 if test -d "$(distdir)/$$file"; then \
623 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
624 fi; \
625 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
626 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
627 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
628 fi; \
629 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
630 else \
631 test -f "$(distdir)/$$file" \
632 || cp -p $$d/$$file "$(distdir)/$$file" \
633 || exit 1; \
634 fi; \
635 done
636check-am: all-am
637check: check-am
638all-am: Makefile $(LTLIBRARIES)
639installdirs:
640 for dir in "$(DESTDIR)$(pkgdir)"; do \
641 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
642 done
643install: install-am
644install-exec: install-exec-am
645install-data: install-data-am
646uninstall: uninstall-am
647
648install-am: all-am
649 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
650
651installcheck: installcheck-am
652install-strip:
653 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
654 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
655 `test -z '$(STRIP)' || \
656 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
657mostlyclean-generic:
658
659clean-generic:
660
661distclean-generic:
662 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
663 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
664
665maintainer-clean-generic:
666 @echo "This command is intended for maintainers to use"
667 @echo "it deletes files that may require special tools to rebuild."
668 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
669clean: clean-am
670
671clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
672 clean-pkgLTLIBRARIES mostlyclean-am
673
674distclean: distclean-am
675 -rm -rf ./$(DEPDIR)
676 -rm -f Makefile
677distclean-am: clean-am distclean-compile distclean-generic \
678 distclean-tags
679
680dvi: dvi-am
681
682dvi-am:
683
684html: html-am
685
686html-am:
687
688info: info-am
689
690info-am:
691
692install-data-am: install-pkgLTLIBRARIES
693
694install-dvi: install-dvi-am
695
696install-dvi-am:
697
698install-exec-am:
699
700install-html: install-html-am
701
702install-html-am:
703
704install-info: install-info-am
705
706install-info-am:
707
708install-man:
709
710install-pdf: install-pdf-am
711
712install-pdf-am:
713
714install-ps: install-ps-am
715
716install-ps-am:
717
718installcheck-am:
719
720maintainer-clean: maintainer-clean-am
721 -rm -rf ./$(DEPDIR)
722 -rm -f Makefile
723maintainer-clean-am: distclean-am maintainer-clean-generic
724
725mostlyclean: mostlyclean-am
726
727mostlyclean-am: mostlyclean-compile mostlyclean-generic \
728 mostlyclean-libtool
729
730pdf: pdf-am
731
732pdf-am:
733
734ps: ps-am
735
736ps-am:
737
738uninstall-am: uninstall-pkgLTLIBRARIES
739
740.MAKE: install-am install-strip
741
742.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
743 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
744 ctags distclean distclean-compile distclean-generic \
745 distclean-libtool distclean-tags distdir dvi dvi-am html \
746 html-am info info-am install install-am install-data \
747 install-data-am install-dvi install-dvi-am install-exec \
748 install-exec-am install-html install-html-am install-info \
749 install-info-am install-man install-pdf install-pdf-am \
750 install-pkgLTLIBRARIES install-ps install-ps-am install-strip \
751 installcheck installcheck-am installdirs maintainer-clean \
752 maintainer-clean-generic mostlyclean mostlyclean-compile \
753 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
754 tags uninstall uninstall-am uninstall-pkgLTLIBRARIES
755
756
757# Tell versions [3.59,3.63) of GNU make to not export all variables.
758# Otherwise a system limit (for SysV at least) may be exceeded.
759.NOEXPORT:
diff --git a/libraries/evas/src/modules/loaders/png/evas_image_load_png.c b/libraries/evas/src/modules/loaders/png/evas_image_load_png.c
new file mode 100644
index 0000000..a1480ae
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/png/evas_image_load_png.c
@@ -0,0 +1,328 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#include <stdio.h>
6#include <png.h>
7#include <setjmp.h>
8
9#ifdef HAVE_EVIL
10# include <Evil.h>
11#endif
12
13#ifdef _WIN32_WCE
14# define E_FOPEN(file, mode) evil_fopen_native((file), (mode))
15# define E_FREAD(buffer, size, count, stream) evil_fread_native(buffer, size, count, stream)
16# define E_FCLOSE(stream) evil_fclose_native(stream)
17#else
18# define E_FOPEN(file, mode) fopen((file), (mode))
19# define E_FREAD(buffer, size, count, stream) fread(buffer, size, count, stream)
20# define E_FCLOSE(stream) fclose(stream)
21#endif
22
23#include "evas_common.h"
24#include "evas_private.h"
25
26
27#define PNG_BYTES_TO_CHECK 4
28
29
30static Eina_Bool evas_image_load_file_head_png(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
31static Eina_Bool evas_image_load_file_data_png(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
32
33static Evas_Image_Load_Func evas_image_load_png_func =
34{
35 EINA_TRUE,
36 evas_image_load_file_head_png,
37 evas_image_load_file_data_png,
38 NULL
39};
40
41static Eina_Bool
42evas_image_load_file_head_png(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
43{
44 png_uint_32 w32, h32;
45 FILE *f;
46 png_structp png_ptr = NULL;
47 png_infop info_ptr = NULL;
48 int bit_depth, color_type, interlace_type;
49 unsigned char buf[PNG_BYTES_TO_CHECK];
50 char hasa;
51
52 hasa = 0;
53 f = E_FOPEN(file, "rb");
54 if (!f)
55 {
56 ERR("File: '%s' does not exist\n", file);
57 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
58 return EINA_FALSE;
59 }
60
61 /* if we havent read the header before, set the header data */
62 if (E_FREAD(buf, PNG_BYTES_TO_CHECK, 1, f) != 1)
63 {
64 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
65 goto close_file;
66 }
67
68 if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK))
69 {
70 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
71 goto close_file;
72 }
73
74 png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
75 if (!png_ptr)
76 {
77 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
78 goto close_file;
79 }
80
81 info_ptr = png_create_info_struct(png_ptr);
82 if (!info_ptr)
83 {
84 png_destroy_read_struct(&png_ptr, NULL, NULL);
85 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
86 goto close_file;
87 }
88 if (setjmp(png_jmpbuf(png_ptr)))
89 {
90 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
91 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
92 goto close_file;
93 }
94 png_init_io(png_ptr, f);
95 png_set_sig_bytes(png_ptr, PNG_BYTES_TO_CHECK);
96 png_read_info(png_ptr, info_ptr);
97 png_get_IHDR(png_ptr, info_ptr, (png_uint_32 *) (&w32),
98 (png_uint_32 *) (&h32), &bit_depth, &color_type,
99 &interlace_type, NULL, NULL);
100 if ((w32 < 1) || (h32 < 1) || (w32 > IMG_MAX_SIZE) || (h32 > IMG_MAX_SIZE) ||
101 IMG_TOO_BIG(w32, h32))
102 {
103 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
104 if (IMG_TOO_BIG(w32, h32))
105 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
106 else
107 *error = EVAS_LOAD_ERROR_GENERIC;
108 goto close_file;
109 }
110 if (ie->load_opts.scale_down_by > 1)
111 {
112 ie->w = (int) w32 / ie->load_opts.scale_down_by;
113 ie->h = (int) h32 / ie->load_opts.scale_down_by;
114 if ((ie->w < 1) || (ie->h < 1))
115 {
116 *error = EVAS_LOAD_ERROR_GENERIC;
117 goto close_file;
118 }
119 }
120 else
121 {
122 ie->w = (int) w32;
123 ie->h = (int) h32;
124 }
125 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) hasa = 1;
126 if (color_type == PNG_COLOR_TYPE_RGB_ALPHA) hasa = 1;
127 if (color_type == PNG_COLOR_TYPE_GRAY_ALPHA) hasa = 1;
128 if (hasa) ie->flags.alpha = 1;
129 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
130 E_FCLOSE(f);
131
132 *error = EVAS_LOAD_ERROR_NONE;
133 return EINA_TRUE;
134
135 close_file:
136 E_FCLOSE(f);
137 return EINA_FALSE;
138}
139
140static Eina_Bool
141evas_image_load_file_data_png(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
142{
143 unsigned char *surface;
144 png_uint_32 w32, h32;
145 int w, h;
146 FILE *f;
147 png_structp png_ptr = NULL;
148 png_infop info_ptr = NULL;
149 int bit_depth, color_type, interlace_type;
150 unsigned char buf[PNG_BYTES_TO_CHECK];
151 unsigned char **lines;
152 char hasa;
153 int i, j;
154 int scale_ratio = 1, image_w = 0;
155 unsigned char *tmp_line;
156 DATA32 *src_ptr, *dst_ptr;
157
158 hasa = 0;
159 f = E_FOPEN(file, "rb");
160 if (!f)
161 {
162 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
163 return EINA_FALSE;
164 }
165
166 /* if we havent read the header before, set the header data */
167 if (E_FREAD(buf, PNG_BYTES_TO_CHECK, 1, f) != 1)
168 {
169 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
170 goto close_file;
171 }
172 if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK))
173 {
174 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
175 goto close_file;
176 }
177 png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
178 if (!png_ptr)
179 {
180 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
181 goto close_file;
182 }
183
184 info_ptr = png_create_info_struct(png_ptr);
185 if (!info_ptr)
186 {
187 png_destroy_read_struct(&png_ptr, NULL, NULL);
188 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
189 goto close_file;
190 }
191 if (setjmp(png_jmpbuf(png_ptr)))
192 {
193 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
194 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
195 goto close_file;
196 }
197 png_init_io(png_ptr, f);
198 png_set_sig_bytes(png_ptr, PNG_BYTES_TO_CHECK);
199 png_read_info(png_ptr, info_ptr);
200 png_get_IHDR(png_ptr, info_ptr, (png_uint_32 *) (&w32),
201 (png_uint_32 *) (&h32), &bit_depth, &color_type,
202 &interlace_type, NULL, NULL);
203 image_w = w32;
204 if (ie->load_opts.scale_down_by > 1)
205 {
206 scale_ratio = ie->load_opts.scale_down_by;
207 w32 /= scale_ratio;
208 h32 /= scale_ratio;
209 }
210 evas_cache_image_surface_alloc(ie, w32, h32);
211 surface = (unsigned char *) evas_cache_image_pixels(ie);
212 if (!surface)
213 {
214 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
215 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
216 goto close_file;
217 }
218 if ((w32 != ie->w) || (h32 != ie->h))
219 {
220 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
221 *error = EVAS_LOAD_ERROR_GENERIC;
222 goto close_file;
223 }
224 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) hasa = 1;
225 if (color_type == PNG_COLOR_TYPE_RGB_ALPHA) hasa = 1;
226 if (color_type == PNG_COLOR_TYPE_GRAY_ALPHA) hasa = 1;
227 if (hasa) ie->flags.alpha = 1;
228
229 /* Prep for transformations... ultimately we want ARGB */
230 /* expand palette -> RGB if necessary */
231 if (color_type == PNG_COLOR_TYPE_PALETTE) png_set_palette_to_rgb(png_ptr);
232 /* expand gray (w/reduced bits) -> 8-bit RGB if necessary */
233 if ((color_type == PNG_COLOR_TYPE_GRAY) ||
234 (color_type == PNG_COLOR_TYPE_GRAY_ALPHA))
235 {
236 png_set_gray_to_rgb(png_ptr);
237 if (bit_depth < 8) png_set_expand_gray_1_2_4_to_8(png_ptr);
238 }
239 /* expand transparency entry -> alpha channel if present */
240 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))
241 png_set_tRNS_to_alpha(png_ptr);
242 /* reduce 16bit color -> 8bit color if necessary */
243 if (bit_depth > 8) png_set_strip_16(png_ptr);
244 /* pack all pixels to byte boundaries */
245 png_set_packing(png_ptr);
246
247 w = ie->w;
248 h = ie->h;
249 /* we want ARGB */
250#ifdef WORDS_BIGENDIAN
251 png_set_swap_alpha(png_ptr);
252 if (!hasa) png_set_filler(png_ptr, 0xff, PNG_FILLER_BEFORE);
253#else
254 png_set_bgr(png_ptr);
255 if (!hasa) png_set_filler(png_ptr, 0xff, PNG_FILLER_AFTER);
256#endif
257
258 /* we read image line by line if scale down was set */
259 if (scale_ratio == 1)
260 {
261 lines = (unsigned char **) alloca(h * sizeof(unsigned char *));
262 for (i = 0; i < h; i++)
263 lines[i] = surface + (i * w * sizeof(DATA32));
264 png_read_image(png_ptr, lines);
265 png_read_end(png_ptr, info_ptr);
266 }
267 else
268 {
269 tmp_line = (unsigned char *) alloca(image_w * sizeof(DATA32));
270 dst_ptr = (DATA32 *)surface;
271 for (i = 0; i < h; i++)
272 {
273 png_read_row(png_ptr, tmp_line, NULL);
274 src_ptr = (DATA32 *)tmp_line;
275 for (j = 0; j < w; j++)
276 {
277 *dst_ptr = *src_ptr;
278 dst_ptr++;
279 src_ptr += scale_ratio;
280 }
281 for (j = 0; j < (scale_ratio - 1); j++)
282 {
283 png_read_row(png_ptr, tmp_line, NULL);
284 }
285 }
286 }
287
288 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
289 E_FCLOSE(f);
290 evas_common_image_premul(ie);
291
292 *error = EVAS_LOAD_ERROR_NONE;
293 return EINA_TRUE;
294
295 close_file:
296 E_FCLOSE(f);
297 return EINA_FALSE;
298}
299
300static int
301module_open(Evas_Module *em)
302{
303 if (!em) return 0;
304 em->functions = (void *)(&evas_image_load_png_func);
305 return 1;
306}
307
308static void
309module_close(Evas_Module *em __UNUSED__)
310{
311}
312
313static Evas_Module_Api evas_modapi =
314{
315 EVAS_MODULE_API_VERSION,
316 "png",
317 "none",
318 {
319 module_open,
320 module_close
321 }
322};
323
324EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, png);
325
326#ifndef EVAS_STATIC_BUILD_PNG
327EVAS_EINA_MODULE_DEFINE(image_loader, png);
328#endif
diff --git a/libraries/evas/src/modules/loaders/psd/Makefile.am b/libraries/evas/src/modules/loaders/psd/Makefile.am
new file mode 100644
index 0000000..8b06348
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/psd/Makefile.am
@@ -0,0 +1,33 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_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@WIN32_CPPFLAGS@
13
14if BUILD_LOADER_PSD
15if !EVAS_STATIC_BUILD_PSD
16
17pkgdir = $(libdir)/evas/modules/loaders/psd/$(MODULE_ARCH)
18pkg_LTLIBRARIES = module.la
19
20module_la_SOURCES = evas_image_load_psd.c
21
22module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
23module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
24module_la_LIBTOOLFLAGS = --tag=disable-static
25
26else
27
28noinst_LTLIBRARIES = libevas_loader_psd.la
29libevas_loader_psd_la_SOURCES = evas_image_load_psd.c
30libevas_loader_psd_la_LIBADD =
31
32endif
33endif
diff --git a/libraries/evas/src/modules/loaders/psd/Makefile.in b/libraries/evas/src/modules/loaders/psd/Makefile.in
new file mode 100644
index 0000000..98d340a
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/psd/Makefile.in
@@ -0,0 +1,758 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/psd
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_psd_la_DEPENDENCIES =
83am__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
85libevas_loader_psd_la_OBJECTS = $(am_libevas_loader_psd_la_OBJECTS)
86AM_V_lt = $(am__v_lt_$(V))
87am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88am__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
91am__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
93module_la_OBJECTS = $(am_module_la_OBJECTS)
94module_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)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_psd_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_psd_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184FGREP = @FGREP@
185FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
186FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
187FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
188FREETYPE_LIBS = @FREETYPE_LIBS@
189FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
190FRIBIDI_LIBS = @FRIBIDI_LIBS@
191GL_EET_CFLAGS = @GL_EET_CFLAGS@
192GL_EET_LIBS = @GL_EET_LIBS@
193GREP = @GREP@
194HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
195HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
196INSTALL = @INSTALL@
197INSTALL_DATA = @INSTALL_DATA@
198INSTALL_PROGRAM = @INSTALL_PROGRAM@
199INSTALL_SCRIPT = @INSTALL_SCRIPT@
200INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
201LD = @LD@
202LDFLAGS = @LDFLAGS@
203LIBOBJS = @LIBOBJS@
204LIBS = @LIBS@
205LIBTOOL = @LIBTOOL@
206LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
207LINEBREAK_LIBS = @LINEBREAK_LIBS@
208LIPO = @LIPO@
209LN_S = @LN_S@
210LTLIBOBJS = @LTLIBOBJS@
211MAKEINFO = @MAKEINFO@
212MKDIR_P = @MKDIR_P@
213MODULE_ARCH = @MODULE_ARCH@
214NM = @NM@
215NMEDIT = @NMEDIT@
216OBJC = @OBJC@
217OBJCDEPMODE = @OBJCDEPMODE@
218OBJCFLAGS = @OBJCFLAGS@
219OBJDUMP = @OBJDUMP@
220OBJEXT = @OBJEXT@
221OTOOL = @OTOOL@
222OTOOL64 = @OTOOL64@
223PACKAGE = @PACKAGE@
224PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225PACKAGE_NAME = @PACKAGE_NAME@
226PACKAGE_STRING = @PACKAGE_STRING@
227PACKAGE_TARNAME = @PACKAGE_TARNAME@
228PACKAGE_URL = @PACKAGE_URL@
229PACKAGE_VERSION = @PACKAGE_VERSION@
230PATH_SEPARATOR = @PATH_SEPARATOR@
231PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
232PIXMAN_LIBS = @PIXMAN_LIBS@
233PKG_CONFIG = @PKG_CONFIG@
234PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
235PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
236PNG_CFLAGS = @PNG_CFLAGS@
237PNG_LIBS = @PNG_LIBS@
238RANLIB = @RANLIB@
239SDL_CFLAGS = @SDL_CFLAGS@
240SDL_LIBS = @SDL_LIBS@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244SHM_OPEN_LINK = @SHM_OPEN_LINK@
245STRIP = @STRIP@
246SVG_CFLAGS = @SVG_CFLAGS@
247SVG_LIBS = @SVG_LIBS@
248VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
249VALGRIND_LIBS = @VALGRIND_LIBS@
250VERSION = @VERSION@
251VMAJ = @VMAJ@
252WIN32_CFLAGS = @WIN32_CFLAGS@
253WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
254XCB_CFLAGS = @XCB_CFLAGS@
255XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
256XCB_GL_LIBS = @XCB_GL_LIBS@
257XCB_LIBS = @XCB_LIBS@
258XEXT_CFLAGS = @XEXT_CFLAGS@
259XEXT_LIBS = @XEXT_LIBS@
260XMKMF = @XMKMF@
261X_CFLAGS = @X_CFLAGS@
262X_EXTRA_LIBS = @X_EXTRA_LIBS@
263X_LIBS = @X_LIBS@
264X_PRE_LIBS = @X_PRE_LIBS@
265abs_builddir = @abs_builddir@
266abs_srcdir = @abs_srcdir@
267abs_top_builddir = @abs_top_builddir@
268abs_top_srcdir = @abs_top_srcdir@
269ac_ct_CC = @ac_ct_CC@
270ac_ct_CXX = @ac_ct_CXX@
271ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272ac_ct_OBJC = @ac_ct_OBJC@
273altivec_cflags = @altivec_cflags@
274am__include = @am__include@
275am__leading_dot = @am__leading_dot@
276am__quote = @am__quote@
277am__tar = @am__tar@
278am__untar = @am__untar@
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
285builddir = @builddir@
286datadir = @datadir@
287datarootdir = @datarootdir@
288dlopen_libs = @dlopen_libs@
289docdir = @docdir@
290dvidir = @dvidir@
291edje_cc = @edje_cc@
292efl_doxygen = @efl_doxygen@
293efl_have_doxygen = @efl_have_doxygen@
294evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
295evas_engine_buffer_libs = @evas_engine_buffer_libs@
296evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
297evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
298evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
299evas_engine_directfb_libs = @evas_engine_directfb_libs@
300evas_engine_fb_cflags = @evas_engine_fb_cflags@
301evas_engine_fb_libs = @evas_engine_fb_libs@
302evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
303evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
304evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
305evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
306evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
307evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
308evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
309evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
310evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
311evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
312evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
313evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
314evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
315evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
316evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
317evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
318evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
319evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
320evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
321evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
322evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
323evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
324evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
325evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
326evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
327evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
328evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
334evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
335evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
336evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
337evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
338evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
339evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
340evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
341evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
342evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
343evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
344evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
345evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
346evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
347evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
348evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
349evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
350evas_image_loader_png_libs = @evas_image_loader_png_libs@
351evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
352evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
353evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
354evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
355evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
356evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
357evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
358evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
359evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
360evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
361evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
362evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
363exec_prefix = @exec_prefix@
364have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
365have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
366have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
367have_evas_engine_software_x11 = @have_evas_engine_software_x11@
368have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
369have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
370have_lcov = @have_lcov@
371host = @host@
372host_alias = @host_alias@
373host_cpu = @host_cpu@
374host_os = @host_os@
375host_vendor = @host_vendor@
376htmldir = @htmldir@
377includedir = @includedir@
378infodir = @infodir@
379install_sh = @install_sh@
380libdir = @libdir@
381libexecdir = @libexecdir@
382localedir = @localedir@
383localstatedir = @localstatedir@
384lt_ECHO = @lt_ECHO@
385lt_enable_auto_import = @lt_enable_auto_import@
386mandir = @mandir@
387mkdir_p = @mkdir_p@
388oldincludedir = @oldincludedir@
389pdfdir = @pdfdir@
390pkgconfig_requires_private = @pkgconfig_requires_private@
391prefix = @prefix@
392program_transform_name = @program_transform_name@
393psdir = @psdir@
394pthread_cflags = @pthread_cflags@
395pthread_libs = @pthread_libs@
396release_info = @release_info@
397requirement_evas = @requirement_evas@
398sbindir = @sbindir@
399sharedstatedir = @sharedstatedir@
400srcdir = @srcdir@
401sysconfdir = @sysconfdir@
402target_alias = @target_alias@
403top_build_prefix = @top_build_prefix@
404top_builddir = @top_builddir@
405top_srcdir = @top_srcdir@
406version_info = @version_info@
407MAINTAINERCLEANFILES = Makefile.in
408AM_CPPFLAGS = \
409-I. \
410-I$(top_srcdir)/src/lib \
411-I$(top_srcdir)/src/lib/include \
412@FREETYPE_CFLAGS@ \
413@PIXMAN_CFLAGS@ \
414@EINA_CFLAGS@ \
415@EVIL_CFLAGS@ \
416@WIN32_CPPFLAGS@
417
418@BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@pkgdir = $(libdir)/evas/modules/loaders/psd/$(MODULE_ARCH)
419@BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@pkg_LTLIBRARIES = module.la
420@BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@module_la_SOURCES = evas_image_load_psd.c
421@BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
422@BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
423@BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
424@BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_TRUE@noinst_LTLIBRARIES = libevas_loader_psd.la
425@BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_TRUE@libevas_loader_psd_la_SOURCES = evas_image_load_psd.c
426@BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_TRUE@libevas_loader_psd_la_LIBADD =
427all: all-am
428
429.SUFFIXES:
430.SUFFIXES: .c .lo .o .obj
431$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
432 @for dep in $?; do \
433 case '$(am__configure_deps)' in \
434 *$$dep*) \
435 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
436 && { if test -f $@; then exit 0; else break; fi; }; \
437 exit 1;; \
438 esac; \
439 done; \
440 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/psd/Makefile'; \
441 $(am__cd) $(top_srcdir) && \
442 $(AUTOMAKE) --gnu src/modules/loaders/psd/Makefile
443.PRECIOUS: Makefile
444Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
445 @case '$?' in \
446 *config.status*) \
447 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
448 *) \
449 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
450 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
451 esac;
452
453$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
454 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
455
456$(top_srcdir)/configure: $(am__configure_deps)
457 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
458$(ACLOCAL_M4): $(am__aclocal_m4_deps)
459 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
460$(am__aclocal_m4_deps):
461
462clean-noinstLTLIBRARIES:
463 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
464 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
465 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
466 test "$$dir" != "$$p" || dir=.; \
467 echo "rm -f \"$${dir}/so_locations\""; \
468 rm -f "$${dir}/so_locations"; \
469 done
470install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
471 @$(NORMAL_INSTALL)
472 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
473 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
474 list2=; for p in $$list; do \
475 if test -f $$p; then \
476 list2="$$list2 $$p"; \
477 else :; fi; \
478 done; \
479 test -z "$$list2" || { \
480 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
481 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
482 }
483
484uninstall-pkgLTLIBRARIES:
485 @$(NORMAL_UNINSTALL)
486 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
487 for p in $$list; do \
488 $(am__strip_dir) \
489 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
490 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
491 done
492
493clean-pkgLTLIBRARIES:
494 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
495 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
496 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
497 test "$$dir" != "$$p" || dir=.; \
498 echo "rm -f \"$${dir}/so_locations\""; \
499 rm -f "$${dir}/so_locations"; \
500 done
501libevas_loader_psd.la: $(libevas_loader_psd_la_OBJECTS) $(libevas_loader_psd_la_DEPENDENCIES)
502 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_psd_la_rpath) $(libevas_loader_psd_la_OBJECTS) $(libevas_loader_psd_la_LIBADD) $(LIBS)
503module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
504 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
505
506mostlyclean-compile:
507 -rm -f *.$(OBJEXT)
508
509distclean-compile:
510 -rm -f *.tab.c
511
512@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_psd.Plo@am__quote@
513@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_psd.Plo@am__quote@
514
515.c.o:
516@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
517@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
518@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
519@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
520@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
521@am__fastdepCC_FALSE@ $(COMPILE) -c $<
522
523.c.obj:
524@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
525@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
526@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
527@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
528@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
529@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
530
531.c.lo:
532@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
533@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
534@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
535@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
536@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
537@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
538
539module_la-evas_image_load_psd.lo: evas_image_load_psd.c
540@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
541@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_psd.Tpo $(DEPDIR)/module_la-evas_image_load_psd.Plo
542@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
543@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_psd.c' object='module_la-evas_image_load_psd.lo' libtool=yes @AMDEPBACKSLASH@
544@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
545@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
546
547mostlyclean-libtool:
548 -rm -f *.lo
549
550clean-libtool:
551 -rm -rf .libs _libs
552
553ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
554 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
555 unique=`for i in $$list; do \
556 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
557 done | \
558 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
559 END { if (nonempty) { for (i in files) print i; }; }'`; \
560 mkid -fID $$unique
561tags: TAGS
562
563TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
564 $(TAGS_FILES) $(LISP)
565 set x; \
566 here=`pwd`; \
567 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
568 unique=`for i in $$list; do \
569 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
570 done | \
571 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
572 END { if (nonempty) { for (i in files) print i; }; }'`; \
573 shift; \
574 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
575 test -n "$$unique" || unique=$$empty_fix; \
576 if test $$# -gt 0; then \
577 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
578 "$$@" $$unique; \
579 else \
580 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
581 $$unique; \
582 fi; \
583 fi
584ctags: CTAGS
585CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
586 $(TAGS_FILES) $(LISP)
587 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
588 unique=`for i in $$list; do \
589 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
590 done | \
591 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
592 END { if (nonempty) { for (i in files) print i; }; }'`; \
593 test -z "$(CTAGS_ARGS)$$unique" \
594 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
595 $$unique
596
597GTAGS:
598 here=`$(am__cd) $(top_builddir) && pwd` \
599 && $(am__cd) $(top_srcdir) \
600 && gtags -i $(GTAGS_ARGS) "$$here"
601
602distclean-tags:
603 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
604
605distdir: $(DISTFILES)
606 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
607 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
608 list='$(DISTFILES)'; \
609 dist_files=`for file in $$list; do echo $$file; done | \
610 sed -e "s|^$$srcdirstrip/||;t" \
611 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
612 case $$dist_files in \
613 */*) $(MKDIR_P) `echo "$$dist_files" | \
614 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
615 sort -u` ;; \
616 esac; \
617 for file in $$dist_files; do \
618 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
619 if test -d $$d/$$file; then \
620 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
621 if test -d "$(distdir)/$$file"; then \
622 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
623 fi; \
624 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
625 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
626 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
627 fi; \
628 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
629 else \
630 test -f "$(distdir)/$$file" \
631 || cp -p $$d/$$file "$(distdir)/$$file" \
632 || exit 1; \
633 fi; \
634 done
635check-am: all-am
636check: check-am
637all-am: Makefile $(LTLIBRARIES)
638installdirs:
639 for dir in "$(DESTDIR)$(pkgdir)"; do \
640 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
641 done
642install: install-am
643install-exec: install-exec-am
644install-data: install-data-am
645uninstall: uninstall-am
646
647install-am: all-am
648 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
649
650installcheck: installcheck-am
651install-strip:
652 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
653 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
654 `test -z '$(STRIP)' || \
655 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
656mostlyclean-generic:
657
658clean-generic:
659
660distclean-generic:
661 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
662 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
663
664maintainer-clean-generic:
665 @echo "This command is intended for maintainers to use"
666 @echo "it deletes files that may require special tools to rebuild."
667 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
668clean: clean-am
669
670clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
671 clean-pkgLTLIBRARIES mostlyclean-am
672
673distclean: distclean-am
674 -rm -rf ./$(DEPDIR)
675 -rm -f Makefile
676distclean-am: clean-am distclean-compile distclean-generic \
677 distclean-tags
678
679dvi: dvi-am
680
681dvi-am:
682
683html: html-am
684
685html-am:
686
687info: info-am
688
689info-am:
690
691install-data-am: install-pkgLTLIBRARIES
692
693install-dvi: install-dvi-am
694
695install-dvi-am:
696
697install-exec-am:
698
699install-html: install-html-am
700
701install-html-am:
702
703install-info: install-info-am
704
705install-info-am:
706
707install-man:
708
709install-pdf: install-pdf-am
710
711install-pdf-am:
712
713install-ps: install-ps-am
714
715install-ps-am:
716
717installcheck-am:
718
719maintainer-clean: maintainer-clean-am
720 -rm -rf ./$(DEPDIR)
721 -rm -f Makefile
722maintainer-clean-am: distclean-am maintainer-clean-generic
723
724mostlyclean: mostlyclean-am
725
726mostlyclean-am: mostlyclean-compile mostlyclean-generic \
727 mostlyclean-libtool
728
729pdf: pdf-am
730
731pdf-am:
732
733ps: ps-am
734
735ps-am:
736
737uninstall-am: uninstall-pkgLTLIBRARIES
738
739.MAKE: install-am install-strip
740
741.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
742 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
743 ctags distclean distclean-compile distclean-generic \
744 distclean-libtool distclean-tags distdir dvi dvi-am html \
745 html-am info info-am install install-am install-data \
746 install-data-am install-dvi install-dvi-am install-exec \
747 install-exec-am install-html install-html-am install-info \
748 install-info-am install-man install-pdf install-pdf-am \
749 install-pkgLTLIBRARIES install-ps install-ps-am install-strip \
750 installcheck installcheck-am installdirs maintainer-clean \
751 maintainer-clean-generic mostlyclean mostlyclean-compile \
752 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
753 tags uninstall uninstall-am uninstall-pkgLTLIBRARIES
754
755
756# Tell versions [3.59,3.63) of GNU make to not export all variables.
757# Otherwise a system limit (for SysV at least) may be exceeded.
758.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
new file mode 100644
index 0000000..5a85e17
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/psd/evas_image_load_psd.c
@@ -0,0 +1,976 @@
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
32typedef struct _PSD_Header PSD_Header;
33
34typedef enum _PSD_Mode
35 {
36 PSD_GREYSCALE = 1,
37 PSD_INDEXED = 2,
38 PSD_RGB = 3,
39 PSD_CMYK = 4
40 } PSD_Mode;
41
42struct _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
57enum {
58 READ_COMPRESSED_SUCCESS,
59 READ_COMPRESSED_ERROR_FILE_CORRUPT,
60 READ_COMPRESSED_ERROR_FILE_READ_ERROR
61};
62
63static Eina_Bool get_compressed_channels_length(PSD_Header *Head,
64 FILE *file,
65 unsigned short *rle_table,
66 unsigned int *chanlen);
67
68static int
69read_ushort(FILE *file, unsigned short *ret)
70{
71 unsigned char b[2];
72 if (fread(b, sizeof(unsigned char), 2, file) != 2) return 0;
73 // FIXME: need to check order
74 *ret = (b[0] << 8) | b[1];
75 return 1;
76}
77
78static int
79read_uint(FILE *file, unsigned int *ret)
80{
81 unsigned char b[4];
82 if (fread(b, sizeof(unsigned char), 4, file) != 4) return 0;
83 // FIXME: need to check order
84 *ret = ARGB_JOIN(b[0], b[1], b[2], b[3]);
85 return 1;
86}
87
88// Internal function used to get the Psd header from the current file.
89Eina_Bool
90psd_get_header(PSD_Header *header, FILE * file)
91{
92 unsigned short tmp;
93
94#define CHECK_RET(Call, Value) \
95 if (Call != Value) return EINA_FALSE;
96
97 CHECK_RET(fread(header->signature, sizeof (unsigned char), 4, file), 4);
98 CHECK_RET(read_ushort(file, &header->version), 1);
99 CHECK_RET(fread(header->reserved, sizeof (unsigned char), 6, file), 6);
100 CHECK_RET(read_ushort(file, &header->channels), 1);
101 CHECK_RET(read_uint(file, &header->height), 1);
102 CHECK_RET(read_uint(file, &header->width), 1);
103 CHECK_RET(read_ushort(file, &header->depth), 1);
104
105 CHECK_RET(read_ushort(file, &tmp), 1);
106 header->mode = tmp;
107
108#undef CHECK_RET
109
110 /* fprintf(stderr, "<<<<<<<<<<<\nsignature : %c%c%c%c\n", */
111 /* header->signature[0], */
112 /* header->signature[1], */
113 /* header->signature[2], */
114 /* header->signature[3]); */
115 /* fprintf(stderr, "version : %i\n", header->version); */
116 /* fprintf(stderr, "channels : %i\n", header->channels); */
117 /* fprintf(stderr, "width x height : %dx%d\n", header->width, header->height); */
118 /* fprintf(stderr, "depth : %i\n", header->depth); */
119 /* fprintf(stderr, "mode : %i\n>>>>>>>>>>>>\n", header->mode); */
120
121 return EINA_TRUE;
122}
123
124
125// Internal function used to check if the HEADER is a valid Psd header.
126Eina_Bool
127is_psd(PSD_Header *header)
128{
129 if (strncmp((char*)header->signature, "8BPS", 4))
130 return EINA_FALSE;
131 if (header->version != 1)
132 return EINA_FALSE;
133 if (header->channels < 1 || header->channels > 24)
134 return EINA_FALSE;
135 if (header->height < 1 || header->width < 1)
136 return EINA_FALSE;
137 if (header->depth != 1 && header->depth != 8 && header->depth != 16)
138 return EINA_FALSE;
139
140 return EINA_TRUE;
141}
142
143static Eina_Bool
144evas_image_load_file_head_psd(Image_Entry *ie, const char *FileName,
145 const char *key __UNUSED__, int *error)
146{
147 FILE *f;
148 PSD_Header header;
149 Eina_Bool correct;
150
151 *error = EVAS_LOAD_ERROR_NONE;
152
153 f = fopen(FileName, "rb");
154 if (f == NULL)
155 {
156 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
157 return EINA_FALSE;
158 }
159 correct = psd_get_header(&header, f);
160 fclose(f);
161
162 if (!correct || !is_psd(&header))
163 {
164 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
165 return EINA_FALSE;
166 }
167
168 ie->w = header.width;
169 ie->h = header.height;
170 if (header.channels == 3) ie->flags.alpha = 0;
171 else ie->flags.alpha = 1;
172
173 return EINA_TRUE;
174}
175
176static unsigned int
177read_compressed_channel(FILE* file,
178 const unsigned int channel_length __UNUSED__,
179 unsigned int size,
180 unsigned char* channel)
181{
182 // FIXME: what does channel_length means, and why is it not used
183 unsigned int i;
184 char headbyte, c;
185
186#define CHECK_RET(Call, Value) \
187 if (Call != Value) return READ_COMPRESSED_ERROR_FILE_READ_ERROR;
188
189 for (i = 0; i < size; )
190 {
191 CHECK_RET(fread(&headbyte, 1, 1, file), 1);
192
193 if (headbyte >= 0)
194 {
195 if (i + headbyte > size)
196 return READ_COMPRESSED_ERROR_FILE_CORRUPT;
197
198 CHECK_RET(fread(channel + i, headbyte + 1, 1, file), 1);
199
200 i += headbyte + 1;
201 }
202 else if (headbyte >= -127 && headbyte <= -1)
203 {
204 int run;
205
206 CHECK_RET(fread(&c, 1, 1, file), 1);
207
208 run = c;
209 /* if (run == -1) */
210 /* return READ_COMPRESSED_ERROR_FILE_READ_ERROR; */
211
212 if (i + (-headbyte + 1) > size)
213 return READ_COMPRESSED_ERROR_FILE_CORRUPT;
214
215 memset(channel + i, run, -headbyte + 1);
216 i += -headbyte + 1;
217 }
218 }
219
220#undef CHECK_RET
221
222 return READ_COMPRESSED_SUCCESS;
223}
224
225
226Eina_Bool
227psd_get_data(Image_Entry *ie __UNUSED__,
228 PSD_Header *head,
229 FILE *f,
230 unsigned char *buffer, Eina_Bool compressed,
231 int *error)
232{
233 unsigned int c, x, y, numchan, bps, bpc, bpp;
234 unsigned int pixels_count;
235 unsigned char *channel = NULL;
236 unsigned char *data = NULL;
237
238 // Added 01-07-2009: This is needed to correctly load greyscale and
239 // paletted images.
240 switch (head->mode)
241 {
242 case PSD_GREYSCALE:
243 case PSD_INDEXED:
244 numchan = 1;
245 break;
246 default:
247 numchan = 3;
248 }
249
250 bpp = head->channels;
251 bpc = head->depth / 8;
252 pixels_count = head->width * head->height;
253
254 data = malloc(sizeof (unsigned char) * pixels_count * bpp);
255 if (!data) return EINA_FALSE;
256
257 channel = malloc(sizeof (unsigned char) * pixels_count * bpc);
258 if (!channel)
259 {
260 free(data);
261 return EINA_FALSE;
262 }
263
264 bps = head->width * head->channels * bpc;
265 // @TODO: Add support for this in, though I have yet to run across a .psd
266 // file that uses this.
267 if (compressed && bpc == 2)
268 {
269 free(data);
270 free(channel);
271 fprintf(stderr, "unsupported file format.\n");
272 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
273 return EINA_FALSE;
274 }
275
276#define CHECK_RET(Call, Value) \
277 if (Call != Value) \
278 { \
279 free(data); \
280 free(channel); \
281 return EINA_FALSE; \
282 }
283
284 if (!compressed)
285 {
286 if (bpc == 1)
287 {
288 for (c = 0; c < numchan; c++)
289 {
290 unsigned char *tmp = channel;
291
292 CHECK_RET(fread(tmp, pixels_count, 1, f), 1);
293
294 for (y = 0; y < head->height * bps; y += bps)
295 {
296 for (x = 0; x < bps; x += bpp, tmp++)
297 {
298 data[y + x + c] = *tmp;
299 }
300 }
301 }
302
303 // Accumulate any remaining channels into a single alpha channel
304 //@TODO: This needs to be changed for greyscale images.
305 for (; c < head->channels; c++)
306 {
307 unsigned char *tmp = channel;
308
309 CHECK_RET(fread(channel, pixels_count, 1, f), 1);
310
311 for (y = 0; y < head->height * bps; y += bps)
312 {
313 for (x = 0; x < bps; x += bpp, tmp++)
314 {
315 unsigned short newval;
316
317 // previous formula was : (old / 255 * new / 255) * 255
318 newval = (*tmp) * data[y + x + 3];
319
320 data[y + x + 3] = newval >> 8;
321 }
322 }
323 }
324 }
325 else
326 {
327 int bps2;
328
329 bps2 = bps / 2;
330
331 // iCurImage->Bpc == 2
332 for (c = 0; c < numchan; c++)
333 {
334 unsigned short *shortptr = (unsigned short*) channel;
335
336 CHECK_RET(fread(channel, pixels_count * 2, 1, f), 1);
337
338 for (y = 0; y < head->height * bps2; y += bps2)
339 {
340 for (x = 0; x < (unsigned int)bps2; x += bpp, shortptr++)
341 {
342 ((unsigned short*)data)[y + x + c] = *shortptr;
343 }
344 }
345 }
346
347 // Accumulate any remaining channels into a single alpha channel
348 //@TODO: This needs to be changed for greyscale images.
349 for (; c < head->channels; c++)
350 {
351 unsigned short *shortptr = (unsigned short*) channel;
352
353 CHECK_RET(fread(channel, pixels_count * 2, 1, f), 1);
354
355 for (y = 0; y < head->height * bps2; y += bps2)
356 {
357 for (x = 0; x < (unsigned int)bps2; x += bpp, shortptr)
358 {
359 unsigned int newval;
360
361 newval = *shortptr * ((unsigned short*)data)[y + x + 3];
362
363 ((unsigned short*)data)[y + x + 3] = newval >> 16;
364 }
365 }
366 }
367 }
368 }
369 else
370 {
371 unsigned short *rle_table;
372 unsigned int *chanlen;
373
374 rle_table = alloca(head->height * head->channel_num * sizeof (unsigned short));
375 chanlen = alloca(head->channel_num * sizeof (unsigned int));
376 if (!get_compressed_channels_length(head, f, rle_table, chanlen))
377 goto file_read_error;
378
379 for (c = 0; c < numchan; c++)
380 {
381 unsigned char *tmp = channel;
382 int err;
383
384 err = read_compressed_channel(f,
385 chanlen[c],
386 pixels_count,
387 channel);
388 if (err == READ_COMPRESSED_ERROR_FILE_CORRUPT)
389 goto file_corrupt;
390 else if (err == READ_COMPRESSED_ERROR_FILE_READ_ERROR)
391 goto file_read_error;
392
393 for (y = 0; y < head->height * bps; y += bps)
394 {
395 for (x = 0; x < bps; x += bpp, tmp++)
396 {
397 data[y + x + c] = *tmp;
398 }
399 }
400 }
401
402 // Initialize the alpha channel to solid
403 //@TODO: This needs to be changed for greyscale images.
404 if (head->channels >= 4)
405 {
406 for (y = 0; y < head->height * bps; y += bps)
407 {
408 for (x = 0; x < bps; x += bpp)
409 {
410 data[y + x + 3] = 255;
411 }
412 }
413
414 for (; c < head->channels; c++)
415 {
416 unsigned char *tmp = channel;
417 int err;
418
419 err = read_compressed_channel(f,
420 chanlen[c],
421 pixels_count,
422 channel);
423 if (err == READ_COMPRESSED_ERROR_FILE_CORRUPT)
424 goto file_corrupt;
425 else if (err == READ_COMPRESSED_ERROR_FILE_READ_ERROR)
426 goto file_read_error;
427
428 for (y = 0; y < head->height * bps; y += bps)
429 {
430 for (x = 0; x < bps; x += bpp, tmp++)
431 {
432 unsigned short newval;
433
434 newval = *tmp * data[y + x + 3];
435
436 data[y + x + 3] = newval >> 8;
437 }
438 }
439 }
440 }
441 }
442
443 if (bpp == 3)
444 {
445 for (x = 0; x < pixels_count; x++)
446 {
447 buffer[x * 4 + 0] = data[x * 3 + 2];
448 buffer[x * 4 + 1] = data[x * 3 + 1];
449 buffer[x * 4 + 2] = data[x * 3 + 0];
450 buffer[x * 4 + 3] = 255;
451 }
452 }
453 else
454 {
455 // BRGA to RGBA
456 for (x= 0; x < pixels_count; x++)
457 {
458 buffer[x * 4 + 0] = data[x * 4 + 2];
459 buffer[x * 4 + 1] = data[x * 4 + 1];
460 buffer[x * 4 + 2] = data[x * 4 + 0];
461 buffer[x * 4 + 3] = data[x * 4 + 3];
462 }
463 }
464
465 free(channel);
466 free(data);
467 return EINA_TRUE;
468
469#undef CHECK_RET
470
471 file_corrupt:
472 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
473
474 file_read_error:
475 free(channel);
476 free(data);
477
478 return EINA_FALSE;
479}
480
481
482Eina_Bool
483get_single_channel(Image_Entry *ie __UNUSED__,
484 PSD_Header *head,
485 FILE *f,
486 unsigned char *buffer,
487 Eina_Bool compressed)
488{
489 unsigned int i, bpc;
490 unsigned short *tmp;
491 char headbyte;
492 int c;
493 int pixels_count;
494
495 tmp = (unsigned short*)buffer;
496 bpc = (head->depth / 8);
497 pixels_count = head->width * head->height;
498
499#define CHECK_RET(Call, Value) \
500 if (Call != Value) return EINA_FALSE;
501
502 if (!compressed)
503 {
504 if (bpc == 1)
505 {
506 CHECK_RET(fread(buffer, pixels_count, 1, f), 1);
507 }
508 else
509 { // Bpc == 2
510 CHECK_RET(fread(buffer, pixels_count * 2, 1, f), 1);
511 }
512 }
513 else
514 {
515 for (i = 0; i < (unsigned int)pixels_count; )
516 {
517 CHECK_RET(fread(&headbyte, 1, 1, f), 1);
518
519 if (headbyte >= 0)
520 { // && HeadByte <= 127
521 CHECK_RET(fread(buffer + i, headbyte + 1, 1, f), 1);
522
523 i += headbyte + 1;
524 }
525 if (headbyte >= -127 && headbyte <= -1)
526 {
527 int run;
528
529 CHECK_RET(fread(&c, 1, 1, f), 1);
530
531 run = c;
532 if (run == -1) return EINA_FALSE;
533
534 memset(buffer + i, run, -headbyte + 1);
535 i += -headbyte + 1;
536 }
537 }
538 }
539
540#undef CHECK_RET
541
542 return EINA_TRUE;
543}
544
545Eina_Bool
546read_psd_grey(Image_Entry *ie, PSD_Header *head, FILE * f, int *error)
547{
548 unsigned int color_mode, resource_size, misc_info;
549 unsigned short compressed;
550 unsigned int type;
551 void *surface = NULL;
552
553 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
554
555#define CHECK_RET(Call, Value) \
556 if (Call != Value) return EINA_FALSE;
557
558 CHECK_RET(read_uint(f, &color_mode), 1);
559 // Skip over the 'color mode data section'
560 CHECK_RET(fseek(f, color_mode, SEEK_CUR), 0);
561
562 CHECK_RET(read_uint(f, &resource_size), 1);
563 // Read the 'image resources section'
564
565 CHECK_RET(fseek(f, resource_size, SEEK_CUR), 0);
566
567 CHECK_RET(read_uint(f, &misc_info), 1);
568 CHECK_RET(fseek(f, misc_info, SEEK_CUR), 0);
569
570 CHECK_RET(read_ushort(f, &compressed), 1);
571
572 ie->w = head->width;
573 ie->h = head->height;
574 if (head->channels == 3) ie->flags.alpha = 0;
575 else ie->flags.alpha = 1;
576
577 head->channel_num = head->channels;
578 // Temporary to read only one channel...some greyscale .psd files have 2.
579 head->channels = 1;
580
581 switch (head->depth)
582 {
583 case 8:
584 type = 1;
585 break;
586 case 16:
587 type = 2;
588 break;
589 default:
590 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
591 return EINA_FALSE;
592 }
593
594 evas_cache_image_surface_alloc(ie, ie->w, ie->h);
595 surface = evas_cache_image_pixels(ie);
596 if (!surface)
597 {
598 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
599 goto cleanup_error;
600 }
601
602 if (!psd_get_data(ie, head, f, surface, compressed, error))
603 goto cleanup_error;
604
605 return EINA_TRUE;
606
607#undef CHECK_RET
608
609 cleanup_error:
610 return EINA_FALSE;
611}
612
613
614Eina_Bool
615read_psd_indexed(Image_Entry *ie, PSD_Header *head, FILE * f, int *error)
616{
617 unsigned int color_mode, resource_size, misc_info;
618 unsigned short compressed;
619 void *surface;
620
621 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
622
623#define CHECK_RET(Call, Value) \
624 if (Call != Value) return EINA_FALSE;
625
626 CHECK_RET(read_uint(f, &color_mode), 1);
627 CHECK_RET((color_mode % 3), 0);
628 /*
629 Palette = (unsigned char*)malloc(Colormode);
630 if (Palette == NULL)
631 return EINA_FALSE;
632 if (fread(&Palette, 1, Colormode, file) != Colormode)
633 goto cleanup_error;
634 */
635 // Skip over the 'color mode data section'
636 CHECK_RET(fseek(f, color_mode, SEEK_CUR), 0);
637
638 // Read the 'image resources section'
639 CHECK_RET(read_uint(f, &resource_size), 1);
640 CHECK_RET(fseek(f, resource_size, SEEK_CUR), 0);
641
642 CHECK_RET(read_uint(f, &misc_info), 1);
643 CHECK_RET(fseek(f, misc_info, SEEK_CUR), 0);
644
645 CHECK_RET(read_ushort(f, &compressed), 1);
646
647 if (head->channels != 1 || head->depth != 8)
648 {
649 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
650 return EINA_FALSE;
651 }
652 head->channel_num = head->channels;
653
654 ie->w = head->width;
655 ie->h = head->height;
656 if (head->channels == 3) ie->flags.alpha = 0;
657 else ie->flags.alpha = 1;
658
659 evas_cache_image_surface_alloc(ie, ie->w, ie->h);
660 surface = evas_cache_image_pixels(ie);
661 if (!surface)
662 {
663 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
664 return EINA_FALSE;
665 }
666
667 if (!psd_get_data(ie, head, f, surface, compressed, error))
668 return EINA_FALSE;
669 return EINA_TRUE;
670
671#undef CHECK_RET
672}
673
674Eina_Bool
675read_psd_rgb(Image_Entry *ie, PSD_Header *head, FILE *f, int *error)
676{
677 unsigned int color_mode, resource_size, misc_info;
678 unsigned short compressed;
679 unsigned int type;
680 void *surface;
681
682#define CHECK_RET(Call, Value) \
683 if (Call != Value) return EINA_FALSE;
684
685 CHECK_RET(read_uint(f, &color_mode), 1);
686 // Skip over the 'color mode data section'
687 CHECK_RET(fseek(f, color_mode, SEEK_CUR), 0);
688
689 // Read the 'image resources section'
690 CHECK_RET(read_uint(f, &resource_size), 1);
691 CHECK_RET(fseek(f, resource_size, SEEK_CUR), 0);
692
693 CHECK_RET(read_uint(f, &misc_info), 1);
694 CHECK_RET(fseek(f, misc_info, SEEK_CUR), 0);
695
696 CHECK_RET(read_ushort(f, &compressed), 1);
697
698 head->channel_num = head->channels;
699
700 switch (head->depth)
701 {
702 case 8:
703 type = 1;
704 break;
705 case 16:
706 type = 2;
707 break;
708 default:
709 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
710 return EINA_FALSE;
711 }
712 ie->w = head->width;
713 ie->h = head->height;
714 if (head->channels == 3) ie->flags.alpha = 0;
715 else ie->flags.alpha = 1;
716
717 evas_cache_image_surface_alloc(ie, ie->w, ie->h);
718 surface = evas_cache_image_pixels(ie);
719 if (!surface)
720 {
721 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
722 goto cleanup_error;
723 }
724
725 if (!psd_get_data(ie, head, f, surface, compressed, error))
726 goto cleanup_error;
727
728 evas_common_image_premul(ie);
729 return EINA_TRUE;
730
731#undef CHECK_RET
732
733 cleanup_error:
734 return EINA_FALSE;
735}
736
737Eina_Bool
738read_psd_cmyk(Image_Entry *ie, PSD_Header *head, FILE *f, int *error)
739{
740 unsigned int color_mode, resource_size, misc_info, size, i, j, data_size;
741 unsigned short compressed;
742 unsigned int format, type;
743 unsigned char *kchannel = NULL;
744 void *surface;
745
746 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
747
748#define CHECK_RET(Call, Value) \
749 if (Call != Value) return EINA_FALSE;
750
751 CHECK_RET(read_uint(f, &color_mode), 1);
752 // Skip over the 'color mode data section'
753 CHECK_RET(fseek(f, color_mode, SEEK_CUR), 0);
754
755 CHECK_RET(read_uint(f, &resource_size), 1);
756 // Read the 'image resources section'
757 CHECK_RET(fseek(f, resource_size, SEEK_CUR), 0);
758
759 CHECK_RET(read_uint(f, &misc_info), 1);
760 CHECK_RET(fseek(f, misc_info, SEEK_CUR), 0);
761
762 CHECK_RET(read_ushort(f, &compressed), 1);
763
764 switch (head->channels)
765 {
766 case 4:
767 format = 0x1907;
768 head->channel_num = 4;
769 head->channels = 3;
770 break;
771 case 5:
772 format = 0x1908;
773 head->channel_num = 5;
774 head->channels = 4;
775 break;
776 default:
777 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
778 return EINA_FALSE;
779 }
780
781 switch (head->depth)
782 {
783 case 8:
784 type = 1;
785 break;
786 case 16:
787 type = 2;
788 break;
789 default:
790 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
791 return EINA_FALSE;
792 }
793
794 ie->w = head->width;
795 ie->h = head->height;
796 if (head->channels == 3) ie->flags.alpha = 0;
797 else ie->flags.alpha = 1;
798
799 evas_cache_image_surface_alloc(ie, ie->w, ie->h);
800 surface = evas_cache_image_pixels(ie);
801 if (!surface)
802 {
803 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
804 goto cleanup_error;
805 }
806
807 if (!psd_get_data(ie, head, f, surface, compressed, error))
808 goto cleanup_error;
809
810 size = type * ie->w * ie->h;
811 kchannel = malloc(size);
812 if (kchannel == NULL)
813 goto cleanup_error;
814 if (!get_single_channel(ie, head, f, kchannel, compressed))
815 goto cleanup_error;
816
817 data_size = head->channels * type * ie->w * ie->h;
818 if (format == 0x1907)
819 {
820 unsigned char *tmp = surface;
821 const unsigned char *limit = tmp + data_size;
822
823 for (i = 0, j = 0; tmp < limit; tmp++, j++)
824 {
825 int k;
826
827 for (k = 0; k < 3; k++)
828 *tmp = (*tmp * kchannel[j]) >> 8;
829
830 // FIXME: tmp[i+3] = 255;
831 }
832 }
833 else
834 { // RGBA
835 unsigned char *tmp = surface;
836 const unsigned char *limit = tmp + data_size;
837
838 // The KChannel array really holds the alpha channel on this one.
839 for (i = 0, j = 0; tmp < limit; tmp += 4, j++)
840 {
841 tmp[0] = (tmp[0] * tmp[3]) >> 8;
842 tmp[1] = (tmp[1] * tmp[3]) >> 8;
843 tmp[2] = (tmp[2] * tmp[3]) >> 8;
844 tmp[3] = kchannel[j]; // Swap 'K' with alpha channel.
845 }
846 }
847
848 free(kchannel);
849
850 evas_common_image_premul(ie);
851 return EINA_TRUE;
852
853 cleanup_error:
854 free(kchannel);
855 return EINA_FALSE;
856}
857
858static Eina_Bool
859evas_image_load_file_data_psd(Image_Entry *ie,
860 const char *file,
861 const char *key __UNUSED__,
862 int *error)
863{
864 FILE *f;
865 PSD_Header header;
866 Eina_Bool bpsd = EINA_FALSE;
867
868 f = fopen(file, "rb");
869 if (f == NULL)
870 {
871 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
872 return bpsd;
873 }
874
875 if (!psd_get_header(&header, f) || !is_psd(&header))
876 {
877 fclose(f);
878 *error = EVAS_LOAD_ERROR_GENERIC;
879 return EINA_FALSE;
880 }
881
882 ie->w = header.width;
883 ie->h = header.height;
884
885 *error = EVAS_LOAD_ERROR_NONE;
886
887 switch (header.mode)
888 {
889 case PSD_GREYSCALE: // Greyscale
890 bpsd = read_psd_grey(ie, &header, f, error);
891 break;
892 case PSD_INDEXED: // Indexed
893 bpsd = read_psd_indexed(ie, &header, f, error);
894 break;
895 case PSD_RGB: // RGB
896 bpsd = read_psd_rgb(ie, &header, f, error);
897 break;
898 case PSD_CMYK: // CMYK
899 bpsd = read_psd_cmyk(ie, &header, f, error);
900 break;
901 default :
902 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
903 bpsd = EINA_FALSE;
904 }
905 fclose(f);
906
907 return bpsd;
908}
909
910static Eina_Bool
911get_compressed_channels_length(PSD_Header *head,
912 FILE * file,
913 unsigned short *rle_table,
914 unsigned int *chanlen)
915{
916 unsigned int j;
917 unsigned int c;
918
919 if (fread(rle_table,
920 sizeof(unsigned short),
921 head->height * head->channel_num,
922 file) != head->height * head->channel_num)
923 return EINA_FALSE;
924
925 memset(chanlen, 0, head->channel_num * sizeof(unsigned int));
926 for (c = 0; c < head->channel_num; c++)
927 {
928 unsigned int i;
929
930 j = c * head->height;
931 for (i = 0; i < head->height; i++)
932 {
933 chanlen[c] += rle_table[i + j];
934 }
935 }
936
937 return EINA_TRUE;
938}
939
940static const Evas_Image_Load_Func evas_image_load_psd_func = {
941 EINA_TRUE,
942 evas_image_load_file_head_psd,
943 evas_image_load_file_data_psd,
944 NULL
945};
946
947static int
948module_open(Evas_Module *em)
949{
950 if (!em) return 0;
951 em->functions = (void *)(&evas_image_load_psd_func);
952 return 1;
953}
954
955static void
956module_close(Evas_Module *em __UNUSED__)
957{
958}
959
960static Evas_Module_Api evas_modapi =
961 {
962 EVAS_MODULE_API_VERSION,
963 "psd",
964 "none",
965 {
966 module_open,
967 module_close
968 }
969 };
970
971EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, psd);
972
973
974#ifndef EVAS_STATIC_BUILD_PSD
975EVAS_EINA_MODULE_DEFINE(image_loader, psd);
976#endif
diff --git a/libraries/evas/src/modules/loaders/svg/Makefile.am b/libraries/evas/src/modules/loaders/svg/Makefile.am
new file mode 100644
index 0000000..4b8d1b5
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/svg/Makefile.am
@@ -0,0 +1,34 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_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@evas_image_loader_svg_cflags@
12
13AM_CFLAGS = @WIN32_CFLAGS@
14
15if BUILD_LOADER_SVG
16if !EVAS_STATIC_BUILD_SVG
17
18pkgdir = $(libdir)/evas/modules/loaders/svg/$(MODULE_ARCH)
19pkg_LTLIBRARIES = module.la
20
21module_la_SOURCES = evas_image_load_svg.c
22
23module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_svg_libs@ $(top_builddir)/src/lib/libevas.la
24module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
25module_la_LIBTOOLFLAGS = --tag=disable-static
26
27else
28
29noinst_LTLIBRARIES = libevas_loader_svg.la
30libevas_loader_svg_la_SOURCES = evas_image_load_svg.c
31libevas_loader_svg_la_LIBADD = @evas_image_loader_svg_libs@
32
33endif
34endif
diff --git a/libraries/evas/src/modules/loaders/svg/Makefile.in b/libraries/evas/src/modules/loaders/svg/Makefile.in
new file mode 100644
index 0000000..f81a3c3
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/svg/Makefile.in
@@ -0,0 +1,758 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/svg
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_svg_la_DEPENDENCIES =
83am__libevas_loader_svg_la_SOURCES_DIST = evas_image_load_svg.c
84@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_TRUE@am_libevas_loader_svg_la_OBJECTS = evas_image_load_svg.lo
85libevas_loader_svg_la_OBJECTS = $(am_libevas_loader_svg_la_OBJECTS)
86AM_V_lt = $(am__v_lt_$(V))
87am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88am__v_lt_0 = --silent
89@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_TRUE@am_libevas_loader_svg_la_rpath =
90@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la
91am__module_la_SOURCES_DIST = evas_image_load_svg.c
92@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_svg.lo
93module_la_OBJECTS = $(am_module_la_OBJECTS)
94module_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_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@am_module_la_rpath = \
98@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@ -rpath \
99@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@ $(pkgdir)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_svg_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_svg_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184FGREP = @FGREP@
185FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
186FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
187FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
188FREETYPE_LIBS = @FREETYPE_LIBS@
189FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
190FRIBIDI_LIBS = @FRIBIDI_LIBS@
191GL_EET_CFLAGS = @GL_EET_CFLAGS@
192GL_EET_LIBS = @GL_EET_LIBS@
193GREP = @GREP@
194HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
195HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
196INSTALL = @INSTALL@
197INSTALL_DATA = @INSTALL_DATA@
198INSTALL_PROGRAM = @INSTALL_PROGRAM@
199INSTALL_SCRIPT = @INSTALL_SCRIPT@
200INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
201LD = @LD@
202LDFLAGS = @LDFLAGS@
203LIBOBJS = @LIBOBJS@
204LIBS = @LIBS@
205LIBTOOL = @LIBTOOL@
206LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
207LINEBREAK_LIBS = @LINEBREAK_LIBS@
208LIPO = @LIPO@
209LN_S = @LN_S@
210LTLIBOBJS = @LTLIBOBJS@
211MAKEINFO = @MAKEINFO@
212MKDIR_P = @MKDIR_P@
213MODULE_ARCH = @MODULE_ARCH@
214NM = @NM@
215NMEDIT = @NMEDIT@
216OBJC = @OBJC@
217OBJCDEPMODE = @OBJCDEPMODE@
218OBJCFLAGS = @OBJCFLAGS@
219OBJDUMP = @OBJDUMP@
220OBJEXT = @OBJEXT@
221OTOOL = @OTOOL@
222OTOOL64 = @OTOOL64@
223PACKAGE = @PACKAGE@
224PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225PACKAGE_NAME = @PACKAGE_NAME@
226PACKAGE_STRING = @PACKAGE_STRING@
227PACKAGE_TARNAME = @PACKAGE_TARNAME@
228PACKAGE_URL = @PACKAGE_URL@
229PACKAGE_VERSION = @PACKAGE_VERSION@
230PATH_SEPARATOR = @PATH_SEPARATOR@
231PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
232PIXMAN_LIBS = @PIXMAN_LIBS@
233PKG_CONFIG = @PKG_CONFIG@
234PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
235PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
236PNG_CFLAGS = @PNG_CFLAGS@
237PNG_LIBS = @PNG_LIBS@
238RANLIB = @RANLIB@
239SDL_CFLAGS = @SDL_CFLAGS@
240SDL_LIBS = @SDL_LIBS@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244SHM_OPEN_LINK = @SHM_OPEN_LINK@
245STRIP = @STRIP@
246SVG_CFLAGS = @SVG_CFLAGS@
247SVG_LIBS = @SVG_LIBS@
248VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
249VALGRIND_LIBS = @VALGRIND_LIBS@
250VERSION = @VERSION@
251VMAJ = @VMAJ@
252WIN32_CFLAGS = @WIN32_CFLAGS@
253WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
254XCB_CFLAGS = @XCB_CFLAGS@
255XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
256XCB_GL_LIBS = @XCB_GL_LIBS@
257XCB_LIBS = @XCB_LIBS@
258XEXT_CFLAGS = @XEXT_CFLAGS@
259XEXT_LIBS = @XEXT_LIBS@
260XMKMF = @XMKMF@
261X_CFLAGS = @X_CFLAGS@
262X_EXTRA_LIBS = @X_EXTRA_LIBS@
263X_LIBS = @X_LIBS@
264X_PRE_LIBS = @X_PRE_LIBS@
265abs_builddir = @abs_builddir@
266abs_srcdir = @abs_srcdir@
267abs_top_builddir = @abs_top_builddir@
268abs_top_srcdir = @abs_top_srcdir@
269ac_ct_CC = @ac_ct_CC@
270ac_ct_CXX = @ac_ct_CXX@
271ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272ac_ct_OBJC = @ac_ct_OBJC@
273altivec_cflags = @altivec_cflags@
274am__include = @am__include@
275am__leading_dot = @am__leading_dot@
276am__quote = @am__quote@
277am__tar = @am__tar@
278am__untar = @am__untar@
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
285builddir = @builddir@
286datadir = @datadir@
287datarootdir = @datarootdir@
288dlopen_libs = @dlopen_libs@
289docdir = @docdir@
290dvidir = @dvidir@
291edje_cc = @edje_cc@
292efl_doxygen = @efl_doxygen@
293efl_have_doxygen = @efl_have_doxygen@
294evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
295evas_engine_buffer_libs = @evas_engine_buffer_libs@
296evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
297evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
298evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
299evas_engine_directfb_libs = @evas_engine_directfb_libs@
300evas_engine_fb_cflags = @evas_engine_fb_cflags@
301evas_engine_fb_libs = @evas_engine_fb_libs@
302evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
303evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
304evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
305evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
306evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
307evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
308evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
309evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
310evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
311evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
312evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
313evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
314evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
315evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
316evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
317evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
318evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
319evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
320evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
321evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
322evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
323evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
324evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
325evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
326evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
327evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
328evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
334evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
335evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
336evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
337evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
338evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
339evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
340evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
341evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
342evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
343evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
344evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
345evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
346evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
347evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
348evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
349evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
350evas_image_loader_png_libs = @evas_image_loader_png_libs@
351evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
352evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
353evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
354evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
355evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
356evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
357evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
358evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
359evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
360evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
361evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
362evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
363exec_prefix = @exec_prefix@
364have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
365have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
366have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
367have_evas_engine_software_x11 = @have_evas_engine_software_x11@
368have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
369have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
370have_lcov = @have_lcov@
371host = @host@
372host_alias = @host_alias@
373host_cpu = @host_cpu@
374host_os = @host_os@
375host_vendor = @host_vendor@
376htmldir = @htmldir@
377includedir = @includedir@
378infodir = @infodir@
379install_sh = @install_sh@
380libdir = @libdir@
381libexecdir = @libexecdir@
382localedir = @localedir@
383localstatedir = @localstatedir@
384lt_ECHO = @lt_ECHO@
385lt_enable_auto_import = @lt_enable_auto_import@
386mandir = @mandir@
387mkdir_p = @mkdir_p@
388oldincludedir = @oldincludedir@
389pdfdir = @pdfdir@
390pkgconfig_requires_private = @pkgconfig_requires_private@
391prefix = @prefix@
392program_transform_name = @program_transform_name@
393psdir = @psdir@
394pthread_cflags = @pthread_cflags@
395pthread_libs = @pthread_libs@
396release_info = @release_info@
397requirement_evas = @requirement_evas@
398sbindir = @sbindir@
399sharedstatedir = @sharedstatedir@
400srcdir = @srcdir@
401sysconfdir = @sysconfdir@
402target_alias = @target_alias@
403top_build_prefix = @top_build_prefix@
404top_builddir = @top_builddir@
405top_srcdir = @top_srcdir@
406version_info = @version_info@
407MAINTAINERCLEANFILES = Makefile.in
408AM_CPPFLAGS = \
409-I. \
410-I$(top_srcdir)/src/lib \
411-I$(top_srcdir)/src/lib/include \
412@FREETYPE_CFLAGS@ \
413@PIXMAN_CFLAGS@ \
414@EINA_CFLAGS@ \
415@evas_image_loader_svg_cflags@
416
417AM_CFLAGS = @WIN32_CFLAGS@
418@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@pkgdir = $(libdir)/evas/modules/loaders/svg/$(MODULE_ARCH)
419@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@pkg_LTLIBRARIES = module.la
420@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@module_la_SOURCES = evas_image_load_svg.c
421@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_svg_libs@ $(top_builddir)/src/lib/libevas.la
422@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
423@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
424@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_TRUE@noinst_LTLIBRARIES = libevas_loader_svg.la
425@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_TRUE@libevas_loader_svg_la_SOURCES = evas_image_load_svg.c
426@BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_TRUE@libevas_loader_svg_la_LIBADD = @evas_image_loader_svg_libs@
427all: all-am
428
429.SUFFIXES:
430.SUFFIXES: .c .lo .o .obj
431$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
432 @for dep in $?; do \
433 case '$(am__configure_deps)' in \
434 *$$dep*) \
435 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
436 && { if test -f $@; then exit 0; else break; fi; }; \
437 exit 1;; \
438 esac; \
439 done; \
440 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/svg/Makefile'; \
441 $(am__cd) $(top_srcdir) && \
442 $(AUTOMAKE) --gnu src/modules/loaders/svg/Makefile
443.PRECIOUS: Makefile
444Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
445 @case '$?' in \
446 *config.status*) \
447 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
448 *) \
449 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
450 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
451 esac;
452
453$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
454 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
455
456$(top_srcdir)/configure: $(am__configure_deps)
457 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
458$(ACLOCAL_M4): $(am__aclocal_m4_deps)
459 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
460$(am__aclocal_m4_deps):
461
462clean-noinstLTLIBRARIES:
463 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
464 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
465 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
466 test "$$dir" != "$$p" || dir=.; \
467 echo "rm -f \"$${dir}/so_locations\""; \
468 rm -f "$${dir}/so_locations"; \
469 done
470install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
471 @$(NORMAL_INSTALL)
472 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
473 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
474 list2=; for p in $$list; do \
475 if test -f $$p; then \
476 list2="$$list2 $$p"; \
477 else :; fi; \
478 done; \
479 test -z "$$list2" || { \
480 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
481 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
482 }
483
484uninstall-pkgLTLIBRARIES:
485 @$(NORMAL_UNINSTALL)
486 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
487 for p in $$list; do \
488 $(am__strip_dir) \
489 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
490 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
491 done
492
493clean-pkgLTLIBRARIES:
494 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
495 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
496 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
497 test "$$dir" != "$$p" || dir=.; \
498 echo "rm -f \"$${dir}/so_locations\""; \
499 rm -f "$${dir}/so_locations"; \
500 done
501libevas_loader_svg.la: $(libevas_loader_svg_la_OBJECTS) $(libevas_loader_svg_la_DEPENDENCIES)
502 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_svg_la_rpath) $(libevas_loader_svg_la_OBJECTS) $(libevas_loader_svg_la_LIBADD) $(LIBS)
503module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
504 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
505
506mostlyclean-compile:
507 -rm -f *.$(OBJEXT)
508
509distclean-compile:
510 -rm -f *.tab.c
511
512@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_svg.Plo@am__quote@
513@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_svg.Plo@am__quote@
514
515.c.o:
516@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
517@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
518@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
519@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
520@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
521@am__fastdepCC_FALSE@ $(COMPILE) -c $<
522
523.c.obj:
524@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
525@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
526@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
527@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
528@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
529@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
530
531.c.lo:
532@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
533@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
534@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
535@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
536@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
537@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
538
539module_la-evas_image_load_svg.lo: evas_image_load_svg.c
540@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_svg.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_svg.Tpo -c -o module_la-evas_image_load_svg.lo `test -f 'evas_image_load_svg.c' || echo '$(srcdir)/'`evas_image_load_svg.c
541@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_svg.Tpo $(DEPDIR)/module_la-evas_image_load_svg.Plo
542@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
543@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_svg.c' object='module_la-evas_image_load_svg.lo' libtool=yes @AMDEPBACKSLASH@
544@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
545@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_svg.lo `test -f 'evas_image_load_svg.c' || echo '$(srcdir)/'`evas_image_load_svg.c
546
547mostlyclean-libtool:
548 -rm -f *.lo
549
550clean-libtool:
551 -rm -rf .libs _libs
552
553ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
554 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
555 unique=`for i in $$list; do \
556 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
557 done | \
558 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
559 END { if (nonempty) { for (i in files) print i; }; }'`; \
560 mkid -fID $$unique
561tags: TAGS
562
563TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
564 $(TAGS_FILES) $(LISP)
565 set x; \
566 here=`pwd`; \
567 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
568 unique=`for i in $$list; do \
569 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
570 done | \
571 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
572 END { if (nonempty) { for (i in files) print i; }; }'`; \
573 shift; \
574 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
575 test -n "$$unique" || unique=$$empty_fix; \
576 if test $$# -gt 0; then \
577 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
578 "$$@" $$unique; \
579 else \
580 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
581 $$unique; \
582 fi; \
583 fi
584ctags: CTAGS
585CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
586 $(TAGS_FILES) $(LISP)
587 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
588 unique=`for i in $$list; do \
589 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
590 done | \
591 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
592 END { if (nonempty) { for (i in files) print i; }; }'`; \
593 test -z "$(CTAGS_ARGS)$$unique" \
594 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
595 $$unique
596
597GTAGS:
598 here=`$(am__cd) $(top_builddir) && pwd` \
599 && $(am__cd) $(top_srcdir) \
600 && gtags -i $(GTAGS_ARGS) "$$here"
601
602distclean-tags:
603 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
604
605distdir: $(DISTFILES)
606 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
607 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
608 list='$(DISTFILES)'; \
609 dist_files=`for file in $$list; do echo $$file; done | \
610 sed -e "s|^$$srcdirstrip/||;t" \
611 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
612 case $$dist_files in \
613 */*) $(MKDIR_P) `echo "$$dist_files" | \
614 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
615 sort -u` ;; \
616 esac; \
617 for file in $$dist_files; do \
618 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
619 if test -d $$d/$$file; then \
620 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
621 if test -d "$(distdir)/$$file"; then \
622 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
623 fi; \
624 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
625 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
626 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
627 fi; \
628 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
629 else \
630 test -f "$(distdir)/$$file" \
631 || cp -p $$d/$$file "$(distdir)/$$file" \
632 || exit 1; \
633 fi; \
634 done
635check-am: all-am
636check: check-am
637all-am: Makefile $(LTLIBRARIES)
638installdirs:
639 for dir in "$(DESTDIR)$(pkgdir)"; do \
640 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
641 done
642install: install-am
643install-exec: install-exec-am
644install-data: install-data-am
645uninstall: uninstall-am
646
647install-am: all-am
648 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
649
650installcheck: installcheck-am
651install-strip:
652 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
653 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
654 `test -z '$(STRIP)' || \
655 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
656mostlyclean-generic:
657
658clean-generic:
659
660distclean-generic:
661 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
662 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
663
664maintainer-clean-generic:
665 @echo "This command is intended for maintainers to use"
666 @echo "it deletes files that may require special tools to rebuild."
667 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
668clean: clean-am
669
670clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
671 clean-pkgLTLIBRARIES mostlyclean-am
672
673distclean: distclean-am
674 -rm -rf ./$(DEPDIR)
675 -rm -f Makefile
676distclean-am: clean-am distclean-compile distclean-generic \
677 distclean-tags
678
679dvi: dvi-am
680
681dvi-am:
682
683html: html-am
684
685html-am:
686
687info: info-am
688
689info-am:
690
691install-data-am: install-pkgLTLIBRARIES
692
693install-dvi: install-dvi-am
694
695install-dvi-am:
696
697install-exec-am:
698
699install-html: install-html-am
700
701install-html-am:
702
703install-info: install-info-am
704
705install-info-am:
706
707install-man:
708
709install-pdf: install-pdf-am
710
711install-pdf-am:
712
713install-ps: install-ps-am
714
715install-ps-am:
716
717installcheck-am:
718
719maintainer-clean: maintainer-clean-am
720 -rm -rf ./$(DEPDIR)
721 -rm -f Makefile
722maintainer-clean-am: distclean-am maintainer-clean-generic
723
724mostlyclean: mostlyclean-am
725
726mostlyclean-am: mostlyclean-compile mostlyclean-generic \
727 mostlyclean-libtool
728
729pdf: pdf-am
730
731pdf-am:
732
733ps: ps-am
734
735ps-am:
736
737uninstall-am: uninstall-pkgLTLIBRARIES
738
739.MAKE: install-am install-strip
740
741.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
742 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
743 ctags distclean distclean-compile distclean-generic \
744 distclean-libtool distclean-tags distdir dvi dvi-am html \
745 html-am info info-am install install-am install-data \
746 install-data-am install-dvi install-dvi-am install-exec \
747 install-exec-am install-html install-html-am install-info \
748 install-info-am install-man install-pdf install-pdf-am \
749 install-pkgLTLIBRARIES install-ps install-ps-am install-strip \
750 installcheck installcheck-am installdirs maintainer-clean \
751 maintainer-clean-generic mostlyclean mostlyclean-compile \
752 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
753 tags uninstall uninstall-am uninstall-pkgLTLIBRARIES
754
755
756# Tell versions [3.59,3.63) of GNU make to not export all variables.
757# Otherwise a system limit (for SysV at least) may be exceeded.
758.NOEXPORT:
diff --git a/libraries/evas/src/modules/loaders/svg/evas_image_load_svg.c b/libraries/evas/src/modules/loaders/svg/evas_image_load_svg.c
new file mode 100644
index 0000000..f1c8452
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/svg/evas_image_load_svg.c
@@ -0,0 +1,280 @@
1#include "evas_common.h"
2#include "evas_private.h"
3
4#include <librsvg/rsvg.h>
5#include <librsvg/rsvg-cairo.h>
6
7static inline Eina_Bool evas_image_load_file_is_svg(const char *file) EINA_ARG_NONNULL(1) EINA_PURE;
8static Eina_Bool evas_image_load_file_head_svg(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
9static Eina_Bool evas_image_load_file_data_svg(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
10
11Evas_Image_Load_Func evas_image_load_svg_func =
12{
13 EINA_FALSE,
14 evas_image_load_file_head_svg,
15 evas_image_load_file_data_svg,
16 NULL
17};
18
19static int rsvg_initialized = 0;
20
21
22static inline Eina_Bool evas_image_load_file_is_svg(const char *file)
23{
24 int i, len = strlen(file);
25 Eina_Bool is_gz = EINA_FALSE;
26
27 for (i = len - 1; i > 0; i--)
28 {
29 if (file[i] == '.')
30 {
31 if (is_gz)
32 break;
33 else if (strcasecmp(file + i + 1, "gz") == 0)
34 is_gz = EINA_TRUE;
35 else
36 break;
37 }
38 }
39
40 if (i < 1) return EINA_FALSE;
41 i++;
42 if (i >= len) return EINA_FALSE;
43 if (strncasecmp(file + i, "svg", 3) != 0) return EINA_FALSE;
44 i += 3;
45 if (is_gz)
46 {
47 if (file[i] == '.') return EINA_TRUE;
48 else return EINA_FALSE;
49 }
50 else
51 {
52 if (file[i] == '\0') return EINA_TRUE;
53 else if (((file[i] == 'z') || (file[i] == 'Z')) && (!file[i + 1])) return EINA_TRUE;
54 else return EINA_FALSE;
55 }
56}
57
58static Eina_Bool
59evas_image_load_file_head_svg(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
60{
61 RsvgHandle *rsvg;
62 RsvgDimensionData dim;
63 int w, h;
64
65 /* ignore all files not called .svg or .svg.gz - because rsvg has a leak
66 * where closing the handle doesn't free mem */
67 if (!evas_image_load_file_is_svg(file))
68 {
69 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
70 return EINA_FALSE;
71 }
72
73 rsvg = rsvg_handle_new_from_file(file, NULL);
74 if (!rsvg)
75 {
76 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
77 return EINA_FALSE;
78 }
79
80 rsvg_handle_set_dpi(rsvg, 75.0);
81 rsvg_handle_get_dimensions(rsvg, &dim);
82 w = dim.width;
83 h = dim.height;
84 if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) ||
85 IMG_TOO_BIG(w, h))
86 {
87 rsvg_handle_close(rsvg, NULL);
88 g_object_unref(rsvg);
89 if (IMG_TOO_BIG(w, h))
90 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
91 else
92 *error = EVAS_LOAD_ERROR_GENERIC;
93 return EINA_FALSE;
94 }
95 if (ie->load_opts.scale_down_by > 1)
96 {
97 w /= ie->load_opts.scale_down_by;
98 h /= ie->load_opts.scale_down_by;
99 }
100 else if (ie->load_opts.dpi > 0.0)
101 {
102 w = (w * ie->load_opts.dpi) / 75.0;
103 h = (h * ie->load_opts.dpi) / 75.0;
104 }
105 else if ((ie->load_opts.w > 0) &&
106 (ie->load_opts.h > 0))
107 {
108 unsigned int w2, h2;
109
110 w2 = ie->load_opts.w;
111 h2 = (ie->load_opts.w * h) / w;
112 if (h2 > ie->load_opts.h)
113 {
114 h2 = ie->load_opts.h;
115 w2 = (ie->load_opts.h * w) / h;
116 }
117 w = w2;
118 h = h2;
119 }
120 if (w < 1) w = 1;
121 if (h < 1) h = 1;
122 ie->w = w;
123 ie->h = h;
124 ie->flags.alpha = 1;
125 rsvg_handle_close(rsvg, NULL);
126 g_object_unref(rsvg);
127
128 *error = EVAS_LOAD_ERROR_NONE;
129 return EINA_TRUE;
130}
131
132/** FIXME: All evas loaders need to be tightened up **/
133static Eina_Bool
134evas_image_load_file_data_svg(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
135{
136 DATA32 *pixels;
137 RsvgHandle *rsvg;
138 RsvgDimensionData dim;
139 int w, h;
140 cairo_surface_t *surface;
141 cairo_t *cr;
142
143 /* ignore all files not called .svg or .svg.gz - because rsvg has a leak
144 * where closing the handle doesn't free mem */
145 if (!evas_image_load_file_is_svg(file))
146 {
147 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
148 return EINA_FALSE;
149 }
150
151 rsvg = rsvg_handle_new_from_file(file, NULL);
152 if (!rsvg)
153 {
154 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
155 return EINA_FALSE;
156 }
157
158 rsvg_handle_set_dpi(rsvg, 75.0);
159 rsvg_handle_get_dimensions(rsvg, &dim);
160 w = dim.width;
161 h = dim.height;
162 if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE))
163 {
164 rsvg_handle_close(rsvg, NULL);
165 g_object_unref(rsvg);
166 if (IMG_TOO_BIG(w, h))
167 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
168 else
169 *error = EVAS_LOAD_ERROR_GENERIC;
170 return EINA_FALSE;
171 }
172 if (ie->load_opts.scale_down_by > 1)
173 {
174 w /= ie->load_opts.scale_down_by;
175 h /= ie->load_opts.scale_down_by;
176 }
177 else if (ie->load_opts.dpi > 0.0)
178 {
179 w = (w * ie->load_opts.dpi) / 75.0;
180 h = (h * ie->load_opts.dpi) / 75.0;
181 }
182 else if ((ie->load_opts.w > 0) &&
183 (ie->load_opts.h > 0))
184 {
185 unsigned int w2, h2;
186
187 w2 = ie->load_opts.w;
188 h2 = (ie->load_opts.w * h) / w;
189 if (h2 > ie->load_opts.h)
190 {
191 h2 = ie->load_opts.h;
192 w2 = (ie->load_opts.h * w) / h;
193 }
194 w = w2;
195 h = h2;
196 }
197 if (w < 1) w = 1;
198 if (h < 1) h = 1;
199 if ((w != (int)ie->w) || (h != (int)ie->h))
200 {
201 *error = EVAS_LOAD_ERROR_GENERIC;
202 goto error;
203 }
204 ie->flags.alpha = 1;
205 evas_cache_image_surface_alloc(ie, w, h);
206 pixels = evas_cache_image_pixels(ie);
207 if (!pixels)
208 {
209 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
210 goto error;
211 }
212
213 memset(pixels, 0, w * h * sizeof(DATA32));
214 surface = cairo_image_surface_create_for_data((unsigned char *)pixels, CAIRO_FORMAT_ARGB32,
215 w, h, w * sizeof(DATA32));
216 if (!surface)
217 {
218 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
219 goto error;
220 }
221 cr = cairo_create(surface);
222 if (!cr)
223 {
224 cairo_surface_destroy(surface);
225 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
226 goto error;
227 }
228
229 cairo_scale(cr,
230 (double)ie->w / dim.em,
231 (double)ie->h / dim.ex);
232 rsvg_handle_render_cairo(rsvg, cr);
233 cairo_surface_destroy(surface);
234 /* need to check if this is required... */
235 cairo_destroy(cr);
236 rsvg_handle_close(rsvg, NULL);
237 g_object_unref(rsvg);
238 evas_common_image_set_alpha_sparse(ie);
239 return EINA_TRUE;
240
241 error:
242 rsvg_handle_close(rsvg, NULL);
243 g_object_unref(rsvg);
244 return EINA_FALSE;
245}
246
247static int
248module_open(Evas_Module *em)
249{
250 if (!em) return 0;
251 em->functions = (void *)(&evas_image_load_svg_func);
252 if (!rsvg_initialized) rsvg_init();
253 rsvg_initialized = 1;
254 return 1;
255}
256
257static void
258module_close(Evas_Module *em __UNUSED__)
259{
260 if (!rsvg_initialized) return;
261 //rsvg_term();
262 //rsvg_initialized = 0;
263}
264
265static Evas_Module_Api evas_modapi =
266{
267 EVAS_MODULE_API_VERSION,
268 "svg",
269 "none",
270 {
271 module_open,
272 module_close
273 }
274};
275
276EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, svg);
277
278#ifndef EVAS_STATIC_BUILD_SVG
279EVAS_EINA_MODULE_DEFINE(image_loader, svg);
280#endif
diff --git a/libraries/evas/src/modules/loaders/tga/Makefile.am b/libraries/evas/src/modules/loaders/tga/Makefile.am
new file mode 100644
index 0000000..4d9e240
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/tga/Makefile.am
@@ -0,0 +1,33 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_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@WIN32_CPPFLAGS@
13
14if BUILD_LOADER_TGA
15if !EVAS_STATIC_BUILD_TGA
16
17pkgdir = $(libdir)/evas/modules/loaders/tga/$(MODULE_ARCH)
18pkg_LTLIBRARIES = module.la
19
20module_la_SOURCES = evas_image_load_tga.c
21
22module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
23module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
24module_la_LIBTOOLFLAGS = --tag=disable-static
25
26else
27
28noinst_LTLIBRARIES = libevas_loader_tga.la
29libevas_loader_tga_la_SOURCES = evas_image_load_tga.c
30libevas_loader_tga_la_LIBADD =
31
32endif
33endif
diff --git a/libraries/evas/src/modules/loaders/tga/Makefile.in b/libraries/evas/src/modules/loaders/tga/Makefile.in
new file mode 100644
index 0000000..645c77a
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/tga/Makefile.in
@@ -0,0 +1,758 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/tga
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_tga_la_DEPENDENCIES =
83am__libevas_loader_tga_la_SOURCES_DIST = evas_image_load_tga.c
84@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_TRUE@am_libevas_loader_tga_la_OBJECTS = evas_image_load_tga.lo
85libevas_loader_tga_la_OBJECTS = $(am_libevas_loader_tga_la_OBJECTS)
86AM_V_lt = $(am__v_lt_$(V))
87am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88am__v_lt_0 = --silent
89@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_TRUE@am_libevas_loader_tga_la_rpath =
90@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la
91am__module_la_SOURCES_DIST = evas_image_load_tga.c
92@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_tga.lo
93module_la_OBJECTS = $(am_module_la_OBJECTS)
94module_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_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@am_module_la_rpath = \
98@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@ -rpath \
99@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@ $(pkgdir)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_tga_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_tga_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184FGREP = @FGREP@
185FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
186FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
187FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
188FREETYPE_LIBS = @FREETYPE_LIBS@
189FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
190FRIBIDI_LIBS = @FRIBIDI_LIBS@
191GL_EET_CFLAGS = @GL_EET_CFLAGS@
192GL_EET_LIBS = @GL_EET_LIBS@
193GREP = @GREP@
194HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
195HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
196INSTALL = @INSTALL@
197INSTALL_DATA = @INSTALL_DATA@
198INSTALL_PROGRAM = @INSTALL_PROGRAM@
199INSTALL_SCRIPT = @INSTALL_SCRIPT@
200INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
201LD = @LD@
202LDFLAGS = @LDFLAGS@
203LIBOBJS = @LIBOBJS@
204LIBS = @LIBS@
205LIBTOOL = @LIBTOOL@
206LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
207LINEBREAK_LIBS = @LINEBREAK_LIBS@
208LIPO = @LIPO@
209LN_S = @LN_S@
210LTLIBOBJS = @LTLIBOBJS@
211MAKEINFO = @MAKEINFO@
212MKDIR_P = @MKDIR_P@
213MODULE_ARCH = @MODULE_ARCH@
214NM = @NM@
215NMEDIT = @NMEDIT@
216OBJC = @OBJC@
217OBJCDEPMODE = @OBJCDEPMODE@
218OBJCFLAGS = @OBJCFLAGS@
219OBJDUMP = @OBJDUMP@
220OBJEXT = @OBJEXT@
221OTOOL = @OTOOL@
222OTOOL64 = @OTOOL64@
223PACKAGE = @PACKAGE@
224PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225PACKAGE_NAME = @PACKAGE_NAME@
226PACKAGE_STRING = @PACKAGE_STRING@
227PACKAGE_TARNAME = @PACKAGE_TARNAME@
228PACKAGE_URL = @PACKAGE_URL@
229PACKAGE_VERSION = @PACKAGE_VERSION@
230PATH_SEPARATOR = @PATH_SEPARATOR@
231PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
232PIXMAN_LIBS = @PIXMAN_LIBS@
233PKG_CONFIG = @PKG_CONFIG@
234PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
235PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
236PNG_CFLAGS = @PNG_CFLAGS@
237PNG_LIBS = @PNG_LIBS@
238RANLIB = @RANLIB@
239SDL_CFLAGS = @SDL_CFLAGS@
240SDL_LIBS = @SDL_LIBS@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244SHM_OPEN_LINK = @SHM_OPEN_LINK@
245STRIP = @STRIP@
246SVG_CFLAGS = @SVG_CFLAGS@
247SVG_LIBS = @SVG_LIBS@
248VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
249VALGRIND_LIBS = @VALGRIND_LIBS@
250VERSION = @VERSION@
251VMAJ = @VMAJ@
252WIN32_CFLAGS = @WIN32_CFLAGS@
253WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
254XCB_CFLAGS = @XCB_CFLAGS@
255XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
256XCB_GL_LIBS = @XCB_GL_LIBS@
257XCB_LIBS = @XCB_LIBS@
258XEXT_CFLAGS = @XEXT_CFLAGS@
259XEXT_LIBS = @XEXT_LIBS@
260XMKMF = @XMKMF@
261X_CFLAGS = @X_CFLAGS@
262X_EXTRA_LIBS = @X_EXTRA_LIBS@
263X_LIBS = @X_LIBS@
264X_PRE_LIBS = @X_PRE_LIBS@
265abs_builddir = @abs_builddir@
266abs_srcdir = @abs_srcdir@
267abs_top_builddir = @abs_top_builddir@
268abs_top_srcdir = @abs_top_srcdir@
269ac_ct_CC = @ac_ct_CC@
270ac_ct_CXX = @ac_ct_CXX@
271ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272ac_ct_OBJC = @ac_ct_OBJC@
273altivec_cflags = @altivec_cflags@
274am__include = @am__include@
275am__leading_dot = @am__leading_dot@
276am__quote = @am__quote@
277am__tar = @am__tar@
278am__untar = @am__untar@
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
285builddir = @builddir@
286datadir = @datadir@
287datarootdir = @datarootdir@
288dlopen_libs = @dlopen_libs@
289docdir = @docdir@
290dvidir = @dvidir@
291edje_cc = @edje_cc@
292efl_doxygen = @efl_doxygen@
293efl_have_doxygen = @efl_have_doxygen@
294evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
295evas_engine_buffer_libs = @evas_engine_buffer_libs@
296evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
297evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
298evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
299evas_engine_directfb_libs = @evas_engine_directfb_libs@
300evas_engine_fb_cflags = @evas_engine_fb_cflags@
301evas_engine_fb_libs = @evas_engine_fb_libs@
302evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
303evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
304evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
305evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
306evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
307evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
308evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
309evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
310evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
311evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
312evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
313evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
314evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
315evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
316evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
317evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
318evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
319evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
320evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
321evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
322evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
323evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
324evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
325evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
326evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
327evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
328evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
334evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
335evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
336evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
337evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
338evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
339evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
340evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
341evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
342evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
343evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
344evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
345evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
346evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
347evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
348evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
349evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
350evas_image_loader_png_libs = @evas_image_loader_png_libs@
351evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
352evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
353evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
354evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
355evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
356evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
357evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
358evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
359evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
360evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
361evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
362evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
363exec_prefix = @exec_prefix@
364have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
365have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
366have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
367have_evas_engine_software_x11 = @have_evas_engine_software_x11@
368have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
369have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
370have_lcov = @have_lcov@
371host = @host@
372host_alias = @host_alias@
373host_cpu = @host_cpu@
374host_os = @host_os@
375host_vendor = @host_vendor@
376htmldir = @htmldir@
377includedir = @includedir@
378infodir = @infodir@
379install_sh = @install_sh@
380libdir = @libdir@
381libexecdir = @libexecdir@
382localedir = @localedir@
383localstatedir = @localstatedir@
384lt_ECHO = @lt_ECHO@
385lt_enable_auto_import = @lt_enable_auto_import@
386mandir = @mandir@
387mkdir_p = @mkdir_p@
388oldincludedir = @oldincludedir@
389pdfdir = @pdfdir@
390pkgconfig_requires_private = @pkgconfig_requires_private@
391prefix = @prefix@
392program_transform_name = @program_transform_name@
393psdir = @psdir@
394pthread_cflags = @pthread_cflags@
395pthread_libs = @pthread_libs@
396release_info = @release_info@
397requirement_evas = @requirement_evas@
398sbindir = @sbindir@
399sharedstatedir = @sharedstatedir@
400srcdir = @srcdir@
401sysconfdir = @sysconfdir@
402target_alias = @target_alias@
403top_build_prefix = @top_build_prefix@
404top_builddir = @top_builddir@
405top_srcdir = @top_srcdir@
406version_info = @version_info@
407MAINTAINERCLEANFILES = Makefile.in
408AM_CPPFLAGS = \
409-I. \
410-I$(top_srcdir)/src/lib \
411-I$(top_srcdir)/src/lib/include \
412@FREETYPE_CFLAGS@ \
413@PIXMAN_CFLAGS@ \
414@EINA_CFLAGS@ \
415@EVIL_CFLAGS@ \
416@WIN32_CPPFLAGS@
417
418@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@pkgdir = $(libdir)/evas/modules/loaders/tga/$(MODULE_ARCH)
419@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@pkg_LTLIBRARIES = module.la
420@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@module_la_SOURCES = evas_image_load_tga.c
421@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
422@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
423@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
424@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_TRUE@noinst_LTLIBRARIES = libevas_loader_tga.la
425@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_TRUE@libevas_loader_tga_la_SOURCES = evas_image_load_tga.c
426@BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_TRUE@libevas_loader_tga_la_LIBADD =
427all: all-am
428
429.SUFFIXES:
430.SUFFIXES: .c .lo .o .obj
431$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
432 @for dep in $?; do \
433 case '$(am__configure_deps)' in \
434 *$$dep*) \
435 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
436 && { if test -f $@; then exit 0; else break; fi; }; \
437 exit 1;; \
438 esac; \
439 done; \
440 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/tga/Makefile'; \
441 $(am__cd) $(top_srcdir) && \
442 $(AUTOMAKE) --gnu src/modules/loaders/tga/Makefile
443.PRECIOUS: Makefile
444Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
445 @case '$?' in \
446 *config.status*) \
447 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
448 *) \
449 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
450 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
451 esac;
452
453$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
454 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
455
456$(top_srcdir)/configure: $(am__configure_deps)
457 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
458$(ACLOCAL_M4): $(am__aclocal_m4_deps)
459 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
460$(am__aclocal_m4_deps):
461
462clean-noinstLTLIBRARIES:
463 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
464 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
465 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
466 test "$$dir" != "$$p" || dir=.; \
467 echo "rm -f \"$${dir}/so_locations\""; \
468 rm -f "$${dir}/so_locations"; \
469 done
470install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
471 @$(NORMAL_INSTALL)
472 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
473 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
474 list2=; for p in $$list; do \
475 if test -f $$p; then \
476 list2="$$list2 $$p"; \
477 else :; fi; \
478 done; \
479 test -z "$$list2" || { \
480 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
481 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
482 }
483
484uninstall-pkgLTLIBRARIES:
485 @$(NORMAL_UNINSTALL)
486 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
487 for p in $$list; do \
488 $(am__strip_dir) \
489 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
490 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
491 done
492
493clean-pkgLTLIBRARIES:
494 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
495 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
496 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
497 test "$$dir" != "$$p" || dir=.; \
498 echo "rm -f \"$${dir}/so_locations\""; \
499 rm -f "$${dir}/so_locations"; \
500 done
501libevas_loader_tga.la: $(libevas_loader_tga_la_OBJECTS) $(libevas_loader_tga_la_DEPENDENCIES)
502 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_tga_la_rpath) $(libevas_loader_tga_la_OBJECTS) $(libevas_loader_tga_la_LIBADD) $(LIBS)
503module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
504 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
505
506mostlyclean-compile:
507 -rm -f *.$(OBJEXT)
508
509distclean-compile:
510 -rm -f *.tab.c
511
512@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_tga.Plo@am__quote@
513@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_tga.Plo@am__quote@
514
515.c.o:
516@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
517@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
518@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
519@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
520@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
521@am__fastdepCC_FALSE@ $(COMPILE) -c $<
522
523.c.obj:
524@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
525@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
526@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
527@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
528@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
529@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
530
531.c.lo:
532@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
533@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
534@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
535@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
536@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
537@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
538
539module_la-evas_image_load_tga.lo: evas_image_load_tga.c
540@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_tga.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_tga.Tpo -c -o module_la-evas_image_load_tga.lo `test -f 'evas_image_load_tga.c' || echo '$(srcdir)/'`evas_image_load_tga.c
541@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_tga.Tpo $(DEPDIR)/module_la-evas_image_load_tga.Plo
542@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
543@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_tga.c' object='module_la-evas_image_load_tga.lo' libtool=yes @AMDEPBACKSLASH@
544@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
545@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_tga.lo `test -f 'evas_image_load_tga.c' || echo '$(srcdir)/'`evas_image_load_tga.c
546
547mostlyclean-libtool:
548 -rm -f *.lo
549
550clean-libtool:
551 -rm -rf .libs _libs
552
553ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
554 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
555 unique=`for i in $$list; do \
556 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
557 done | \
558 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
559 END { if (nonempty) { for (i in files) print i; }; }'`; \
560 mkid -fID $$unique
561tags: TAGS
562
563TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
564 $(TAGS_FILES) $(LISP)
565 set x; \
566 here=`pwd`; \
567 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
568 unique=`for i in $$list; do \
569 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
570 done | \
571 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
572 END { if (nonempty) { for (i in files) print i; }; }'`; \
573 shift; \
574 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
575 test -n "$$unique" || unique=$$empty_fix; \
576 if test $$# -gt 0; then \
577 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
578 "$$@" $$unique; \
579 else \
580 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
581 $$unique; \
582 fi; \
583 fi
584ctags: CTAGS
585CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
586 $(TAGS_FILES) $(LISP)
587 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
588 unique=`for i in $$list; do \
589 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
590 done | \
591 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
592 END { if (nonempty) { for (i in files) print i; }; }'`; \
593 test -z "$(CTAGS_ARGS)$$unique" \
594 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
595 $$unique
596
597GTAGS:
598 here=`$(am__cd) $(top_builddir) && pwd` \
599 && $(am__cd) $(top_srcdir) \
600 && gtags -i $(GTAGS_ARGS) "$$here"
601
602distclean-tags:
603 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
604
605distdir: $(DISTFILES)
606 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
607 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
608 list='$(DISTFILES)'; \
609 dist_files=`for file in $$list; do echo $$file; done | \
610 sed -e "s|^$$srcdirstrip/||;t" \
611 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
612 case $$dist_files in \
613 */*) $(MKDIR_P) `echo "$$dist_files" | \
614 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
615 sort -u` ;; \
616 esac; \
617 for file in $$dist_files; do \
618 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
619 if test -d $$d/$$file; then \
620 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
621 if test -d "$(distdir)/$$file"; then \
622 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
623 fi; \
624 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
625 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
626 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
627 fi; \
628 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
629 else \
630 test -f "$(distdir)/$$file" \
631 || cp -p $$d/$$file "$(distdir)/$$file" \
632 || exit 1; \
633 fi; \
634 done
635check-am: all-am
636check: check-am
637all-am: Makefile $(LTLIBRARIES)
638installdirs:
639 for dir in "$(DESTDIR)$(pkgdir)"; do \
640 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
641 done
642install: install-am
643install-exec: install-exec-am
644install-data: install-data-am
645uninstall: uninstall-am
646
647install-am: all-am
648 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
649
650installcheck: installcheck-am
651install-strip:
652 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
653 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
654 `test -z '$(STRIP)' || \
655 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
656mostlyclean-generic:
657
658clean-generic:
659
660distclean-generic:
661 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
662 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
663
664maintainer-clean-generic:
665 @echo "This command is intended for maintainers to use"
666 @echo "it deletes files that may require special tools to rebuild."
667 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
668clean: clean-am
669
670clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
671 clean-pkgLTLIBRARIES mostlyclean-am
672
673distclean: distclean-am
674 -rm -rf ./$(DEPDIR)
675 -rm -f Makefile
676distclean-am: clean-am distclean-compile distclean-generic \
677 distclean-tags
678
679dvi: dvi-am
680
681dvi-am:
682
683html: html-am
684
685html-am:
686
687info: info-am
688
689info-am:
690
691install-data-am: install-pkgLTLIBRARIES
692
693install-dvi: install-dvi-am
694
695install-dvi-am:
696
697install-exec-am:
698
699install-html: install-html-am
700
701install-html-am:
702
703install-info: install-info-am
704
705install-info-am:
706
707install-man:
708
709install-pdf: install-pdf-am
710
711install-pdf-am:
712
713install-ps: install-ps-am
714
715install-ps-am:
716
717installcheck-am:
718
719maintainer-clean: maintainer-clean-am
720 -rm -rf ./$(DEPDIR)
721 -rm -f Makefile
722maintainer-clean-am: distclean-am maintainer-clean-generic
723
724mostlyclean: mostlyclean-am
725
726mostlyclean-am: mostlyclean-compile mostlyclean-generic \
727 mostlyclean-libtool
728
729pdf: pdf-am
730
731pdf-am:
732
733ps: ps-am
734
735ps-am:
736
737uninstall-am: uninstall-pkgLTLIBRARIES
738
739.MAKE: install-am install-strip
740
741.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
742 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
743 ctags distclean distclean-compile distclean-generic \
744 distclean-libtool distclean-tags distdir dvi dvi-am html \
745 html-am info info-am install install-am install-data \
746 install-data-am install-dvi install-dvi-am install-exec \
747 install-exec-am install-html install-html-am install-info \
748 install-info-am install-man install-pdf install-pdf-am \
749 install-pkgLTLIBRARIES install-ps install-ps-am install-strip \
750 installcheck installcheck-am installdirs maintainer-clean \
751 maintainer-clean-generic mostlyclean mostlyclean-compile \
752 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
753 tags uninstall uninstall-am uninstall-pkgLTLIBRARIES
754
755
756# Tell versions [3.59,3.63) of GNU make to not export all variables.
757# Otherwise a system limit (for SysV at least) may be exceeded.
758.NOEXPORT:
diff --git a/libraries/evas/src/modules/loaders/tga/evas_image_load_tga.c b/libraries/evas/src/modules/loaders/tga/evas_image_load_tga.c
new file mode 100644
index 0000000..61b99f6
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/tga/evas_image_load_tga.c
@@ -0,0 +1,596 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#include <stdio.h>
6#include <sys/types.h>
7#include <fcntl.h>
8
9#ifdef HAVE_EVIL
10# include <Evil.h>
11#endif
12
13#include "evas_common.h"
14#include "evas_private.h"
15
16/* TGA pixel formats */
17#define TGA_TYPE_MAPPED 1 // handle
18#define TGA_TYPE_COLOR 2
19#define TGA_TYPE_GRAY 3
20#define TGA_TYPE_MAPPED_RLE 9 // handle
21#define TGA_TYPE_COLOR_RLE 10
22#define TGA_TYPE_GRAY_RLE 11
23
24/* TGA header flags */
25#define TGA_DESC_ABITS 0x0f
26#define TGA_DESC_HORIZONTAL 0x10
27#define TGA_DESC_VERTICAL 0x20
28
29#define TGA_SIGNATURE "TRUEVISION-XFILE"
30
31typedef struct _tga_header tga_header;
32typedef struct _tga_footer tga_footer;
33
34struct _tga_header
35{
36 unsigned char idLength;
37 unsigned char colorMapType;
38 unsigned char imageType;
39 unsigned char colorMapIndexLo, colorMapIndexHi;
40 unsigned char colorMapLengthLo, colorMapLengthHi;
41 unsigned char colorMapSize;
42 unsigned char xOriginLo, xOriginHi;
43 unsigned char yOriginLo, yOriginHi;
44 unsigned char widthLo, widthHi;
45 unsigned char heightLo, heightHi;
46 unsigned char bpp;
47 unsigned char descriptor;
48} __attribute__((packed));
49
50struct _tga_footer
51{
52 unsigned int extensionAreaOffset;
53 unsigned int developerDirectoryOffset;
54 char signature[16];
55 char dot;
56 char null;
57} __attribute__((packed));
58
59
60static Eina_Bool evas_image_load_file_head_tga(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
61static Eina_Bool evas_image_load_file_data_tga(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
62
63static Evas_Image_Load_Func evas_image_load_tga_func =
64{
65 EINA_TRUE,
66 evas_image_load_file_head_tga,
67 evas_image_load_file_data_tga,
68 NULL
69};
70
71static Eina_Bool
72evas_image_load_file_head_tga(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
73{
74 Eina_File *f;
75 unsigned char *seg = NULL, *filedata;
76 tga_header *header;
77 tga_footer *footer, tfooter;
78 char hasa = 0, footer_present = 0, vinverted = 0;
79 int w = 0, h = 0, bpp;
80 int x, y;
81 int abits;
82
83 f = eina_file_open(file, EINA_FALSE);
84 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
85 if (f == NULL) return EINA_FALSE;
86
87 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
88 if (eina_file_size_get(f) < (off_t)(sizeof(tga_header) + sizeof(tga_footer)))
89 goto close_file;
90 seg = eina_file_map_all(f, EINA_FILE_SEQUENTIAL);
91 if (seg == NULL) goto close_file;
92 filedata = seg;
93
94 header = (tga_header *)filedata;
95 // no unaligned data accessed, so ok
96 footer = (tga_footer *)(filedata + (eina_file_size_get(f) - sizeof(tga_footer)));
97 memcpy((unsigned char *)(&tfooter),
98 (unsigned char *)footer,
99 sizeof(tga_footer));
100 printf("0\n");
101 if (!memcmp(tfooter.signature, TGA_SIGNATURE, sizeof(tfooter.signature)))
102 {
103 if ((tfooter.dot == '.') && (tfooter.null == 0))
104 {
105 // footer is there and matches. this is a tga file - any problems now
106 // are a corrupt file
107 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
108 footer_present = 1;
109 }
110 }
111// else goto close_file;
112 printf("1\n");
113
114 filedata = (unsigned char *)filedata + sizeof(tga_header);
115 vinverted = !(header->descriptor & TGA_DESC_VERTICAL);
116 switch (header->imageType)
117 {
118 case TGA_TYPE_COLOR_RLE:
119 case TGA_TYPE_GRAY_RLE:
120// rle = 1;
121 break;
122 case TGA_TYPE_COLOR:
123 case TGA_TYPE_GRAY:
124// rle = 0;
125 break;
126 default:
127 goto close_file;
128 }
129 bpp = header->bpp;
130 if (!((bpp == 32) || (bpp == 24) || (bpp == 16) || (bpp == 8)))
131 goto close_file;
132 if ((bpp == 32) && (header->descriptor & TGA_DESC_ABITS)) hasa = 1;
133 abits = header->descriptor & TGA_DESC_ABITS;
134 // don't handle colormapped images
135 if ((header->colorMapType) != 0)
136 goto close_file;
137 // if colormap size is anything other than legal sizes or 0 - not real tga
138 if (!((header->colorMapSize == 0) ||
139 (header->colorMapSize == 15) ||
140 (header->colorMapSize == 16) ||
141 (header->colorMapSize == 24) ||
142 (header->colorMapSize == 32)))
143 goto close_file;
144 x = (header->xOriginHi << 8) | (header->xOriginLo);
145 y = (header->yOriginHi << 8) | (header->yOriginLo);
146 w = (header->widthHi << 8) | header->widthLo;
147 h = (header->heightHi << 8) | header->heightLo;
148 // x origin gerater that width, y origin greater than height - wrong file
149 if ((x >= w) || (y >= h))
150 goto close_file;
151 // if descriptor has either of the top 2 bits set... not tga
152 if (header->descriptor & 0xc0)
153 goto close_file;
154
155 if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) ||
156 IMG_TOO_BIG(w, h))
157 goto close_file;
158
159 ie->w = w;
160 ie->h = h;
161 if (hasa) ie->flags.alpha = 1;
162
163 eina_file_map_free(f, seg);
164 eina_file_close(f);
165 *error = EVAS_LOAD_ERROR_NONE;
166 return EINA_TRUE;
167
168close_file:
169 if (seg != NULL) eina_file_map_free(f, seg);
170 eina_file_close(f);
171 return EINA_FALSE;
172}
173
174static Eina_Bool
175evas_image_load_file_data_tga(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
176{
177 Eina_File *f;
178 unsigned char *seg = NULL, *filedata;
179 tga_header *header;
180 tga_footer *footer, tfooter;
181 char hasa = 0, footer_present = 0, vinverted = 0, rle = 0;
182 int w = 0, h = 0, x, y, bpp;
183 off_t size;
184 unsigned int *surface, *dataptr;
185 unsigned int datasize;
186 unsigned char *bufptr, *bufend;
187 int abits;
188
189 f = eina_file_open(file, EINA_FALSE);
190 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
191 if (f == NULL) return EINA_FALSE;
192
193 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
194 if (eina_file_size_get(f) < (off_t)(sizeof(tga_header) + sizeof(tga_footer)))
195 goto close_file;
196 seg = eina_file_map_all(f, EINA_FILE_SEQUENTIAL);
197 if (seg == NULL) goto close_file;
198 filedata = seg;
199 size = eina_file_size_get(f);
200
201 header = (tga_header *)filedata;
202 // no unaligned data accessed, so ok
203 footer = (tga_footer *)(filedata + (size - sizeof(tga_footer)));
204 memcpy((unsigned char *)&tfooter,
205 (unsigned char *)footer,
206 sizeof(tga_footer));
207 if (!memcmp(tfooter.signature, TGA_SIGNATURE, sizeof(tfooter.signature)))
208 {
209 if ((tfooter.dot == '.') && (tfooter.null == 0))
210 {
211 // footer is there and matches. this is a tga file - any problems now
212 // are a corrupt file
213 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
214 footer_present = 1;
215 }
216 }
217
218 filedata = (unsigned char *)filedata + sizeof(tga_header);
219 vinverted = !(header->descriptor & TGA_DESC_VERTICAL);
220 switch (header->imageType)
221 {
222 case TGA_TYPE_COLOR_RLE:
223 case TGA_TYPE_GRAY_RLE:
224 rle = 1;
225 break;
226 case TGA_TYPE_COLOR:
227 case TGA_TYPE_GRAY:
228 rle = 0;
229 break;
230 default:
231 goto close_file;
232 }
233 bpp = header->bpp;
234 if (!((bpp == 32) || (bpp == 24) || (bpp == 16) || (bpp == 8)))
235 goto close_file;
236 if ((bpp == 32) && (header->descriptor & TGA_DESC_ABITS)) hasa = 1;
237 abits = header->descriptor & TGA_DESC_ABITS;
238 // don't handle colormapped images
239 if ((header->colorMapType) != 0)
240 goto close_file;
241 // if colormap size is anything other than legal sizes or 0 - not real tga
242 if (!((header->colorMapSize == 0) ||
243 (header->colorMapSize == 15) ||
244 (header->colorMapSize == 16) ||
245 (header->colorMapSize == 24) ||
246 (header->colorMapSize == 32)))
247 goto close_file;
248 x = (header->xOriginHi << 8) | (header->xOriginLo);
249 y = (header->yOriginHi << 8) | (header->yOriginLo);
250 w = (header->widthHi << 8) | header->widthLo;
251 h = (header->heightHi << 8) | header->heightLo;
252 // x origin gerater that width, y origin greater than height - wrong file
253 if ((x >= w) || (y >= h))
254 goto close_file;
255 // if descriptor has either of the top 2 bits set... not tga
256 if (header->descriptor & 0xc0)
257 goto close_file;
258
259 if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) ||
260 IMG_TOO_BIG(w, h))
261 goto close_file;
262
263 if ((w != (int)ie->w) || (h != (int)ie->h))
264 {
265 *error = EVAS_LOAD_ERROR_GENERIC;
266 goto close_file;
267 }
268 evas_cache_image_surface_alloc(ie, w, h);
269 surface = evas_cache_image_pixels(ie);
270 if (!surface)
271 {
272 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
273 goto close_file;
274 }
275
276 datasize = size - sizeof(tga_header) - header->idLength;
277 if (footer_present)
278 datasize = size - sizeof(tga_header) - header->idLength -
279 sizeof(tga_footer);
280
281 bufptr = filedata + header->idLength;
282 bufend = filedata + datasize;
283
284 if (!rle)
285 {
286 for (y = 0; y < h; y++)
287 {
288 if (vinverted)
289 /* some TGA's are stored upside-down! */
290 dataptr = surface + ((h - y - 1) * w);
291 else
292 dataptr = surface + (y * w);
293 switch (bpp)
294 {
295 case 32:
296 for (x = 0; (x < w) && ((bufptr + 4) <= bufend); x++)
297 {
298 if (hasa)
299 {
300 int a = bufptr[3];
301
302 switch (abits)
303 {
304 case 1:
305 a = (a << 7) | (a << 6) | (a << 5) | (a << 4) | (a << 3) | (a << 2) | (a << 1) | (a);
306 case 2:
307 a = (a << 6) | (a << 4) | (a << 2) | (a);
308 case 3:
309 a = (a << 5) | (a << 2) | (a >> 1);
310 case 4:
311 a = (a << 4) | (a);
312 case 5:
313 a = (a << 3) | (a >> 2);
314 case 6:
315 a = (a << 2) | (a >> 4);
316 case 7:
317 a = (a << 1) | (a >> 6);
318 default:
319 break;
320 }
321 *dataptr = ARGB_JOIN(a, bufptr[2], bufptr[1], bufptr[0]);
322 }
323 else
324 *dataptr = ARGB_JOIN(0xff, bufptr[2], bufptr[1], bufptr[0]);
325 dataptr++;
326 bufptr += 4;
327 }
328 break;
329 case 24:
330 for (x = 0; (x < w) && ((bufptr + 3) <= bufend); x++)
331 {
332 *dataptr = ARGB_JOIN(0xff, bufptr[2], bufptr[1], bufptr[0]);
333 dataptr++;
334 bufptr += 3;
335 }
336 break;
337 case 16:
338 for (x = 0; (x < w) && ((bufptr + 3) <= bufend); x++)
339 {
340 unsigned char r, g, b, a;
341 unsigned short tmp;
342
343 tmp =
344 (((unsigned short)bufptr[1]) << 8) |
345 (((unsigned short)bufptr[0]));
346 r = (tmp >> 7) & 0xf8; r |= r >> 5;
347 g = (tmp >> 2) & 0xf8; g |= g >> 5;
348 b = (tmp << 3) & 0xf8; b |= b >> 5;
349 a = 0xff;
350 if ((hasa) && (tmp & 0x8000)) a = 0;
351 *dataptr = ARGB_JOIN(a, r, g, b);
352 dataptr++;
353 bufptr += 2;
354 }
355 break;
356 case 8:
357 for (x = 0; (x < w) && ((bufptr + 1) <= bufend); x++)
358 {
359 *dataptr = ARGB_JOIN(0xff, bufptr[0], bufptr[0], bufptr[0]);
360 dataptr++;
361 bufptr += 1;
362 }
363 break;
364 default:
365 break;
366 }
367 }
368 }
369 else
370 {
371 int count, i;
372 unsigned char val;
373 unsigned int *dataend;
374
375 dataptr = surface;
376 dataend = dataptr + (w * h);
377 while ((bufptr < bufend) && (dataptr < dataend))
378 {
379 val = *bufptr;
380 bufptr++;
381 count = (val & 0x7f) + 1;
382 if (val & 0x80) // rel packet
383 {
384 switch (bpp)
385 {
386 case 32:
387 if (bufptr < (bufend - 4))
388 {
389 unsigned char r, g, b;
390 int a = bufptr[3];
391
392 switch (abits)
393 {
394 case 1:
395 a = (a << 7) | (a << 6) | (a << 5) | (a << 4) | (a << 3) | (a << 2) | (a << 1) | (a);
396 case 2:
397 a = (a << 6) | (a << 4) | (a << 2) | (a);
398 case 3:
399 a = (a << 5) | (a << 2) | (a >> 1);
400 case 4:
401 a = (a << 4) | (a);
402 case 5:
403 a = (a << 3) | (a >> 2);
404 case 6:
405 a = (a << 2) | (a >> 4);
406 case 7:
407 a = (a << 1) | (a >> 6);
408 default:
409 break;
410 }
411 r = bufptr[2];
412 g = bufptr[1];
413 b = bufptr[0];
414 if (!hasa) a = 0xff;
415 bufptr += 4;
416 for (i = 0; (i < count) && (dataptr < dataend); i++)
417 {
418 *dataptr = ARGB_JOIN(a, r, g, b);
419 dataptr++;
420 }
421 }
422 break;
423 case 24:
424 if (bufptr < (bufend - 3))
425 {
426 unsigned char r, g, b;
427
428 r = bufptr[2];
429 g = bufptr[1];
430 b = bufptr[0];
431 bufptr += 3;
432 for (i = 0; (i < count) && (dataptr < dataend); i++)
433 {
434 *dataptr = ARGB_JOIN(0xff, r, g, b);
435 dataptr++;
436 }
437 }
438 break;
439 case 16:
440 if (bufptr < (bufend - 2))
441 {
442 unsigned char r, g, b, a;
443 unsigned short tmp;
444
445 tmp =
446 (((unsigned short)bufptr[1]) << 8) |
447 (((unsigned short)bufptr[0]));
448 r = (tmp >> 7) & 0xf8; r |= r >> 5;
449 g = (tmp >> 2) & 0xf8; g |= g >> 5;
450 b = (tmp << 3) & 0xf8; b |= b >> 5;
451 a = 0xff;
452 if ((hasa) && (tmp & 0x8000)) a = 0;
453 bufptr += 2;
454 for (i = 0; (i < count) && (dataptr < dataend); i++)
455 {
456 *dataptr = ARGB_JOIN(a, r, g, b);
457 dataptr++;
458 }
459 }
460 break;
461 case 8:
462 if (bufptr < (bufend - 1))
463 {
464 unsigned char g;
465
466 g = bufptr[0];
467 bufptr += 1;
468 for (i = 0; (i < count) && (dataptr < dataend); i++)
469 {
470 *dataptr = ARGB_JOIN(0xff, g, g, g);
471 dataptr++;
472 }
473 }
474 break;
475 default:
476 break;
477 }
478 }
479 else // raw
480 {
481 switch (bpp)
482 {
483 case 32:
484 for (i = 0; (i < count) && (bufptr < (bufend - 4)) && (dataptr < dataend); i++)
485 {
486 if (hasa)
487// *dataptr = ARGB_JOIN(255 - bufptr[3], bufptr[2], bufptr[1], bufptr[0]);
488 *dataptr = ARGB_JOIN(bufptr[3], bufptr[2], bufptr[1], bufptr[0]);
489 else
490 *dataptr = ARGB_JOIN(0xff, bufptr[2], bufptr[1], bufptr[0]);
491 dataptr++;
492 bufptr += 4;
493 }
494 break;
495 case 24:
496 for (i = 0; (i < count) && (bufptr < (bufend - 3)) && (dataptr < dataend); i++)
497 {
498 *dataptr = ARGB_JOIN(0xff, bufptr[2], bufptr[1], bufptr[0]);
499 dataptr++;
500 bufptr += 3;
501 }
502 break;
503 case 16:
504 for (i = 0; (i < count) && (bufptr < (bufend - 2)) && (dataptr < dataend); i++)
505 {
506 unsigned char r, g, b, a;
507 unsigned short tmp;
508
509 tmp =
510 (((unsigned short)bufptr[1]) << 8) |
511 (((unsigned short)bufptr[0]));
512 r = (tmp >> 7) & 0xf8; r |= r >> 5;
513 g = (tmp >> 2) & 0xf8; g |= g >> 5;
514 b = (tmp << 3) & 0xf8; b |= b >> 5;
515 a = 0xff;
516 if ((hasa) && (tmp & 0x8000)) a = 0;
517 *dataptr = ARGB_JOIN(a, r, g, b);
518 dataptr++;
519 bufptr += 2;
520 }
521 break;
522 case 8:
523 for (i = 0; (i < count) && (bufptr < (bufend - 1)) && (dataptr < dataend); i++)
524 {
525 *dataptr = ARGB_JOIN(0xff, bufptr[0], bufptr[0], bufptr[0]);
526 dataptr++;
527 bufptr += 1;
528 }
529 break;
530 default:
531 break;
532 }
533 }
534 }
535 if (vinverted)
536 {
537 unsigned int *adv, *adv2, tmp;
538
539 adv = surface;
540 adv2 = surface + (w * (h - 1));
541 for (y = 0; y < (h / 2); y++)
542 {
543 for (x = 0; x < w; x++)
544 {
545 tmp = adv[x];
546 adv[x] = adv2[x];
547 adv2[x] = tmp;
548 }
549 adv2 -= w;
550 adv += w;
551 }
552 }
553 }
554
555 evas_common_image_premul(ie);
556
557 eina_file_map_free(f, seg);
558 eina_file_close(f);
559 *error = EVAS_LOAD_ERROR_NONE;
560 return EINA_TRUE;
561
562close_file:
563 if (seg != NULL) eina_file_map_free(f, seg);
564 eina_file_close(f);
565 return EINA_FALSE;
566}
567
568static int
569module_open(Evas_Module *em)
570{
571 if (!em) return 0;
572 em->functions = (void *)(&evas_image_load_tga_func);
573 return 1;
574}
575
576static void
577module_close(Evas_Module *em __UNUSED__)
578{
579}
580
581static Evas_Module_Api evas_modapi =
582{
583 EVAS_MODULE_API_VERSION,
584 "tga",
585 "none",
586 {
587 module_open,
588 module_close
589 }
590};
591
592EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, tga);
593
594#ifndef EVAS_STATIC_BUILD_TGA
595EVAS_EINA_MODULE_DEFINE(image_loader, tga);
596#endif
diff --git a/libraries/evas/src/modules/loaders/tiff/Makefile.am b/libraries/evas/src/modules/loaders/tiff/Makefile.am
new file mode 100644
index 0000000..f617c5e
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/tiff/Makefile.am
@@ -0,0 +1,37 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_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@evas_image_loader_tiff_cflags@ \
12@EVIL_CFLAGS@ \
13@WIN32_CPPFLAGS@
14
15AM_CFLAGS = @WIN32_CFLAGS@
16
17if BUILD_LOADER_TIFF
18if !EVAS_STATIC_BUILD_TIFF
19
20pkgdir = $(libdir)/evas/modules/loaders/tiff/$(MODULE_ARCH)
21pkg_LTLIBRARIES = module.la
22
23module_la_SOURCES = evas_image_load_tiff.c
24
25module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @evas_image_loader_tiff_libs@ $(top_builddir)/src/lib/libevas.la
26module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
27module_la_LIBTOOLFLAGS = --tag=disable-static
28
29else
30
31noinst_LTLIBRARIES = libevas_loader_tiff.la
32
33libevas_loader_tiff_la_SOURCES = evas_image_load_tiff.c
34libevas_loader_tiff_la_LIBADD = @evas_image_loader_tiff_libs@
35
36endif
37endif
diff --git a/libraries/evas/src/modules/loaders/tiff/Makefile.in b/libraries/evas/src/modules/loaders/tiff/Makefile.in
new file mode 100644
index 0000000..a2deea7
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/tiff/Makefile.in
@@ -0,0 +1,760 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/tiff
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_tiff_la_DEPENDENCIES =
83am__libevas_loader_tiff_la_SOURCES_DIST = evas_image_load_tiff.c
84@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_TRUE@am_libevas_loader_tiff_la_OBJECTS = evas_image_load_tiff.lo
85libevas_loader_tiff_la_OBJECTS = $(am_libevas_loader_tiff_la_OBJECTS)
86AM_V_lt = $(am__v_lt_$(V))
87am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88am__v_lt_0 = --silent
89@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_TRUE@am_libevas_loader_tiff_la_rpath =
90@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la
91am__module_la_SOURCES_DIST = evas_image_load_tiff.c
92@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_tiff.lo
93module_la_OBJECTS = $(am_module_la_OBJECTS)
94module_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_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@am_module_la_rpath = \
98@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@ -rpath \
99@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@ $(pkgdir)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_tiff_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_tiff_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184FGREP = @FGREP@
185FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
186FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
187FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
188FREETYPE_LIBS = @FREETYPE_LIBS@
189FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
190FRIBIDI_LIBS = @FRIBIDI_LIBS@
191GL_EET_CFLAGS = @GL_EET_CFLAGS@
192GL_EET_LIBS = @GL_EET_LIBS@
193GREP = @GREP@
194HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
195HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
196INSTALL = @INSTALL@
197INSTALL_DATA = @INSTALL_DATA@
198INSTALL_PROGRAM = @INSTALL_PROGRAM@
199INSTALL_SCRIPT = @INSTALL_SCRIPT@
200INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
201LD = @LD@
202LDFLAGS = @LDFLAGS@
203LIBOBJS = @LIBOBJS@
204LIBS = @LIBS@
205LIBTOOL = @LIBTOOL@
206LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
207LINEBREAK_LIBS = @LINEBREAK_LIBS@
208LIPO = @LIPO@
209LN_S = @LN_S@
210LTLIBOBJS = @LTLIBOBJS@
211MAKEINFO = @MAKEINFO@
212MKDIR_P = @MKDIR_P@
213MODULE_ARCH = @MODULE_ARCH@
214NM = @NM@
215NMEDIT = @NMEDIT@
216OBJC = @OBJC@
217OBJCDEPMODE = @OBJCDEPMODE@
218OBJCFLAGS = @OBJCFLAGS@
219OBJDUMP = @OBJDUMP@
220OBJEXT = @OBJEXT@
221OTOOL = @OTOOL@
222OTOOL64 = @OTOOL64@
223PACKAGE = @PACKAGE@
224PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225PACKAGE_NAME = @PACKAGE_NAME@
226PACKAGE_STRING = @PACKAGE_STRING@
227PACKAGE_TARNAME = @PACKAGE_TARNAME@
228PACKAGE_URL = @PACKAGE_URL@
229PACKAGE_VERSION = @PACKAGE_VERSION@
230PATH_SEPARATOR = @PATH_SEPARATOR@
231PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
232PIXMAN_LIBS = @PIXMAN_LIBS@
233PKG_CONFIG = @PKG_CONFIG@
234PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
235PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
236PNG_CFLAGS = @PNG_CFLAGS@
237PNG_LIBS = @PNG_LIBS@
238RANLIB = @RANLIB@
239SDL_CFLAGS = @SDL_CFLAGS@
240SDL_LIBS = @SDL_LIBS@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244SHM_OPEN_LINK = @SHM_OPEN_LINK@
245STRIP = @STRIP@
246SVG_CFLAGS = @SVG_CFLAGS@
247SVG_LIBS = @SVG_LIBS@
248VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
249VALGRIND_LIBS = @VALGRIND_LIBS@
250VERSION = @VERSION@
251VMAJ = @VMAJ@
252WIN32_CFLAGS = @WIN32_CFLAGS@
253WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
254XCB_CFLAGS = @XCB_CFLAGS@
255XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
256XCB_GL_LIBS = @XCB_GL_LIBS@
257XCB_LIBS = @XCB_LIBS@
258XEXT_CFLAGS = @XEXT_CFLAGS@
259XEXT_LIBS = @XEXT_LIBS@
260XMKMF = @XMKMF@
261X_CFLAGS = @X_CFLAGS@
262X_EXTRA_LIBS = @X_EXTRA_LIBS@
263X_LIBS = @X_LIBS@
264X_PRE_LIBS = @X_PRE_LIBS@
265abs_builddir = @abs_builddir@
266abs_srcdir = @abs_srcdir@
267abs_top_builddir = @abs_top_builddir@
268abs_top_srcdir = @abs_top_srcdir@
269ac_ct_CC = @ac_ct_CC@
270ac_ct_CXX = @ac_ct_CXX@
271ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272ac_ct_OBJC = @ac_ct_OBJC@
273altivec_cflags = @altivec_cflags@
274am__include = @am__include@
275am__leading_dot = @am__leading_dot@
276am__quote = @am__quote@
277am__tar = @am__tar@
278am__untar = @am__untar@
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
285builddir = @builddir@
286datadir = @datadir@
287datarootdir = @datarootdir@
288dlopen_libs = @dlopen_libs@
289docdir = @docdir@
290dvidir = @dvidir@
291edje_cc = @edje_cc@
292efl_doxygen = @efl_doxygen@
293efl_have_doxygen = @efl_have_doxygen@
294evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
295evas_engine_buffer_libs = @evas_engine_buffer_libs@
296evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
297evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
298evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
299evas_engine_directfb_libs = @evas_engine_directfb_libs@
300evas_engine_fb_cflags = @evas_engine_fb_cflags@
301evas_engine_fb_libs = @evas_engine_fb_libs@
302evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
303evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
304evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
305evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
306evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
307evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
308evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
309evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
310evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
311evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
312evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
313evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
314evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
315evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
316evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
317evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
318evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
319evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
320evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
321evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
322evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
323evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
324evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
325evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
326evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
327evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
328evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
334evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
335evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
336evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
337evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
338evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
339evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
340evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
341evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
342evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
343evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
344evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
345evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
346evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
347evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
348evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
349evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
350evas_image_loader_png_libs = @evas_image_loader_png_libs@
351evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
352evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
353evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
354evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
355evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
356evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
357evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
358evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
359evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
360evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
361evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
362evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
363exec_prefix = @exec_prefix@
364have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
365have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
366have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
367have_evas_engine_software_x11 = @have_evas_engine_software_x11@
368have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
369have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
370have_lcov = @have_lcov@
371host = @host@
372host_alias = @host_alias@
373host_cpu = @host_cpu@
374host_os = @host_os@
375host_vendor = @host_vendor@
376htmldir = @htmldir@
377includedir = @includedir@
378infodir = @infodir@
379install_sh = @install_sh@
380libdir = @libdir@
381libexecdir = @libexecdir@
382localedir = @localedir@
383localstatedir = @localstatedir@
384lt_ECHO = @lt_ECHO@
385lt_enable_auto_import = @lt_enable_auto_import@
386mandir = @mandir@
387mkdir_p = @mkdir_p@
388oldincludedir = @oldincludedir@
389pdfdir = @pdfdir@
390pkgconfig_requires_private = @pkgconfig_requires_private@
391prefix = @prefix@
392program_transform_name = @program_transform_name@
393psdir = @psdir@
394pthread_cflags = @pthread_cflags@
395pthread_libs = @pthread_libs@
396release_info = @release_info@
397requirement_evas = @requirement_evas@
398sbindir = @sbindir@
399sharedstatedir = @sharedstatedir@
400srcdir = @srcdir@
401sysconfdir = @sysconfdir@
402target_alias = @target_alias@
403top_build_prefix = @top_build_prefix@
404top_builddir = @top_builddir@
405top_srcdir = @top_srcdir@
406version_info = @version_info@
407MAINTAINERCLEANFILES = Makefile.in
408AM_CPPFLAGS = \
409-I. \
410-I$(top_srcdir)/src/lib \
411-I$(top_srcdir)/src/lib/include \
412@FREETYPE_CFLAGS@ \
413@PIXMAN_CFLAGS@ \
414@EINA_CFLAGS@ \
415@evas_image_loader_tiff_cflags@ \
416@EVIL_CFLAGS@ \
417@WIN32_CPPFLAGS@
418
419AM_CFLAGS = @WIN32_CFLAGS@
420@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@pkgdir = $(libdir)/evas/modules/loaders/tiff/$(MODULE_ARCH)
421@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@pkg_LTLIBRARIES = module.la
422@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@module_la_SOURCES = evas_image_load_tiff.c
423@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @evas_image_loader_tiff_libs@ $(top_builddir)/src/lib/libevas.la
424@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
425@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
426@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_TRUE@noinst_LTLIBRARIES = libevas_loader_tiff.la
427@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_TRUE@libevas_loader_tiff_la_SOURCES = evas_image_load_tiff.c
428@BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_TRUE@libevas_loader_tiff_la_LIBADD = @evas_image_loader_tiff_libs@
429all: all-am
430
431.SUFFIXES:
432.SUFFIXES: .c .lo .o .obj
433$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
434 @for dep in $?; do \
435 case '$(am__configure_deps)' in \
436 *$$dep*) \
437 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
438 && { if test -f $@; then exit 0; else break; fi; }; \
439 exit 1;; \
440 esac; \
441 done; \
442 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/tiff/Makefile'; \
443 $(am__cd) $(top_srcdir) && \
444 $(AUTOMAKE) --gnu src/modules/loaders/tiff/Makefile
445.PRECIOUS: Makefile
446Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
447 @case '$?' in \
448 *config.status*) \
449 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
450 *) \
451 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
452 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
453 esac;
454
455$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
456 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
457
458$(top_srcdir)/configure: $(am__configure_deps)
459 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
460$(ACLOCAL_M4): $(am__aclocal_m4_deps)
461 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
462$(am__aclocal_m4_deps):
463
464clean-noinstLTLIBRARIES:
465 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
466 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
467 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
468 test "$$dir" != "$$p" || dir=.; \
469 echo "rm -f \"$${dir}/so_locations\""; \
470 rm -f "$${dir}/so_locations"; \
471 done
472install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
473 @$(NORMAL_INSTALL)
474 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
475 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
476 list2=; for p in $$list; do \
477 if test -f $$p; then \
478 list2="$$list2 $$p"; \
479 else :; fi; \
480 done; \
481 test -z "$$list2" || { \
482 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
483 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
484 }
485
486uninstall-pkgLTLIBRARIES:
487 @$(NORMAL_UNINSTALL)
488 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
489 for p in $$list; do \
490 $(am__strip_dir) \
491 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
492 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
493 done
494
495clean-pkgLTLIBRARIES:
496 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
497 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
498 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
499 test "$$dir" != "$$p" || dir=.; \
500 echo "rm -f \"$${dir}/so_locations\""; \
501 rm -f "$${dir}/so_locations"; \
502 done
503libevas_loader_tiff.la: $(libevas_loader_tiff_la_OBJECTS) $(libevas_loader_tiff_la_DEPENDENCIES)
504 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_tiff_la_rpath) $(libevas_loader_tiff_la_OBJECTS) $(libevas_loader_tiff_la_LIBADD) $(LIBS)
505module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
506 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
507
508mostlyclean-compile:
509 -rm -f *.$(OBJEXT)
510
511distclean-compile:
512 -rm -f *.tab.c
513
514@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_tiff.Plo@am__quote@
515@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_tiff.Plo@am__quote@
516
517.c.o:
518@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
519@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
520@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
521@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
522@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
523@am__fastdepCC_FALSE@ $(COMPILE) -c $<
524
525.c.obj:
526@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
527@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
528@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
529@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
530@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
531@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
532
533.c.lo:
534@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
535@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
536@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
537@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
538@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
539@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
540
541module_la-evas_image_load_tiff.lo: evas_image_load_tiff.c
542@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_tiff.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_tiff.Tpo -c -o module_la-evas_image_load_tiff.lo `test -f 'evas_image_load_tiff.c' || echo '$(srcdir)/'`evas_image_load_tiff.c
543@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_tiff.Tpo $(DEPDIR)/module_la-evas_image_load_tiff.Plo
544@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
545@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_tiff.c' object='module_la-evas_image_load_tiff.lo' libtool=yes @AMDEPBACKSLASH@
546@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
547@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_tiff.lo `test -f 'evas_image_load_tiff.c' || echo '$(srcdir)/'`evas_image_load_tiff.c
548
549mostlyclean-libtool:
550 -rm -f *.lo
551
552clean-libtool:
553 -rm -rf .libs _libs
554
555ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
556 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
557 unique=`for i in $$list; do \
558 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
559 done | \
560 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
561 END { if (nonempty) { for (i in files) print i; }; }'`; \
562 mkid -fID $$unique
563tags: TAGS
564
565TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
566 $(TAGS_FILES) $(LISP)
567 set x; \
568 here=`pwd`; \
569 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
570 unique=`for i in $$list; do \
571 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
572 done | \
573 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
574 END { if (nonempty) { for (i in files) print i; }; }'`; \
575 shift; \
576 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
577 test -n "$$unique" || unique=$$empty_fix; \
578 if test $$# -gt 0; then \
579 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
580 "$$@" $$unique; \
581 else \
582 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
583 $$unique; \
584 fi; \
585 fi
586ctags: CTAGS
587CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
588 $(TAGS_FILES) $(LISP)
589 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
590 unique=`for i in $$list; do \
591 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
592 done | \
593 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
594 END { if (nonempty) { for (i in files) print i; }; }'`; \
595 test -z "$(CTAGS_ARGS)$$unique" \
596 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
597 $$unique
598
599GTAGS:
600 here=`$(am__cd) $(top_builddir) && pwd` \
601 && $(am__cd) $(top_srcdir) \
602 && gtags -i $(GTAGS_ARGS) "$$here"
603
604distclean-tags:
605 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
606
607distdir: $(DISTFILES)
608 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
609 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
610 list='$(DISTFILES)'; \
611 dist_files=`for file in $$list; do echo $$file; done | \
612 sed -e "s|^$$srcdirstrip/||;t" \
613 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
614 case $$dist_files in \
615 */*) $(MKDIR_P) `echo "$$dist_files" | \
616 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
617 sort -u` ;; \
618 esac; \
619 for file in $$dist_files; do \
620 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
621 if test -d $$d/$$file; then \
622 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
623 if test -d "$(distdir)/$$file"; then \
624 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
625 fi; \
626 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
627 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
628 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
629 fi; \
630 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
631 else \
632 test -f "$(distdir)/$$file" \
633 || cp -p $$d/$$file "$(distdir)/$$file" \
634 || exit 1; \
635 fi; \
636 done
637check-am: all-am
638check: check-am
639all-am: Makefile $(LTLIBRARIES)
640installdirs:
641 for dir in "$(DESTDIR)$(pkgdir)"; do \
642 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
643 done
644install: install-am
645install-exec: install-exec-am
646install-data: install-data-am
647uninstall: uninstall-am
648
649install-am: all-am
650 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
651
652installcheck: installcheck-am
653install-strip:
654 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
655 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
656 `test -z '$(STRIP)' || \
657 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
658mostlyclean-generic:
659
660clean-generic:
661
662distclean-generic:
663 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
664 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
665
666maintainer-clean-generic:
667 @echo "This command is intended for maintainers to use"
668 @echo "it deletes files that may require special tools to rebuild."
669 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
670clean: clean-am
671
672clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
673 clean-pkgLTLIBRARIES mostlyclean-am
674
675distclean: distclean-am
676 -rm -rf ./$(DEPDIR)
677 -rm -f Makefile
678distclean-am: clean-am distclean-compile distclean-generic \
679 distclean-tags
680
681dvi: dvi-am
682
683dvi-am:
684
685html: html-am
686
687html-am:
688
689info: info-am
690
691info-am:
692
693install-data-am: install-pkgLTLIBRARIES
694
695install-dvi: install-dvi-am
696
697install-dvi-am:
698
699install-exec-am:
700
701install-html: install-html-am
702
703install-html-am:
704
705install-info: install-info-am
706
707install-info-am:
708
709install-man:
710
711install-pdf: install-pdf-am
712
713install-pdf-am:
714
715install-ps: install-ps-am
716
717install-ps-am:
718
719installcheck-am:
720
721maintainer-clean: maintainer-clean-am
722 -rm -rf ./$(DEPDIR)
723 -rm -f Makefile
724maintainer-clean-am: distclean-am maintainer-clean-generic
725
726mostlyclean: mostlyclean-am
727
728mostlyclean-am: mostlyclean-compile mostlyclean-generic \
729 mostlyclean-libtool
730
731pdf: pdf-am
732
733pdf-am:
734
735ps: ps-am
736
737ps-am:
738
739uninstall-am: uninstall-pkgLTLIBRARIES
740
741.MAKE: install-am install-strip
742
743.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
744 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
745 ctags distclean distclean-compile distclean-generic \
746 distclean-libtool distclean-tags distdir dvi dvi-am html \
747 html-am info info-am install install-am install-data \
748 install-data-am install-dvi install-dvi-am install-exec \
749 install-exec-am install-html install-html-am install-info \
750 install-info-am install-man install-pdf install-pdf-am \
751 install-pkgLTLIBRARIES install-ps install-ps-am install-strip \
752 installcheck installcheck-am installdirs maintainer-clean \
753 maintainer-clean-generic mostlyclean mostlyclean-compile \
754 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
755 tags uninstall uninstall-am uninstall-pkgLTLIBRARIES
756
757
758# Tell versions [3.59,3.63) of GNU make to not export all variables.
759# Otherwise a system limit (for SysV at least) may be exceeded.
760.NOEXPORT:
diff --git a/libraries/evas/src/modules/loaders/tiff/evas_image_load_tiff.c b/libraries/evas/src/modules/loaders/tiff/evas_image_load_tiff.c
new file mode 100644
index 0000000..b9bea91
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/tiff/evas_image_load_tiff.c
@@ -0,0 +1,324 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#include <sys/types.h>
6#include <stdio.h>
7#include <unistd.h>
8#include <tiffio.h>
9
10#ifdef HAVE_EVIL
11# include <Evil.h>
12#endif
13
14#include "evas_common.h"
15#include "evas_private.h"
16
17static int _evas_loader_tiff_log_dom = -1;
18
19#ifdef ERR
20# undef ERR
21#endif
22#define ERR(...) EINA_LOG_DOM_ERR(_evas_loader_tiff_log_dom, __VA_ARGS__)
23
24#ifdef INF
25# undef INF
26#endif
27#define INF(...) EINA_LOG_DOM_INFO(_evas_loader_tiff_log_dom, __VA_ARGS__)
28
29static Eina_Bool evas_image_load_file_head_tiff(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
30static Eina_Bool evas_image_load_file_data_tiff(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
31
32static Evas_Image_Load_Func evas_image_load_tiff_func =
33{
34 EINA_TRUE,
35 evas_image_load_file_head_tiff,
36 evas_image_load_file_data_tiff,
37 NULL
38};
39
40typedef struct TIFFRGBAImage_Extra TIFFRGBAImage_Extra;
41
42struct TIFFRGBAImage_Extra {
43 TIFFRGBAImage rgba;
44 Image_Entry *image;
45 char pper;
46 uint32 num_pixels;
47 uint32 py;
48};
49
50static Eina_Bool
51evas_image_load_file_head_tiff(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
52{
53 char txt[1024];
54 TIFFRGBAImage tiff_image;
55 TIFF *tif = NULL;
56 FILE *ffile;
57 int fd;
58 uint16 magic_number;
59
60 ffile = fopen(file, "rb");
61 if (!ffile)
62 {
63 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
64 return EINA_FALSE;
65 }
66
67 if (fread(&magic_number, sizeof(uint16), 1, ffile) != 1)
68 {
69 fclose(ffile);
70 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
71 return EINA_FALSE;
72 }
73 /* Apparently rewind(f) isn't sufficient */
74 fseek(ffile, 0, SEEK_SET);
75
76 if ((magic_number != TIFF_BIGENDIAN) /* Checks if actually tiff file */
77 && (magic_number != TIFF_LITTLEENDIAN))
78 {
79 fclose(ffile);
80 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
81 return EINA_FALSE;
82 }
83
84 fd = fileno(ffile);
85 fd = dup(fd);
86 lseek(fd, (long)0, SEEK_SET);
87 fclose(ffile);
88
89 tif = TIFFFdOpen(fd, file, "r");
90 if (!tif)
91 {
92 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
93 return EINA_FALSE;
94 }
95
96 strcpy(txt, "Evas Tiff loader: cannot be processed by libtiff");
97 if (!TIFFRGBAImageOK(tif, txt))
98 {
99 TIFFClose(tif);
100 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
101 return EINA_FALSE;
102 }
103 strcpy(txt, "Evas Tiff loader: cannot begin reading tiff");
104 if (!TIFFRGBAImageBegin(& tiff_image, tif, 1, txt))
105 {
106 TIFFClose(tif);
107 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
108 return EINA_FALSE;
109 }
110
111 if (tiff_image.alpha != EXTRASAMPLE_UNSPECIFIED)
112 ie->flags.alpha = 1;
113 if ((tiff_image.width < 1) || (tiff_image.height < 1) ||
114 (tiff_image.width > IMG_MAX_SIZE) || (tiff_image.height > IMG_MAX_SIZE) ||
115 IMG_TOO_BIG(tiff_image.width, tiff_image.height))
116 {
117 TIFFClose(tif);
118 if (IMG_TOO_BIG(tiff_image.width, tiff_image.height))
119 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
120 else
121 *error = EVAS_LOAD_ERROR_GENERIC;
122 return EINA_FALSE;
123 }
124 ie->w = tiff_image.width;
125 ie->h = tiff_image.height;
126
127 TIFFRGBAImageEnd(&tiff_image);
128 TIFFClose(tif);
129 *error = EVAS_LOAD_ERROR_NONE;
130 return EINA_TRUE;
131}
132
133static Eina_Bool
134evas_image_load_file_data_tiff(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
135{
136 char txt[1024];
137 TIFFRGBAImage_Extra rgba_image;
138 TIFF *tif = NULL;
139 FILE *ffile;
140 uint32 *rast = NULL;
141 uint32 num_pixels;
142 int fd, x, y;
143 uint16 magic_number;
144
145 ffile = fopen(file, "rb");
146 if (!ffile)
147 {
148 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
149 return EINA_FALSE;
150 }
151
152 if (fread(&magic_number, sizeof(uint16), 1, ffile) != 1)
153 {
154 fclose(ffile);
155 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
156 return EINA_FALSE;
157 }
158 /* Apparently rewind(f) isn't sufficient */
159 fseek(ffile, (long)0, SEEK_SET);
160
161 if ((magic_number != TIFF_BIGENDIAN) /* Checks if actually tiff file */
162 && (magic_number != TIFF_LITTLEENDIAN))
163 {
164 fclose(ffile);
165 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
166 return EINA_FALSE;
167 }
168
169 fd = fileno(ffile);
170 fd = dup(fd);
171 lseek(fd, (long)0, SEEK_SET);
172 fclose(ffile);
173
174 tif = TIFFFdOpen(fd, file, "r");
175 if (!tif)
176 {
177 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
178 return EINA_FALSE;
179 }
180
181 strcpy(txt, "Evas Tiff loader: cannot be processed by libtiff");
182 if (!TIFFRGBAImageOK(tif, txt))
183 {
184 TIFFClose(tif);
185 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
186 return EINA_FALSE;
187 }
188 strcpy(txt, "Evas Tiff loader: cannot begin reading tiff");
189 if (!TIFFRGBAImageBegin((TIFFRGBAImage *) & rgba_image, tif, 0, txt))
190 {
191 TIFFClose(tif);
192 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
193 return EINA_FALSE;
194 }
195 rgba_image.image = ie;
196
197 if (rgba_image.rgba.alpha != EXTRASAMPLE_UNSPECIFIED)
198 ie->flags.alpha = 1;
199 if ((rgba_image.rgba.width != ie->w) ||
200 (rgba_image.rgba.height != ie->h))
201 {
202 TIFFClose(tif);
203 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
204 return EINA_FALSE;
205 }
206
207 evas_cache_image_surface_alloc(ie, rgba_image.rgba.width, rgba_image.rgba.height);
208 if (!evas_cache_image_pixels(ie))
209 {
210 TIFFRGBAImageEnd((TIFFRGBAImage *) & rgba_image);
211 TIFFClose(tif);
212 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
213 return EINA_FALSE;
214 }
215
216 rgba_image.num_pixels = num_pixels = ie->w * ie->h;
217
218 rgba_image.pper = rgba_image.py = 0;
219 rast = (uint32 *) _TIFFmalloc(sizeof(uint32) * num_pixels);
220
221 if (!rast)
222 {
223 ERR("Evas Tiff loader: out of memory");
224
225 TIFFRGBAImageEnd((TIFFRGBAImage *) & rgba_image);
226 TIFFClose(tif);
227 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
228 return EINA_FALSE;
229 }
230 if (rgba_image.rgba.bitspersample == 8)
231 {
232 if (!TIFFRGBAImageGet((TIFFRGBAImage *) &rgba_image, rast,
233 rgba_image.rgba.width, rgba_image.rgba.height))
234 {
235 _TIFFfree(rast);
236 TIFFRGBAImageEnd((TIFFRGBAImage *) & rgba_image);
237 TIFFClose(tif);
238 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
239 return EINA_FALSE;
240 }
241 }
242 else
243 {
244 INF("channel bits == %i", (int)rgba_image.rgba.samplesperpixel);
245 }
246 /* process rast -> image rgba. really same as prior code anyway just simpler */
247 for (y = 0; y < (int)ie->h; y++)
248 {
249 DATA32 *pix, *pd;
250 uint32 *ps, pixel;
251 unsigned int a, r, g, b;
252
253 pix = evas_cache_image_pixels(ie);
254 pd = pix + ((ie->h - y - 1) * ie->w);
255 ps = rast + (y * ie->w);
256 for (x = 0; x < (int)ie->w; x++)
257 {
258 pixel = *ps;
259 a = TIFFGetA(pixel);
260 r = TIFFGetR(pixel);
261 g = TIFFGetG(pixel);
262 b = TIFFGetB(pixel);
263 if (!ie->flags.alpha) a = 255;
264 if ((rgba_image.rgba.alpha == EXTRASAMPLE_UNASSALPHA) &&
265 (a < 255))
266 {
267 r = (r * (a + 1)) >> 8;
268 g = (g * (a + 1)) >> 8;
269 b = (b * (a + 1)) >> 8;
270 }
271 *pd = ARGB_JOIN(a, r, g, b);
272 ps++;
273 pd++;
274 }
275 }
276
277 _TIFFfree(rast);
278
279 TIFFRGBAImageEnd((TIFFRGBAImage *) & rgba_image);
280
281 TIFFClose(tif);
282
283 evas_common_image_set_alpha_sparse(ie);
284 *error = EVAS_LOAD_ERROR_NONE;
285 return EINA_TRUE;
286}
287
288static int
289module_open(Evas_Module *em)
290{
291 if (!em) return 0;
292 _evas_loader_tiff_log_dom = eina_log_domain_register
293 ("evas-tiff", EVAS_DEFAULT_LOG_COLOR);
294 if (_evas_loader_tiff_log_dom < 0)
295 {
296 EINA_LOG_ERR("Can not create a module log domain.");
297 return 0;
298 }
299 em->functions = (void *)(&evas_image_load_tiff_func);
300 return 1;
301}
302
303static void
304module_close(Evas_Module *em __UNUSED__)
305{
306 eina_log_domain_unregister(_evas_loader_tiff_log_dom);
307}
308
309static Evas_Module_Api evas_modapi =
310{
311 EVAS_MODULE_API_VERSION,
312 "tiff",
313 "none",
314 {
315 module_open,
316 module_close
317 }
318};
319
320EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, tiff);
321
322#ifndef EVAS_STATIC_BUILD_TIFF
323EVAS_EINA_MODULE_DEFINE(image_loader, tiff);
324#endif
diff --git a/libraries/evas/src/modules/loaders/wbmp/Makefile.am b/libraries/evas/src/modules/loaders/wbmp/Makefile.am
new file mode 100644
index 0000000..eed287a
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/wbmp/Makefile.am
@@ -0,0 +1,33 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_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@WIN32_CPPFLAGS@
13
14if BUILD_LOADER_WBMP
15if !EVAS_STATIC_BUILD_WBMP
16
17pkgdir = $(libdir)/evas/modules/loaders/wbmp/$(MODULE_ARCH)
18pkg_LTLIBRARIES = module.la
19
20module_la_SOURCES = evas_image_load_wbmp.c
21
22module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
23module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
24module_la_LIBTOOLFLAGS = --tag=disable-static
25
26else
27
28noinst_LTLIBRARIES = libevas_loader_wbmp.la
29libevas_loader_wbmp_la_SOURCES = evas_image_load_wbmp.c
30libevas_loader_wbmp_la_LIBADD =
31
32endif
33endif
diff --git a/libraries/evas/src/modules/loaders/wbmp/Makefile.in b/libraries/evas/src/modules/loaders/wbmp/Makefile.in
new file mode 100644
index 0000000..41a3bb9
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/wbmp/Makefile.in
@@ -0,0 +1,758 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/wbmp
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_wbmp_la_DEPENDENCIES =
83am__libevas_loader_wbmp_la_SOURCES_DIST = evas_image_load_wbmp.c
84@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_TRUE@am_libevas_loader_wbmp_la_OBJECTS = evas_image_load_wbmp.lo
85libevas_loader_wbmp_la_OBJECTS = $(am_libevas_loader_wbmp_la_OBJECTS)
86AM_V_lt = $(am__v_lt_$(V))
87am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88am__v_lt_0 = --silent
89@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_TRUE@am_libevas_loader_wbmp_la_rpath =
90@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la
91am__module_la_SOURCES_DIST = evas_image_load_wbmp.c
92@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_wbmp.lo
93module_la_OBJECTS = $(am_module_la_OBJECTS)
94module_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_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@am_module_la_rpath = \
98@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@ -rpath \
99@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@ $(pkgdir)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_wbmp_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_wbmp_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184FGREP = @FGREP@
185FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
186FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
187FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
188FREETYPE_LIBS = @FREETYPE_LIBS@
189FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
190FRIBIDI_LIBS = @FRIBIDI_LIBS@
191GL_EET_CFLAGS = @GL_EET_CFLAGS@
192GL_EET_LIBS = @GL_EET_LIBS@
193GREP = @GREP@
194HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
195HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
196INSTALL = @INSTALL@
197INSTALL_DATA = @INSTALL_DATA@
198INSTALL_PROGRAM = @INSTALL_PROGRAM@
199INSTALL_SCRIPT = @INSTALL_SCRIPT@
200INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
201LD = @LD@
202LDFLAGS = @LDFLAGS@
203LIBOBJS = @LIBOBJS@
204LIBS = @LIBS@
205LIBTOOL = @LIBTOOL@
206LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
207LINEBREAK_LIBS = @LINEBREAK_LIBS@
208LIPO = @LIPO@
209LN_S = @LN_S@
210LTLIBOBJS = @LTLIBOBJS@
211MAKEINFO = @MAKEINFO@
212MKDIR_P = @MKDIR_P@
213MODULE_ARCH = @MODULE_ARCH@
214NM = @NM@
215NMEDIT = @NMEDIT@
216OBJC = @OBJC@
217OBJCDEPMODE = @OBJCDEPMODE@
218OBJCFLAGS = @OBJCFLAGS@
219OBJDUMP = @OBJDUMP@
220OBJEXT = @OBJEXT@
221OTOOL = @OTOOL@
222OTOOL64 = @OTOOL64@
223PACKAGE = @PACKAGE@
224PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225PACKAGE_NAME = @PACKAGE_NAME@
226PACKAGE_STRING = @PACKAGE_STRING@
227PACKAGE_TARNAME = @PACKAGE_TARNAME@
228PACKAGE_URL = @PACKAGE_URL@
229PACKAGE_VERSION = @PACKAGE_VERSION@
230PATH_SEPARATOR = @PATH_SEPARATOR@
231PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
232PIXMAN_LIBS = @PIXMAN_LIBS@
233PKG_CONFIG = @PKG_CONFIG@
234PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
235PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
236PNG_CFLAGS = @PNG_CFLAGS@
237PNG_LIBS = @PNG_LIBS@
238RANLIB = @RANLIB@
239SDL_CFLAGS = @SDL_CFLAGS@
240SDL_LIBS = @SDL_LIBS@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244SHM_OPEN_LINK = @SHM_OPEN_LINK@
245STRIP = @STRIP@
246SVG_CFLAGS = @SVG_CFLAGS@
247SVG_LIBS = @SVG_LIBS@
248VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
249VALGRIND_LIBS = @VALGRIND_LIBS@
250VERSION = @VERSION@
251VMAJ = @VMAJ@
252WIN32_CFLAGS = @WIN32_CFLAGS@
253WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
254XCB_CFLAGS = @XCB_CFLAGS@
255XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
256XCB_GL_LIBS = @XCB_GL_LIBS@
257XCB_LIBS = @XCB_LIBS@
258XEXT_CFLAGS = @XEXT_CFLAGS@
259XEXT_LIBS = @XEXT_LIBS@
260XMKMF = @XMKMF@
261X_CFLAGS = @X_CFLAGS@
262X_EXTRA_LIBS = @X_EXTRA_LIBS@
263X_LIBS = @X_LIBS@
264X_PRE_LIBS = @X_PRE_LIBS@
265abs_builddir = @abs_builddir@
266abs_srcdir = @abs_srcdir@
267abs_top_builddir = @abs_top_builddir@
268abs_top_srcdir = @abs_top_srcdir@
269ac_ct_CC = @ac_ct_CC@
270ac_ct_CXX = @ac_ct_CXX@
271ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272ac_ct_OBJC = @ac_ct_OBJC@
273altivec_cflags = @altivec_cflags@
274am__include = @am__include@
275am__leading_dot = @am__leading_dot@
276am__quote = @am__quote@
277am__tar = @am__tar@
278am__untar = @am__untar@
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
285builddir = @builddir@
286datadir = @datadir@
287datarootdir = @datarootdir@
288dlopen_libs = @dlopen_libs@
289docdir = @docdir@
290dvidir = @dvidir@
291edje_cc = @edje_cc@
292efl_doxygen = @efl_doxygen@
293efl_have_doxygen = @efl_have_doxygen@
294evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
295evas_engine_buffer_libs = @evas_engine_buffer_libs@
296evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
297evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
298evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
299evas_engine_directfb_libs = @evas_engine_directfb_libs@
300evas_engine_fb_cflags = @evas_engine_fb_cflags@
301evas_engine_fb_libs = @evas_engine_fb_libs@
302evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
303evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
304evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
305evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
306evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
307evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
308evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
309evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
310evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
311evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
312evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
313evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
314evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
315evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
316evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
317evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
318evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
319evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
320evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
321evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
322evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
323evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
324evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
325evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
326evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
327evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
328evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
334evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
335evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
336evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
337evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
338evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
339evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
340evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
341evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
342evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
343evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
344evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
345evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
346evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
347evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
348evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
349evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
350evas_image_loader_png_libs = @evas_image_loader_png_libs@
351evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
352evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
353evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
354evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
355evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
356evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
357evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
358evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
359evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
360evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
361evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
362evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
363exec_prefix = @exec_prefix@
364have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
365have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
366have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
367have_evas_engine_software_x11 = @have_evas_engine_software_x11@
368have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
369have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
370have_lcov = @have_lcov@
371host = @host@
372host_alias = @host_alias@
373host_cpu = @host_cpu@
374host_os = @host_os@
375host_vendor = @host_vendor@
376htmldir = @htmldir@
377includedir = @includedir@
378infodir = @infodir@
379install_sh = @install_sh@
380libdir = @libdir@
381libexecdir = @libexecdir@
382localedir = @localedir@
383localstatedir = @localstatedir@
384lt_ECHO = @lt_ECHO@
385lt_enable_auto_import = @lt_enable_auto_import@
386mandir = @mandir@
387mkdir_p = @mkdir_p@
388oldincludedir = @oldincludedir@
389pdfdir = @pdfdir@
390pkgconfig_requires_private = @pkgconfig_requires_private@
391prefix = @prefix@
392program_transform_name = @program_transform_name@
393psdir = @psdir@
394pthread_cflags = @pthread_cflags@
395pthread_libs = @pthread_libs@
396release_info = @release_info@
397requirement_evas = @requirement_evas@
398sbindir = @sbindir@
399sharedstatedir = @sharedstatedir@
400srcdir = @srcdir@
401sysconfdir = @sysconfdir@
402target_alias = @target_alias@
403top_build_prefix = @top_build_prefix@
404top_builddir = @top_builddir@
405top_srcdir = @top_srcdir@
406version_info = @version_info@
407MAINTAINERCLEANFILES = Makefile.in
408AM_CPPFLAGS = \
409-I. \
410-I$(top_srcdir)/src/lib \
411-I$(top_srcdir)/src/lib/include \
412@FREETYPE_CFLAGS@ \
413@PIXMAN_CFLAGS@ \
414@EINA_CFLAGS@ \
415@EVIL_CFLAGS@ \
416@WIN32_CPPFLAGS@
417
418@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@pkgdir = $(libdir)/evas/modules/loaders/wbmp/$(MODULE_ARCH)
419@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@pkg_LTLIBRARIES = module.la
420@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@module_la_SOURCES = evas_image_load_wbmp.c
421@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
422@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
423@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
424@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_TRUE@noinst_LTLIBRARIES = libevas_loader_wbmp.la
425@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_TRUE@libevas_loader_wbmp_la_SOURCES = evas_image_load_wbmp.c
426@BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_TRUE@libevas_loader_wbmp_la_LIBADD =
427all: all-am
428
429.SUFFIXES:
430.SUFFIXES: .c .lo .o .obj
431$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
432 @for dep in $?; do \
433 case '$(am__configure_deps)' in \
434 *$$dep*) \
435 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
436 && { if test -f $@; then exit 0; else break; fi; }; \
437 exit 1;; \
438 esac; \
439 done; \
440 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/wbmp/Makefile'; \
441 $(am__cd) $(top_srcdir) && \
442 $(AUTOMAKE) --gnu src/modules/loaders/wbmp/Makefile
443.PRECIOUS: Makefile
444Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
445 @case '$?' in \
446 *config.status*) \
447 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
448 *) \
449 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
450 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
451 esac;
452
453$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
454 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
455
456$(top_srcdir)/configure: $(am__configure_deps)
457 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
458$(ACLOCAL_M4): $(am__aclocal_m4_deps)
459 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
460$(am__aclocal_m4_deps):
461
462clean-noinstLTLIBRARIES:
463 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
464 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
465 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
466 test "$$dir" != "$$p" || dir=.; \
467 echo "rm -f \"$${dir}/so_locations\""; \
468 rm -f "$${dir}/so_locations"; \
469 done
470install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
471 @$(NORMAL_INSTALL)
472 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
473 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
474 list2=; for p in $$list; do \
475 if test -f $$p; then \
476 list2="$$list2 $$p"; \
477 else :; fi; \
478 done; \
479 test -z "$$list2" || { \
480 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
481 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
482 }
483
484uninstall-pkgLTLIBRARIES:
485 @$(NORMAL_UNINSTALL)
486 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
487 for p in $$list; do \
488 $(am__strip_dir) \
489 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
490 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
491 done
492
493clean-pkgLTLIBRARIES:
494 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
495 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
496 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
497 test "$$dir" != "$$p" || dir=.; \
498 echo "rm -f \"$${dir}/so_locations\""; \
499 rm -f "$${dir}/so_locations"; \
500 done
501libevas_loader_wbmp.la: $(libevas_loader_wbmp_la_OBJECTS) $(libevas_loader_wbmp_la_DEPENDENCIES)
502 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_wbmp_la_rpath) $(libevas_loader_wbmp_la_OBJECTS) $(libevas_loader_wbmp_la_LIBADD) $(LIBS)
503module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
504 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
505
506mostlyclean-compile:
507 -rm -f *.$(OBJEXT)
508
509distclean-compile:
510 -rm -f *.tab.c
511
512@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_wbmp.Plo@am__quote@
513@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_wbmp.Plo@am__quote@
514
515.c.o:
516@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
517@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
518@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
519@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
520@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
521@am__fastdepCC_FALSE@ $(COMPILE) -c $<
522
523.c.obj:
524@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
525@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
526@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
527@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
528@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
529@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
530
531.c.lo:
532@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
533@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
534@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
535@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
536@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
537@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
538
539module_la-evas_image_load_wbmp.lo: evas_image_load_wbmp.c
540@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_wbmp.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_wbmp.Tpo -c -o module_la-evas_image_load_wbmp.lo `test -f 'evas_image_load_wbmp.c' || echo '$(srcdir)/'`evas_image_load_wbmp.c
541@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_wbmp.Tpo $(DEPDIR)/module_la-evas_image_load_wbmp.Plo
542@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
543@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_wbmp.c' object='module_la-evas_image_load_wbmp.lo' libtool=yes @AMDEPBACKSLASH@
544@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
545@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_wbmp.lo `test -f 'evas_image_load_wbmp.c' || echo '$(srcdir)/'`evas_image_load_wbmp.c
546
547mostlyclean-libtool:
548 -rm -f *.lo
549
550clean-libtool:
551 -rm -rf .libs _libs
552
553ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
554 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
555 unique=`for i in $$list; do \
556 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
557 done | \
558 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
559 END { if (nonempty) { for (i in files) print i; }; }'`; \
560 mkid -fID $$unique
561tags: TAGS
562
563TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
564 $(TAGS_FILES) $(LISP)
565 set x; \
566 here=`pwd`; \
567 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
568 unique=`for i in $$list; do \
569 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
570 done | \
571 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
572 END { if (nonempty) { for (i in files) print i; }; }'`; \
573 shift; \
574 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
575 test -n "$$unique" || unique=$$empty_fix; \
576 if test $$# -gt 0; then \
577 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
578 "$$@" $$unique; \
579 else \
580 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
581 $$unique; \
582 fi; \
583 fi
584ctags: CTAGS
585CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
586 $(TAGS_FILES) $(LISP)
587 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
588 unique=`for i in $$list; do \
589 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
590 done | \
591 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
592 END { if (nonempty) { for (i in files) print i; }; }'`; \
593 test -z "$(CTAGS_ARGS)$$unique" \
594 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
595 $$unique
596
597GTAGS:
598 here=`$(am__cd) $(top_builddir) && pwd` \
599 && $(am__cd) $(top_srcdir) \
600 && gtags -i $(GTAGS_ARGS) "$$here"
601
602distclean-tags:
603 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
604
605distdir: $(DISTFILES)
606 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
607 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
608 list='$(DISTFILES)'; \
609 dist_files=`for file in $$list; do echo $$file; done | \
610 sed -e "s|^$$srcdirstrip/||;t" \
611 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
612 case $$dist_files in \
613 */*) $(MKDIR_P) `echo "$$dist_files" | \
614 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
615 sort -u` ;; \
616 esac; \
617 for file in $$dist_files; do \
618 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
619 if test -d $$d/$$file; then \
620 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
621 if test -d "$(distdir)/$$file"; then \
622 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
623 fi; \
624 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
625 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
626 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
627 fi; \
628 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
629 else \
630 test -f "$(distdir)/$$file" \
631 || cp -p $$d/$$file "$(distdir)/$$file" \
632 || exit 1; \
633 fi; \
634 done
635check-am: all-am
636check: check-am
637all-am: Makefile $(LTLIBRARIES)
638installdirs:
639 for dir in "$(DESTDIR)$(pkgdir)"; do \
640 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
641 done
642install: install-am
643install-exec: install-exec-am
644install-data: install-data-am
645uninstall: uninstall-am
646
647install-am: all-am
648 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
649
650installcheck: installcheck-am
651install-strip:
652 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
653 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
654 `test -z '$(STRIP)' || \
655 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
656mostlyclean-generic:
657
658clean-generic:
659
660distclean-generic:
661 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
662 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
663
664maintainer-clean-generic:
665 @echo "This command is intended for maintainers to use"
666 @echo "it deletes files that may require special tools to rebuild."
667 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
668clean: clean-am
669
670clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
671 clean-pkgLTLIBRARIES mostlyclean-am
672
673distclean: distclean-am
674 -rm -rf ./$(DEPDIR)
675 -rm -f Makefile
676distclean-am: clean-am distclean-compile distclean-generic \
677 distclean-tags
678
679dvi: dvi-am
680
681dvi-am:
682
683html: html-am
684
685html-am:
686
687info: info-am
688
689info-am:
690
691install-data-am: install-pkgLTLIBRARIES
692
693install-dvi: install-dvi-am
694
695install-dvi-am:
696
697install-exec-am:
698
699install-html: install-html-am
700
701install-html-am:
702
703install-info: install-info-am
704
705install-info-am:
706
707install-man:
708
709install-pdf: install-pdf-am
710
711install-pdf-am:
712
713install-ps: install-ps-am
714
715install-ps-am:
716
717installcheck-am:
718
719maintainer-clean: maintainer-clean-am
720 -rm -rf ./$(DEPDIR)
721 -rm -f Makefile
722maintainer-clean-am: distclean-am maintainer-clean-generic
723
724mostlyclean: mostlyclean-am
725
726mostlyclean-am: mostlyclean-compile mostlyclean-generic \
727 mostlyclean-libtool
728
729pdf: pdf-am
730
731pdf-am:
732
733ps: ps-am
734
735ps-am:
736
737uninstall-am: uninstall-pkgLTLIBRARIES
738
739.MAKE: install-am install-strip
740
741.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
742 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
743 ctags distclean distclean-compile distclean-generic \
744 distclean-libtool distclean-tags distdir dvi dvi-am html \
745 html-am info info-am install install-am install-data \
746 install-data-am install-dvi install-dvi-am install-exec \
747 install-exec-am install-html install-html-am install-info \
748 install-info-am install-man install-pdf install-pdf-am \
749 install-pkgLTLIBRARIES install-ps install-ps-am install-strip \
750 installcheck installcheck-am installdirs maintainer-clean \
751 maintainer-clean-generic mostlyclean mostlyclean-compile \
752 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
753 tags uninstall uninstall-am uninstall-pkgLTLIBRARIES
754
755
756# Tell versions [3.59,3.63) of GNU make to not export all variables.
757# Otherwise a system limit (for SysV at least) may be exceeded.
758.NOEXPORT:
diff --git a/libraries/evas/src/modules/loaders/wbmp/evas_image_load_wbmp.c b/libraries/evas/src/modules/loaders/wbmp/evas_image_load_wbmp.c
new file mode 100644
index 0000000..fa6fab2
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/wbmp/evas_image_load_wbmp.c
@@ -0,0 +1,170 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#include <stdio.h>
6
7#ifdef HAVE_EVIL
8# include <Evil.h>
9#endif
10
11#include "evas_common.h"
12#include "evas_private.h"
13
14static Eina_Bool evas_image_load_file_head_wbmp(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
15static Eina_Bool evas_image_load_file_data_wbmp(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
16
17static Evas_Image_Load_Func evas_image_load_wbmp_func =
18{
19 EINA_TRUE,
20 evas_image_load_file_head_wbmp,
21 evas_image_load_file_data_wbmp,
22 NULL
23};
24
25
26static int
27read_mb(unsigned int *data, FILE *f)
28{
29 int ac = 0, ct;
30 unsigned char buf;
31
32 for (ct = 0;;)
33 {
34 if ((ct++) == 5) return -1;
35 if ((fread(&buf, 1, 1, f)) < 1)
36 return -1;
37 ac = (ac << 7) | (buf & 0x7f);
38 if ((buf & 0x80) == 0) break;
39 }
40 *data = ac;
41 return 0;
42}
43
44static Eina_Bool
45evas_image_load_file_head_wbmp(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
46{
47 FILE *f;
48 unsigned int type, w, h;
49 unsigned char fixed_header;
50 struct stat statbuf;
51
52 *error = EVAS_LOAD_ERROR_GENERIC;
53 f = fopen(file, "rb");
54 if (!f)
55 {
56 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
57 return EINA_FALSE;
58 }
59
60 if (stat(file, &statbuf) == -1) goto bail;
61 if (read_mb(&type, f) < 0) goto bail;
62
63 if (type != 0)
64 {
65 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
66 goto bail;
67 }
68
69 if (fread(&fixed_header, 1, 1, f) != 1) goto bail;
70 if (read_mb(&w, f) < 0) goto bail;
71 if (read_mb(&h, f) < 0) goto bail;
72 if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) ||
73 IMG_TOO_BIG(w, h))
74 {
75 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
76 goto bail;
77 }
78
79 fclose(f);
80 ie->w = w;
81 ie->h = h;
82
83 *error = EVAS_LOAD_ERROR_NONE;
84 return EINA_TRUE;
85bail:
86 fclose(f);
87 return EINA_FALSE;
88}
89
90static Eina_Bool
91evas_image_load_file_data_wbmp(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error)
92{
93 FILE *f;
94 unsigned int dummy, line_length;
95 unsigned char *line = NULL;
96 int cur = 0, x, y;
97 DATA32 *dst_data;
98
99 *error = EVAS_LOAD_ERROR_GENERIC;
100 f = fopen(file, "rb");
101 if (!f)
102 {
103 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
104 return EINA_FALSE;
105 }
106 if (read_mb(&dummy, f) < 0) goto bail;
107 if (fread(&dummy, 1, 1, f) != 1) goto bail;
108 if (read_mb(&dummy, f) < 0) goto bail;
109 if (read_mb(&dummy, f) < 0) goto bail;
110
111 evas_cache_image_surface_alloc(ie, ie->w, ie->h);
112 dst_data = evas_cache_image_pixels(ie);
113 if (!dst_data)
114 {
115 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
116 goto bail;
117 }
118
119 line_length = (ie->w + 7) >> 3;
120 line = alloca(line_length);
121
122 for (y = 0; y < (int)ie->h; y++)
123 {
124 if (fread(line, 1, line_length, f) != line_length) goto bail;
125 for (x = 0; x < (int)ie->w; x++)
126 {
127 int idx = x >> 3;
128 int offset = 1 << (0x07 - (x & 0x07));
129 if (line[idx] & offset) dst_data[cur] = 0xffffffff;
130 else dst_data[cur] = 0xff000000;
131 cur++;
132 }
133 }
134 fclose(f);
135 *error = EVAS_LOAD_ERROR_NONE;
136 return EINA_TRUE;
137bail:
138 fclose(f);
139 return EINA_FALSE;
140}
141
142static int
143module_open(Evas_Module *em)
144{
145 if (!em) return 0;
146 em->functions = (void *)(&evas_image_load_wbmp_func);
147 return 1;
148}
149
150static void
151module_close(Evas_Module *em __UNUSED__)
152{
153}
154
155static Evas_Module_Api evas_modapi =
156{
157 EVAS_MODULE_API_VERSION,
158 "wbmp",
159 "none",
160 {
161 module_open,
162 module_close
163 }
164};
165
166EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, wbmp);
167
168#ifndef EVAS_STATIC_BUILD_WBMP
169EVAS_EINA_MODULE_DEFINE(image_loader, wbmp);
170#endif
diff --git a/libraries/evas/src/modules/loaders/xpm/Makefile.am b/libraries/evas/src/modules/loaders/xpm/Makefile.am
new file mode 100644
index 0000000..b8cb1fa
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/xpm/Makefile.am
@@ -0,0 +1,37 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_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@evas_image_loader_xpm_cflags@ \
12@EVIL_CFLAGS@ \
13@WIN32_CPPFLAGS@
14
15AM_CFLAGS = @WIN32_CFLAGS@
16
17if BUILD_LOADER_XPM
18if !EVAS_STATIC_BUILD_XPM
19pkgdir = $(libdir)/evas/modules/loaders/xpm/$(MODULE_ARCH)
20
21pkg_LTLIBRARIES = module.la
22
23module_la_SOURCES = evas_image_load_xpm.c
24
25module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @evas_image_loader_xpm_libs@ $(top_builddir)/src/lib/libevas.la
26module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
27module_la_LIBTOOLFLAGS = --tag=disable-static
28
29else
30
31noinst_LTLIBRARIES = libevas_loader_xpm.la
32
33libevas_loader_xpm_la_SOURCES = evas_image_load_xpm.c
34libevas_loader_xpm_la_LIBADD = @evas_image_loader_xpm_libs@
35
36endif
37endif
diff --git a/libraries/evas/src/modules/loaders/xpm/Makefile.in b/libraries/evas/src/modules/loaders/xpm/Makefile.in
new file mode 100644
index 0000000..eba8f60
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/xpm/Makefile.in
@@ -0,0 +1,760 @@
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/xpm
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_xpm_la_DEPENDENCIES =
83am__libevas_loader_xpm_la_SOURCES_DIST = evas_image_load_xpm.c
84@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@am_libevas_loader_xpm_la_OBJECTS = evas_image_load_xpm.lo
85libevas_loader_xpm_la_OBJECTS = $(am_libevas_loader_xpm_la_OBJECTS)
86AM_V_lt = $(am__v_lt_$(V))
87am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88am__v_lt_0 = --silent
89@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@am_libevas_loader_xpm_la_rpath =
90@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la
91am__module_la_SOURCES_DIST = evas_image_load_xpm.c
92@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_xpm.lo
93module_la_OBJECTS = $(am_module_la_OBJECTS)
94module_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_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@am_module_la_rpath = \
98@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@ -rpath \
99@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@ $(pkgdir)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_xpm_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_xpm_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184FGREP = @FGREP@
185FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
186FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
187FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
188FREETYPE_LIBS = @FREETYPE_LIBS@
189FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
190FRIBIDI_LIBS = @FRIBIDI_LIBS@
191GL_EET_CFLAGS = @GL_EET_CFLAGS@
192GL_EET_LIBS = @GL_EET_LIBS@
193GREP = @GREP@
194HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
195HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
196INSTALL = @INSTALL@
197INSTALL_DATA = @INSTALL_DATA@
198INSTALL_PROGRAM = @INSTALL_PROGRAM@
199INSTALL_SCRIPT = @INSTALL_SCRIPT@
200INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
201LD = @LD@
202LDFLAGS = @LDFLAGS@
203LIBOBJS = @LIBOBJS@
204LIBS = @LIBS@
205LIBTOOL = @LIBTOOL@
206LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
207LINEBREAK_LIBS = @LINEBREAK_LIBS@
208LIPO = @LIPO@
209LN_S = @LN_S@
210LTLIBOBJS = @LTLIBOBJS@
211MAKEINFO = @MAKEINFO@
212MKDIR_P = @MKDIR_P@
213MODULE_ARCH = @MODULE_ARCH@
214NM = @NM@
215NMEDIT = @NMEDIT@
216OBJC = @OBJC@
217OBJCDEPMODE = @OBJCDEPMODE@
218OBJCFLAGS = @OBJCFLAGS@
219OBJDUMP = @OBJDUMP@
220OBJEXT = @OBJEXT@
221OTOOL = @OTOOL@
222OTOOL64 = @OTOOL64@
223PACKAGE = @PACKAGE@
224PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225PACKAGE_NAME = @PACKAGE_NAME@
226PACKAGE_STRING = @PACKAGE_STRING@
227PACKAGE_TARNAME = @PACKAGE_TARNAME@
228PACKAGE_URL = @PACKAGE_URL@
229PACKAGE_VERSION = @PACKAGE_VERSION@
230PATH_SEPARATOR = @PATH_SEPARATOR@
231PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
232PIXMAN_LIBS = @PIXMAN_LIBS@
233PKG_CONFIG = @PKG_CONFIG@
234PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
235PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
236PNG_CFLAGS = @PNG_CFLAGS@
237PNG_LIBS = @PNG_LIBS@
238RANLIB = @RANLIB@
239SDL_CFLAGS = @SDL_CFLAGS@
240SDL_LIBS = @SDL_LIBS@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244SHM_OPEN_LINK = @SHM_OPEN_LINK@
245STRIP = @STRIP@
246SVG_CFLAGS = @SVG_CFLAGS@
247SVG_LIBS = @SVG_LIBS@
248VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
249VALGRIND_LIBS = @VALGRIND_LIBS@
250VERSION = @VERSION@
251VMAJ = @VMAJ@
252WIN32_CFLAGS = @WIN32_CFLAGS@
253WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
254XCB_CFLAGS = @XCB_CFLAGS@
255XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
256XCB_GL_LIBS = @XCB_GL_LIBS@
257XCB_LIBS = @XCB_LIBS@
258XEXT_CFLAGS = @XEXT_CFLAGS@
259XEXT_LIBS = @XEXT_LIBS@
260XMKMF = @XMKMF@
261X_CFLAGS = @X_CFLAGS@
262X_EXTRA_LIBS = @X_EXTRA_LIBS@
263X_LIBS = @X_LIBS@
264X_PRE_LIBS = @X_PRE_LIBS@
265abs_builddir = @abs_builddir@
266abs_srcdir = @abs_srcdir@
267abs_top_builddir = @abs_top_builddir@
268abs_top_srcdir = @abs_top_srcdir@
269ac_ct_CC = @ac_ct_CC@
270ac_ct_CXX = @ac_ct_CXX@
271ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
272ac_ct_OBJC = @ac_ct_OBJC@
273altivec_cflags = @altivec_cflags@
274am__include = @am__include@
275am__leading_dot = @am__leading_dot@
276am__quote = @am__quote@
277am__tar = @am__tar@
278am__untar = @am__untar@
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
285builddir = @builddir@
286datadir = @datadir@
287datarootdir = @datarootdir@
288dlopen_libs = @dlopen_libs@
289docdir = @docdir@
290dvidir = @dvidir@
291edje_cc = @edje_cc@
292efl_doxygen = @efl_doxygen@
293efl_have_doxygen = @efl_have_doxygen@
294evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
295evas_engine_buffer_libs = @evas_engine_buffer_libs@
296evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
297evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
298evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
299evas_engine_directfb_libs = @evas_engine_directfb_libs@
300evas_engine_fb_cflags = @evas_engine_fb_cflags@
301evas_engine_fb_libs = @evas_engine_fb_libs@
302evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
303evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
304evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
305evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
306evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
307evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
308evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
309evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
310evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
311evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
312evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
313evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
314evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
315evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
316evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
317evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
318evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
319evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
320evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
321evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
322evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
323evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
324evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
325evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
326evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
327evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
328evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
334evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
335evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
336evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
337evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
338evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
339evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
340evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
341evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
342evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
343evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
344evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
345evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
346evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
347evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
348evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
349evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
350evas_image_loader_png_libs = @evas_image_loader_png_libs@
351evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
352evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
353evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
354evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
355evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
356evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
357evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
358evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
359evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
360evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
361evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
362evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
363exec_prefix = @exec_prefix@
364have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
365have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
366have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
367have_evas_engine_software_x11 = @have_evas_engine_software_x11@
368have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
369have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
370have_lcov = @have_lcov@
371host = @host@
372host_alias = @host_alias@
373host_cpu = @host_cpu@
374host_os = @host_os@
375host_vendor = @host_vendor@
376htmldir = @htmldir@
377includedir = @includedir@
378infodir = @infodir@
379install_sh = @install_sh@
380libdir = @libdir@
381libexecdir = @libexecdir@
382localedir = @localedir@
383localstatedir = @localstatedir@
384lt_ECHO = @lt_ECHO@
385lt_enable_auto_import = @lt_enable_auto_import@
386mandir = @mandir@
387mkdir_p = @mkdir_p@
388oldincludedir = @oldincludedir@
389pdfdir = @pdfdir@
390pkgconfig_requires_private = @pkgconfig_requires_private@
391prefix = @prefix@
392program_transform_name = @program_transform_name@
393psdir = @psdir@
394pthread_cflags = @pthread_cflags@
395pthread_libs = @pthread_libs@
396release_info = @release_info@
397requirement_evas = @requirement_evas@
398sbindir = @sbindir@
399sharedstatedir = @sharedstatedir@
400srcdir = @srcdir@
401sysconfdir = @sysconfdir@
402target_alias = @target_alias@
403top_build_prefix = @top_build_prefix@
404top_builddir = @top_builddir@
405top_srcdir = @top_srcdir@
406version_info = @version_info@
407MAINTAINERCLEANFILES = Makefile.in
408AM_CPPFLAGS = \
409-I. \
410-I$(top_srcdir)/src/lib \
411-I$(top_srcdir)/src/lib/include \
412@FREETYPE_CFLAGS@ \
413@PIXMAN_CFLAGS@ \
414@EINA_CFLAGS@ \
415@evas_image_loader_xpm_cflags@ \
416@EVIL_CFLAGS@ \
417@WIN32_CPPFLAGS@
418
419AM_CFLAGS = @WIN32_CFLAGS@
420@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@pkgdir = $(libdir)/evas/modules/loaders/xpm/$(MODULE_ARCH)
421@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@pkg_LTLIBRARIES = module.la
422@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_SOURCES = evas_image_load_xpm.c
423@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @evas_image_loader_xpm_libs@ $(top_builddir)/src/lib/libevas.la
424@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
425@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
426@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@noinst_LTLIBRARIES = libevas_loader_xpm.la
427@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@libevas_loader_xpm_la_SOURCES = evas_image_load_xpm.c
428@BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@libevas_loader_xpm_la_LIBADD = @evas_image_loader_xpm_libs@
429all: all-am
430
431.SUFFIXES:
432.SUFFIXES: .c .lo .o .obj
433$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
434 @for dep in $?; do \
435 case '$(am__configure_deps)' in \
436 *$$dep*) \
437 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
438 && { if test -f $@; then exit 0; else break; fi; }; \
439 exit 1;; \
440 esac; \
441 done; \
442 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/xpm/Makefile'; \
443 $(am__cd) $(top_srcdir) && \
444 $(AUTOMAKE) --gnu src/modules/loaders/xpm/Makefile
445.PRECIOUS: Makefile
446Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
447 @case '$?' in \
448 *config.status*) \
449 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
450 *) \
451 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
452 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
453 esac;
454
455$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
456 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
457
458$(top_srcdir)/configure: $(am__configure_deps)
459 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
460$(ACLOCAL_M4): $(am__aclocal_m4_deps)
461 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
462$(am__aclocal_m4_deps):
463
464clean-noinstLTLIBRARIES:
465 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
466 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
467 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
468 test "$$dir" != "$$p" || dir=.; \
469 echo "rm -f \"$${dir}/so_locations\""; \
470 rm -f "$${dir}/so_locations"; \
471 done
472install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
473 @$(NORMAL_INSTALL)
474 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
475 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
476 list2=; for p in $$list; do \
477 if test -f $$p; then \
478 list2="$$list2 $$p"; \
479 else :; fi; \
480 done; \
481 test -z "$$list2" || { \
482 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
483 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
484 }
485
486uninstall-pkgLTLIBRARIES:
487 @$(NORMAL_UNINSTALL)
488 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
489 for p in $$list; do \
490 $(am__strip_dir) \
491 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
492 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
493 done
494
495clean-pkgLTLIBRARIES:
496 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
497 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
498 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
499 test "$$dir" != "$$p" || dir=.; \
500 echo "rm -f \"$${dir}/so_locations\""; \
501 rm -f "$${dir}/so_locations"; \
502 done
503libevas_loader_xpm.la: $(libevas_loader_xpm_la_OBJECTS) $(libevas_loader_xpm_la_DEPENDENCIES)
504 $(AM_V_CCLD)$(LINK) $(am_libevas_loader_xpm_la_rpath) $(libevas_loader_xpm_la_OBJECTS) $(libevas_loader_xpm_la_LIBADD) $(LIBS)
505module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
506 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
507
508mostlyclean-compile:
509 -rm -f *.$(OBJEXT)
510
511distclean-compile:
512 -rm -f *.tab.c
513
514@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_xpm.Plo@am__quote@
515@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_xpm.Plo@am__quote@
516
517.c.o:
518@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
519@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
520@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
521@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
522@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
523@am__fastdepCC_FALSE@ $(COMPILE) -c $<
524
525.c.obj:
526@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
527@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
528@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
529@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
530@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
531@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
532
533.c.lo:
534@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
535@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
536@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
537@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
538@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
539@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
540
541module_la-evas_image_load_xpm.lo: evas_image_load_xpm.c
542@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_xpm.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_xpm.Tpo -c -o module_la-evas_image_load_xpm.lo `test -f 'evas_image_load_xpm.c' || echo '$(srcdir)/'`evas_image_load_xpm.c
543@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_xpm.Tpo $(DEPDIR)/module_la-evas_image_load_xpm.Plo
544@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
545@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_xpm.c' object='module_la-evas_image_load_xpm.lo' libtool=yes @AMDEPBACKSLASH@
546@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
547@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_xpm.lo `test -f 'evas_image_load_xpm.c' || echo '$(srcdir)/'`evas_image_load_xpm.c
548
549mostlyclean-libtool:
550 -rm -f *.lo
551
552clean-libtool:
553 -rm -rf .libs _libs
554
555ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
556 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
557 unique=`for i in $$list; do \
558 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
559 done | \
560 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
561 END { if (nonempty) { for (i in files) print i; }; }'`; \
562 mkid -fID $$unique
563tags: TAGS
564
565TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
566 $(TAGS_FILES) $(LISP)
567 set x; \
568 here=`pwd`; \
569 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
570 unique=`for i in $$list; do \
571 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
572 done | \
573 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
574 END { if (nonempty) { for (i in files) print i; }; }'`; \
575 shift; \
576 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
577 test -n "$$unique" || unique=$$empty_fix; \
578 if test $$# -gt 0; then \
579 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
580 "$$@" $$unique; \
581 else \
582 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
583 $$unique; \
584 fi; \
585 fi
586ctags: CTAGS
587CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
588 $(TAGS_FILES) $(LISP)
589 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
590 unique=`for i in $$list; do \
591 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
592 done | \
593 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
594 END { if (nonempty) { for (i in files) print i; }; }'`; \
595 test -z "$(CTAGS_ARGS)$$unique" \
596 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
597 $$unique
598
599GTAGS:
600 here=`$(am__cd) $(top_builddir) && pwd` \
601 && $(am__cd) $(top_srcdir) \
602 && gtags -i $(GTAGS_ARGS) "$$here"
603
604distclean-tags:
605 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
606
607distdir: $(DISTFILES)
608 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
609 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
610 list='$(DISTFILES)'; \
611 dist_files=`for file in $$list; do echo $$file; done | \
612 sed -e "s|^$$srcdirstrip/||;t" \
613 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
614 case $$dist_files in \
615 */*) $(MKDIR_P) `echo "$$dist_files" | \
616 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
617 sort -u` ;; \
618 esac; \
619 for file in $$dist_files; do \
620 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
621 if test -d $$d/$$file; then \
622 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
623 if test -d "$(distdir)/$$file"; then \
624 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
625 fi; \
626 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
627 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
628 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
629 fi; \
630 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
631 else \
632 test -f "$(distdir)/$$file" \
633 || cp -p $$d/$$file "$(distdir)/$$file" \
634 || exit 1; \
635 fi; \
636 done
637check-am: all-am
638check: check-am
639all-am: Makefile $(LTLIBRARIES)
640installdirs:
641 for dir in "$(DESTDIR)$(pkgdir)"; do \
642 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
643 done
644install: install-am
645install-exec: install-exec-am
646install-data: install-data-am
647uninstall: uninstall-am
648
649install-am: all-am
650 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
651
652installcheck: installcheck-am
653install-strip:
654 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
655 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
656 `test -z '$(STRIP)' || \
657 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
658mostlyclean-generic:
659
660clean-generic:
661
662distclean-generic:
663 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
664 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
665
666maintainer-clean-generic:
667 @echo "This command is intended for maintainers to use"
668 @echo "it deletes files that may require special tools to rebuild."
669 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
670clean: clean-am
671
672clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
673 clean-pkgLTLIBRARIES mostlyclean-am
674
675distclean: distclean-am
676 -rm -rf ./$(DEPDIR)
677 -rm -f Makefile
678distclean-am: clean-am distclean-compile distclean-generic \
679 distclean-tags
680
681dvi: dvi-am
682
683dvi-am:
684
685html: html-am
686
687html-am:
688
689info: info-am
690
691info-am:
692
693install-data-am: install-pkgLTLIBRARIES
694
695install-dvi: install-dvi-am
696
697install-dvi-am:
698
699install-exec-am:
700
701install-html: install-html-am
702
703install-html-am:
704
705install-info: install-info-am
706
707install-info-am:
708
709install-man:
710
711install-pdf: install-pdf-am
712
713install-pdf-am:
714
715install-ps: install-ps-am
716
717install-ps-am:
718
719installcheck-am:
720
721maintainer-clean: maintainer-clean-am
722 -rm -rf ./$(DEPDIR)
723 -rm -f Makefile
724maintainer-clean-am: distclean-am maintainer-clean-generic
725
726mostlyclean: mostlyclean-am
727
728mostlyclean-am: mostlyclean-compile mostlyclean-generic \
729 mostlyclean-libtool
730
731pdf: pdf-am
732
733pdf-am:
734
735ps: ps-am
736
737ps-am:
738
739uninstall-am: uninstall-pkgLTLIBRARIES
740
741.MAKE: install-am install-strip
742
743.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
744 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
745 ctags distclean distclean-compile distclean-generic \
746 distclean-libtool distclean-tags distdir dvi dvi-am html \
747 html-am info info-am install install-am install-data \
748 install-data-am install-dvi install-dvi-am install-exec \
749 install-exec-am install-html install-html-am install-info \
750 install-info-am install-man install-pdf install-pdf-am \
751 install-pkgLTLIBRARIES install-ps install-ps-am install-strip \
752 installcheck installcheck-am installdirs maintainer-clean \
753 maintainer-clean-generic mostlyclean mostlyclean-compile \
754 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
755 tags uninstall uninstall-am uninstall-pkgLTLIBRARIES
756
757
758# Tell versions [3.59,3.63) of GNU make to not export all variables.
759# Otherwise a system limit (for SysV at least) may be exceeded.
760.NOEXPORT:
diff --git a/libraries/evas/src/modules/loaders/xpm/evas_image_load_xpm.c b/libraries/evas/src/modules/loaders/xpm/evas_image_load_xpm.c
new file mode 100644
index 0000000..3a04f84
--- /dev/null
+++ b/libraries/evas/src/modules/loaders/xpm/evas_image_load_xpm.c
@@ -0,0 +1,691 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#ifdef HAVE_EVIL
6# include <Evil.h>
7#endif
8
9#include "evas_common.h"
10#include "evas_private.h"
11
12static int _evas_loader_xpm_log_dom = -1;
13
14#ifdef ERR
15# undef ERR
16#endif
17#define ERR(...) EINA_LOG_DOM_ERR(_evas_loader_xpm_log_dom, __VA_ARGS__)
18
19static Eina_Bool evas_image_load_file_head_xpm(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
20static Eina_Bool evas_image_load_file_data_xpm(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4);
21
22static Evas_Image_Load_Func evas_image_load_xpm_func =
23{
24 EINA_FALSE,
25 evas_image_load_file_head_xpm,
26 evas_image_load_file_data_xpm,
27 NULL
28};
29
30// TODO: REWRITE THIS WITH THREAD SAFE VERSION NOT USING THIS HANDLE!!!!
31static FILE *rgb_txt = NULL;
32
33static void
34xpm_parse_color(char *color, int *r, int *g, int *b)
35{
36 char buf[4096];
37
38 /* is a #ff00ff like color */
39 if (color[0] == '#')
40 {
41 int len;
42 char val[32];
43
44 len = strlen(color) - 1;
45 if (len < 96)
46 {
47 int i;
48
49 len /= 3;
50 for (i = 0; i < len; i++)
51 val[i] = color[1 + i + (0 * len)];
52 val[i] = 0;
53 sscanf(val, "%x", r);
54 for (i = 0; i < len; i++)
55 val[i] = color[1 + i + (1 * len)];
56 val[i] = 0;
57 sscanf(val, "%x", g);
58 for (i = 0; i < len; i++)
59 val[i] = color[1 + i + (2 * len)];
60 val[i] = 0;
61 sscanf(val, "%x", b);
62 if (len == 1)
63 {
64 *r = (*r << 4) | *r;
65 *g = (*g << 4) | *g;
66 *b = (*b << 4) | *b;
67 }
68 else if (len > 2)
69 {
70 *r >>= (len - 2) * 4;
71 *g >>= (len - 2) * 4;
72 *b >>= (len - 2) * 4;
73 }
74 }
75 return;
76 }
77 /* look in rgb txt database */
78 if (!rgb_txt) rgb_txt = fopen("/usr/lib/X11/rgb.txt", "r");
79 if (!rgb_txt) rgb_txt = fopen("/usr/X11/lib/X11/rgb.txt", "r");
80 if (!rgb_txt) rgb_txt = fopen("/usr/X11R6/lib/X11/rgb.txt", "r");
81 if (!rgb_txt) rgb_txt = fopen("/usr/openwin/lib/X11/rgb.txt", "r");
82 if (!rgb_txt) return;
83 fseek(rgb_txt, 0, SEEK_SET);
84 while (fgets(buf, sizeof(buf), rgb_txt))
85 {
86 buf[sizeof(buf) - 1] = 0;
87 if (buf[0] != '!')
88 {
89 int rr, gg, bb;
90 char name[4096];
91
92 if (sscanf(buf, "%i %i %i %[^\n]", &rr, &gg, &bb, name) == 4)
93 {
94 if (!strcasecmp(name, color))
95 {
96 *r = rr;
97 *g = gg;
98 *b = bb;
99 return;
100 }
101 }
102 }
103 }
104}
105
106static void
107xpm_parse_done(void)
108{
109 if (rgb_txt) fclose(rgb_txt);
110 rgb_txt = NULL;
111}
112
113
114/** FIXME: clean this up and make more efficient **/
115static Eina_Bool
116evas_image_load_file_xpm(Image_Entry *ie, const char *file, const char *key __UNUSED__, int load_data, int *error)
117{
118 DATA32 *ptr, *end;
119 FILE *f;
120
121 int pc, c, i, j, k, w, h, ncolors, cpp, comment, transp,
122 quote, context, len, done, r, g, b, backslash, lu1, lu2;
123 char *line, s[256], tok[128], col[256], *tl;
124 int lsz = 256;
125 struct _cmap {
126 char str[6];
127 unsigned char transp;
128 short r, g, b;
129 } *cmap;
130
131 short lookup[128 - 32][128 - 32];
132 int count, pixels;
133
134 done = 0;
135// transp = -1;
136 transp = 1;
137
138 /* if immediate_load is 1, then dont delay image laoding as below, or */
139 /* already data in this image - dont load it again */
140
141 f = fopen(file, "rb");
142 if (!f)
143 {
144 xpm_parse_done();
145 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
146 return EINA_FALSE;
147 }
148 if (fread(s, 9, 1, f) != 1)
149 {
150 fclose(f);
151 xpm_parse_done();
152 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
153 return EINA_FALSE;
154 }
155 rewind(f);
156 s[9] = 0;
157 if (strcmp("/* XPM */", s))
158 {
159 fclose(f);
160 xpm_parse_done();
161 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
162 return EINA_FALSE;
163 }
164
165 i = 0;
166 j = 0;
167 cmap = NULL;
168 w = 10;
169 h = 10;
170 ptr = NULL;
171 end = NULL;
172 c = ' ';
173 comment = 0;
174 quote = 0;
175 context = 0;
176 pixels = 0;
177 count = 0;
178 line = malloc(lsz);
179 if (!line)
180 {
181 fclose(f);
182 xpm_parse_done();
183 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
184 return EINA_FALSE;
185 }
186
187 backslash = 0;
188 memset(lookup, 0, sizeof(lookup));
189 while (!done)
190 {
191 pc = c;
192 c = fgetc(f);
193 if (c == EOF) break;
194 if (!quote)
195 {
196 if ((pc == '/') && (c == '*'))
197 comment = 1;
198 else if ((pc == '*') && (c == '/') && (comment))
199 comment = 0;
200 }
201 if (!comment)
202 {
203 if ((!quote) && (c == '"'))
204 {
205 quote = 1;
206 i = 0;
207 }
208 else if ((quote) && (c == '"'))
209 {
210 line[i] = 0;
211 quote = 0;
212 if (context == 0)
213 {
214 /* Header */
215 if (sscanf(line, "%i %i %i %i", &w, &h, &ncolors, &cpp) != 4)
216 {
217 ERR("XPM ERROR: XPM file malformed header");
218 free(line);
219 fclose(f);
220 xpm_parse_done();
221 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
222 return EINA_FALSE;
223 }
224 if ((ncolors > 32766) || (ncolors < 1))
225 {
226 ERR("XPM ERROR: XPM files with colors > 32766 or < 1 not supported");
227 free(line);
228 fclose(f);
229 xpm_parse_done();
230 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
231 return EINA_FALSE;
232 }
233 if ((cpp > 5) || (cpp < 1))
234 {
235 ERR("XPM ERROR: XPM files with characters per pixel > 5 or < 1not supported");
236 free(line);
237 fclose(f);
238 xpm_parse_done();
239 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
240 return EINA_FALSE;
241 }
242 if ((w > IMG_MAX_SIZE) || (w < 1))
243 {
244 ERR("XPM ERROR: Image width > IMG_MAX_SIZE or < 1 pixels for file");
245 free(line);
246 fclose(f);
247 xpm_parse_done();
248 *error = EVAS_LOAD_ERROR_GENERIC;
249 return EINA_FALSE;
250 }
251 if ((h > IMG_MAX_SIZE) || (h < 1))
252 {
253 ERR("XPM ERROR: Image height > IMG_MAX_SIZE or < 1 pixels for file");
254 free(line);
255 fclose(f);
256 xpm_parse_done();
257 *error = EVAS_LOAD_ERROR_GENERIC;
258 return EINA_FALSE;
259 }
260 if (IMG_TOO_BIG(w, h))
261 {
262 ERR("XPM ERROR: Image just too big to ever allocate");
263 free(line);
264 fclose(f);
265 xpm_parse_done();
266 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
267 return EINA_FALSE;
268 }
269
270 if (!cmap)
271 {
272 cmap = malloc(sizeof(struct _cmap) * ncolors);
273 if (!cmap)
274 {
275 free(line);
276 fclose(f);
277 xpm_parse_done();
278 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
279 return EINA_FALSE;
280 }
281 }
282 ie->w = w;
283 ie->h = h;
284
285 j = 0;
286 context++;
287 }
288 else if (context == 1)
289 {
290 /* Color Table */
291 if (j < ncolors)
292 {
293 int slen;
294 int hascolor, iscolor;
295
296 iscolor = 0;
297 hascolor = 0;
298 tok[0] = 0;
299 col[0] = 0;
300 s[0] = 0;
301 len = strlen(line);
302 strncpy(cmap[j].str, line, cpp);
303 cmap[j].str[cpp] = 0;
304 for (slen = 0; slen < cpp; slen++)
305 {
306 /* fix the ascii of the color string - if its < 32 - just limit to 32 */
307 if (cmap[j].str[slen] < 32) cmap[j].str[slen] = 0;
308 }
309 cmap[j].r = -1;
310 cmap[j].transp = 0;
311 for (k = cpp; k < len; k++)
312 {
313 if (line[k] != ' ')
314 {
315 s[0] = 0;
316 sscanf(&line[k], "%255s", s);
317 slen = strlen(s);
318 k += slen;
319 if (!strcmp(s, "c")) iscolor = 1;
320 if ((!strcmp(s, "m")) || (!strcmp(s, "s"))
321 || (!strcmp(s, "g4")) || (!strcmp(s, "g"))
322 || (!strcmp(s, "c")) || (k >= len))
323 {
324 if (k >= len)
325 {
326 if (col[0])
327 {
328 if (strlen(col) < (sizeof(col) - 2))
329 strcat(col, " ");
330 else
331 done = 1;
332 }
333 if ((strlen(col) + strlen(s)) < (sizeof(col) - 1))
334 strcat(col, s);
335 }
336 if (col[0])
337 {
338 if (!strcasecmp(col, "none"))
339 {
340 transp = 1;
341 cmap[j].transp = 1;
342 cmap[j].r = 0;
343 cmap[j].g = 0;
344 cmap[j].b = 0;
345 }
346 else
347 {
348 if ((((cmap[j].r < 0) || (!strcmp(tok, "c"))) && (!hascolor)))
349 {
350 r = g = b = 0;
351 xpm_parse_color(col, &r, &g, &b);
352 cmap[j].r = r;
353 cmap[j].g = g;
354 cmap[j].b = b;
355 if (iscolor) hascolor = 1;
356 }
357 }
358 }
359 strcpy(tok, s);
360 col[0] = 0;
361 }
362 else
363 {
364 if (col[0])
365 {
366 if (strlen(col) < ( sizeof(col) - 2))
367 strcat(col, " ");
368 else
369 done = 1;
370 }
371 if ((strlen(col) + strlen(s)) < (sizeof(col) - 1))
372 strcat(col, s);
373 }
374 }
375 }
376 }
377 j++;
378 if (j >= ncolors)
379 {
380 if (cpp == 1)
381 {
382 for (i = 0; i < ncolors; i++)
383 lookup[(int)cmap[i].str[0] - 32][0] = i;
384 }
385 if (cpp == 2)
386 {
387 for (i = 0; i < ncolors; i++)
388 lookup[(int)cmap[i].str[0] - 32][(int)cmap[i].str[1] - 32] = i;
389 }
390 context++;
391 }
392
393 if (transp) ie->flags.alpha = 1;
394
395 if (load_data)
396 {
397 evas_cache_image_surface_alloc(ie, w, h);
398 ptr = evas_cache_image_pixels(ie);
399 if (!ptr)
400 {
401 free(cmap);
402 free(line);
403 fclose(f);
404 xpm_parse_done();
405 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
406 return EINA_FALSE;
407 }
408 pixels = w * h;
409 end = ptr + pixels;
410 }
411 else
412 {
413 free(cmap);
414 free(line);
415 fclose(f);
416 xpm_parse_done();
417 *error = EVAS_LOAD_ERROR_NONE;
418 return EINA_TRUE;
419 }
420 }
421 else
422 {
423 /* Image Data */
424 i = 0;
425 if (cpp == 0)
426 {
427 /* Chars per pixel = 0? well u never know */
428 }
429 /* it's xpm - don't care about speed too much. still faster
430 * that most xpm loaders anyway */
431 else if (cpp == 1)
432 {
433 if (transp)
434 {
435 for (i = 0;
436 ((i < 65536) && (ptr < end) && (line[i]));
437 i++)
438 {
439 lu1 = (int)line[i] - 32;
440 if (lu1 < 0) continue;
441 if (cmap[lookup[lu1][0]].transp)
442 {
443 r = (unsigned char)cmap[lookup[lu1][0]].r;
444 g = (unsigned char)cmap[lookup[lu1][0]].g;
445 b = (unsigned char)cmap[lookup[lu1][0]].b;
446 *ptr = RGB_JOIN(r, g, b);
447 ptr++;
448 count++;
449 }
450 else
451 {
452 r = (unsigned char)cmap[lookup[lu1][0]].r;
453 g = (unsigned char)cmap[lookup[lu1][0]].g;
454 b = (unsigned char)cmap[lookup[lu1][0]].b;
455 *ptr = ARGB_JOIN(0xff, r, g, b);
456 ptr++;
457 count++;
458 }
459 }
460 }
461 else
462 {
463 for (i = 0;
464 ((i < 65536) && (ptr < end) && (line[i]));
465 i++)
466 {
467 lu1 = (int)line[i] - 32;
468 if (lu1 < 0) continue;
469 r = (unsigned char)cmap[lookup[lu1][0]].r;
470 g = (unsigned char)cmap[lookup[lu1][0]].g;
471 b = (unsigned char)cmap[lookup[lu1][0]].b;
472 *ptr = ARGB_JOIN(0xff, r, g, b);
473 ptr++;
474 count++;
475 }
476 }
477 }
478 else if (cpp == 2)
479 {
480 if (transp)
481 {
482 for (i = 0;
483 ((i < 65536) && (ptr < end) && (line[i]));
484 i++)
485 {
486 lu1 = (int)line[i] - 32;
487 i++;
488 lu2 = (int)line[i] - 32;
489 if (lu1 < 0) continue;
490 if (lu2 < 0) continue;
491 if (cmap[lookup[lu1][lu2]].transp)
492 {
493 r = (unsigned char)cmap[lookup[lu1][lu2]].r;
494 g = (unsigned char)cmap[lookup[lu1][lu2]].g;
495 b = (unsigned char)cmap[lookup[lu1][lu2]].b;
496 *ptr = RGB_JOIN(r, g, b);
497 ptr++;
498 count++;
499 }
500 else
501 {
502 r = (unsigned char)cmap[lookup[lu1][lu2]].r;
503 g = (unsigned char)cmap[lookup[lu1][lu2]].g;
504 b = (unsigned char)cmap[lookup[lu1][lu2]].b;
505 *ptr = ARGB_JOIN(0xff, r, g, b);
506 ptr++;
507 count++;
508 }
509 }
510 }
511 else
512 {
513 for (i = 0;
514 ((i < 65536) && (ptr < end) && (line[i]));
515 i++)
516 {
517 lu1 = (int)line[i] - 32;
518 i++;
519 lu2 = (int)line[i] - 32;
520 if (lu1 < 0) continue;
521 if (lu2 < 0) continue;
522 r = (unsigned char)cmap[lookup[lu1][lu2]].r;
523 g = (unsigned char)cmap[lookup[lu1][lu2]].g;
524 b = (unsigned char)cmap[lookup[lu1][lu2]].b;
525 *ptr = ARGB_JOIN(0xff, r, g, b);
526 ptr++;
527 count++;
528 }
529 }
530 }
531 else
532 {
533 if (transp)
534 {
535 for (i = 0;
536 ((i < 65536) && (ptr < end) && (line[i]));
537 i++)
538 {
539 for (j = 0; j < cpp; j++, i++)
540 {
541 col[j] = line[i];
542 if (col[j] < 32) col[j] = 32;
543 }
544 col[j] = 0;
545 i--;
546 for (j = 0; j < ncolors; j++)
547 {
548 if (!strcmp(col, cmap[j].str))
549 {
550 if (cmap[j].transp)
551 {
552 r = (unsigned char)cmap[j].r;
553 g = (unsigned char)cmap[j].g;
554 b = (unsigned char)cmap[j].b;
555 *ptr = RGB_JOIN(r, g, b);
556 ptr++;
557 count++;
558 }
559 else
560 {
561 r = (unsigned char)cmap[j].r;
562 g = (unsigned char)cmap[j].g;
563 b = (unsigned char)cmap[j].b;
564 *ptr = ARGB_JOIN(0xff, r, g, b);
565 ptr++;
566 count++;
567 }
568 break;
569 }
570 }
571 }
572 }
573 else
574 {
575 for (i = 0;
576 ((i < 65536) && (ptr < end) && (line[i]));
577 i++)
578 {
579 for (j = 0; j < cpp; j++, i++)
580 {
581 col[j] = line[i];
582 }
583 col[j] = 0;
584 i--;
585 for (j = 0; j < ncolors; j++)
586 {
587 if (!strcmp(col, cmap[j].str))
588 {
589 r = (unsigned char)cmap[j].r;
590 g = (unsigned char)cmap[j].g;
591 b = (unsigned char)cmap[j].b;
592 *ptr = ARGB_JOIN(0xff, r, g, b);
593 ptr++;
594 count++;
595 break;
596 }
597 }
598 }
599 }
600 }
601 }
602 }
603 }
604 /* Scan in line from XPM file */
605 if ((!comment) && (quote) && (c != '"'))
606 {
607 if (c < 32) c = 32;
608 else if (c > 127) c = 127;
609 if (c =='\\')
610 {
611 if (++backslash < 2)
612 line[i++] = c;
613 else
614 backslash = 0;
615 }
616 else
617 {
618 backslash = 0;
619 line[i++] = c;
620 }
621 }
622 if (i >= lsz)
623 {
624 lsz += 256;
625 tl = realloc(line, lsz);
626 if (!tl) break;
627 line = tl;
628 }
629 if (((ptr) && ((ptr - evas_cache_image_pixels(ie)) >= (w * h * (int)sizeof(DATA32)))) ||
630 ((context > 1) && (count >= pixels)))
631 break;
632 }
633
634 free(cmap);
635 free(line);
636 fclose(f);
637
638 xpm_parse_done();
639 *error = EVAS_LOAD_ERROR_NONE;
640 return EINA_TRUE;
641}
642
643static Eina_Bool
644evas_image_load_file_head_xpm(Image_Entry *ie, const char *file, const char *key, int *error)
645{
646 return evas_image_load_file_xpm(ie, file, key, 0, error);
647}
648
649static Eina_Bool
650evas_image_load_file_data_xpm(Image_Entry *ie, const char *file, const char *key, int *error)
651{
652 return evas_image_load_file_xpm(ie, file, key, 1, error);
653}
654
655static int
656module_open(Evas_Module *em)
657{
658 if (!em) return 0;
659 _evas_loader_xpm_log_dom = eina_log_domain_register
660 ("evas-xpm", EVAS_DEFAULT_LOG_COLOR);
661 if (_evas_loader_xpm_log_dom < 0)
662 {
663 EINA_LOG_ERR("Can not create a module log domain.");
664 return 0;
665 }
666 em->functions = (void *)(&evas_image_load_xpm_func);
667 return 1;
668}
669
670static void
671module_close(Evas_Module *em __UNUSED__)
672{
673 eina_log_domain_unregister(_evas_loader_xpm_log_dom);
674}
675
676static Evas_Module_Api evas_modapi =
677{
678 EVAS_MODULE_API_VERSION,
679 "xpm",
680 "none",
681 {
682 module_open,
683 module_close
684 }
685};
686
687EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, xpm);
688
689#ifndef EVAS_STATIC_BUILD_XPM
690EVAS_EINA_MODULE_DEFINE(image_loader, xpm);
691#endif