
This is a CPU-based transformation method that performs the same transformation implemented on GPU shaders. The transformation gets an array of pixels in RGB float format and returns an array of pixels transformed. This will be used in the next commit to compare the results between CPU and GPU, validating the shader implementations. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4230>