diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-05-14 09:37:36 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-05-14 09:37:36 +0000 |
| commit | 1023be33fb46dd805fc278ebe784bb1f4ace9c19 (patch) | |
| tree | a711816836ef8f849ead6815ee83b3730f3f6c3d /applications/codec | |
| parent | 595c00f55c7a8fc9287bfb6c2bd4b807b59841a1 (diff) | |
add new functions in jp2 codec from v2 branches; solve bug in j2k_setup_encoder_v2
Diffstat (limited to 'applications/codec')
| -rw-r--r-- | applications/codec/image_to_j2k.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/applications/codec/image_to_j2k.c b/applications/codec/image_to_j2k.c index f8937252..bdbdf05c 100644 --- a/applications/codec/image_to_j2k.c +++ b/applications/codec/image_to_j2k.c @@ -1818,8 +1818,17 @@ int main(int argc, char **argv) { /* encode the image */ bSuccess = opj_start_compress(l_codec,image,l_stream); + if (!bSuccess) { + fprintf(stderr, "failed to encode image: opj_start_compress\n"); + } bSuccess = bSuccess && opj_encode_v2(l_codec, l_stream); + if (!bSuccess) { + fprintf(stderr, "failed to encode image: opj_encode_v2\n"); + } bSuccess = bSuccess && opj_end_compress(l_codec, l_stream); + if (!bSuccess) { + fprintf(stderr, "failed to encode image: opj_end_compress\n"); + } if (!bSuccess) { opj_stream_destroy(l_stream); |
