From: Øyvind Kolås Date: Thu, 23 Mar 2023 10:18:58 +0000 (+0100) Subject: LUT: (temporarily) opt out of conversions from R'aG'a'B'aA u8 formats X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=370ee6af65a2fb265f12d04fff361ee9593086d7;p=babl.git LUT: (temporarily) opt out of conversions from R'aG'a'B'aA u8 formats --- 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