Lens-Defocus Blur at the Cost of Dual Kawase
Most system frosted-glass effects are built on Dual Kawase, whose iterated small kernels converge to a Gaussian and smear highlights into a milky haze. The method described here replaces iteration with a single dense disc gather, preserves the weight of highlights in a heuristically expanded pseudo-HDR working space, and uses pyramid prefiltering, constant offsets, 4×4 block merging and symmetric unrolling to bring the cost in the Lab at R = 40 down to about 1.15 ms (a converted figure), on par with Dual Kawase's 1.20 ms in the same run. Ported into Android's SurfaceFlinger as a binary patch, and limited by its fixed pipeline, it takes about 1.35–1.47 ms with chromatic aberration, roughly 1.9 times the stock Kawase (0.75 ms).