From realtime CameraX filters to General Purpose GPU computing in simple steps

July 21, 2025 31 min Free

Description

This talk explores how to leverage General Purpose GPU (GPGPU) computing on Android for real-time image processing. It delves into CameraX's capabilities, including ImageCapture and SurfaceProcessor, and explains how shaders (GLSL) can be used to manipulate pixels efficiently. The presentation covers both fragment and compute shaders, showcasing how to perform complex transformations like grayscale and sepia effects, as well as more advanced computations like noise generation and applying filters using compute shaders. Examples demonstrate the significant performance gains achievable by offloading tasks to the GPU compared to traditional CPU-based processing.