mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
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:
parent
780da4568a
commit
3f7f0d7ed7
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue