Gamma handling refactor
Gets rid of multiple definitions for gamma LUTs, uses the correct APIs to read the gamma state and allows to set arbitrary sized LUTs.
Gets rid of multiple definitions for gamma LUTs, uses the correct APIs to read the gamma state and allows to set arbitrary sized LUTs.