Fixed j2k_prog_order_list[]. Modifications in j2k.c.
Fixed t1_decode_cblks. Modifications in t1.c.
This commit is contained in:
parent
694a173adb
commit
6045158ce6
|
@ -5,6 +5,10 @@ What's New for OpenJPEG
|
||||||
! : changed
|
! : changed
|
||||||
+ : added
|
+ : added
|
||||||
|
|
||||||
|
March 21, 2007
|
||||||
|
* [Parvatha] Fixed j2k_prog_order_list[]. Modifications in j2k.c.
|
||||||
|
* [Parvatha] Fixed t1_decode_cblks. Modifications in t1.c.
|
||||||
|
|
||||||
March 20, 2007
|
March 20, 2007
|
||||||
+ [Parvatha] Added feature for generation of tile parts. Modifications in image_to_j2k.c, openjpeg.c, j2k.c, pi.c
|
+ [Parvatha] Added feature for generation of tile parts. Modifications in image_to_j2k.c, openjpeg.c, j2k.c, pi.c
|
||||||
+ [Parvatha] Added function j2k_write_tlm(),to generate TLM marker for a Digital cinema compliant codestream. Modifications in j2k.c.
|
+ [Parvatha] Added function j2k_write_tlm(),to generate TLM marker for a Digital cinema compliant codestream. Modifications in j2k.c.
|
||||||
|
|
|
@ -244,7 +244,8 @@ j2k_prog_order_t j2k_prog_order_list[] = {
|
||||||
{LRCP, "LRCP"},
|
{LRCP, "LRCP"},
|
||||||
{PCRL, "PCRL"},
|
{PCRL, "PCRL"},
|
||||||
{RLCP, "RLCP"},
|
{RLCP, "RLCP"},
|
||||||
{RPCL, "RPCL"}
|
{RPCL, "RPCL"},
|
||||||
|
{-1, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
char *convert_progression_order(OPJ_PROG_ORDER prg_order){
|
char *convert_progression_order(OPJ_PROG_ORDER prg_order){
|
||||||
|
|
|
@ -1064,7 +1064,7 @@ void t1_decode_cblks(opj_t1_t *t1, opj_tcd_tile_t *tile, opj_tcp_t *tcp) {
|
||||||
if (t1->data[j][i] >> 1 == 0) {
|
if (t1->data[j][i] >> 1 == 0) {
|
||||||
tilec->data[x + i + (y + j) * w] = 0;
|
tilec->data[x + i + (y + j) * w] = 0;
|
||||||
} else {
|
} else {
|
||||||
double tmp = (double)((t1->data[j][i] << 12) * band->stepsize);
|
double tmp = (double)(t1->data[j][i] * band->stepsize * 4096.0);
|
||||||
int tmp2 = ((int) (floor(fabs(tmp)))) + ((int) floor(fabs(tmp*2))%2);
|
int tmp2 = ((int) (floor(fabs(tmp)))) + ((int) floor(fabs(tmp*2))%2);
|
||||||
tilec->data[x + i + (y + j) * w] = ((tmp<0)?-tmp2:tmp2);
|
tilec->data[x + i + (y + j) * w] = ((tmp<0)?-tmp2:tmp2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue