From 370ee6af65a2fb265f12d04fff361ee9593086d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Thu, 23 Mar 2023 11:18:58 +0100 Subject: [PATCH] LUT: (temporarily) opt out of conversions from R'aG'a'B'aA u8 formats --- babl/babl-fish-path.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c index 9c1e48a..a5d6b8b 100644 --- a/babl/babl-fish-path.c +++ b/babl/babl-fish-path.c @@ -969,6 +969,8 @@ _babl_fish_prepare_bpp (Babl *babl) const Babl *dest_type = babl_format_get_type (babl_dest, babl_format_get_n_components (babl_dest) - 1); + int src_not_associated = ((babl->conversion.source->format.model->flags & + BABL_MODEL_FLAG_ASSOCIATED)==0); int dest_not_associated = ((babl->conversion.destination->format.model->flags & BABL_MODEL_FLAG_ASSOCIATED)==0); if ( @@ -981,17 +983,20 @@ _babl_fish_prepare_bpp (Babl *babl) && dest_bpp == 16 && source_type == babl_type_from_id (BABL_U8) && dest_type == babl_type_from_id (BABL_FLOAT) + && src_not_associated && dest_not_associated) ||( source_bpp == 4 && dest_bpp == 4 && dest_type == source_type + && src_not_associated && dest_not_associated) ||( source_bpp == 4 && dest_bpp == 8 && source_type == babl_type_from_id (BABL_U8) && dest_type == babl_type_from_id (BABL_U16) + && src_not_associated && dest_not_associated) ||( source_bpp == 3 -- 2.30.2