[libpng16] Imported from libpng-1.6.22beta03.tar

This commit is contained in:
Glenn Randers-Pehrson
2016-03-09 07:40:32 -06:00
parent 9295264b6f
commit 1a3fa1e091
20 changed files with 69 additions and 45 deletions

View File

@@ -3,23 +3,47 @@ Enabling SSE support
Copyright (c) 2016 Google, Inc.
Written by Mike Klein and Matt Sarett
To enable SSE support in libpng, apply intel_sse.patch in your build
directory, before running "configure". If you prefer, manually edit
configure.ac and Makefile.am, following the instructions below, then
then follow the instructions in section II of INSTALL in the main libpng
directory.
Then configure libpng with -DPNG_INTEL_SSE in CPPFLAGS. If you only
want to optimize reading 4bpp images, also use -DPNG_NO_INTEL_SSE_3BPP.
If you have moved intel_init.c and filter_sse2_intrinsics.c to a different
directory, be sure to update the '#include "../../pngpriv.h"' line in both
files if necessary to point to the correct relative location of pngpriv.h
with respect to the new location of those files.
If you are using a custom makefile instead of a configure-generated
makefile, you will have to update it manually to include contrib/intel/*.c
and to define PNG_INTEL_SSE and possibly PNG_NO_INTEL_SSE_3BPP.
To enable SSE support in libpng, follow the instructions in I, II, or III,
below:
I. Using patched "configure" scripts:
First, apply intel_sse.patch in your build directory.
patch -i contrib/intel/intel_sse.patch -p1
Then, if you are not building in a new GIT clone, e.g., in a tar
distribution, remove any existing pre-built configure scripts:
./configure --enable-maintainer-mode
make maintainer-clean
./autogen.sh --maintainer --clean
Finally, configure libpng with -DPNG_INTEL_SSE in CPPFLAGS. If you only
want to optimize reading 4bpp images, also use -DPNG_NO_INTEL_SSE_3BPP:
./autogen.sh --maintainer
CPPFLAGS="-DPNG_INTEL_SSE -DPNG_NO_INTEL_SSE_3BPP" ./configure [options]
make
II. Using a custom makefile:
If you are using a custom makefile makefile, you will have to update it
manually to include contrib/intel/*.o in the dependencies, and to define
PNG_INTEL_SSE and possibly PNG_NO_INTEL_SSE_3BPP.
III. Using manually updated "configure" scripts:
If you prefer, manually edit configure.ac and Makefile.am, following the
instructions below, then follow the instructions in section II of INSTALL
in the main libpng directory, then configure libpng with -DPNG_INTEL_SSE
in CPPFLAGS. If you only want to optimize reading 4bpp images, also use
-DPNG_NO_INTEL_SSE_3BPP.
1. Insert the following lines above the copyright line near the top of
configure.ac: