Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

void JB2Image::decode ( const GP< ByteStream > &  gbs,
JB2DecoderCallback *  cb = 0,
void *  arg = 0 

Decodes JB2 data from ByteStream bs#. This function decodes the image size and populates the shape and blit arrays. The callback function cb# is called when the decoder determines that the ByteStream data requires a shape dictionary which has not been set with {JB2Dict::set_inherited_dict}. The callback receives argument arg# and must return a suitable dictionary which will be installed as the inherited dictionary. The callback should return null if no such dictionary is found.

Reimplemented from JB2Dict.

Definition at line 333 of file JB2Image.cpp.

References init().

  JB2Codec::Decode codec;

Generated by  Doxygen 1.6.0   Back to index