Source: StackOverflow, StackOverflow
Question: How to Apply Color LUT to bitmap images for filter effects in Android?
Answer:
final static int X_DEPTH = 64;
final static int Y_DEPTH = 64; //One little square in the LUT has 64x64 pixels in it
final static int ROW_DEPTH = 8;