I mean a look-up table, for transforming R, G, and B values. Like this:
output_r = lookup_table_r[input_r];
output_g = lookup_table_g[input_g];
output_b = lookup_table_b[input_b];
This would typically be tables with 256 entries (since RGB values usually are 8-bit). It is also OK if there is only one table for all three channels.