The end of main header is calculated after TLM and POC marker for Dcinema.
authorParvatha Elangovan <p.elangovan@intopix.com>
Fri, 24 Aug 2007 15:11:01 +0000 (15:11 +0000)
committerParvatha Elangovan <p.elangovan@intopix.com>
Fri, 24 Aug 2007 15:11:01 +0000 (15:11 +0000)
ChangeLog
libopenjpeg/j2k.c

index d3e9760b89df3c604f9b1f047e950f903bd80d55..0fc696a07b8773d0ae6b0fe7297df082e1c16c29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,9 @@ What's New for OpenJPEG
 ! : changed
 + : added
 
+August 24, 2007
+* [Parvatha] The end of main header is calculated after TLM and POC marker for Dcinema.
+
 August 21, 2007
 + [FOD] Added support for Visual Studio 2005
 * [FOD] Robustified MJ2 codecs
index f013f79ade39338430b450b579eecac1da4a873d..c380782fc062ba5b8ffe64af8060f57943e7160b 100644 (file)
@@ -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 */