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/test_tile_decoder.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/test_tile_decoder.c')
| -rw-r--r-- | tests/test_tile_decoder.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/test_tile_decoder.c b/tests/test_tile_decoder.c index 96b5e829..26d3a16c 100644 --- a/tests/test_tile_decoder.c +++ b/tests/test_tile_decoder.c @@ -203,7 +203,7 @@ int main (int argc, char *argv[]) return EXIT_FAILURE; } - l_stream = opj_stream_create_default_file_stream_v3(input_file,OPJ_TRUE); + l_stream = opj_stream_create_default_file_stream(input_file,OPJ_TRUE); if (!l_stream){ free(l_data); fprintf(stderr, "ERROR -> failed to create the stream from the file\n"); @@ -244,7 +244,7 @@ int main (int argc, char *argv[]) { fprintf(stderr, "ERROR -> Not a valid JPEG2000 file!\n"); free(l_data); - opj_stream_destroy_v3(l_stream); + opj_stream_destroy(l_stream); return EXIT_FAILURE; } } @@ -259,7 +259,7 @@ int main (int argc, char *argv[]) { fprintf(stderr, "ERROR -> j2k_dump: failed to setup the decoder\n"); free(l_data); - opj_stream_destroy_v3(l_stream); + opj_stream_destroy(l_stream); opj_destroy_codec(l_codec); return EXIT_FAILURE; } @@ -269,7 +269,7 @@ int main (int argc, char *argv[]) { fprintf(stderr, "ERROR -> j2k_to_image: failed to read the header\n"); free(l_data); - opj_stream_destroy_v3(l_stream); + opj_stream_destroy(l_stream); opj_destroy_codec(l_codec); return EXIT_FAILURE; } @@ -277,7 +277,7 @@ int main (int argc, char *argv[]) if (!opj_set_decode_area(l_codec, l_image, da_x0, da_y0,da_x1, da_y1)){ fprintf(stderr, "ERROR -> j2k_to_image: failed to set the decoded area\n"); free(l_data); - opj_stream_destroy_v3(l_stream); + opj_stream_destroy(l_stream); opj_destroy_codec(l_codec); opj_image_destroy(l_image); return EXIT_FAILURE; @@ -298,7 +298,7 @@ int main (int argc, char *argv[]) &l_go_on)) { free(l_data); - opj_stream_destroy_v3(l_stream); + opj_stream_destroy(l_stream); opj_destroy_codec(l_codec); opj_image_destroy(l_image); return EXIT_FAILURE; @@ -312,7 +312,7 @@ int main (int argc, char *argv[]) if (! l_new_data) { free(l_new_data); - opj_stream_destroy_v3(l_stream); + opj_stream_destroy(l_stream); opj_destroy_codec(l_codec); opj_image_destroy(l_image); return EXIT_FAILURE; @@ -324,7 +324,7 @@ int main (int argc, char *argv[]) if (! opj_decode_tile_data(l_codec,l_tile_index,l_data,l_data_size,l_stream)) { free(l_data); - opj_stream_destroy_v3(l_stream); + opj_stream_destroy(l_stream); opj_destroy_codec(l_codec); opj_image_destroy(l_image); return EXIT_FAILURE; @@ -336,7 +336,7 @@ int main (int argc, char *argv[]) if (! opj_end_decompress(l_codec,l_stream)) { free(l_data); - opj_stream_destroy_v3(l_stream); + opj_stream_destroy(l_stream); opj_destroy_codec(l_codec); opj_image_destroy(l_image); return EXIT_FAILURE; @@ -344,7 +344,7 @@ int main (int argc, char *argv[]) /* Free memory */ free(l_data); - opj_stream_destroy_v3(l_stream); + opj_stream_destroy(l_stream); opj_destroy_codec(l_codec); opj_image_destroy(l_image); |
