~cosme/ubuntu/precise/freeimage/freeimage-3.15.1

« back to all changes in this revision

Viewing changes to Source/LibOpenJPEG/jp2.h

  • Committer: Stefano Rivera
  • Date: 2010-07-24 15:35:51 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: stefanor@ubuntu.com-20100724153551-6s3fth1653huk31a
Tags: upstream-3.13.1
ImportĀ upstreamĀ versionĀ 3.31.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
Decode an image from a JPEG-2000 file stream
137
137
@param jp2 JP2 decompressor handle
138
138
@param cio Input buffer stream
 
139
@param cstr_info Codestream information structure if required, NULL otherwise
139
140
@return Returns a decoded image if successful, returns NULL otherwise
140
141
*/
141
 
opj_image_t* jp2_decode(opj_jp2_t *jp2, opj_cio_t *cio);
 
142
opj_image_t* jp2_decode(opj_jp2_t *jp2, opj_cio_t *cio, opj_codestream_info_t *cstr_info);
142
143
/**
143
144
Creates a JP2 compression structure
144
145
@param cinfo Codec context info
163
164
@param jp2 JP2 compressor handle
164
165
@param cio Output buffer stream
165
166
@param image Image to encode
166
 
@param index Name of the index file if required, NULL otherwise
 
167
@param cstr_info Codestream information structure if required, NULL otherwise
167
168
@return Returns true if successful, returns false otherwise
168
169
*/
169
 
bool jp2_encode(opj_jp2_t *jp2, opj_cio_t *cio, opj_image_t *image, char *index);
 
170
bool jp2_encode(opj_jp2_t *jp2, opj_cio_t *cio, opj_image_t *image, opj_codestream_info_t *cstr_info);
170
171
/* ----------------------------------------------------------------------- */
171
172
/*@}*/
172
173