diff options
| author | Parvatha Elangovan <p.elangovan@intopix.com> | 2008-02-05 15:15:38 +0000 |
|---|---|---|
| committer | Parvatha Elangovan <p.elangovan@intopix.com> | 2008-02-05 15:15:38 +0000 |
| commit | 29ea3dde47818da3eecb917ebb1db797a3e80d44 (patch) | |
| tree | a879f9d2ca1e55500d50b140c4ddb9e1f63e373c /codec | |
| parent | e21d8654402fc9e35e9fe18c68da63ce5a731140 (diff) | |
In convert.c, corrected imagetobmp() conversion for grayscale. In tcd.c, corrected Rate modification in tcd_init_encode().
Diffstat (limited to 'codec')
| -rw-r--r-- | codec/convert.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/codec/convert.c b/codec/convert.c index b3b51a8f..e56d1311 100644 --- a/codec/convert.c +++ b/codec/convert.c @@ -914,7 +914,8 @@ int imagetobmp(opj_image_t * image, const char *outfile) { if (image->comps[0].prec > 8) { adjustR = image->comps[0].prec - 8; printf("BMP CONVERSION: Truncating component 0 from %d bits to 8 bits\n", image->comps[0].prec); - } + }else + adjustR = 0; for (i = 0; i < 256; i++) { fprintf(fdest, "%c%c%c%c", i, i, i, 0); |
