JuicyPixels-blurhash-0.1.0.0: Blurhash is a very compact represenation of a placeholder for an image

Copyright(c) 2020 Sam Protas
LicenseBSD3
MaintainerSam Protas <sam.protas@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Codec.Picture.Blurhash.Internal.Base83

Description

Internal Base83 encoding/decoding implementation.

Note: This is an internal module not subject to PVP adherence.

Synopsis

Documentation

base83Encode :: Int -> Int -> Maybe Builder Source #

Base 83 encoding per the alphabet specified by Blurhash

base83Decode :: ByteString -> Either Word8 Int Source #

Base 83 decoding per the alphabet specified by Blurhash

charToIndex :: Map Word8 Int Source #

Helper function providing a mapping from a byte to it's index in the Blurhash alphabet