Function grokj2k_sys::grk_compress_tile [−][src]
pub unsafe extern "C" fn grk_compress_tile(
codec: *mut grk_codec,
tileIndex: u16,
data: *mut u8,
data_size: u64
) -> bool
Expand description
Compress uncompressed data stored in a buffer. This method should be called right after grk_compress_start, and before grk_end_compress.
@param codec JPEG 2000 code stream @param tileIndex the index of the tile to write. At the moment, the tiles must be written from 0 to n-1 in sequence. @param data pointer to the data to write. Data is arranged in planar sequence, data_comp0, data_comp1 etc, The data should NOT BE INTERLEAVED. @param data_size this value is used to ensure the data being written is correct. The size must be equal to the sum for each component of tile_width * tile_height * component_size. component_size can be 1 or 2 bytes, depending on the precision of the given component.
@return true if the data could be written.