Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5eae32d4 authored by Sally Qi's avatar Sally Qi
Browse files

[Lut] correct 3D Lut trilinear algorithm

This fixes
- The indices to get 8 corner points are not correct.
- The interpolation calculation is also wrong

The order to interpolate also matters. We flatten original[x][y][z] to
flat[x * size * size + y * size + z], therefore, the order to
interpolate is z, y and x

Bug: 404391247
Bug: 333088569
Test: test on silkfx
Flag: EXEMPT bugfix

Change-Id: Ifbeeb59b656fdb33c1cb4ff65cc542882804636e
parent ef9f0459
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment