the method DumpData
I have found the code in below
// Convert if data are float32
if (data instanceof Float32Array) {
const data2 = new Uint8Array(data.length);
let n = data.length;
while (n--) {
const v = data[n];
data2[n] = v < 0 ? 0 : v > 1 ? 1 : Math.round(v * 255);
}
data = data2;
}
I think v > 1? we should use 255 rather than 1?