X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fopenjp2%2Fjp2.h;h=94138832ac329b5edf01478ea96c4e0c61c5c214;hb=05b3afd28f8c3f9551d551c565609062f57f5837;hp=c11d2f3135f489f066c2ccd2cf0a83bf9845ce98;hpb=d19a4ab6768c48b542c0add922eba0dcddae9ffe;p=openjpeg.git diff --git a/src/lib/openjp2/jp2.h b/src/lib/openjp2/jp2.h index c11d2f31..94138832 100644 --- a/src/lib/openjp2/jp2.h +++ b/src/lib/openjp2/jp2.h @@ -90,7 +90,7 @@ typedef enum JP2_IMG_STATE; /** -Channel description: channel index, type, assocation +Channel description: channel index, type, association */ typedef struct opj_jp2_cdef_info { @@ -235,19 +235,6 @@ opj_jp2_img_header_writer_handler_t; /*@{*/ /* ----------------------------------------------------------------------- */ -/** - * Writes the Jpeg2000 file Header box - JP2 Header box (warning, this is a super box). - * - * @param jp2 the jpeg2000 file codec. - * @param stream the stream to write data to. - * @param p_manager user event manager. - * - * @return true if writing was successful. -*/ -OPJ_BOOL opj_jp2_write_jp2h(opj_jp2_t *jp2, - opj_stream_private_t *stream, - opj_event_mgr_t * p_manager ); - /** Setup the decoder decoding parameters using user parameters. Decoding parameters are returned in jp2->j2k->cp. @@ -278,8 +265,9 @@ OPJ_BOOL opj_jp2_decode(opj_jp2_t *jp2, * @param parameters compression parameters * @param image input filled image * @param p_manager FIXME DOC + * @return OPJ_TRUE if successful, OPJ_FALSE otherwise */ -void opj_jp2_setup_encoder( opj_jp2_t *jp2, +OPJ_BOOL opj_jp2_setup_encoder( opj_jp2_t *jp2, opj_cparameters_t *parameters, opj_image_t *image, opj_event_mgr_t * p_manager);