| synopsis || arguments || prev || next |

kdu_codestream::create

Java: Kdu_codestream::Create

Overload navigation: 1, 2, 3

void create( siz_params * siz, kdu_compressed_target * target)

Java: void Create( Siz_params siz, Kdu_compressed_target target)

[Declared in "../coresys/common/kdu_compressed.h"]

Go to class description.


Synopsis

Constructs the internal code-stream management machinery, to be accessed via the kdu_codestream interface and its close relatives, kdu_tile, kdu_tile_comp, kdu_resolution, kdu_subband, kdu_precinct and kdu_block.

We refer to the machinery created by this particular version of the overloaded create function as an output codestream, for want of more appropriate terminology. The function prepares the internal machinery for generation of a new JPEG2000 code-stream. This is required by applications which need to compress an image, or applications which need to transcode an existing compressed image into a new one. In any event, the distinguishing features of this version of the create function are that it requires a compressed data target object and that it requires a siz_params object, identifying the dimensional properties (image component dimensions and related info) which establish the structural configuration of a JPEG2000 code-stream.

The function is deliberately not implemented as a constructor, since robust exception handlers might not always be able to clean up partially constructed objects if an error condition is thrown from within a constructor (as a general rule, constructors are the least robust place to do significant work). For safety, this function should never be invoked on a non-empty kdu_codestream interface (one whose exists function returns true).


Arguments

siz [siz_params *]

Pointer to a siz_params object, which the caller must supply to permit determinatin of the basic structure. The contents of this object must have been filled out (and finalized) by the caller. An internal copy of the object is made for use by the internal machinery, so the caller is free to destroy the supplied siz object at any point.

target [kdu_compressed_target *]

Points to the object which is to receive the compressed JPEG2000 code-stream when or as it becomes available.


| top || synopsis || arguments || prev || next |