Class use_Blurhash.blurhash_base83

java.lang.Object
com.jackmeng.core.util.use_Blurhash.blurhash_base83
Enclosing class:
use_Blurhash

public static final class use_Blurhash.blurhash_base83 extends Object
  • Field Summary

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

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    Decodes from Base 83
    static void
    decodeAC(String str, double rMv, double[] color)
     
    static void
    decodeDC(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(String str)
      Decodes from Base 83
      Parameters:
      str - An Encoded String
      Returns:
      The decoded string from base 83
    • decodeAC

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

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

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