www in docker support

This commit is contained in:
MaddoScientisto 2026-04-22 18:41:37 +02:00
commit c227fce036
2145 changed files with 399596 additions and 58 deletions

View file

@ -0,0 +1,22 @@
package org.jcodec.common;
public class IntIntHistogram extends IntIntMap {
private int maxBin = -1;
public int max() {
return this.maxBin;
}
public void increment(int bin) {
int count = get(bin);
count = (count == Integer.MIN_VALUE) ? 1 : (1 + count);
put(bin, count);
if (this.maxBin == -1)
this.maxBin = bin;
int maxCount = get(this.maxBin);
if (count > maxCount) {
this.maxBin = bin;
maxCount = count;
}
}
}