grk_compress_init rejects every component whose data_type is not GRK_INT_32. Decompress can return GRK_INT_16, and signed samples up to 16 bits (unsigned up to 15) already fit in that buffer. Accept GRK_INT_16 as compress input when the samples fit.
grk_compress_init rejects every component whose data_type is not GRK_INT_32.
Decompress can return GRK_INT_16, and signed samples up to 16 bits (unsigned up to 15) already fit in that buffer.
Accept GRK_INT_16 as compress input when the samples fit.