From 3569a10c97d41913dbf7cf3114cb4d2d5f17dc7f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 15 Jul 2017 17:08:02 +0200 Subject: Some improvements and fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/stream.h | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'src/stream.h') diff --git a/src/stream.h b/src/stream.h index 8733f43..f04918a 100644 --- a/src/stream.h +++ b/src/stream.h @@ -63,16 +63,31 @@ enum dimension { LENGTH = 4 }; +enum colour_space { + CIEXYZ +}; + +enum alpha { + UNPREMULTIPLIED +}; + +enum encoding { + FLOAT, + DOUBLE +}; + struct stream { size_t frames; size_t width; size_t height; + size_t n_chan; + size_t chan_size; size_t pixel_size; char pixfmt[32]; + enum colour_space space; + enum alpha alpha; + enum encoding encoding; int fd; -#if INT_MAX != LONG_MAX - int padding__; -#endif size_t ptr; size_t xptr; char buf[BUFSIZ]; -- cgit v1.2.3-70-g09d2