~/talk

A LUT (lot) of image filters on Android

Talkat droidCon Berlin 2019 · 2019-07-01..07-03· [android, web-performance]
slides:none on file

Implementation uses RenderScript on Android to apply 3D LUTs for image filters, converting designer LUTs (HALD/horizontal strip) into a RenderScript Allocation. Uses 64x64x64 LUT (~262k colors) stored as a strip, and discovers RenderScript intrinsic 3DLUT fails on alpha, so a custom RenderScript is implemented that trilinear interpolation and un-premultiply alpha during lookup. Transparent tests expose array out‑of‑bounds crashes fixed by clamping. Resulting pipeline produces correct filters with reduced banding but only moderate performance; further optimization of interpolation and RenderScript remains.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:55Different filter approaches
  3. 7:12What is a 3D lookup table
  4. 10:45RenderScript for LUT processing
  5. 16:18Custom RenderScript script
  6. 21:10Pre-multiplied alpha issue
  7. 24:22Banding and interpolation
  8. 27:35Debugging RenderScript crashes
  9. 29:19Handling LUT formats
  10. 31:05Conclusion and references
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.