aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-05-07 16:48:25 +0200
committerMattias Andrée <maandree@kth.se>2017-05-07 17:10:45 +0200
commit878849c465604d90d236b3c8766bf75a4b6836d2 (patch)
tree315982d2c98ff7ae4de597697575837b41f24206 /src/stream.c
parentAdd support for floats (diff)
downloadblind-878849c465604d90d236b3c8766bf75a4b6836d2.tar.gz
blind-878849c465604d90d236b3c8766bf75a4b6836d2.tar.bz2
blind-878849c465604d90d236b3c8766bf75a4b6836d2.tar.xz
Add blind-convert
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stream.c b/src/stream.c
index 6ff71c0..46edfa8 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -106,6 +106,8 @@ set_pixel_size(struct stream *stream)
{
if (!strcmp(stream->pixfmt, "xyza"))
stream->pixel_size = 4 * sizeof(double);
+ else if (!strcmp(stream->pixfmt, "xyza f"))
+ stream->pixel_size = 4 * sizeof(float);
else
return -1;
return 0;