diff options
| author | Parvatha Elangovan <p.elangovan@intopix.com> | 2007-08-24 15:11:01 +0000 |
|---|---|---|
| committer | Parvatha Elangovan <p.elangovan@intopix.com> | 2007-08-24 15:11:01 +0000 |
| commit | c101f8049c23a01fa0d37e0eb586c7dff6c75869 (patch) | |
| tree | a31989b845d9d9b2e8517e11f5b72a8a1f9f8956 /libopenjpeg | |
| parent | bd0b6ec2fdf6e27be9ecf811eede2a49241fa081 (diff) | |
The end of main header is calculated after TLM and POC marker for Dcinema.
Diffstat (limited to 'libopenjpeg')
| -rw-r--r-- | libopenjpeg/j2k.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libopenjpeg/j2k.c b/libopenjpeg/j2k.c index f013f79a..c380782f 100644 --- a/libopenjpeg/j2k.c +++ b/libopenjpeg/j2k.c @@ -2484,12 +2484,7 @@ bool j2k_encode(opj_j2k_t *j2k, opj_cio_t *cio, opj_image_t *image, char *index) if (cp->comment != NULL) { j2k_write_com(j2k); } - /* INDEX >> */ - if(image_info && image_info->index_on) { - image_info->main_head_end = cio_tell(cio) - 1; - } - /* << INDEX */ - + j2k->totnum_tp = j2k_calculate_tp(cp,image->numcomps,image,j2k); /* TLM Marker*/ if(cp->cinema){ @@ -2498,6 +2493,12 @@ bool j2k_encode(opj_j2k_t *j2k, opj_cio_t *cio, opj_image_t *image, char *index) j2k_write_poc(j2k); } } + + /* INDEX >> */ + if(image_info && image_info->index_on) { + image_info->main_head_end = cio_tell(cio) - 1; + } + /* << INDEX */ /**** Main Header ENDS here ***/ /* create the tile encoder */ |
