Closed tmsd2001 closed 2 years ago
Can you supply a patch to the libcamera mailing list please? or report this on bugs.libcamera.org ?
(It would be good to know what version of compiler and distro you are using, as I would expect to have hit this in our compiler matrix)
ok, I have created a BUG in Bugzilla. The Problem is
double offset;
for my purposes I could use:
double offset = 0;
switch (colorSpace.range) {
case libcamera::ColorSpace::Range::Full:
offset = 0.0;
break;
case libcamera::ColorSpace::Range::Limited:
offset = 16.0;
for (unsigned int i = 0; i < 3; ++i)
yuv2rgb[i] *= 255.0 / 219.0;
for (unsigned int i = 4; i < 9; ++i)
yuv2rgb[i] *= 255.0 / 224.0;
break;
}
that probably no one of the cases happened and the variable then NaN.
Looks like someone else is already working on a fix too: https://patchwork.libcamera.org/patch/17280/ Closing as duplicate for now.