diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-09 04:30:05 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-09 04:30:05 +0100 |
| commit | 8c0c4c709b86c3ae75752e2ca761354fadc837f1 (patch) | |
| tree | a4cb4de66909544c36d9481065f0b310f336e554 | |
| parent | Add vu-flop (diff) | |
| download | blind-8c0c4c709b86c3ae75752e2ca761354fadc837f1.tar.gz blind-8c0c4c709b86c3ae75752e2ca761354fadc837f1.tar.bz2 blind-8c0c4c709b86c3ae75752e2ca761354fadc837f1.tar.xz | |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
| -rw-r--r-- | src/util.h | 7 | ||||
| -rw-r--r-- | src/vu-flop.c | 2 |
2 files changed, 4 insertions, 5 deletions
@@ -92,9 +92,8 @@ static inline void srgb_to_ciexyz(double r, double g, double b, double *x, double *y, double *z) { #define MULTIPLY(CR, CG, CB) ((CR) * r + (CG) * g + (CB) * b) - *x = MULTIPLIY(0.412457445582367576708548995157, 0.357575865245515878143578447634, 0.180437247826399665973085006954); - *y = MULTIPLIY(0.212673370378408277403536885686, 0.715151730491031756287156895269, 0.072174899130559869164791564344); - *z = MULTIPLIY(0.019333942761673460208893260415, 0.119191955081838593666354597644, 0.950302838552371742508739771438); + *x = MULTIPLY(0.412457445582367576708548995157, 0.357575865245515878143578447634, 0.180437247826399665973085006954); + *y = MULTIPLY(0.212673370378408277403536885686, 0.715151730491031756287156895269, 0.072174899130559869164791564344); + *z = MULTIPLY(0.019333942761673460208893260415, 0.119191955081838593666354597644, 0.950302838552371742508739771438); #undef MULTIPLY - } diff --git a/src/vu-flop.c b/src/vu-flop.c index ee24263..733ced5 100644 --- a/src/vu-flop.c +++ b/src/vu-flop.c @@ -42,7 +42,7 @@ main(int argc, char *argv[]) eprintf("<stdin>: video is too wide\n"); n = stream.width * stream.pixel_size; if (!(buf = malloc(n))) - eprint("malloc:"); + eprintf("malloc:"); wm = stream.width - 1; memcpy(buf, stream.buf, ptr = stream.ptr); |
