From 3f7f0d7ed7e3eeff0245fe5c830ea8591e7964d7 Mon Sep 17 00:00:00 2001 From: Pauli Oikkonen Date: Wed, 2 Sep 2020 17:55:22 +0300 Subject: [PATCH] Allow bit depth to be defined from the outside For a 10-bit build, just use: env CFLAGS="-DKVZ_BIT_DEPTH=10" ./configure && make clean && make --- src/kvazaar.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kvazaar.h b/src/kvazaar.h index 4d67bf04..60fc1afc 100644 --- a/src/kvazaar.h +++ b/src/kvazaar.h @@ -74,7 +74,10 @@ extern "C" { */ #define KVZ_DATA_CHUNK_SIZE 4096 +#ifndef KVZ_BIT_DEPTH #define KVZ_BIT_DEPTH 8 +#endif + #if KVZ_BIT_DEPTH == 8 typedef uint8_t kvz_pixel; #else