diff options
| author | Antonin Descampe <antonin@gmail.com> | 2014-04-23 07:46:11 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2014-04-23 07:46:11 +0000 |
| commit | 7aece5e8e7d4214d140a45aca50a824ff8092924 (patch) | |
| tree | 85599bd1108ecab5b12fad8dcea894f250b97145 /tests/unit/testempty2.c | |
| parent | 8d93eae64acd18fac3c856e0a311905359233b96 (diff) | |
[trunk]Replaced deprecated opj_stream_set_user_data function from API
with its 'v3' version, and removed all other 'v3' suffixes from API.
Diffstat (limited to 'tests/unit/testempty2.c')
| -rw-r--r-- | tests/unit/testempty2.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unit/testempty2.c b/tests/unit/testempty2.c index abafa5b3..6b395480 100644 --- a/tests/unit/testempty2.c +++ b/tests/unit/testempty2.c @@ -115,20 +115,20 @@ int main(int argc, char *argv[]) opj_setup_encoder(l_codec, ¶meters, image); - l_stream = opj_stream_create_default_file_stream_v3(parameters.outfile,OPJ_FALSE); + l_stream = opj_stream_create_default_file_stream(parameters.outfile,OPJ_FALSE); if( !l_stream ) { fprintf( stderr, "Something went wrong during creation of stream\n" ); opj_destroy_codec(l_codec); opj_image_destroy(image); - opj_stream_destroy_v3(l_stream); + opj_stream_destroy(l_stream); return 1; } assert(l_stream); bSuccess = opj_start_compress(l_codec,image,l_stream); if( !bSuccess ) { - opj_stream_destroy_v3(l_stream); + opj_stream_destroy(l_stream); opj_destroy_codec(l_codec); opj_image_destroy(image); return 0; @@ -140,7 +140,7 @@ int main(int argc, char *argv[]) bSuccess = opj_end_compress(l_codec, l_stream); assert( bSuccess ); - opj_stream_destroy_v3(l_stream); + opj_stream_destroy(l_stream); opj_destroy_codec(l_codec); opj_image_destroy(image); @@ -159,7 +159,7 @@ int main(int argc, char *argv[]) bSuccess = opj_setup_decoder(d_codec, &dparameters); assert( bSuccess ); - l_stream = opj_stream_create_default_file_stream_v3(outputfile,1); + l_stream = opj_stream_create_default_file_stream(outputfile,1); assert( l_stream ); bSuccess = opj_read_header(l_stream, d_codec, &image); @@ -171,7 +171,7 @@ int main(int argc, char *argv[]) bSuccess = opj_end_decompress(l_codec, l_stream); assert( bSuccess ); - opj_stream_destroy_v3(l_stream); + opj_stream_destroy(l_stream); opj_destroy_codec(d_codec); |
