case J2K_CFMT: /* JPEG-2000 codestream */
{
/* Get a decoder handle */
- l_codec = opj_create_compress_v2(CODEC_J2K);
+ l_codec = opj_create_compress(CODEC_J2K);
break;
}
case JP2_CFMT: /* JPEG 2000 compressed image data */
{
/* Get a decoder handle */
- l_codec = opj_create_compress_v2(CODEC_JP2);
+ l_codec = opj_create_compress(CODEC_JP2);
break;
}
default:
/* ---------------------------------------------------------------------- */
/* COMPRESSION FUNCTIONS*/
-opj_codec_t* OPJ_CALLCONV opj_create_compress_v2(OPJ_CODEC_FORMAT p_format)
+opj_codec_t* OPJ_CALLCONV opj_create_compress(OPJ_CODEC_FORMAT p_format)
{
opj_codec_private_t *l_codec = 00;
* @param format Coder to select
* @return Returns a handle to a compressor if successful, returns NULL otherwise
*/
-OPJ_API opj_codec_t* OPJ_CALLCONV opj_create_compress_v2(OPJ_CODEC_FORMAT format);
+OPJ_API opj_codec_t* OPJ_CALLCONV opj_create_compress(OPJ_CODEC_FORMAT format);
/**
Destroy a compressor handle
len = strlen( output_file );
if( strcmp( output_file + len - 4, ".jp2" ) == 0 )
{
- l_codec = opj_create_compress_v2(CODEC_JP2);
+ l_codec = opj_create_compress(CODEC_JP2);
}
else
{
- l_codec = opj_create_compress_v2(CODEC_J2K);
+ l_codec = opj_create_compress(CODEC_J2K);
}
if (!l_codec) {
return 1;