rename opj_create_compress_v2 to opj_create_compress

This commit is contained in:
Mickael Savinaud 2012-08-09 12:28:51 +00:00
parent 9a9897a9de
commit d009cf618a
4 changed files with 6 additions and 6 deletions

View File

@ -1794,13 +1794,13 @@ int main(int argc, char **argv) {
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:

View File

@ -482,7 +482,7 @@ opj_bool OPJ_CALLCONV opj_setup_decoder(opj_codec_t *p_codec,
/* ---------------------------------------------------------------------- */
/* 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;

View File

@ -1369,7 +1369,7 @@ OPJ_API opj_bool OPJ_CALLCONV opj_decode_tile_data( opj_codec_t *p_codec,
* @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

View File

@ -244,11 +244,11 @@ int main (int argc, char *argv[])
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;