src/qt/res/assets/plugins/pnglib/pnglib.js
Function PNGlib
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
window.PNGlib = function(width,height,depth) {
this.width = width;
this.height = height;
this.depth = depth;
Function getDump
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.getDump = function() {
// compute adler32 of output pixels + row filter bytes
var BASE = 65521; /* largest prime smaller than 65536 */
var NMAX = 5552; /* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */