Better handle SOS CSi values and order

Image SOS CSi markers should be distinct. Enforce that constraint when
reading multiple CSi values in get_sos().

TBR=darin@chromium.org
BUG=258723

Review URL: https://codereview.chromium.org/27117002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@228381 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Zero unused DHT huffman values at creation time

TBR=darin@chromium.org
BUG=299835

Review URL: https://codereview.chromium.org/27120002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@228394 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Disable libjpeg turbo getenv()

getenv() is used in libjpeg_turbo to get environment variable JPEGMEM
which overrides the default max_memory setting from jpeg_mem_init.
However, getenv() is not thread-safe. Now libjpeg may be called from
multiple threads when impl-side-painting is enabled.

BUG=322228
R=noel@chromium.org

Committed: 8692fb5

Review URL: https://codereview.chromium.org/100293002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@238232 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
update neon config in libjpeg turbo 

This patch upgrades the neon config for libjpeg_turbo: use arm_version instead
of armv7, and respect arm_neon_optional. 

BUG=234135
Review URL: https://codereview.chromium.org/95883002/
Patch from Mostyn Bramley-Moore <mostynb@opera.com>!



git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@238478 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Temporary limit NO_GETENV on Android only

This is for rolling the NO_GETENV change on Android only into m32.

Will revert this change immediately after this change is submitted.

BUG=322228
R=klobag@chromium.org

Review URL: https://codereview.chromium.org/110163003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@239583 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Temporarily revert "update neon config in libjpeg turbo"

This is for rolling the NO_GETENV change into m32.

Will revert this change asap after it is submitted.

This reverts commit 9652949c7866f976393848990dbebbd873f5f43f.

BUG=322228
TBR=

Review URL: https://codereview.chromium.org/110853003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@239591 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Revert the previous 2 temporary changes.

Reverted r239283 (Temporary limit NO_GETENV on Android only)
and r239591 (Temporary revert "update neon config in libjpeg turbo".

Will roll m32 libjpeg_turbo to r239591.

BUG=322228
TBR=

Review URL: https://codereview.chromium.org/108273007

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@239595 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Disable assembly optimizations in MemorySanitizer builds of libjpeg_turbo.

BUG=chromium:178409
NOTRY=true

Review URL: https://codereview.chromium.org/170323002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@251747 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Allow libjpeg_turbo to configure (using gyp) on FreeBSD.

Allow both the built-in and system yasm on FreeBSD, and add (prefix_dir)/include to the include path.

Obtained from:	George Liaskos <geo.liaskos@gmail.com>

BUG=
R=phajdan.jr@chromium.org
TBR=cpu@chromium.org

Review URL: https://codereview.appspot.com/56740043

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@257324 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add target_arch=arm64 support.

Currently only adding jsimd_none.c to get things building.

BUG=354405
R=wangxianzhu@chromium.org

Review URL: https://codereview.chromium.org/210933002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@259566 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Stop using "prefix_dir" in libjpeg.gyp.

This reverts part of r257324: prefix_dir is a variable defined only by
FreeBSD's Chromium packaging code and should not be used here upstream.

R=rmcilroy@chromium.org, phajdan.jr, rmcilroy

Review URL: https://codereview.chromium.org/214413007

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@259851 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix warning about always_inline attribute in libjpeg_turbo.

GCC 4.7/4.8 warns when __attribute__((always_inline)) is used without a
normal 'inline' keyword. Pull an equivalent of upstream r1188 to avoid
this warning.

R=rmcilroy@chromium.org, phajdan.jr@chromium.org

Review URL: https://codereview.chromium.org/218733003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@261103 4ff67af0-8c30-449e-8e8b-ad334ec8d88c