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
This commit is contained in:
Pauli Oikkonen 2020-09-02 17:55:22 +03:00
parent 780da4568a
commit 3f7f0d7ed7

View file

@ -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