remove deprecated v1 style functions jp2_write_jp2h

This commit is contained in:
Mickael Savinaud 2012-08-13 08:54:42 +00:00
parent 3bf3ce06f7
commit 3ec9f5fa0b
2 changed files with 0 additions and 26 deletions

View File

@ -1328,26 +1328,6 @@ opj_bool opj_jp2_decode(opj_jp2_v2_t *jp2,
}
void jp2_write_jp2h(opj_jp2_t *jp2, opj_cio_t *cio) {
opj_jp2_box_t box;
box.init_pos = cio_tell(cio);
cio_skip(cio, 4);
cio_write(cio, JP2_JP2H, 4); /* JP2H */
jp2_write_ihdr(jp2, cio);
if (jp2->bpc == 255) {
jp2_write_bpcc(jp2, cio);
}
jp2_write_colr(jp2, cio);
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 the Jpeg2000 file Header box - JP2 Header box (warning, this is a super box).
*

View File

@ -250,12 +250,6 @@ opj_jp2_img_header_writer_handler_t;
/** @name Exported functions */
/*@{*/
/* ----------------------------------------------------------------------- */
/**
Write the JP2H box - JP2 Header box (used in MJ2)
@param jp2 JP2 handle
@param cio Output buffer stream
*/
void jp2_write_jp2h(opj_jp2_t *jp2, opj_cio_t *cio);
/**
* Writes the Jpeg2000 file Header box - JP2 Header box (warning, this is a super box).