Fork of jpeg2k code from https://code.google.com/p/jj2000/.