| synopsis || arguments || prev || next |
void share_buffering( kdu_codestream existing)
Java: void Share_buffering( Kdu_codestream existing)
[Declared in "../coresys/common/kdu_compressed.h"]
When two or more codestream objects are to be used simultaneously, considerable memory can be saved by encouraging them to use the same underlying service for buffering compressed data. This is because resources allocated for buffering compressed data are not returned to the system heap until the object is destroyed. By sharing buffering resources, one code-stream may use excess buffers already freed up by the other code-stream. This is particularly beneficial when implementing transcoders. The internal buffering service will not be destroyed until all codestream objects which are sharing it have been destroyed, so there is no need to worry about the order in which the codestream objects are destroyed.