Show blurhashes for image events

This commit is contained in:
Tobias Fella
2021-08-21 00:19:07 +02:00
parent dada3e300b
commit 046e823d1b
10 changed files with 291 additions and 8 deletions

14
src/blurhash.h Normal file
View File

@@ -0,0 +1,14 @@
// SPDX-FileCopyrightText: 2018 Wolt Enterprises
// SPDX-License-Identifiert: MIT
#pragma once
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
uint8_t *decode(const char *blurhash, int width, int height, int punch, int nChannels);
bool isValidBlurhash(const char *blurhash);