Imported from libpng-0.99n.tar
This commit is contained in:
parent
7cd899c707
commit
38d73aff67
2
libpng.3
2
libpng.3
@ -2306,7 +2306,7 @@ the first widely used release:
|
|||||||
0.97c 0.97 2.0.97
|
0.97c 0.97 2.0.97
|
||||||
0.98 0.98 2.0.98
|
0.98 0.98 2.0.98
|
||||||
0.99 0.99 2.0.99
|
0.99 0.99 2.0.99
|
||||||
0.99a-g 0.99 2.0.99
|
0.99a-m 0.99 2.0.99
|
||||||
1.0 1.00 2.1.0
|
1.0 1.00 2.1.0
|
||||||
|
|
||||||
Henceforth the source version will match the shared-library minor
|
Henceforth the source version will match the shared-library minor
|
||||||
|
4
png.h
4
png.h
@ -27,7 +27,7 @@
|
|||||||
* 0.97c 0.97 2.0.97
|
* 0.97c 0.97 2.0.97
|
||||||
* 0.98 0.98 2.0.98
|
* 0.98 0.98 2.0.98
|
||||||
* 0.99 0.99 2.0.99
|
* 0.99 0.99 2.0.99
|
||||||
* 0.99a-i 0.99 2.0.99
|
* 0.99a-m 0.99 2.0.99
|
||||||
* 1.00 1.00 2.1.0
|
* 1.00 1.00 2.1.0
|
||||||
*
|
*
|
||||||
* Henceforth the source version will match the shared-library minor
|
* Henceforth the source version will match the shared-library minor
|
||||||
@ -812,7 +812,7 @@ extern PNG_EXPORT(void,png_set_swap) PNGARG((png_structp png_ptr));
|
|||||||
extern PNG_EXPORT(void,png_set_packing) PNGARG((png_structp png_ptr));
|
extern PNG_EXPORT(void,png_set_packing) PNGARG((png_structp png_ptr));
|
||||||
#endif /* PNG_READ_PACK_SUPPORTED || PNG_WRITE_PACK_SUPPORTED */
|
#endif /* PNG_READ_PACK_SUPPORTED || PNG_WRITE_PACK_SUPPORTED */
|
||||||
|
|
||||||
#if defined(PNG_READ_PACKSWAP_SUPPORTED) || defined(PNG_WRITE_PACKSWAP_SUPPOR)
|
#if defined(PNG_READ_PACKSWAP_SUPPORTED) || defined(PNG_WRITE_PACKSWAP_SUPPORTED)
|
||||||
/* Swap packing order of pixels in bytes. */
|
/* Swap packing order of pixels in bytes. */
|
||||||
extern PNG_EXPORT(void,png_set_packswap) PNGARG((png_structp png_ptr));
|
extern PNG_EXPORT(void,png_set_packswap) PNGARG((png_structp png_ptr));
|
||||||
#endif /* PNG_READ_PACKSWAP_SUPPORTED || PNG_WRITE_PACKSWAP_SUPPOR */
|
#endif /* PNG_READ_PACKSWAP_SUPPORTED || PNG_WRITE_PACKSWAP_SUPPOR */
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngrutil.c - utilities to read a PNG file
|
/* pngrutil.c - utilities to read a PNG file
|
||||||
*
|
*
|
||||||
* libpng 0.99
|
* libpng 1.00
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.
|
* Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.
|
||||||
* Copyright (c) 1996, 1997 Andreas Dilger
|
* Copyright (c) 1996, 1997 Andreas Dilger
|
||||||
|
20
pngtest.c
20
pngtest.c
@ -79,8 +79,7 @@ write_row_callback(png_structp png_ptr, png_uint_32 row_number, int pass)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
|
#if defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
|
||||||
defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
|
|
||||||
/* example of using user transform callback (we don't transform anything,
|
/* example of using user transform callback (we don't transform anything,
|
||||||
but merely count the black pixels) */
|
but merely count the black pixels) */
|
||||||
|
|
||||||
@ -166,7 +165,7 @@ count_black_pixels(png_structp png_ptr, png_row_infop row_info, png_bytep data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* PNG_READ|WRITE_USER_TRANSFORM_SUPPORTED */
|
#endif /* PNG_WRITE_USER_TRANSFORM_SUPPORTED */
|
||||||
|
|
||||||
static int verbose = 0;
|
static int verbose = 0;
|
||||||
static int wrote_question = 0;
|
static int wrote_question = 0;
|
||||||
@ -563,11 +562,10 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname)
|
|||||||
png_set_read_status_fn(read_ptr, NULL);
|
png_set_read_status_fn(read_ptr, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
|
# if defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
|
||||||
defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
|
black_pixels=0;
|
||||||
black_pixels=0;
|
png_set_write_user_transform_fn(write_ptr, count_black_pixels);
|
||||||
png_set_write_user_transform_fn(write_ptr, count_black_pixels);
|
# endif
|
||||||
#endif
|
|
||||||
|
|
||||||
png_debug(0, "Reading info struct\n");
|
png_debug(0, "Reading info struct\n");
|
||||||
png_read_info(read_ptr, read_info_ptr);
|
png_read_info(read_ptr, read_info_ptr);
|
||||||
@ -949,8 +947,7 @@ main(int argc, char *argv[])
|
|||||||
fprintf(STDERR, "Testing %s:",argv[i]);
|
fprintf(STDERR, "Testing %s:",argv[i]);
|
||||||
kerror = test_one_file(argv[i], outname);
|
kerror = test_one_file(argv[i], outname);
|
||||||
if (kerror == 0)
|
if (kerror == 0)
|
||||||
#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
|
#if defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
|
||||||
defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
|
|
||||||
fprintf(STDERR, " PASS (%lu black pixels)\n",black_pixels);
|
fprintf(STDERR, " PASS (%lu black pixels)\n",black_pixels);
|
||||||
#else
|
#else
|
||||||
fprintf(STDERR, " PASS\n");
|
fprintf(STDERR, " PASS\n");
|
||||||
@ -996,8 +993,7 @@ main(int argc, char *argv[])
|
|||||||
if(kerror == 0)
|
if(kerror == 0)
|
||||||
{
|
{
|
||||||
if(verbose == 1 || i == 2)
|
if(verbose == 1 || i == 2)
|
||||||
#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
|
#if defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
|
||||||
defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
|
|
||||||
fprintf(STDERR, " PASS (%lu black pixels)\n",black_pixels);
|
fprintf(STDERR, " PASS (%lu black pixels)\n",black_pixels);
|
||||||
#else
|
#else
|
||||||
fprintf(STDERR, " PASS\n");
|
fprintf(STDERR, " PASS\n");
|
||||||
|
@ -225,7 +225,7 @@ png_write_end(png_structp png_ptr, png_infop info_ptr)
|
|||||||
png_charp
|
png_charp
|
||||||
png_convert_to_rfc1123(png_structp png_ptr, png_timep ptime)
|
png_convert_to_rfc1123(png_structp png_ptr, png_timep ptime)
|
||||||
{
|
{
|
||||||
static const char short_months[12][4] =
|
static PNG_CONST char short_months[12][4] =
|
||||||
{"Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
{"Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
||||||
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
|
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
|
||||||
|
|
||||||
|
@ -14,15 +14,12 @@ O=.obj
|
|||||||
E=.exe
|
E=.exe
|
||||||
|
|
||||||
# variables
|
# variables
|
||||||
OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O)
|
OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
|
||||||
pngwutil$(O)
|
|
||||||
OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
|
OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
|
||||||
OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
|
OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
|
||||||
OBJSL1 = +png$(O) +pngset$(O) +pngget$(O) +pngrutil$(O) +pngtrans$(O)
|
OBJSL1 = +png$(O) +pngset$(O) +pngget$(O) +pngrutil$(O) +pngtrans$(O)
|
||||||
OBJSL2 = +pngwutil$(O) +pngmem$(O) +pngpread$(O) +pngread$(O)
|
OBJSL2 = +pngwutil$(O) +pngmem$(O) +pngpread$(O) +pngread$(O) +pngerror$(O)
|
||||||
+pngerror$(O)
|
OBJSL3 = +pngwrite$(O) +pngrtran$(O) +pngwtran$(O) +pngrio$(O) +pngwio$(O)
|
||||||
OBJSL3 = +pngwrite$(O) +pngrtran$(O) +pngwtran$(O) +pngrio$(O)
|
|
||||||
+pngwio$(O)
|
|
||||||
|
|
||||||
all: libpng.lib pngtest.exe
|
all: libpng.lib pngtest.exe
|
||||||
|
|
||||||
@ -82,4 +79,4 @@ libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
|
|||||||
pngtest$(E): pngtest$(O) libpng.lib
|
pngtest$(E): pngtest$(O) libpng.lib
|
||||||
$(CC) $(LDFLAGS) pngtest.obj libpng.lib zlib.lib
|
$(CC) $(LDFLAGS) pngtest.obj libpng.lib zlib.lib
|
||||||
|
|
||||||
# End of makefile for libpng
|
# End of makefile for libpng
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# ------------- Watcom 10a+ -------------
|
# ------------- Watcom 10a+ -------------
|
||||||
MODEL=-mf
|
MODEL=-mf
|
||||||
CFLAGS= $(MODEL) -fpi87 -fp5 -5r -oaeilmnrt -s -i=..\zlib
|
CFLAGS= $(MODEL) -fpi87 -fp5 -5r -oaeilmnrt -s -zp4 -i=..\zlib
|
||||||
CC=wcc386
|
CC=wcc386
|
||||||
LD=wcl386
|
LD=wcl386
|
||||||
LIB=wlib -b -c
|
LIB=wlib -b -c
|
||||||
|
Reference in New Issue
Block a user