X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libopenjpeg%2Fjp2.h;h=200e1d5c461914576e6fa9d160eefb20114de75d;hb=94a5e081e5fb5e8b1ad00b95960b96d7093241d1;hp=714ace0462de5b4d2fa6689eda836a85cac08a8f;hpb=958c615a835efb8bddce05e187a3a1344371ba69;p=openjpeg.git diff --git a/libopenjpeg/jp2.h b/libopenjpeg/jp2.h index 714ace04..200e1d5c 100644 --- a/libopenjpeg/jp2.h +++ b/libopenjpeg/jp2.h @@ -280,12 +280,7 @@ Read the JP2H box - JP2 Header box (used in MJ2) @return Returns true if successful, returns false otherwise */ opj_bool jp2_read_jp2h(opj_jp2_t *jp2, opj_cio_t *cio, opj_jp2_color_t *color); -/** -Creates a JP2 decompression structure -@param cinfo Codec context info -@return Returns a handle to a JP2 decompressor if successful, returns NULL otherwise -*/ -opj_jp2_t* jp2_create_decompress(opj_common_ptr cinfo); + /** Destroy a JP2 decompressor handle @param jp2 JP2 decompressor handle to destroy @@ -298,15 +293,7 @@ Decoding parameters are returned in jp2->j2k->cp. @param jp2 JP2 decompressor handle @param parameters decompression parameters */ -void jp2_setup_decoder_v2(opj_jp2_v2_t *jp2, opj_dparameters_t *parameters); -/** -Decode an image from a JPEG-2000 file stream -@param jp2 JP2 decompressor handle -@param cio Input buffer stream -@param cstr_info Codestream information structure if required, NULL otherwise -@return Returns a decoded image if successful, returns NULL otherwise -*/ -opj_image_t* opj_jp2_decode(opj_jp2_t *jp2, opj_cio_t *cio, opj_codestream_info_t *cstr_info); +void opj_jp2_setup_decoder(opj_jp2_v2_t *jp2, opj_dparameters_t *parameters); /** * Decode an image from a JPEG-2000 file stream @@ -315,10 +302,10 @@ opj_image_t* opj_jp2_decode(opj_jp2_t *jp2, opj_cio_t *cio, opj_codestream_info_ * @param cstr_info Codestream information structure if required, NULL otherwise * @return Returns a decoded image if successful, returns NULL otherwise */ -opj_bool jp2_decode_v2( opj_jp2_v2_t *jp2, - struct opj_stream_private *cio, +opj_bool opj_jp2_decode(opj_jp2_v2_t *jp2, + opj_stream_private_t *p_stream, opj_image_t* p_image, - struct opj_event_mgr * p_manager); + opj_event_mgr_t * p_manager); /**