| synopsis || arguments || prev || next |
kdu_long get_compressed_data_memory( bool get_peak_allocation=true)
Java: long Get_compressed_data_memory( boolean get_peak_allocation)
[Declared in "../coresys/common/kdu_compressed.h"]
Returns the total amount of heap memory allocated to storing compressed data. This includes compressed code-block bytes, coding pass length and R-D information and layering information. It does not include parsing or generation state information — the amount of memory required for this is reported by get_compressed_state_memory.
In the event that the share_buffering member function has been used to associated a single compressed data buffering service with multiple codestream objects, the value reported here represents the amount of memory consumed by all such codestream objects together.
If true (default), the value returned represents the maximum amount of storage ever allocated for storing compressed data. Otherwise, the value represents the current amount of storage actually being used to store compressed data. This latter quantity is useful if incremental flushing (see kdu_codestream::flush and/or kdu_codestream::trans_out) is to be used to minimize internal buffering. In that case, the incremental flushing may be partially controlled by the amount of compressed data which is currently in use.