diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-05-10 14:21:09 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-05-10 14:21:09 +0000 |
| commit | 1200dd871a3f39d8b7367f3bcbeb2d144c38369a (patch) | |
| tree | debdbc3082731c238a9aaefd4aaf2a2bdcfd09f9 /libopenjpeg/jp2.c | |
| parent | f3170bf64e39a9f9d512adde7e7b315f156fed8e (diff) | |
MJ2 codec updated from LibOpenJPEG version 0.97 to LibOpenJPEG version 1. Hence, the MJ2 codec will now take advantage of all the improvements and optimizations done on the LibOpenJPEG library.
Diffstat (limited to 'libopenjpeg/jp2.c')
| -rw-r--r-- | libopenjpeg/jp2.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/libopenjpeg/jp2.c b/libopenjpeg/jp2.c index a058b1b5..d102349d 100644 --- a/libopenjpeg/jp2.c +++ b/libopenjpeg/jp2.c @@ -59,19 +59,6 @@ static bool jp2_read_bpcc(opj_jp2_t *jp2, opj_cio_t *cio); static void jp2_write_colr(opj_jp2_t *jp2, opj_cio_t *cio); static bool jp2_read_colr(opj_jp2_t *jp2, opj_cio_t *cio); /** -Write the JP2H box - JP2 Header box -@param jp2 JP2 handle -@param cio Output buffer stream -*/ -static void jp2_write_jp2h(opj_jp2_t *jp2, opj_cio_t *cio); -/** -Read the JP2H box - JP2 Header box -@param jp2 JP2 handle -@param cio Input buffer stream -@return Returns true if successful, returns false otherwise -*/ -static bool jp2_read_jp2h(opj_jp2_t *jp2, opj_cio_t *cio); -/** Write the FTYP box - File type box @param jp2 JP2 handle @param cio Output buffer stream @@ -308,7 +295,7 @@ static bool jp2_read_colr(opj_jp2_t *jp2, opj_cio_t *cio) { return true; } -static void jp2_write_jp2h(opj_jp2_t *jp2, opj_cio_t *cio) { +void jp2_write_jp2h(opj_jp2_t *jp2, opj_cio_t *cio) { opj_jp2_box_t box; box.init_pos = cio_tell(cio); @@ -328,7 +315,7 @@ static void jp2_write_jp2h(opj_jp2_t *jp2, opj_cio_t *cio) { cio_seek(cio, box.init_pos + box.length); } -static bool jp2_read_jp2h(opj_jp2_t *jp2, opj_cio_t *cio) { +bool jp2_read_jp2h(opj_jp2_t *jp2, opj_cio_t *cio) { opj_jp2_box_t box; int skip_len; |
