summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-09 12:01:16 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-09 12:01:16 +0100
commitf332137b44472905f173b0717054bd48e8cfc33f (patch)
treecbaf26c49d47da3dd907f454a99f8b01841c08ba /src
parent4e242114e8a89fbe272cae93a05ac09ba0e8cf4c (diff)
downloadlibufodecode-f332137b44472905f173b0717054bd48e8cfc33f.tar.gz
libufodecode-f332137b44472905f173b0717054bd48e8cfc33f.tar.bz2
libufodecode-f332137b44472905f173b0717054bd48e8cfc33f.tar.xz
libufodecode-f332137b44472905f173b0717054bd48e8cfc33f.zip
Fill channel mask
Diffstat (limited to 'src')
-rw-r--r--src/ufodecode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ufodecode.c b/src/ufodecode.c
index 65ffec0..d65ad32 100644
--- a/src/ufodecode.c
+++ b/src/ufodecode.c
@@ -123,6 +123,8 @@ static int ufo_decode_frame(ufo_decoder decoder, uint16_t *pixel_buffer, uint16_
if ((row > num_rows)||(channel > cpl)||(pixels>IPECAMERA_PIXELS_PER_CHANNEL))
return EILSEQ;
+
+ if (cmask) cmask[row] |= (1<<channel);
channel = channel_order[channel];