Skip to content

Instantly share code, notes, and snippets.

@Brixomatic
Brixomatic / App.java
Last active July 24, 2018 20:28 — forked from heidisu/App.java
Haar transform
package haar;
import java.awt.*;
import java.awt.image.*;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.*;
import haar.RGBChannelFilter.Channel;
@Brixomatic
Brixomatic / Tinycrunch_1_2.java
Last active February 17, 2021 21:10
Java translation of the Tinycrunch 1.2 encoder, requires tc_boot.prg from the original Tinycrunch 1.2 distribution.
package de.plush.brix.c64graphics.core.pipeline.stages.compression;
import static de.plush.brix.c64graphics.core.pipeline.stages.compression.Tinycrunch_1_2.Stats.StatId.*;
import static de.plush.brix.c64graphics.core.pipeline.stages.compression.Tinycrunch_1_2.Stats.StatId.load;
import static de.plush.brix.c64graphics.core.util.Utils.subList;
import static java.lang.Float.POSITIVE_INFINITY;
import static java.lang.Integer.parseInt;
import static java.lang.Math.*;
import static java.lang.String.format;
import static java.lang.System.*;