Tests all library functions with all input types and outputs timing data via
rsDebug. Also tests all basic numerical operations and type conversions.
Change-Id: I39038606776bbf7361d5fc7a9a3ec3b05b8e6ae0
Lightly refactor original filter and rework math for performance. Add approx
version which uses approx_rsqrt, approx_sqrt, and the new approx_atan function.
Change-Id: I796d50da05c1684167696ea4da37d7d75fc78626
Currently uses approx_recip and approx_length (thus approx_sqrt). Will use
approx_exp once this is implemented.
Change-Id: I9f01023105e82a82262100d8ed831e9250a05ed8
Add a vignette filter, mostly based on the GLSL version in
android.filterpacks.imageproc.VignetteFilter but with more input options.
Change-Id: I6f38a0ca09d35566104ec8e8523548399b8704a0
Add a fisheye filter, mostly based on the GLSL version in
android.filterpacks.imageproc.FisheyeFilter but with the configurable center
functionality from the JNI version in the original PhotoEditor.
Change-Id: I6be7d82bf2ad564919f9e675ac9a445fae6c440a
All operations on unsigned tests were previously commented out due to
bug 6764163. Signed char vectors remain commented out due to bug
6865598, but unsigned char vectors appear to be working properly.
Change-Id: I723c43fe69a78c8f8e03ed1e4db95f73966fcaad
BUG=6764163
This verifies that we don't trample memory with our unsigned set_*()
operations. Previous versions of llvm-rs-cc generated code that could
accidentally overwrite neighboring locations (due to setVar() being
called on the larger Dalvik types for unsigned globals).
Change-Id: I014496122a05cf425efa160978d0738a5233742e
Tests for min, max, fmin, and fmax. Currently has tests for chars and longs as well as all unsigned types disabled due to outstanding Renderscript/LLVM bugs. Will enable those tests cases once bugs are fixed.
Change-Id: I80474f7b68a7916c2172056421db7d170d00f1cb
This change adds a v11 version of Fountain, as well as v11 and v14 versions of
RSTest. All tests currently build and pass on the required platforms.
This also fixes an initialization bug for RSTest running on older devices.
If we don't directly initialize "each" component of the vector types, it can
result in uninitialized memory (or zero) being used for divisors (particularly
with the char vector types). This triggers SIGFPE with the latest pending
Clang/LLVM rebase.
Change-Id: I92a70c2aeed4e20f110b1cb24ee926fc27be9dbb