]> granicus.if.org Git - openjpeg/commitdiff
[trunk] Add some documention in the pi code
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Thu, 13 Mar 2014 10:42:06 +0000 (10:42 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Thu, 13 Mar 2014 10:42:06 +0000 (10:42 +0000)
src/lib/openjp2/pi.c

index eeb14b7d8c26d31eb8ee1a0556371115ce437a88..2606051b030a3c244e6b8ec34a964301799d6f66 100644 (file)
@@ -1001,16 +1001,16 @@ void opj_pi_update_decode_poc (opj_pi_iterator_t * p_pi,
        l_current_poc = p_tcp->pocs;
 
        for     (pino = 0;pino<l_bound;++pino) {
-               l_current_pi->poc.prg = l_current_poc->prg;
+               l_current_pi->poc.prg = l_current_poc->prg; /* Progression Order #0 */
                l_current_pi->first = 1;
 
-               l_current_pi->poc.resno0 = l_current_poc->resno0;
-               l_current_pi->poc.compno0 = l_current_poc->compno0;
+               l_current_pi->poc.resno0 = l_current_poc->resno0; /* Resolution Level Index #0 (Start) */
+               l_current_pi->poc.compno0 = l_current_poc->compno0; /* Component Index #0 (Start) */
                l_current_pi->poc.layno0 = 0;
                l_current_pi->poc.precno0 = 0;
-               l_current_pi->poc.resno1 = l_current_poc->resno1;
-               l_current_pi->poc.compno1 = l_current_poc->compno1;
-               l_current_pi->poc.layno1 = l_current_poc->layno1;
+               l_current_pi->poc.resno1 = l_current_poc->resno1; /* Resolution Level Index #0 (End) */
+               l_current_pi->poc.compno1 = l_current_poc->compno1; /* Component Index #0 (End) */
+               l_current_pi->poc.layno1 = l_current_poc->layno1; /* Layer Index #0 (End) */
                l_current_pi->poc.precno1 = p_max_precision;
                ++l_current_pi;
                ++l_current_poc;