Add grayscale handling

This commit is contained in:
Georg Hagen
2025-02-18 21:19:29 +01:00
parent da9cc9e1d9
commit d601af055e

View File

@@ -36,7 +36,9 @@ namespace OpenVulkano::AR::Playback
}
else if (img.channels == 1)
{
//TODO handle grayscale
if (!img.data) img.Allocate();
tjDecompress2(jpegDecompressor, compressedImage, jpegSize, img.data, img.cols, 0/*pitch*/, img.rows, TJPF_GRAY, TJFLAG_FASTDCT);
}
else if (img.channels != 0)
{