Class stl_BlurHash_2

java.lang.Object
com.jackmeng.stl.stl_BlurHash_2

public final class stl_BlurHash_2
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    private static char[] BASE83_ALPHABET  
  • Constructor Summary

    Constructors
    Constructor Description
    stl_BlurHash_2()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String encode​(int[] pixels, int width, int height, int componentX, int componentY)  
    private static java.lang.String encodeBlurhash​(int width, int height, double[][] colorCoords, java.math.BigInteger[] colorValues)  
    private static int encodeColor​(int color, java.math.BigInteger maxColorValue)  
    private static java.lang.String getBase83​(int value, int numChars)  
    private static double[] getColorCoordinates​(int x, int y, int componentX, int componentY)  
    private static int[] getSize​(int componentX, int componentY)  
    private static int packColor​(int r, int g, int b)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BASE83_ALPHABET

      private static final char[] BASE83_ALPHABET
  • Constructor Details

    • stl_BlurHash_2

      public stl_BlurHash_2()
  • Method Details

    • encode

      public static java.lang.String encode​(int[] pixels, int width, int height, int componentX, int componentY)
    • getColorCoordinates

      private static double[] getColorCoordinates​(int x, int y, int componentX, int componentY)
    • packColor

      private static int packColor​(int r, int g, int b)
    • encodeColor

      private static int encodeColor​(int color, java.math.BigInteger maxColorValue)
    • getSize

      private static int[] getSize​(int componentX, int componentY)
    • encodeBlurhash

      private static java.lang.String encodeBlurhash​(int width, int height, double[][] colorCoords, java.math.BigInteger[] colorValues)
    • getBase83

      private static java.lang.String getBase83​(int value, int numChars)