aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-01-12 07:53:06 +0100
committerMattias Andrée <maandree@kth.se>2017-01-12 07:53:06 +0100
commitae811c3ce7b71902b508c65278050f0358471e98 (patch)
treee6f802e8476da87c4f53320128e674c58ee9c6a3 /src/stream.h
parentMakefile: clean: do not list .o files explicitly (diff)
downloadblind-ae811c3ce7b71902b508c65278050f0358471e98.tar.gz
blind-ae811c3ce7b71902b508c65278050f0358471e98.tar.bz2
blind-ae811c3ce7b71902b508c65278050f0358471e98.tar.xz
m + Add vu-gauss-blur
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/stream.h')
-rw-r--r--src/stream.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/stream.h b/src/stream.h
index 80dd630..b59527a 100644
--- a/src/stream.h
+++ b/src/stream.h
@@ -13,6 +13,11 @@
#define enread_row(...) enread_frame(__VA_ARGS__)
#define eread_row(...) eread_frame(__VA_ARGS__)
+#define process_each_frame_segmented(...) nprocess_each_frame_segmented(1, __VA_ARGS__)
+#define process_two_streams(...) nprocess_two_streams(1, __VA_ARGS__)
+#define process_multiple_streams(...) nprocess_multiple_streams(1, __VA_ARGS__)
+#define process_each_frame_two_streams(...) nprocess_each_frame_two_streams(1, __VA_ARGS__)
+
struct stream
{
size_t frames;
@@ -38,11 +43,15 @@ void encheck_frame_size(int status, size_t width, size_t height, size_t pixel_si
void encheck_compat(int status, const struct stream *a, const struct stream *b);
int enread_frame(int status, struct stream *stream, void *buf, size_t n);
-void process_each_frame_segmented(struct stream *stream, int output_fd, const char* output_fname,
+void nprocess_each_frame_segmented(int status, struct stream *stream, int output_fd, const char* output_fname,
void (*process)(struct stream *stream, size_t n, size_t frame));
-void process_two_streams(struct stream *left, struct stream *right, int output_fd, const char* output_fname,
+void nprocess_two_streams(int status, struct stream *left, struct stream *right, int output_fd, const char* output_fname,
void (*process)(struct stream *left, struct stream *right, size_t n));
-void process_multiple_streams(struct stream *streams, size_t n_streams, int output_fd, const char* output_fname,
+void nprocess_multiple_streams(int status, struct stream *streams, size_t n_streams, int output_fd, const char* output_fname,
void (*process)(struct stream *streams, size_t n_streams, size_t n));
+
+void nprocess_each_frame_two_streams(int status, struct stream *left, struct stream *right, int output_fd, const char* output_fname,
+ void (*process)(char *restrict output, char *restrict lbuf, char *restrict rbuf,
+ struct stream *left, struct stream *right, size_t ln, size_t rn));