summaryrefslogtreecommitdiff
path: root/libopenjpeg/tcd.c
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2009-09-10 13:34:19 +0000
committerAntonin Descampe <antonin@gmail.com>2009-09-10 13:34:19 +0000
commitec400c4fa5ed89b85b3694f6424dda2541d25c0b (patch)
tree870eabad965d3d3d17b4c9ff239edf8bca590e51 /libopenjpeg/tcd.c
parentb1d8788a464e0de986eabab0fb22c8d857b89c78 (diff)
V2 branch :
- 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. - Modified the way raw images with more that 8bpp are read and written
Diffstat (limited to 'libopenjpeg/tcd.c')
-rw-r--r--libopenjpeg/tcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopenjpeg/tcd.c b/libopenjpeg/tcd.c
index 1cfbc5af..d8bd08b6 100644
--- a/libopenjpeg/tcd.c
+++ b/libopenjpeg/tcd.c
@@ -1019,7 +1019,7 @@ bool tcd_rateallocate(opj_tcd_t *tcd, OPJ_BYTE *dest, OPJ_UINT32 * p_data_writte
}
for
- (i = 0; i < 32; ++i)
+ (i = 0; i < 128; ++i)
{
OPJ_FLOAT64 distoachieved = 0; /* fixed_quality */
thresh = (lo + hi) / 2;