diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/evas/src/modules/loaders/png/Makefile.am | 34 | ||||
-rw-r--r-- | libraries/evas/src/modules/loaders/png/Makefile.in | 759 | ||||
-rw-r--r-- | libraries/evas/src/modules/loaders/png/evas_image_load_png.c | 328 |
3 files changed, 1121 insertions, 0 deletions
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 | |||
2 | MAINTAINERCLEANFILES = Makefile.in | ||
3 | |||
4 | AM_CPPFLAGS = \ | ||
5 | -I. \ | ||
6 | -I$(top_srcdir)/src/lib \ | ||
7 | -I$(top_srcdir)/src/lib/include \ | ||
8 | @FREETYPE_CFLAGS@ \ | ||
9 | @PIXMAN_CFLAGS@ \ | ||
10 | @EINA_CFLAGS@ \ | ||
11 | @evas_image_loader_png_cflags@ \ | ||
12 | @EVIL_CFLAGS@ \ | ||
13 | @WIN32_CPPFLAGS@ | ||
14 | |||
15 | if BUILD_LOADER_PNG | ||
16 | if !EVAS_STATIC_BUILD_PNG | ||
17 | |||
18 | pkgdir = $(libdir)/evas/modules/loaders/png/$(MODULE_ARCH) | ||
19 | pkg_LTLIBRARIES = module.la | ||
20 | |||
21 | module_la_SOURCES = evas_image_load_png.c | ||
22 | |||
23 | module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_png_libs@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
24 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
25 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
26 | |||
27 | else | ||
28 | |||
29 | noinst_LTLIBRARIES = libevas_loader_png.la | ||
30 | libevas_loader_png_la_SOURCES = evas_image_load_png.c | ||
31 | libevas_loader_png_la_LIBADD = @evas_image_loader_png_libs@ | ||
32 | |||
33 | endif | ||
34 | endif | ||
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 | |||
18 | VPATH = @srcdir@ | ||
19 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
20 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
21 | pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
23 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
24 | install_sh_DATA = $(install_sh) -c -m 644 | ||
25 | install_sh_PROGRAM = $(install_sh) -c | ||
26 | install_sh_SCRIPT = $(install_sh) -c | ||
27 | INSTALL_HEADER = $(INSTALL_DATA) | ||
28 | transform = $(program_transform_name) | ||
29 | NORMAL_INSTALL = : | ||
30 | PRE_INSTALL = : | ||
31 | POST_INSTALL = : | ||
32 | NORMAL_UNINSTALL = : | ||
33 | PRE_UNINSTALL = : | ||
34 | POST_UNINSTALL = : | ||
35 | build_triplet = @build@ | ||
36 | host_triplet = @host@ | ||
37 | subdir = src/modules/loaders/png | ||
38 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
39 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
40 | am__aclocal_m4_deps = $(top_srcdir)/m4/efl_attribute.m4 \ | ||
41 | $(top_srcdir)/m4/efl_coverage.m4 \ | ||
42 | $(top_srcdir)/m4/efl_doxygen.m4 \ | ||
43 | $(top_srcdir)/m4/efl_fnmatch.m4 \ | ||
44 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ | ||
45 | $(top_srcdir)/m4/evas_check_engine.m4 \ | ||
46 | $(top_srcdir)/m4/evas_check_loader.m4 \ | ||
47 | $(top_srcdir)/m4/evas_converter.m4 \ | ||
48 | $(top_srcdir)/m4/evas_dither.m4 \ | ||
49 | $(top_srcdir)/m4/evas_scaler.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
50 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | ||
51 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | ||
52 | $(top_srcdir)/configure.ac | ||
53 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
54 | $(ACLOCAL_M4) | ||
55 | mkinstalldirs = $(install_sh) -d | ||
56 | CONFIG_HEADER = $(top_builddir)/config.h | ||
57 | CONFIG_CLEAN_FILES = | ||
58 | CONFIG_CLEAN_VPATH_FILES = | ||
59 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
60 | am__vpath_adj = case $$p in \ | ||
61 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
62 | *) f=$$p;; \ | ||
63 | esac; | ||
64 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
65 | am__install_max = 40 | ||
66 | am__nobase_strip_setup = \ | ||
67 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
68 | am__nobase_strip = \ | ||
69 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
70 | am__nobase_list = $(am__nobase_strip_setup); \ | ||
71 | for p in $$list; do echo "$$p $$p"; done | \ | ||
72 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
73 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
74 | if (++n[$$2] == $(am__install_max)) \ | ||
75 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
76 | END { for (dir in files) print dir, files[dir] }' | ||
77 | am__base_list = \ | ||
78 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
79 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
80 | am__installdirs = "$(DESTDIR)$(pkgdir)" | ||
81 | LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES) | ||
82 | libevas_loader_png_la_DEPENDENCIES = | ||
83 | am__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 | ||
85 | libevas_loader_png_la_OBJECTS = $(am_libevas_loader_png_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_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 | ||
91 | am__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 | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_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) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_png_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_png_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | FGREP = @FGREP@ | ||
185 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
186 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
187 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
188 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
189 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
190 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
191 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
192 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
193 | GREP = @GREP@ | ||
194 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
195 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
196 | INSTALL = @INSTALL@ | ||
197 | INSTALL_DATA = @INSTALL_DATA@ | ||
198 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
199 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
200 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
201 | LD = @LD@ | ||
202 | LDFLAGS = @LDFLAGS@ | ||
203 | LIBOBJS = @LIBOBJS@ | ||
204 | LIBS = @LIBS@ | ||
205 | LIBTOOL = @LIBTOOL@ | ||
206 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
207 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
208 | LIPO = @LIPO@ | ||
209 | LN_S = @LN_S@ | ||
210 | LTLIBOBJS = @LTLIBOBJS@ | ||
211 | MAKEINFO = @MAKEINFO@ | ||
212 | MKDIR_P = @MKDIR_P@ | ||
213 | MODULE_ARCH = @MODULE_ARCH@ | ||
214 | NM = @NM@ | ||
215 | NMEDIT = @NMEDIT@ | ||
216 | OBJC = @OBJC@ | ||
217 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
218 | OBJCFLAGS = @OBJCFLAGS@ | ||
219 | OBJDUMP = @OBJDUMP@ | ||
220 | OBJEXT = @OBJEXT@ | ||
221 | OTOOL = @OTOOL@ | ||
222 | OTOOL64 = @OTOOL64@ | ||
223 | PACKAGE = @PACKAGE@ | ||
224 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
225 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
226 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
227 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
228 | PACKAGE_URL = @PACKAGE_URL@ | ||
229 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
230 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
231 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
232 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
233 | PKG_CONFIG = @PKG_CONFIG@ | ||
234 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
235 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
236 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
237 | PNG_LIBS = @PNG_LIBS@ | ||
238 | RANLIB = @RANLIB@ | ||
239 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
240 | SDL_LIBS = @SDL_LIBS@ | ||
241 | SED = @SED@ | ||
242 | SET_MAKE = @SET_MAKE@ | ||
243 | SHELL = @SHELL@ | ||
244 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
245 | STRIP = @STRIP@ | ||
246 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
247 | SVG_LIBS = @SVG_LIBS@ | ||
248 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
249 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
250 | VERSION = @VERSION@ | ||
251 | VMAJ = @VMAJ@ | ||
252 | WIN32_CFLAGS = @WIN32_CFLAGS@ | ||
253 | WIN32_CPPFLAGS = @WIN32_CPPFLAGS@ | ||
254 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
255 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
256 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
257 | XCB_LIBS = @XCB_LIBS@ | ||
258 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
259 | XEXT_LIBS = @XEXT_LIBS@ | ||
260 | XMKMF = @XMKMF@ | ||
261 | X_CFLAGS = @X_CFLAGS@ | ||
262 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
263 | X_LIBS = @X_LIBS@ | ||
264 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
265 | abs_builddir = @abs_builddir@ | ||
266 | abs_srcdir = @abs_srcdir@ | ||
267 | abs_top_builddir = @abs_top_builddir@ | ||
268 | abs_top_srcdir = @abs_top_srcdir@ | ||
269 | ac_ct_CC = @ac_ct_CC@ | ||
270 | ac_ct_CXX = @ac_ct_CXX@ | ||
271 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
272 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
273 | altivec_cflags = @altivec_cflags@ | ||
274 | am__include = @am__include@ | ||
275 | am__leading_dot = @am__leading_dot@ | ||
276 | am__quote = @am__quote@ | ||
277 | am__tar = @am__tar@ | ||
278 | am__untar = @am__untar@ | ||
279 | bindir = @bindir@ | ||
280 | build = @build@ | ||
281 | build_alias = @build_alias@ | ||
282 | build_cpu = @build_cpu@ | ||
283 | build_os = @build_os@ | ||
284 | build_vendor = @build_vendor@ | ||
285 | builddir = @builddir@ | ||
286 | datadir = @datadir@ | ||
287 | datarootdir = @datarootdir@ | ||
288 | dlopen_libs = @dlopen_libs@ | ||
289 | docdir = @docdir@ | ||
290 | dvidir = @dvidir@ | ||
291 | edje_cc = @edje_cc@ | ||
292 | efl_doxygen = @efl_doxygen@ | ||
293 | efl_have_doxygen = @efl_have_doxygen@ | ||
294 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
295 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
296 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
297 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
298 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
299 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
300 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
301 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
302 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
303 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
304 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
305 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
306 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
307 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
308 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
309 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
310 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
311 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
312 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
313 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
314 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
315 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
316 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
317 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
318 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
319 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
320 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
321 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
322 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
323 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
324 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
325 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
326 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
327 | evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@ | ||
328 | evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
334 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
335 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
336 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
337 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
338 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
339 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
340 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
341 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
342 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
343 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
344 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
345 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
346 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
347 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
348 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
349 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
350 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
351 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
352 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
353 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
354 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
355 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
356 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
357 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
358 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
359 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
360 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
361 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
362 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
363 | exec_prefix = @exec_prefix@ | ||
364 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
365 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
366 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
367 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
368 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
369 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
370 | have_lcov = @have_lcov@ | ||
371 | host = @host@ | ||
372 | host_alias = @host_alias@ | ||
373 | host_cpu = @host_cpu@ | ||
374 | host_os = @host_os@ | ||
375 | host_vendor = @host_vendor@ | ||
376 | htmldir = @htmldir@ | ||
377 | includedir = @includedir@ | ||
378 | infodir = @infodir@ | ||
379 | install_sh = @install_sh@ | ||
380 | libdir = @libdir@ | ||
381 | libexecdir = @libexecdir@ | ||
382 | localedir = @localedir@ | ||
383 | localstatedir = @localstatedir@ | ||
384 | lt_ECHO = @lt_ECHO@ | ||
385 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
386 | mandir = @mandir@ | ||
387 | mkdir_p = @mkdir_p@ | ||
388 | oldincludedir = @oldincludedir@ | ||
389 | pdfdir = @pdfdir@ | ||
390 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
391 | prefix = @prefix@ | ||
392 | program_transform_name = @program_transform_name@ | ||
393 | psdir = @psdir@ | ||
394 | pthread_cflags = @pthread_cflags@ | ||
395 | pthread_libs = @pthread_libs@ | ||
396 | release_info = @release_info@ | ||
397 | requirement_evas = @requirement_evas@ | ||
398 | sbindir = @sbindir@ | ||
399 | sharedstatedir = @sharedstatedir@ | ||
400 | srcdir = @srcdir@ | ||
401 | sysconfdir = @sysconfdir@ | ||
402 | target_alias = @target_alias@ | ||
403 | top_build_prefix = @top_build_prefix@ | ||
404 | top_builddir = @top_builddir@ | ||
405 | top_srcdir = @top_srcdir@ | ||
406 | version_info = @version_info@ | ||
407 | MAINTAINERCLEANFILES = Makefile.in | ||
408 | AM_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@ | ||
428 | all: 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 | ||
445 | Makefile: $(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 | |||
463 | clean-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 | ||
471 | install-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 | |||
485 | uninstall-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 | |||
494 | clean-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 | ||
502 | libevas_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) | ||
504 | module.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 | |||
507 | mostlyclean-compile: | ||
508 | -rm -f *.$(OBJEXT) | ||
509 | |||
510 | distclean-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 | |||
540 | module_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 | |||
548 | mostlyclean-libtool: | ||
549 | -rm -f *.lo | ||
550 | |||
551 | clean-libtool: | ||
552 | -rm -rf .libs _libs | ||
553 | |||
554 | ID: $(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 | ||
562 | tags: TAGS | ||
563 | |||
564 | TAGS: $(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 | ||
585 | ctags: CTAGS | ||
586 | CTAGS: $(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 | |||
598 | GTAGS: | ||
599 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
600 | && $(am__cd) $(top_srcdir) \ | ||
601 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
602 | |||
603 | distclean-tags: | ||
604 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
605 | |||
606 | distdir: $(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 | ||
636 | check-am: all-am | ||
637 | check: check-am | ||
638 | all-am: Makefile $(LTLIBRARIES) | ||
639 | installdirs: | ||
640 | for dir in "$(DESTDIR)$(pkgdir)"; do \ | ||
641 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
642 | done | ||
643 | install: install-am | ||
644 | install-exec: install-exec-am | ||
645 | install-data: install-data-am | ||
646 | uninstall: uninstall-am | ||
647 | |||
648 | install-am: all-am | ||
649 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
650 | |||
651 | installcheck: installcheck-am | ||
652 | install-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 | ||
657 | mostlyclean-generic: | ||
658 | |||
659 | clean-generic: | ||
660 | |||
661 | distclean-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 | |||
665 | maintainer-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) | ||
669 | clean: clean-am | ||
670 | |||
671 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
672 | clean-pkgLTLIBRARIES mostlyclean-am | ||
673 | |||
674 | distclean: distclean-am | ||
675 | -rm -rf ./$(DEPDIR) | ||
676 | -rm -f Makefile | ||
677 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
678 | distclean-tags | ||
679 | |||
680 | dvi: dvi-am | ||
681 | |||
682 | dvi-am: | ||
683 | |||
684 | html: html-am | ||
685 | |||
686 | html-am: | ||
687 | |||
688 | info: info-am | ||
689 | |||
690 | info-am: | ||
691 | |||
692 | install-data-am: install-pkgLTLIBRARIES | ||
693 | |||
694 | install-dvi: install-dvi-am | ||
695 | |||
696 | install-dvi-am: | ||
697 | |||
698 | install-exec-am: | ||
699 | |||
700 | install-html: install-html-am | ||
701 | |||
702 | install-html-am: | ||
703 | |||
704 | install-info: install-info-am | ||
705 | |||
706 | install-info-am: | ||
707 | |||
708 | install-man: | ||
709 | |||
710 | install-pdf: install-pdf-am | ||
711 | |||
712 | install-pdf-am: | ||
713 | |||
714 | install-ps: install-ps-am | ||
715 | |||
716 | install-ps-am: | ||
717 | |||
718 | installcheck-am: | ||
719 | |||
720 | maintainer-clean: maintainer-clean-am | ||
721 | -rm -rf ./$(DEPDIR) | ||
722 | -rm -f Makefile | ||
723 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
724 | |||
725 | mostlyclean: mostlyclean-am | ||
726 | |||
727 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
728 | mostlyclean-libtool | ||
729 | |||
730 | pdf: pdf-am | ||
731 | |||
732 | pdf-am: | ||
733 | |||
734 | ps: ps-am | ||
735 | |||
736 | ps-am: | ||
737 | |||
738 | uninstall-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 | |||
30 | static 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); | ||
31 | static 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 | |||
33 | static 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 | |||
41 | static Eina_Bool | ||
42 | evas_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 | |||
140 | static Eina_Bool | ||
141 | evas_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 | |||
300 | static int | ||
301 | module_open(Evas_Module *em) | ||
302 | { | ||
303 | if (!em) return 0; | ||
304 | em->functions = (void *)(&evas_image_load_png_func); | ||
305 | return 1; | ||
306 | } | ||
307 | |||
308 | static void | ||
309 | module_close(Evas_Module *em __UNUSED__) | ||
310 | { | ||
311 | } | ||
312 | |||
313 | static 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 | |||
324 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, png); | ||
325 | |||
326 | #ifndef EVAS_STATIC_BUILD_PNG | ||
327 | EVAS_EINA_MODULE_DEFINE(image_loader, png); | ||
328 | #endif | ||