case J2K_CFMT: /* JPEG-2000 codestream */
{
/* Get a decoder handle */
- l_codec = opj_create_decompress_v2(CODEC_J2K);
+ l_codec = opj_create_decompress(CODEC_J2K);
break;
}
case JP2_CFMT: /* JPEG 2000 compressed image data */
{
/* Get a decoder handle */
- l_codec = opj_create_decompress_v2(CODEC_JP2);
+ l_codec = opj_create_decompress(CODEC_JP2);
break;
}
case JPT_CFMT: /* JPEG 2000, JPIP */
{
/* Get a decoder handle */
- l_codec = opj_create_decompress_v2(CODEC_JPT);
+ l_codec = opj_create_decompress(CODEC_JPT);
break;
}
default:
case J2K_CFMT: /* JPEG-2000 codestream */
{
/* Get a decoder handle */
- l_codec = opj_create_decompress_v2(CODEC_J2K);
+ l_codec = opj_create_decompress(CODEC_J2K);
break;
}
case JP2_CFMT: /* JPEG 2000 compressed image data */
{
/* Get a decoder handle */
- l_codec = opj_create_decompress_v2(CODEC_JP2);
+ l_codec = opj_create_decompress(CODEC_JP2);
break;
}
case JPT_CFMT: /* JPEG 2000, JPIP */
{
/* Get a decoder handle */
- l_codec = opj_create_decompress_v2(CODEC_JPT);
+ l_codec = opj_create_decompress(CODEC_JPT);
break;
}
default:
return PACKAGE_VERSION;
}
-
-
-
-opj_codec_t* OPJ_CALLCONV opj_create_decompress_v2(OPJ_CODEC_FORMAT p_format)
+opj_codec_t* OPJ_CALLCONV opj_create_decompress(OPJ_CODEC_FORMAT p_format)
{
opj_codec_private_t *l_codec = 00;
==========================================================
*/
-
/**
* Creates a J2K/JP2 decompression structure
* @param format Decoder to select
case J2K_CFMT: /* JPEG-2000 codestream */
{
/* Get a decoder handle */
- l_codec = opj_create_decompress_v2(CODEC_J2K);
+ l_codec = opj_create_decompress(CODEC_J2K);
break;
}
case JP2_CFMT: /* JPEG 2000 compressed image data */
{
/* Get a decoder handle */
- l_codec = opj_create_decompress_v2(CODEC_JP2);
+ l_codec = opj_create_decompress(CODEC_JP2);
break;
}
case JPT_CFMT: /* JPEG 2000, JPIP */
{
/* Get a decoder handle */
- l_codec = opj_create_decompress_v2(CODEC_JPT);
+ l_codec = opj_create_decompress(CODEC_JPT);
break;
}
default:
case J2K_CFMT: /* JPEG-2000 codestream */\r
{\r
/* Get a decoder handle */\r
- l_codec = opj_create_decompress_v2(CODEC_J2K);\r
+ l_codec = opj_create_decompress(CODEC_J2K);\r
break;\r
}\r
case JP2_CFMT: /* JPEG 2000 compressed image data */\r
{\r
/* Get a decoder handle */\r
- l_codec = opj_create_decompress_v2(CODEC_JP2);\r
+ l_codec = opj_create_decompress(CODEC_JP2);\r
break;\r
}\r
default:\r