bool ready_for_flush( )
Java: boolean Ready_for_flush( )
[Declared in "../coresys/common/kdu_compressed.h"]
Returns true if a call to flush or trans_out would be able to write at least one packet to the code-stream, given the constraints imposed by image tiling, the packet progression sequence in each relevant tile, and the amount of compressed data which is currently available. You should generally call this function before any call to flush or trans_out to avoid the wasteful generation of empty tile-parts.