summaryrefslogtreecommitdiff
path: root/codec
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2010-06-22 14:03:52 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2010-06-22 14:03:52 +0000
commitf30f4c744e4242898c77962bbf691a43728ad421 (patch)
tree4f684fec525d08598e8aa5888b6406cf50ba5ccd /codec
parent6621494d9d76576f536ab91d060a029cc5e95c50 (diff)
Also dump the image info as well as cp info.
Diffstat (limited to 'codec')
-rw-r--r--codec/j2k_dump.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/codec/j2k_dump.c b/codec/j2k_dump.c
index a63c9946..3d485e9d 100644
--- a/codec/j2k_dump.c
+++ b/codec/j2k_dump.c
@@ -302,8 +302,6 @@ void info_callback(const char *msg, void *client_data) {
fprintf(stdout, "[INFO] %s", msg);
}
-//void j2k_dump_cp(FILE *fd, opj_image_t * img, opj_cp_t * cp);
-
/* -------------------------------------------------------------------------- */
int main(int argc, char *argv[])
@@ -425,7 +423,10 @@ int main(int argc, char *argv[])
opj_cio_close(cio);
return 1;
}
- /* dump */
+ /* dump image */
+ j2k_dump_image(stdout, image);
+
+ /* dump cp */
j2k_dump_cp(stdout, image, ((opj_j2k_t*)dinfo->j2k_handle)->cp);
/* close the byte stream */
@@ -469,7 +470,10 @@ int main(int argc, char *argv[])
opj_cio_close(cio);
return 1;
}
- /* dump */
+ /* dump image */
+ j2k_dump_image(stdout, image);
+
+ /* dump cp */
j2k_dump_cp(stdout, image, ((opj_jp2_t*)dinfo->jp2_handle)->j2k->cp);
/* close the byte stream */