Compare commits
1 Commits
master
...
opj-v1-bra
Author | SHA1 | Date |
---|---|---|
Antonin Descampe | c85e1a10cf |
5
CHANGES
5
CHANGES
|
@ -5,6 +5,11 @@ What's New for OpenJPEG
|
||||||
! : changed
|
! : changed
|
||||||
+ : added
|
+ : added
|
||||||
|
|
||||||
|
_______ R812 : OPJ-V1-BRANCH created ______________________________
|
||||||
|
|
||||||
|
July 10, 2011
|
||||||
|
! [antonin] improved encoding speed in t1_encode_cblks (credit to Giuseppe Baruffa)
|
||||||
|
|
||||||
July 3, 2011
|
July 3, 2011
|
||||||
* [antonin] fixed bmptoimage (see http://groups.google.com/group/openjpeg/browse_thread/thread/33a24c5896bf6391)
|
* [antonin] fixed bmptoimage (see http://groups.google.com/group/openjpeg/browse_thread/thread/33a24c5896bf6391)
|
||||||
* [antonin] fixed handling of "jp2->meth" value (Restricted ICC profile handling currently not implemented)
|
* [antonin] fixed handling of "jp2->meth" value (Restricted ICC profile handling currently not implemented)
|
||||||
|
|
|
@ -1413,6 +1413,7 @@ void t1_encode_cblks(
|
||||||
|
|
||||||
for (bandno = 0; bandno < res->numbands; ++bandno) {
|
for (bandno = 0; bandno < res->numbands; ++bandno) {
|
||||||
opj_tcd_band_t* restrict band = &res->bands[bandno];
|
opj_tcd_band_t* restrict band = &res->bands[bandno];
|
||||||
|
int bandconst = 8192 * 8192 / ((int) floor(band->stepsize * 8192));
|
||||||
|
|
||||||
for (precno = 0; precno < res->pw * res->ph; ++precno) {
|
for (precno = 0; precno < res->pw * res->ph; ++precno) {
|
||||||
opj_tcd_precinct_t *prc = &band->precincts[precno];
|
opj_tcd_precinct_t *prc = &band->precincts[precno];
|
||||||
|
@ -1463,7 +1464,7 @@ void t1_encode_cblks(
|
||||||
datap[(j * cblk_w) + i] =
|
datap[(j * cblk_w) + i] =
|
||||||
fix_mul(
|
fix_mul(
|
||||||
tmp,
|
tmp,
|
||||||
8192 * 8192 / ((int) floor(band->stepsize * 8192))) >> (11 - T1_NMSEDEC_FRACBITS);
|
bandconst) >> (11 - T1_NMSEDEC_FRACBITS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue