Hella-Parallel Compute with RenderScript
- Example app for RGB Rendering for Bitmaps and the camera viewfinder.
- Associated talk: Hella-Parallel Compute with RenderScript at droidcon sf 2017.
Current state: The app works! It's mostly kotlin now. The Cool algebra part is WIP (see below).
Cool algebra, Lydia! Thanks!
- This repo is also being used as a base-app and test harness for a new project. It's focused on trying to define an abstract algebra of Colors, Photos, and ColorCubes (3D LUTs), and implement it on Android using Renderscript. It's WIP, but pretty fun.
- Note: As part of this I converted :hella and most of :app to Kotlin.
RS References!
Essentials + source code (somtimes the best docs we have)
- Good examples! In particular the ImageProcessing2 module.
Excellent examples with walkthoughs
Marchetti book + examples
Renderscript: Parallel Computing on Android the Easy Way
Google codelabs: Artistic style transfer and other advanced image editing
- neural network compute on device!
Intel: Multimedia API Playback with RenderScript Effect
- shows usage for MediaCodec and ImageFormat.NV21 YUV format
Digging deeper
RS driver reference implementations (C++)
RS scripting language offline compiler (slang)
RS scripting language back-end (jit, on device) compiler (bcc)
Good general references
https://source.android.com/devices/graphics/architecture
https://developer.android.com/training/articles/perf-jni.html
https://developer.android.com/training/articles/smp.html
Other options for compute (mostly GLES)
https://github.com/CyberAgent/android-gpuimage
https://github.com/googlesamples/android-MediaEffects
https://github.com/INDExOS/media-for-mobile
https://developer.android.com/guide/topics/graphics/2d-graphics.html
project sources:
https://github.com/googlesamples/android-HdrViewfinder