[devel] Moved misplaced declarations
This commit is contained in:
parent
f30f0e04e3
commit
e99107b1aa
@ -844,6 +844,8 @@ png_write_IDAT(png_structp png_ptr, png_bytep data, png_size_t length)
|
|||||||
/* Number of pixels, plus for each row a filter byte and possible
|
/* Number of pixels, plus for each row a filter byte and possible
|
||||||
* padding byte
|
* padding byte
|
||||||
*/
|
*/
|
||||||
|
unsigned int z_cinfo;
|
||||||
|
unsigned int half_z_window_size;
|
||||||
png_uint_32 uncompressed_idat_size = png_ptr->height *
|
png_uint_32 uncompressed_idat_size = png_ptr->height *
|
||||||
((png_ptr->width *
|
((png_ptr->width *
|
||||||
png_ptr->channels * png_ptr->bit_depth + 15) >> 3);
|
png_ptr->channels * png_ptr->bit_depth + 15) >> 3);
|
||||||
@ -856,8 +858,9 @@ png_write_IDAT(png_structp png_ptr, png_bytep data, png_size_t length)
|
|||||||
uncompressed_idat_size += ((png_ptr->height + 7)/8) *
|
uncompressed_idat_size += ((png_ptr->height + 7)/8) *
|
||||||
(png_ptr->bit_depth < 8 ? 12 : 6);
|
(png_ptr->bit_depth < 8 ? 12 : 6);
|
||||||
|
|
||||||
unsigned int z_cinfo = z_cmf >> 4;
|
z_cinfo = z_cmf >> 4;
|
||||||
unsigned int half_z_window_size = 1 << (z_cinfo + 7);
|
half_z_window_size = 1 << (z_cinfo + 7);
|
||||||
|
|
||||||
while (uncompressed_idat_size <= half_z_window_size &&
|
while (uncompressed_idat_size <= half_z_window_size &&
|
||||||
half_z_window_size >= 256)
|
half_z_window_size >= 256)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user