diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-07-16 15:29:43 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-07-16 15:29:43 +0200 |
| commit | d05d162cb81664f292834fa5d48d623d2b6147a7 (patch) | |
| tree | 9d4252fcdfa2210613188d5c965514cfab6a8ec2 /src/stream.h | |
| parent | Use #include instead of #define (diff) | |
| download | blind-d05d162cb81664f292834fa5d48d623d2b6147a7.tar.gz blind-d05d162cb81664f292834fa5d48d623d2b6147a7.tar.bz2 blind-d05d162cb81664f292834fa5d48d623d2b6147a7.tar.xz | |
Misc code improvements
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | src/stream.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stream.h b/src/stream.h index f04918a..b85c6c6 100644 --- a/src/stream.h +++ b/src/stream.h @@ -37,7 +37,7 @@ #define einit_stream(...) eninit_stream(1, __VA_ARGS__) #define eopen_stream(...) enopen_stream(1, __VA_ARGS__) -#define eset_pixel_size(...) enset_pixel_size(1, __VA_ARGS__) +#define eset_pixel_format(...) enset_pixel_format(1, __VA_ARGS__) #define eread_stream(...) enread_stream(1, __VA_ARGS__) #define einf_check_fd(...) eninf_check_fd(1, __VA_ARGS__) #define echeck_dimensions(...) encheck_dimensions(1, __VA_ARGS__) @@ -100,8 +100,8 @@ struct stream { void eninit_stream(int status, struct stream *stream); void enopen_stream(int status, struct stream *stream, const char *file); -int set_pixel_size(struct stream *stream); -void enset_pixel_size(int status, struct stream *stream); +int set_pixel_format(struct stream *stream, const char *pixfmt); +void enset_pixel_format(int status, struct stream *stream, const char *pixfmt); void fprint_stream_head(FILE *fp, struct stream *stream); int dprint_stream_head(int fd, struct stream *stream); size_t enread_stream(int status, struct stream *stream, size_t n); |
