diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-08-13 09:36:53 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-08-13 09:36:53 +0000 |
| commit | a71310f58bbc735fd23ab377b8adac8285f69767 (patch) | |
| tree | 2d12264f8986bae18dc67fd76d9cc8434d1d54fd | |
| parent | 43c392626bff6d55dd11a5f2cf3b74a0ab0d5f4d (diff) | |
remove deprecated v1 style function jp2_write_ftyp
| -rw-r--r-- | libopenjpeg/jp2.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libopenjpeg/jp2.c b/libopenjpeg/jp2.c index 89543f09..ebbc419a 100644 --- a/libopenjpeg/jp2.c +++ b/libopenjpeg/jp2.c @@ -110,14 +110,6 @@ static OPJ_BYTE * opj_jp2_write_colr( opj_jp2_v2_t *jp2, OPJ_UINT32 * p_nb_bytes_written ); /** -Write the FTYP box - File type box -@param jp2 JP2 handle -@param cio Output buffer stream -*/ -static void jp2_write_ftyp(opj_jp2_t *jp2, opj_cio_t *cio); - - -/** * Writes a FTYP box - File type box * * @param cio the stream to write data to. @@ -1368,27 +1360,6 @@ opj_bool opj_jp2_write_jp2h(opj_jp2_v2_t *jp2, return l_result; } -static void jp2_write_ftyp(opj_jp2_t *jp2, opj_cio_t *cio) { - unsigned int i; - opj_jp2_box_t box; - - box.init_pos = cio_tell(cio); - cio_skip(cio, 4); - cio_write(cio, JP2_FTYP, 4); /* FTYP */ - - cio_write(cio, jp2->brand, 4); /* BR */ - cio_write(cio, jp2->minversion, 4); /* MinV */ - - for (i = 0; i < jp2->numcl; i++) { - cio_write(cio, jp2->cl[i], 4); /* CL */ - } - - box.length = cio_tell(cio) - box.init_pos; - cio_seek(cio, box.init_pos); - cio_write(cio, box.length, 4); /* L */ - cio_seek(cio, box.init_pos + box.length); -} - /** * Writes a FTYP box - File type box * |
