YUV(NV21) to RGBA function NEON optimizations.

Used perf to measure the performance gains and the average of 3 runs
showed that:

Old NEON:
    Decodes 7200 1920x1080 frames in 92,372,429,902.33 cycles (~12.83E6 / frame)
    (stddev 3.22E-3)

New NEON:
    Decodes 7200 1920x1080 frames in 66,456,635,523.00 cycles ( ~9.23E6 / frame)
    (stddev 5.16E-5)

about 35% faster.

This code was wrapped in C framework that was developed to obtain these
measurements, and has not been tested within RenderScript.

Change-Id: I4f4e25b968f858f9fca973b36c105c715d90acbf
Signed-off-by: David Butcher <David.Butcher@arm.com>
rs: Fix aliasing violations

Fix aliasing violations so frameworks/rs can be compiled
without -fno-strict-aliasing

Change-Id: I39dee4712eca722c641741074fa1dbd49414b8cd
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
rs: Use -Wno-error - gcc 4.7 adds new warnings rs can't deal with

Change-Id: I38fe66629552d6f11be1bb69d5a93a05251614df
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
rs: Fix mismatch between ENTRY and END points

Change-Id: I0d53fe29379e8abe1dfd1dc96edaca810a531acb
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
rs: Fix build with ISO C++ 11 compilers

ISO C++ 11 no longer allows implicit narrowing during initialization

Change-Id: Iec3726fc12379e17300a372619378b77d033d841
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Merge tag 'android-4.2.2_r1' of https://android.googlesource.com/platform/frameworks/rs into 1.1

Android 4.2.2 release 1
Clang: Silence warnings (3/3)

With GCC >=4.7 Clang generates a lot of noise with various compiler flags,
and can even break the builds when using Flags like Graphite.  This can be
reproduced by doing the following:

Setting TARGET_EXTRA_CFLAGS with Graphite flags such as these
TARGET_EXTRA_CFLAGS +=  -fgraphite-identity \
                        -floop-block \
                        -floop-strip-mine \
                        -ftree-loop-distribution \
                        -ftree-loop-linear

Causes the following errors to occure and the builds to fail:

clang: error: argument unused during compilation: '-fgraphite-identity'
                                                  '-floop-block'
                                                  '-floop-strip-mine'
                                                  '-ftree-loop-distribution'
                                                  '-ftree-loop-linear'

Silence the errors by passing the -Qunused-arguments for CFLAGS

Singed-off-by: Paul Beeler <sparksco@gmail.com>
Merge tag 'android-4.3_r2.1' into cm-10.2

Android 4.3 release 2.1

Conflicts:
	cpu_ref/rsCpuIntrinsics_neon.S

Change-Id: I643d5eda90718e474101699eae2ed3bcb29683b1
Merge remote-tracking branch 'cm/cm-10.2' into HEAD

Conflicts:
	driver/rsdIntrinsicYuvToRGB.cpp

Change-Id: I1a569210ffacd334cdb0786754e60a5e1963df7a
rs: Fix build with ISO C++ 11 compilers

ISO C++ 11 no longer allows implicit narrowing during initialization

Change-Id: Ie359c075b6687962eeaa94d909b6cb92df65213f
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
rs: Fix RS_VERSION define

Commit 51dc7a27a8749d4ad43169bf39d4378529e132cd broke the RS_VERSION
define by setting LOCAL_CFLAGS := something after the addition of
LOCAL_CFLAGS += -DRS_VERSION=...

Make sure the := definition occurs before the += amendment.

Change-Id: I320ae9215f3ef2982c707a6ecaf5a14880ffa036
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Optipng -o7

Change-Id: I40b9e5ddef0ebb053680aec917a808edba9b6c6b
GCC/CLang: fix build with experimental compiler flags

Change-Id: Iae56847d585e0a6ddfe9562e36ec9da9fcbb519f
Merge tag 'android-4.3_r3' into HEAD

Android 4.3 release 3.0
Merge tag 'android-4.3_r3.1' of https://android.googlesource.com/platform/frameworks/rs into cm-10.2

Android 4.3 Release 3.1
Merge tag 'android-4.4_r1' into cm-11.0

Android 4.4 Release 1.0
Merge remote-tracking branch 'cm/cm-11.0' into HEAD

Conflicts:
	cpp/Android.mk
	cpu_ref/rsCpuIntrinsic3DLUT.cpp
	cpu_ref/rsCpuIntrinsicInlines.h

Change-Id: I4c1c51f5289618d6fc6221bf48e280aa90715008
Merge tag 'android-4.4.1_r1' into HEAD

Android 4.4.1 Release 1
Merge branch 'android-4.4.1_r1' into HEAD
Replace "mips" with "mipmaps" since the MIPS gcc compiler defines mips to 1.

Change-Id: Ia48ffa714ff9e3a2e3b64ea1edd11ad0f6bf354a