remove obsolete part of code in t2_encode_packet
This commit is contained in:
parent
ae6227a9cf
commit
c74313aa15
|
@ -237,14 +237,7 @@ int t2_encode_packet(tcd_tile_t * tile, j2k_tcp_t * tcp, int compno, int resno,
|
||||||
for (cblkno = 0; cblkno < prc->cw * prc->ch; cblkno++) {
|
for (cblkno = 0; cblkno < prc->cw * prc->ch; cblkno++) {
|
||||||
tcd_cblk_t *cblk = &prc->cblks[cblkno];
|
tcd_cblk_t *cblk = &prc->cblks[cblkno];
|
||||||
tcd_layer_t *layer = &cblk->layers[layno];
|
tcd_layer_t *layer = &cblk->layers[layno];
|
||||||
if (!layer->numpasses) { /* ADD for index Cfr. Marcela --> delta disto by packet */
|
if (!layer->numpasses) {
|
||||||
if (info_IM->index_write && info_IM->index_on) {
|
|
||||||
info_tile *info_TL = &info_IM->tile[tileno];
|
|
||||||
info_packet *info_PK = &info_TL->packet[info_IM->num];
|
|
||||||
info_PK->disto += layer->disto;
|
|
||||||
if (info_IM->D_max < info_PK->disto)
|
|
||||||
info_IM->D_max = info_PK->disto;
|
|
||||||
} /* </ADD> */
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (c + layer->len > dest + len) {
|
if (c + layer->len > dest + len) {
|
||||||
|
|
Loading…
Reference in New Issue