libpng 1.6.10 enable NEON Optimizations

Change-Id: Iba40175651b4e384dd1f221113dcae46f711b0aa
Merge "libpng 1.6.10 enable NEON Optimizations"
am 9566386a: Merge "libpng 1.6.10 enable NEON Optimizations"

* commit '9566386ae8c57012fa4101b49826894706c7cffb':
  libpng 1.6.10 enable NEON Optimizations
Revert "libpng 1.6.10 enable NEON Optimizations"

breaks builds, more investigation needed

This reverts commit 61c00d54ff8b296a449a1810d2acc87262dfc314.

Change-Id: I5b607b8316fb3a61bc67d4077b0b7d5ceb9ea2d6
Merge "Revert "libpng 1.6.10 enable NEON Optimizations""
am 04f0b198: Merge "Revert "libpng 1.6.10 enable NEON Optimizations""

* commit '04f0b19899c66ffeadf74a7b9a6f404aef905b79':
  Revert "libpng 1.6.10 enable NEON Optimizations"
libpng - enable neon support

Neon support failed on aosp_arm-eng because that
build didn't have NEON support but yet NEON flags
were applied unconditionally.

This change conditions NEON flags on ARCH_ARM_HAVE_NEON.

Change-Id: Id8dbf98e6f2bdd85857ac0836fde1b4c6ff37cc5
Merge "libpng - enable neon support"
libpng NEON enablement for ARM64

Android.mk added ARM64 flags
pngpriv.h - gcc aarch64 __ARM_NEON support which enables intrinsics

Discussion http://comments.gmane.org/gmane.comp.graphics.png.devel/6601

Patches on libpng16 branch
http://sourceforge.net/p/libpng/code/ci/c45f1223cb5136edccd05ada1ca4498ed01c4087/
http://sourceforge.net/p/libpng/code/ci/fc932f7b03c1198fb66b35e5801a0d365f9a6e99/

Change-Id: Ifb64c4624a1b05c40d873b1b4c03ecda8de2d1b8
Merge "libpng NEON enablement for ARM64"
am 028c6d76: Merge "libpng - enable neon support"

* commit '028c6d76803bbe487a57e9dee80c3f55d8073260':
  libpng - enable neon support
am 60158365: Merge "libpng NEON enablement for ARM64"

* commit '60158365322e6284862363089208284d9a6208e1':
  libpng NEON enablement for ARM64
Turn on neon instrinsics for arm64 by turning off runtime detection.

+ Also turn off runtime detection for arm32 when we know
the build supports neon.

Change-Id: Ie6b99906888c1cdb8eed4b909146d2a4cfb0b3f6
Incrementally increase the index size based on when the data structures are allocated.

This should prevent crashes when we attempt to cleanup the codec when an image
fails to properly decode in tiled mode.

bug: 17433945
Change-Id: I145269b25bd2cf820f5c9b4b00ac15d4278dfbd1