diff options
| author | Antonin Descampe <antonin@gmail.com> | 2008-08-22 16:18:17 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2008-08-22 16:18:17 +0000 |
| commit | 73d8401465e1be8f4a5d8c133cb6557d667667fe (patch) | |
| tree | 92e039c7b9c519fa2118be833f6d49e479b2860f /libopenjpeg/tcd.c | |
| parent | 4a90f97639748de0164054a110171a2b4111eb13 (diff) | |
found a bug in tcd.c that was preventing to find the correct threshold in tcd_rateallocate.c for high-precision images. Applied a temporary patch but a better solution should be found.
Diffstat (limited to 'libopenjpeg/tcd.c')
| -rw-r--r-- | libopenjpeg/tcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopenjpeg/tcd.c b/libopenjpeg/tcd.c index 01ee3950..7f154f4b 100644 --- a/libopenjpeg/tcd.c +++ b/libopenjpeg/tcd.c @@ -1094,7 +1094,7 @@ bool tcd_rateallocate(opj_tcd_t *tcd, unsigned char *dest, int len, opj_codestre opj_t2_t *t2 = t2_create(tcd->cinfo, tcd->image, cp); double thresh = 0; - for (i = 0; i < 32; i++) { + for (i = 0; i < 128; i++) { int l = 0; double distoachieved = 0; /* fixed_quality */ thresh = (lo + hi) / 2; |
