Class stl_BlurHash.blurhash_base83

java.lang.Object
com.jackmeng.stl.stl_BlurHash.blurhash_base83
Enclosing class:
stl_BlurHash

public static final class stl_BlurHash.blurhash_base83
extends java.lang.Object
  • Field Summary

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

    Constructors
    Modifier Constructor Description
    private blurhash_base83()  
  • Method Summary

    Modifier and Type Method Description
    static int decode​(java.lang.String str)
    Decodes from Base 83
    static void decodeAC​(java.lang.String str, double rMv, double[] color)  
    static void decodeDC​(java.lang.String str, double[] colors)  
    static void encode​(long val, int length, char[] buff, int offset)
    Encodes with Base 83.
    static long encodeAC​(double[] val, double m)  
    static long encodeDC​(double[] val)  
    static int find​(char c)  
    static double signpow​(double val, double exp)  

    Methods inherited from class java.lang.Object

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

    • TABLE

      public static final char[] TABLE
  • Constructor Details

    • blurhash_base83

      private blurhash_base83()
  • Method Details

    • signpow

      public static double signpow​(double val, double exp)
      Parameters:
      val -
      exp -
      Returns:
      double
    • encode

      public static void encode​(long val, int length, char[] buff, int offset)
      Encodes with Base 83.
      Parameters:
      val - The value to encode
      length - The length of the value
      buff - The buffer to write to (contains values)
      offset - The offset to start writing at
    • encodeDC

      public static long encodeDC​(double[] val)
      Parameters:
      val -
      Returns:
      long
    • encodeAC

      public static long encodeAC​(double[] val, double m)
      Parameters:
      val -
      m -
      Returns:
      long
    • decode

      public static int decode​(java.lang.String str)
      Decodes from Base 83
      Parameters:
      str - An Encoded String
      Returns:
      The decoded string from base 83
    • decodeAC

      public static void decodeAC​(java.lang.String str, double rMv, double[] color)
      Parameters:
      str -
      rMv -
      color -
    • decodeDC

      public static void decodeDC​(java.lang.String str, double[] colors)
      Parameters:
      str -
      colors -
    • find

      public static int find​(char c)
      Parameters:
      c -
      Returns:
      int