bayer2rgb
bayer2rgb copied to clipboard
on 2780 x 2080
./bayer2rgba -fBGGR -b10 -w2720 -v2080 -i./image1.raw -o/tmp/rgb1
Segmentation fault (core dumped)
rgb1 is 2 bytes/bayer cell
At:
rgb[-1] = (uint16_t) t0;
rgb[0] = (uint16_t) t1;
rgb[1] = bayer[bayerStep + 1];
Where bayer[bayerStep+1] is 2721, this is out of range ?