summaryrefslogtreecommitdiff
path: root/tests/test_tile_encoder.c
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2014-04-23 07:46:11 +0000
committerAntonin Descampe <antonin@gmail.com>2014-04-23 07:46:11 +0000
commit7aece5e8e7d4214d140a45aca50a824ff8092924 (patch)
tree85599bd1108ecab5b12fad8dcea894f250b97145 /tests/test_tile_encoder.c
parent8d93eae64acd18fac3c856e0a311905359233b96 (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_encoder.c')
-rw-r--r--tests/test_tile_encoder.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_tile_encoder.c b/tests/test_tile_encoder.c
index 4330fb7d..6ce628b5 100644
--- a/tests/test_tile_encoder.c
+++ b/tests/test_tile_encoder.c
@@ -263,7 +263,7 @@ int main (int argc, char *argv[])
return 1;
}
- l_stream = opj_stream_create_default_file_stream_v3(output_file, OPJ_FALSE);
+ l_stream = opj_stream_create_default_file_stream(output_file, OPJ_FALSE);
if (! l_stream) {
fprintf(stderr, "ERROR -> test_tile_encoder: failed to create the stream from the output file %s !\n",output_file );
opj_destroy_codec(l_codec);
@@ -273,7 +273,7 @@ int main (int argc, char *argv[])
if (! opj_start_compress(l_codec,l_image,l_stream)) {
fprintf(stderr, "ERROR -> test_tile_encoder: failed to start compress!\n");
- opj_stream_destroy_v3(l_stream);
+ opj_stream_destroy(l_stream);
opj_destroy_codec(l_codec);
opj_image_destroy(l_image);
return 1;
@@ -282,7 +282,7 @@ int main (int argc, char *argv[])
for (i=0;i<l_nb_tiles;++i) {
if (! opj_write_tile(l_codec,i,l_data,l_data_size,l_stream)) {
fprintf(stderr, "ERROR -> test_tile_encoder: failed to write the tile %d!\n",i);
- opj_stream_destroy_v3(l_stream);
+ opj_stream_destroy(l_stream);
opj_destroy_codec(l_codec);
opj_image_destroy(l_image);
return 1;
@@ -291,13 +291,13 @@ int main (int argc, char *argv[])
if (! opj_end_compress(l_codec,l_stream)) {
fprintf(stderr, "ERROR -> test_tile_encoder: failed to end compress!\n");
- opj_stream_destroy_v3(l_stream);
+ opj_stream_destroy(l_stream);
opj_destroy_codec(l_codec);
opj_image_destroy(l_image);
return 1;
}
- opj_stream_destroy_v3(l_stream);
+ opj_stream_destroy(l_stream);
opj_destroy_codec(l_codec);
opj_image_destroy(l_image);