Removed unused variable in Jpeg2KEncode

This commit is contained in:
Andrew Murray 2015-04-01 15:14:56 +11:00
parent d8c69ef5aa
commit 3cd7f0e6f2

View File

@ -257,7 +257,7 @@ j2k_encode_entry(Imaging im, ImagingCodecState state,
opj_image_cmptparm_t image_params[4]; opj_image_cmptparm_t image_params[4];
unsigned xsiz, ysiz; unsigned xsiz, ysiz;
unsigned tile_width, tile_height; unsigned tile_width, tile_height;
unsigned tiles_x, tiles_y, num_tiles; unsigned tiles_x, tiles_y;
unsigned x, y, tile_ndx; unsigned x, y, tile_ndx;
unsigned n; unsigned n;
j2k_pack_tile_t pack; j2k_pack_tile_t pack;
@ -471,8 +471,6 @@ j2k_encode_entry(Imaging im, ImagingCodecState state,
tiles_y = (im->ysize + (params.image_offset_y0 - params.cp_ty0) tiles_y = (im->ysize + (params.image_offset_y0 - params.cp_ty0)
+ tile_height - 1) / tile_height; + tile_height - 1) / tile_height;
num_tiles = tiles_x * tiles_y;
state->buffer = malloc (tile_width * tile_height * components * prec / 8); state->buffer = malloc (tile_width * tile_height * components * prec / 8);
tile_ndx = 0; tile_ndx = 0;