diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-09 03:51:26 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-09 03:51:26 +0100 |
| commit | 76cdf509b36bb0012cde9bc1760cdf3b26874af2 (patch) | |
| tree | cc984bb82eaf9911d6173343a9e90bb20e9ddffb /src/stream.h | |
| parent | Readme: add format (diff) | |
| download | blind-76cdf509b36bb0012cde9bc1760cdf3b26874af2.tar.gz blind-76cdf509b36bb0012cde9bc1760cdf3b26874af2.tar.bz2 blind-76cdf509b36bb0012cde9bc1760cdf3b26874af2.tar.xz | |
Use CIE XYZ instead of sRGB
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/stream.h')
| -rw-r--r-- | src/stream.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/stream.h b/src/stream.h new file mode 100644 index 0000000..ccba77f --- /dev/null +++ b/src/stream.h @@ -0,0 +1,28 @@ +/* See LICENSE file for copyright and license details. */ +#include <stddef.h> +#include <stdio.h> + +struct stream +{ + size_t frames; + size_t width; + size_t height; + size_t pixel_size; + char pixfmt[32]; + int fd; + size_t ptr; + char buf[4096]; + const char *file; +}; + +void einit_stream(struct stream *stream); +void eninit_stream(int status, struct stream *stream); + +int set_pixel_size(struct stream *stream); +void eset_pixel_size(struct stream *stream); +void enset_pixel_size(int status, struct stream *stream); + +void fprint_stream_head(FILE *fp, struct stream *stream); + +size_t eread_stream(struct stream *stream, size_t n); +size_t enread_stream(int status, struct stream *stream, size_t n); |
