decode method

Pointer<Uint8> decode(
  1. Pointer<Char> blurhash,
  2. int width,
  3. int height,
  4. int punch,
  5. int nChannels,
)

decode : Returns the pixel array of the result image given the blurhash string, Parameters : blurhash : A string representing the blurhash to be decoded. width : Width of the resulting image height : Height of the resulting image punch : The factor to improve the contrast, default = 1 nChannels : Number of channels in the resulting image array, 3 = RGB, 4 = RGBA Returns : A pointer to memory region where pixels are stored in (H, W, C) format

Implementation

ffi.Pointer<ffi.Uint8> decode(
  ffi.Pointer<ffi.Char> blurhash,
  int width,
  int height,
  int punch,
  int nChannels,
) {
  return _decode(
    blurhash,
    width,
    height,
    punch,
    nChannels,
  );
}