X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=abi-check%2Fheaders_diff%2Fopenjpeg%2F2.3.1%2Fcurrent%2Fdiff.html;h=e526e12b1d3572da8ed3f9ccf2deb15de8199d00;hb=c1d853244d087946c6911747011707eb510444a5;hp=c04b050d7db81d6e62e5573736b1fade41138494;hpb=b4f08e33bd5cf7046dc27a8c13eecfe16e9b93e0;p=openjpeg.git diff --git a/abi-check/headers_diff/openjpeg/2.3.1/current/diff.html b/abi-check/headers_diff/openjpeg/2.3.1/current/diff.html index c04b050d..e526e12b 100644 --- a/abi-check/headers_diff/openjpeg/2.3.1/current/diff.html +++ b/abi-check/headers_diff/openjpeg/2.3.1/current/diff.html @@ -215,10 +215,106 @@ itialise_encode*/ OPJ_UINT32 lay_t, res_t, comp_t, prc_t, tx0_t, ty0_t; OPJ_UINT32 lay_t, res_t, comp_t, prc_t, tx0_t, ty0_t; } opj_poc_t; } opj_poc_t; + + skipping to change at line 1307 skipping to change at line 1341 + + /** /** + * Allocates worker threads for the compressor/decompressor. * Allocates worker threads for the compressor/decompressor. + * * + * By default, only the main thread is used. If this function is not used, * By default, only the main thread is used. If this function is not used, + * but the OPJ_NUM_THREADS environment variable is set, its value will be * but the OPJ_NUM_THREADS environment variable is set, its value will be + * used to initialize the number of threads. The value can be either an int +eger * used to initialize the number of threads. The value can be either an int +eger + * number, or "ALL_CPUS". If OPJ_NUM_THREADS is set and this function is ca +lled, * number, or "ALL_CPUS". If OPJ_NUM_THREADS is set and this function is ca +lled, + * this function will override the behaviour of the environment variable. * this function will override the behaviour of the environment variable. + * * + + * Currently this function must be called after opj_setup_decoder() and * This function must be called after opj_setup_decoder() and + * before opj_read_header(). * before opj_read_header() for the decoding side, or after opj_setup_encod + * er() + * Note: currently only has effect on the decompressor. * and before opj_start_compress() for the encoding side. + * * + + * @param p_codec decompressor handler * @param p_codec decompressor or compressor handler + * @param num_threads number of threads. * @param num_threads number of threads. + * * + + * @return OPJ_TRUE if the decoder is correctly set * @return OPJ_TRUE if the function is successful. + */ */ + OPJ_API OPJ_BOOL OPJ_CALLCONV opj_codec_set_threads(opj_codec_t *p_codec, OPJ_API OPJ_BOOL OPJ_CALLCONV opj_codec_set_threads(opj_codec_t *p_codec, + int num_threads); int num_threads); + + /** /** + * Decodes an image header. * Decodes an image header. + * * + * @param p_stream the jpeg2000 stream. * @param p_stream the jpeg2000 stream. + * @param p_codec the jpeg2000 codec to read. * @param p_codec the jpeg2000 codec to read. + * @param p_image the image structure initialized with the charac +teristics of encoded image. * @param p_image the image structure initialized with the charac +teristics of encoded image. + + skipping to change at line 1539 skipping to change at line 1572 + * Setup the encoder parameters using the current image and using user para +meters. * Setup the encoder parameters using the current image and using user para +meters. + * @param p_codec Compressor handle * @param p_codec Compressor handle + * @param parameters Compression parameters * @param parameters Compression parameters + * @param image Input filled image * @param image Input filled image + */ */ + OPJ_API OPJ_BOOL OPJ_CALLCONV opj_setup_encoder(opj_codec_t *p_codec, OPJ_API OPJ_BOOL OPJ_CALLCONV opj_setup_encoder(opj_codec_t *p_codec, + opj_cparameters_t *parameters, opj_cparameters_t *parameters, + opj_image_t *image); opj_image_t *image); + + /** /** + + * Specify extra options for the encoder. + * + * This may be called after opj_setup_encoder() and before opj_start_compre + ss() + * + * This is the way to add new options in a fully ABI compatible way, withou + t + * extending the opj_cparameters_t structure. + * + * Currently supported options are: + * <ul> + * <li>PLT=YES/NO. Defaults to NO. If set to YES, PLT marker segments, + * indicating the length of each packet in the tile-part header, will b + e + * written. Since 2.3.2</li> + * </ul> + * + * @param p_codec Compressor handle + * @param p_options Compression options. This should be a NULL terminat + ed + * array of strings. Each string is of the form KEY=VA + LUE. + * + * @return OPJ_TRUE in case of success. + * @since 2.3.2 + */ + OPJ_API OPJ_BOOL OPJ_CALLCONV opj_encoder_set_extra_options( + opj_codec_t *p_codec, + const char* const* p_options); + + /** + * Start to compress the current image. * Start to compress the current image. + * @param p_codec Compressor handle * @param p_codec Compressor handle + * @param p_image Input filled image * @param p_image Input filled image + * @param p_stream Input stgream * @param p_stream Input stgream + */ */ + OPJ_API OPJ_BOOL OPJ_CALLCONV opj_start_compress(opj_codec_t *p_codec, OPJ_API OPJ_BOOL OPJ_CALLCONV opj_start_compress(opj_codec_t *p_codec, + opj_image_t * p_image, opj_image_t * p_image, + opj_stream_t *p_stream); opj_stream_t *p_stream); + + /** /** -  End of changes. 6 change blocks.  - 9 lines changed or deleted 66 lines changed or added +  End of changes. 10 change blocks.  + 15 lines changed or deleted 103 lines changed or added
This html diff was produced by rfcdiff 1.41.The latest version is available from http://tools.ietf.org/tools/rfcdiff/