summaryrefslogtreecommitdiff
path: root/tests/test_tile_decoder.c
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2012-05-14 07:17:42 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2012-05-14 07:17:42 +0000
commit595c00f55c7a8fc9287bfb6c2bd4b807b59841a1 (patch)
tree2034ec48836f92500f4e3c00405a73a30277561d /tests/test_tile_decoder.c
parent5aaa5eab7050b1454e126533f8b2684e089369f5 (diff)
[trunk] Fix remaining compilation errors
Diffstat (limited to 'tests/test_tile_decoder.c')
-rw-r--r--tests/test_tile_decoder.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/tests/test_tile_decoder.c b/tests/test_tile_decoder.c
index 953473a1..c2102f27 100644
--- a/tests/test_tile_decoder.c
+++ b/tests/test_tile_decoder.c
@@ -105,7 +105,7 @@ int main ()
OPJ_UINT32 l_tile_width,l_tile_height,l_nb_tiles_x,l_nb_tiles_y,l_nb_comps;
OPJ_INT32 l_current_tile_x0,l_current_tile_y0,l_current_tile_x1,l_current_tile_y1;
- PROFINIT();
+ //PROFINIT();
if
@@ -159,15 +159,7 @@ int main ()
l_stream = opj_stream_create_default_file_stream(l_file,OPJ_TRUE);
if
- (! opj_read_header(l_codec,
- &l_image,
- &l_tile_x0,
- &l_tile_y0,
- &l_tile_width,
- &l_tile_height,
- &l_nb_tiles_x,
- &l_nb_tiles_y,
- l_stream))
+ (! opj_read_header(l_stream, l_codec, &l_image))
{
free(l_data);
opj_stream_destroy(l_stream);
@@ -176,7 +168,7 @@ int main ()
return 1;
}
printf("Setting decoding area to %d,%d,%d,%d\n", DA_X0, DA_Y0, DA_X1, DA_Y1);
- opj_set_decode_area(l_codec, DA_X0, DA_Y0, DA_X1, DA_Y1);
+ opj_set_decode_area(l_codec, l_image, DA_X0, DA_Y0, DA_X1, DA_Y1);
while
(l_go_on)
{
@@ -249,7 +241,7 @@ int main ()
opj_image_destroy(l_image);
// Print profiling
- PROFPRINT();
+ //PROFPRINT();
return 0;
}