opj_destroy_cstr_index(&cstr_index);
/* destroy the codestream info */
- opj_destroy_cstr_info_v2(&cstr_info);
+ opj_destroy_cstr_info(&cstr_info);
}
*
*
*/
-void OPJ_CALLCONV opj_destroy_cstr_info_v2(opj_codestream_info_v2_t **cstr_info) {
+void OPJ_CALLCONV opj_destroy_cstr_info(opj_codestream_info_v2_t **cstr_info) {
if (cstr_info) {
if ((*cstr_info)->m_default_tile_info.tccp_info){
Destroy Codestream information after compression or decompression
@param cstr_info Codestream information structure
*/
-OPJ_API void OPJ_CALLCONV opj_destroy_cstr_info_v2(opj_codestream_info_v2_t **cstr_info);
+OPJ_API void OPJ_CALLCONV opj_destroy_cstr_info(opj_codestream_info_v2_t **cstr_info);
if(!opj_get_decoded_tile(l_codec, l_stream, image, tile_index )){ \
fprintf(stderr, "ERROR -> j2k_to_image: failed to decode tile %d\n", tile_index); \
opj_stream_destroy(l_stream); \
- opj_destroy_cstr_info_v2(&cstr_info); \
+ opj_destroy_cstr_info(&cstr_info); \
opj_destroy_codec(l_codec); \
opj_image_destroy(image); \
fclose(fsrc); \
opj_stream_destroy(l_stream);
/* Destroy code stream info */
- opj_destroy_cstr_info_v2(&cstr_info);
+ opj_destroy_cstr_info(&cstr_info);
/* Free remaining structures */
opj_destroy_codec(l_codec);