(long imageSize)
| 186 | } |
| 187 | |
| 188 | private int getCount(long imageSize) { |
| 189 | if (savingStack || imageSize<4L) |
| 190 | return (int)imageSize; |
| 191 | int count = (int)(imageSize/50L); |
| 192 | if (count<65536) |
| 193 | count = 65536; |
| 194 | if (count>imageSize) |
| 195 | count = (int)imageSize; |
| 196 | count = (count/4)*4; |
| 197 | if (IJ.debugMode) IJ.log("ImageWriter: "+imageSize+" "+count+" "+imageSize/50); |
| 198 | return count; |
| 199 | } |
| 200 | |
| 201 | void writeFloatStack(OutputStream out, Object[] stack) throws IOException { |
| 202 | showProgressBar = false; |
no test coverage detected