From 838bb6c49307e617a5e152c6f30a0a12645b3379 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 30 Mar 2024 20:22:50 +1100 Subject: [PATCH] Added RGB to I;16N conversion --- src/libImaging/Convert.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libImaging/Convert.c b/src/libImaging/Convert.c index 75fdab820..7e60a960c 100644 --- a/src/libImaging/Convert.c +++ b/src/libImaging/Convert.c @@ -967,6 +967,11 @@ static struct { {"RGB", "I;16", rgb2i16l}, {"RGB", "I;16L", rgb2i16l}, {"RGB", "I;16B", rgb2i16b}, +#ifdef WORDS_BIGENDIAN + {"RGB", "I;16N", rgb2i16b}, +#else + {"RGB", "I;16N", rgb2i16l}, +#endif {"RGB", "F", rgb2f}, {"RGB", "BGR;15", rgb2bgr15}, {"RGB", "BGR;16", rgb2bgr16},