diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-05-16 20:14:22 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-05-16 20:14:22 +0200 |
| commit | 0f03cc378e6ce48f17a20e409f93bfc11345a6ed (patch) | |
| tree | f4768c6fe96e1ac2a9c5833dee897924300d4a45 /src/blind-convert.c | |
| parent | Add blind-tempral-mean (diff) | |
| download | blind-0f03cc378e6ce48f17a20e409f93bfc11345a6ed.tar.gz blind-0f03cc378e6ce48f17a20e409f93bfc11345a6ed.tar.bz2 blind-0f03cc378e6ce48f17a20e409f93bfc11345a6ed.tar.xz | |
Fix errors and warnings and make the code cleaner
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/blind-convert.c')
| -rw-r--r-- | src/blind-convert.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/blind-convert.c b/src/blind-convert.c index 32ab2c2..e0ffc0f 100644 --- a/src/blind-convert.c +++ b/src/blind-convert.c @@ -1,9 +1,5 @@ /* See LICENSE file for copyright and license details. */ -#include "stream.h" -#include "util.h" - -#include <alloca.h> -#include <string.h> +#include "common.h" USAGE("pixel-format ...") @@ -20,10 +16,10 @@ static void (*outconv)(double *xyzas, size_t n); interm = buf;\ n = stream->ptr / stream->pixel_size;\ for (m = n; m--; in += 4, interm += 4) { \ - interm[0] = (TYPE)(in[0]);\ - interm[1] = (TYPE)(in[1]);\ - interm[2] = (TYPE)(in[2]);\ - interm[3] = (TYPE)(in[3]);\ + interm[0] = (double)(in[0]);\ + interm[1] = (double)(in[1]);\ + interm[2] = (double)(in[2]);\ + interm[3] = (double)(in[3]);\ }\ outconv(buf, n);\ n *= stream->pixel_size;\ |
