revamp VP8LColorSpaceTransform() a bit

-> remove the 'color_transform' multiplier, use more constants, etc.

This function is particularly critical, mostly because of
GetBestColorTransformForTile().
Loop is a bit faster (maybe ~1%)

Change-Id: I90c96a3437cafb184773acef55c77e40c224388f
Android.mk: avoid gcc-specific flags with clang

Change-Id: Idb1ed2bb1dd5d9f65ca07185ef9838e587dc4e64
dec_neon.c: add TransformAC3

based on SSE2 version

Change-Id: Icc6782955253c98e83d5984153b596ef5f1c0d34
MIPS: MIPS32r1: clang macro warning resolved

.set macro - Enables the expansion of macro instructions.

Change-Id: I1e44fe056798aeff803cc97171724d21da1fc2bf
WebP Decoder: Mark some truncated bitstreams as invalid

Specifically, check for truncated RIFF and/or VP8(L) chunks.

For more context, see:
https://code.google.com/p/webp/issues/detail?id=185

Change-Id: I91ca2dbf05080660fbc513244fc53adc57fc04b5
Merge "MIPS: MIPS32r1: clang macro warning resolved"
VP8LBitWriter: use a bit-accumulator

* simplify the endian logic
* remove the need for memset()
* write 16 or 32 at a time (likely aligned)

Makes the code a bit faster on ARM (~1%)

Change-Id: I650bc5654e8d0b0454318b7a78206b301c5f6c2c
Merge "dec_neon.c: add TransformAC3"
Optimize cache estimate logic.

Optimize 'VP8LCalculateEstimateForCacheSize' for lower quality ranges (Q < 50).
The entropy is generally lower for higher cache_bits, so start searching from
higher cache_bits and settle for a local minima, instead of evaluating all
values.

This speeds up the lossless encoding at lower qualities by 10-15%.

Change-Id: I33c1e958515a2549f2e6f64b1aab3f128660dcec
Increase initial buffer size for VP8L Bit Writer.

Increase the initial buffer size for VP8L Bit Writer from 4bpp to 8bpp.
The resize buffer is expensive (requires realloc and copy) and this additional
memory (0.5 * W * H) doesn't add much overhead on the lossless encoder.

Change-Id: Ic1fe55cd7bc3d1afadc799e4c2c8786ec848ee66
fix missing __BIG_ENDIAN__ definition on some platform

e.g: mips-gcc doesn't define __BIG_ENDIAN__

Change-Id: Ic06bf453164ddddc69a523e7845a4993e14a1af2
Merge "fix missing __BIG_ENDIAN__ definition on some platform"
cosmetics: backward_references.c: reindent after a7d2ee3

a7d2ee3 Optimize cache estimate logic.

Change-Id: I81dd1eea49f603465dc5f3afae8a101e5205e963
Merge "cosmetics: backward_references.c: reindent after a7d2ee3"