aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/README20
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/makefile298
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/pngusr.dfa70
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/pngusr.h48
4 files changed, 218 insertions, 218 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/README b/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/README
index f8a8b6d..ff9aa45 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/README
+++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/README
@@ -1,10 +1,10 @@
1This demonstrates the use of PNG_USER_CONFIG and pngusr.h 1This demonstrates the use of PNG_USER_CONFIG and pngusr.h
2 2
3The makefile builds a minimal write-only decoder with embedded libpng 3The makefile builds a minimal write-only decoder with embedded libpng
4and zlib. 4and zlib.
5 5
6Specify the location of the zlib source (1.2.1 or later) as ZLIBSRC 6Specify the location of the zlib source (1.2.1 or later) as ZLIBSRC
7on the make command line. 7on the make command line.
8 8
9If you prefer to use the shared libraries, go to contrib/pngminus 9If you prefer to use the shared libraries, go to contrib/pngminus
10and build the pnm2png application there. 10and build the pnm2png application there.
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/makefile b/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/makefile
index 7374a6c..d6f39e2 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/makefile
+++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/makefile
@@ -1,149 +1,149 @@
1# Makefile for PngMinus (pnm2pngm) 1# Makefile for PngMinus (pnm2pngm)
2# Linux / Unix 2# Linux / Unix
3 3
4#CC=cc 4#CC=cc
5CC=gcc 5CC=gcc
6LD=$(CC) 6LD=$(CC)
7 7
8# If awk fails try 8# If awk fails try
9# make AWK=nawk 9# make AWK=nawk
10 10
11# If cpp fails try 11# If cpp fails try
12# make CPP=/lib/cpp 12# make CPP=/lib/cpp
13 13
14RM=rm -f 14RM=rm -f
15COPY=cp 15COPY=cp
16 16
17CFLAGS=-DPNG_USER_CONFIG -DNO_GZIP -I. -O1 17CFLAGS=-DPNG_USER_CONFIG -DNO_GZIP -I. -O1
18 18
19C=.c 19C=.c
20O=.o 20O=.o
21L=.a 21L=.a
22E= 22E=
23 23
24# Where to find the source code: 24# Where to find the source code:
25PNGSRC =../../.. 25PNGSRC =../../..
26ZLIBSRC=$(PNGSRC)/../zlib 26ZLIBSRC=$(PNGSRC)/../zlib
27PROGSRC=$(PNGSRC)/contrib/pngminus 27PROGSRC=$(PNGSRC)/contrib/pngminus
28 28
29# Zlib 29# Zlib
30ZSRCS = adler32$(C) compress$(C) crc32$(C) deflate$(C) \ 30ZSRCS = adler32$(C) compress$(C) crc32$(C) deflate$(C) \
31 trees$(C) zutil$(C) 31 trees$(C) zutil$(C)
32 32
33# Standard headers 33# Standard headers
34#ZH = zlib.h crc32.h deflate.h trees.h zutil.h 34#ZH = zlib.h crc32.h deflate.h trees.h zutil.h
35ZH = zlib.h crc32.h deflate.h trees.h zutil.h 35ZH = zlib.h crc32.h deflate.h trees.h zutil.h
36 36
37# Machine generated headers 37# Machine generated headers
38ZCONF = zconf.h 38ZCONF = zconf.h
39 39
40# Headers callers use 40# Headers callers use
41ZINC = zlib.h $(ZCONF) 41ZINC = zlib.h $(ZCONF)
42 42
43# Headers the Zlib source uses 43# Headers the Zlib source uses
44ZHDRS = $(ZH) $(ZCONF) 44ZHDRS = $(ZH) $(ZCONF)
45 45
46# compress is not required; it is needed to link the zlib 46# compress is not required; it is needed to link the zlib
47# code because deflate defines an unused API function deflateBound 47# code because deflate defines an unused API function deflateBound
48# which itself calls compressBound from compress. 48# which itself calls compressBound from compress.
49ZOBJS = adler32$(O) compress$(O) crc32$(O) deflate$(O) \ 49ZOBJS = adler32$(O) compress$(O) crc32$(O) deflate$(O) \
50 trees$(O) zutil$(O) 50 trees$(O) zutil$(O)
51 51
52# libpng 52# libpng
53PNGSRCS=png$(C) pngerror$(C) pngget$(C) pngmem$(C) \ 53PNGSRCS=png$(C) pngerror$(C) pngget$(C) pngmem$(C) \
54 pngset$(C) pngtrans$(C) pngwio$(C) pngwrite$(C) \ 54 pngset$(C) pngtrans$(C) pngwio$(C) pngwrite$(C) \
55 pngwtran$(C) pngwutil$(C) 55 pngwtran$(C) pngwutil$(C)
56 56
57# Standard headers 57# Standard headers
58PNGH =png.h pngconf.h pngdebug.h pnginfo.h pngpriv.h pngstruct.h 58PNGH =png.h pngconf.h pngdebug.h pnginfo.h pngpriv.h pngstruct.h
59 59
60# Machine generated headers 60# Machine generated headers
61PNGCONF=pnglibconf.h 61PNGCONF=pnglibconf.h
62 62
63# Headers callers use 63# Headers callers use
64PNGINC= png.h pngconf.h pngusr.h $(PNGCONF) 64PNGINC= png.h pngconf.h pngusr.h $(PNGCONF)
65 65
66# Headers the PNG library uses 66# Headers the PNG library uses
67PNGHDRS=$(PNGH) $(PNGCONF) pngusr.h 67PNGHDRS=$(PNGH) $(PNGCONF) pngusr.h
68 68
69PNGOBJS=png$(O) pngerror$(O) pngget$(O) pngmem$(O) \ 69PNGOBJS=png$(O) pngerror$(O) pngget$(O) pngmem$(O) \
70 pngset$(O) pngtrans$(O) pngwio$(O) pngwrite$(O) \ 70 pngset$(O) pngtrans$(O) pngwio$(O) pngwrite$(O) \
71 pngwtran$(O) pngwutil$(O) 71 pngwtran$(O) pngwutil$(O)
72 72
73PROGSRCS= pnm2pngm$(C) 73PROGSRCS= pnm2pngm$(C)
74PROGHDRS= 74PROGHDRS=
75PROGDOCS= 75PROGDOCS=
76PROGOBJS= pnm2pngm$(O) 76PROGOBJS= pnm2pngm$(O)
77 77
78OBJS = $(PROGOBJS) $(PNGOBJS) $(ZOBJS) 78OBJS = $(PROGOBJS) $(PNGOBJS) $(ZOBJS)
79 79
80# implicit make rules ------------------------------------------------------- 80# implicit make rules -------------------------------------------------------
81 81
82.c$(O): 82.c$(O):
83 $(CC) -c $(CFLAGS) $< 83 $(CC) -c $(CFLAGS) $<
84 84
85# dependencies 85# dependencies
86 86
87all: pnm2pngm$(E) 87all: pnm2pngm$(E)
88 88
89pnm2pngm$(E): $(OBJS) 89pnm2pngm$(E): $(OBJS)
90 $(LD) -o pnm2pngm$(E) $(OBJS) 90 $(LD) -o pnm2pngm$(E) $(OBJS)
91 91
92# The DFA_XTRA setting turns all libpng options off then 92# The DFA_XTRA setting turns all libpng options off then
93# turns on those required for this minimal build. 93# turns on those required for this minimal build.
94# The CPP_FLAGS setting causes pngusr.h to be included in 94# The CPP_FLAGS setting causes pngusr.h to be included in
95# both the build of pnglibconf.h and, subsequently, when 95# both the build of pnglibconf.h and, subsequently, when
96# building libpng itself. 96# building libpng itself.
97$(PNGCONF): $(PNGSRC)/scripts/pnglibconf.mak\ 97$(PNGCONF): $(PNGSRC)/scripts/pnglibconf.mak\
98 $(PNGSRC)/scripts/pnglibconf.dfa \ 98 $(PNGSRC)/scripts/pnglibconf.dfa \
99 $(PNGSRC)/scripts/options.awk pngusr.h pngusr.dfa 99 $(PNGSRC)/scripts/options.awk pngusr.h pngusr.dfa
100 $(RM) pnglibconf.h pnglibconf.dfn 100 $(RM) pnglibconf.h pnglibconf.dfn
101 $(MAKE) $(MAKEFLAGS) -f $(PNGSRC)/scripts/pnglibconf.mak\ 101 $(MAKE) $(MAKEFLAGS) -f $(PNGSRC)/scripts/pnglibconf.mak\
102 srcdir=$(PNGSRC) CPPFLAGS="-DPNG_USER_CONFIG"\ 102 srcdir=$(PNGSRC) CPPFLAGS="-DPNG_USER_CONFIG"\
103 DFA_XTRA="pngusr.dfa" $@ 103 DFA_XTRA="pngusr.dfa" $@
104 104
105clean: 105clean:
106 $(MAKE) $(MAKEFLAGS) -f $(PNGSRC)/scripts/pnglibconf.mak\ 106 $(MAKE) $(MAKEFLAGS) -f $(PNGSRC)/scripts/pnglibconf.mak\
107 srcdir=$(PNGSRC) clean 107 srcdir=$(PNGSRC) clean
108 $(RM) pnm2pngm$(O) 108 $(RM) pnm2pngm$(O)
109 $(RM) pnm2pngm$(E) 109 $(RM) pnm2pngm$(E)
110 $(RM) $(OBJS) 110 $(RM) $(OBJS)
111 111
112# distclean also removes the copied source and headers 112# distclean also removes the copied source and headers
113distclean: clean 113distclean: clean
114 $(RM) -r scripts # historical reasons 114 $(RM) -r scripts # historical reasons
115 $(RM) $(PNGSRCS) $(PNGH) 115 $(RM) $(PNGSRCS) $(PNGH)
116 $(RM) $(ZSRCS) $(ZH) $(ZCONF) 116 $(RM) $(ZSRCS) $(ZH) $(ZCONF)
117 $(RM) $(PROGSRCS) $(PROGHDRS) $(PROGDOCS) 117 $(RM) $(PROGSRCS) $(PROGHDRS) $(PROGDOCS)
118 118
119# Header file dependencies: 119# Header file dependencies:
120$(PROGOBJS): $(PROGHDRS) $(PNGINC) $(ZINC) 120$(PROGOBJS): $(PROGHDRS) $(PNGINC) $(ZINC)
121$(PNGOBJS): $(PNGHDRS) $(ZINC) 121$(PNGOBJS): $(PNGHDRS) $(ZINC)
122$(ZOBJS): $(ZHDRS) 122$(ZOBJS): $(ZHDRS)
123 123
124# Gather the source code from the respective directories 124# Gather the source code from the respective directories
125$(PNGSRCS) $(PNGH): $(PNGSRC)/$@ 125$(PNGSRCS) $(PNGH): $(PNGSRC)/$@
126 $(RM) $@ 126 $(RM) $@
127 $(COPY) $(PNGSRC)/$@ $@ 127 $(COPY) $(PNGSRC)/$@ $@
128 128
129# No dependency on the ZLIBSRC target so that it only needs 129# No dependency on the ZLIBSRC target so that it only needs
130# to be specified once. 130# to be specified once.
131$(ZSRCS) $(ZH): 131$(ZSRCS) $(ZH):
132 $(RM) $@ 132 $(RM) $@
133 $(COPY) $(ZLIBSRC)/$@ $@ 133 $(COPY) $(ZLIBSRC)/$@ $@
134 134
135# The unconfigured zconf.h varies in name according to the 135# The unconfigured zconf.h varies in name according to the
136# zlib release 136# zlib release
137$(ZCONF): 137$(ZCONF):
138 $(RM) $@ 138 $(RM) $@
139 @for f in zconf.h.in zconf.in.h zconf.h; do\ 139 @for f in zconf.h.in zconf.in.h zconf.h; do\
140 test -r $(ZLIBSRC)/$$f &&\ 140 test -r $(ZLIBSRC)/$$f &&\
141 echo $(COPY) $(ZLIBSRC)/$$f $@ &&\ 141 echo $(COPY) $(ZLIBSRC)/$$f $@ &&\
142 $(COPY) $(ZLIBSRC)/$$f $@ && exit 0;\ 142 $(COPY) $(ZLIBSRC)/$$f $@ && exit 0;\
143 done; echo copy: $(ZLIBSRC)/zconf.h not found; exit 1 143 done; echo copy: $(ZLIBSRC)/zconf.h not found; exit 1
144 144
145pnm2pngm.c: $(PROGSRC)/pnm2png.c 145pnm2pngm.c: $(PROGSRC)/pnm2png.c
146 $(RM) $@ 146 $(RM) $@
147 $(COPY) $(PROGSRC)/pnm2png.c $@ 147 $(COPY) $(PROGSRC)/pnm2png.c $@
148 148
149# End of makefile for pnm2pngm 149# End of makefile for pnm2pngm
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/pngusr.dfa b/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/pngusr.dfa
index 448f821..ee88443 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/pngusr.dfa
+++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/pngusr.dfa
@@ -1,35 +1,35 @@
1# pngminim/encoder/pngusr.dfa 1# pngminim/encoder/pngusr.dfa
2# 2#
3# Copyright (c) 2010-2011 Glenn Randers-Pehrson 3# Copyright (c) 2010-2011 Glenn Randers-Pehrson
4# 4#
5# This code is released under the libpng license. 5# This code is released under the libpng license.
6# For conditions of distribution and use, see the disclaimer 6# For conditions of distribution and use, see the disclaimer
7# and license in png.h 7# and license in png.h
8 8
9# First all the build options off: 9# First all the build options off:
10 10
11everything = off 11everything = off
12 12
13# Switch on the write code - this makes a minimalist encoder 13# Switch on the write code - this makes a minimalist encoder
14 14
15option WRITE on 15option WRITE on
16 16
17# You must choose fixed or floating point arithmetic: 17# You must choose fixed or floating point arithmetic:
18# option FLOATING_POINT on 18# option FLOATING_POINT on
19 19
20option FIXED_POINT on 20option FIXED_POINT on
21 21
22# You must chose the internal fixed point implementation or to 22# You must chose the internal fixed point implementation or to
23# use the system floating point. The latter is considerably 23# use the system floating point. The latter is considerably
24# smaller (by about 1kbyte on an x86 system): 24# smaller (by about 1kbyte on an x86 system):
25# option FLOATING_ARITHMETIC on 25# option FLOATING_ARITHMETIC on
26 26
27option FLOATING_ARITHMETIC off 27option FLOATING_ARITHMETIC off
28 28
29# Your program will probably need other options. The example 29# Your program will probably need other options. The example
30# program here, pnm2pngm, requires the following. Take a look 30# program here, pnm2pngm, requires the following. Take a look
31# at pnglibconf.h to find out the full set of what has to be 31# at pnglibconf.h to find out the full set of what has to be
32# enabled to make the following work. 32# enabled to make the following work.
33 33
34option SETJMP on 34option SETJMP on
35option STDIO on 35option STDIO on
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/pngusr.h b/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/pngusr.h
index bafbf13..2033aad 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/pngusr.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/encoder/pngusr.h
@@ -1,24 +1,24 @@
1/* minwrpngconf.h: headers to make a minimal png-write-only library 1/* minwrpngconf.h: headers to make a minimal png-write-only library
2 * 2 *
3 * Copyright (c) 2007, 2010-2011 Glenn Randers-Pehrson 3 * Copyright (c) 2007, 2010-2011 Glenn Randers-Pehrson
4 * 4 *
5 * This code is released under the libpng license. 5 * This code is released under the libpng license.
6 * For conditions of distribution and use, see the disclaimer 6 * For conditions of distribution and use, see the disclaimer
7 * and license in png.h 7 * and license in png.h
8 * 8 *
9 * Derived from pngcrush.h, Copyright 1998-2007, Glenn Randers-Pehrson 9 * Derived from pngcrush.h, Copyright 1998-2007, Glenn Randers-Pehrson
10 */ 10 */
11 11
12#ifndef MINWRPNGCONF_H 12#ifndef MINWRPNGCONF_H
13#define MINWRPNGCONF_H 13#define MINWRPNGCONF_H
14 14
15/* To include pngusr.h set -DPNG_USER_CONFIG in CPPFLAGS */ 15/* To include pngusr.h set -DPNG_USER_CONFIG in CPPFLAGS */
16 16
17/* List options to turn off features of the build that do not 17/* List options to turn off features of the build that do not
18 * affect the API (so are not recorded in pnglibconf.h) 18 * affect the API (so are not recorded in pnglibconf.h)
19 */ 19 */
20 20
21#define PNG_NO_WARNINGS 21#define PNG_NO_WARNINGS
22#define PNG_ALIGN_TYPE PNG_ALIGN_NONE 22#define PNG_ALIGN_TYPE PNG_ALIGN_NONE
23 23
24#endif /* MINWRPNGCONF_H */ 24#endif /* MINWRPNGCONF_H */