Skip to content

RawLens 2.4.5 - LK-R network on the NPU, B&W mode and ACES 2.0

Choose a tag to compare

@matthew777777 matthew777777 released this 18 Nov 20:50
· 140 commits to refactor/2.0 since this release

Changes since 2.3.94.

LK-R — Lucas–Kanade Reloaded Lite

Faster on phones. Measured on a Mali-G615 phone (Dimensity 7300) with an 8-frame burst, alternating A/B runs. Results vary by device, scene and settings.

Change Before → after
Next tile prepared on the CPU while the GPU solves 1× full: 19.3 / 18.8 s → 14.7 / 14.8 s (−22 %); 2× zoom: 15.1 / 15.7 → 14.5 / 14.2 s
Cooperative DCT denoise for mobile GPUs (no register spill, full occupancy on Mali and Adreno) DCT GPU time 1×: 3.4 / 2.4 s → 1.1 / 1.1 s; 2× zoom: 2.5 / 2.1 → 0.9 / 1.4 s
Coarse global alignment capped at 16 iterations (noisy frames used to run all 40) Daylight coarse alignment 1.36 / 1.29 → 0.81 / 0.78 s; merge 16.3 / 14.1 → 13.7 / 13.1 s. Image unchanged on all 14 test bursts.
Colour-difference step done in place One buffer copy less per fit step; output bit-identical

All of these give the same image (bit-identical or within float rounding).

Better image:

  • Learned colour network, on by default for phones with an NPU. A small network (22K parameters) runs after the merge and removes colour dots and colour zipper. It changes colour only: brightness, detail and grain stay exactly as merged, so nothing gets sharpened. Kodak benchmark: colour accuracy 34.5 → 38.6 dB.
    • It runs entirely on the NPU: MediaTek APU or Qualcomm Hexagon, through Android's NNAPI and the phone's own driver. RawLens bundles no proprietary NPU library. Every layer must run on the NPU, or the network isn't used there. Checked on Dimensity 7300: the NPU output matches the reference.
    • On the NPU it runs while the GPU fits the next tile, so it costs almost nothing.
    • Phones without an NPU: off by default. When switched on, a smaller 12-channel network runs on the GPU and adds GPU time to each merge.
    • Settings → Merge → LK-R: Network. Saved choices are kept.
  • Long-straight-edge smoothing, on by default. It removes the dotted / beaded look on poles, rails and road lines (pole dotting −45 %), with edge sharpness unchanged. Foliage, rocks and road texture are untouched (0.000–0.003 % of their pixels change). It costs about 1 % of a 2× merge.
  • Noise-following DCT look. Colour cleanup is always on, and its noise level is now measured from the merged image per tile (it previously under-read the real merged noise about 3.3×). An optional "LK-R shadow luma denoise" removes some luma noise above mid-grey's grain level (10–25 %), so shadows keep organic grain.

MFSR

  • Enable continuous motion sampling and the wider gather / green-detail reconstruction path for Wronski merges. Reduce the default kernel stretch from 4 to 3. GPU image-quality and device-performance validation of these latest changes remains pending.

Photo

  • B&W photosite mode (Off / Clean / Detail; Clean by default) from the quick controls: a monochrome DNG (_BW.dng) plus JPEG / JXL, for single shots and HDR+ merges, with a B&W viewfinder preview. Clean uses 2×2 binning for lower noise; Detail retains full resolution. The colour DNG can optionally be kept. Previous Auto selections migrate to Clean; explicit Off and Detail choices are preserved. Any failure falls back to the colour path.
  • ACES 2.0 tone mapper alongside Sigmoid, Basic and AgX, in photos, previews and the viewfinder, built from the OpenColorIO 2.6.0 transforms (sRGB and Display P3).
  • Fix: a crash (out of memory) when saving 50 MP B&W Detail JPEGs.
  • Lift straight-out-of-camera shadows while preserving highlight protection.
  • EXIF composite-image tags on merged shots.
  • Classic film shutter sound; stronger photo haptics with an on/off switch and strength slider.
  • Develop-DNGs queue moved to the top of Photo settings.
  • RapidRAW median filters use portable 128-thread workgroups (the GLES 3.1 guaranteed size), so they run on every GPU.

Video

  • Encoded Video record kernels redesigned for mobile GPUs, with bit-identical output. GPU main kernel on Mali-G615: 1080p 8.4 → 4.5 ms, 1440p 14.2 → 7.4 ms, 4K 20.2 → 10.7 ms (about 2× faster). 1080p frame time p95 20.3 → 16.9 ms, with no frames over budget. Odd-width P010 output fixed.
  • Restyled RAW video frame-rate picker.

Camera and fixes

  • Manual lens IDs in discovery and lens settings.
  • Test autofocus during lens discovery, show the result for each route and offer Re-test autofocus in the lens picker.
  • Improve Xiaomi 14 Ultra tap-focus recovery with an immediate continuous-AF retry and a manual-distance hold fallback.
  • Fix residual lens shading in preview and recording.
  • Fix a premature timeout during serialized RAW bursts.
  • Keep Always use ISP viewfinder in Settings → General → Viewfinder, including for full-resolution capture. This uses the camera preview instead of RAW rendering when the camera supports a preview stream alongside RAW. Only the separate ISP preview during LK-R merge option is removed. The restored display path compiles; device stream compatibility and visual behavior still need validation.

Full changelog: 2.3.94...2.4.5