Fix channel count for RGBx (#2493)

RGBx is defined as a 4 channel format where the 4th channel is ignored
(5.3.1.1)
This commit is contained in:
Sreelakshmi Haridas Maruthur
2025-10-28 09:49:14 -06:00
committed by GitHub
parent d0aa95be2f
commit 74ebc67294

View File

@@ -137,10 +137,10 @@ uint32_t get_channel_order_channel_count(cl_channel_order order)
case CL_RGx: return 2; case CL_RGx: return 2;
case CL_RGB: case CL_RGB:
case CL_RGBx: case CL_sRGB: return 3;
case CL_sRGB:
case CL_sRGBx: return 3;
case CL_RGBx:
case CL_sRGBx:
case CL_RGBA: case CL_RGBA:
case CL_ARGB: case CL_ARGB:
case CL_BGRA: case CL_BGRA: