mirror of https://github.com/GNOME/gimp.git
app: treat half precision float the same as single and double
.. which is to say encourage use of linear gamma, by making it one fewer step to end up in linear than gamma corrected.
This commit is contained in:
parent
da49a3fadf
commit
30a8edeab5
|
@ -127,16 +127,18 @@ convert_precision_dialog_new (GimpImage *image,
|
|||
linear = FALSE;
|
||||
break;
|
||||
|
||||
/* leave gamma alone by default when converting to 16/32 bit float */
|
||||
case GIMP_COMPONENT_TYPE_U16:
|
||||
case GIMP_COMPONENT_TYPE_U32:
|
||||
case GIMP_COMPONENT_TYPE_HALF:
|
||||
default:
|
||||
linear = gimp_babl_format_get_linear (old_format);
|
||||
break;
|
||||
|
||||
case GIMP_COMPONENT_TYPE_FLOAT:
|
||||
case GIMP_COMPONENT_TYPE_HALF:
|
||||
case GIMP_COMPONENT_TYPE_DOUBLE:
|
||||
/* default to linear when converting to float or double */
|
||||
/* default to linear when converting to half, single or double precision
|
||||
* floating point */
|
||||
linear = TRUE;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -659,12 +659,12 @@ gimp_template_editor_precision_changed (GtkWidget *widget,
|
|||
|
||||
case GIMP_COMPONENT_TYPE_U16:
|
||||
case GIMP_COMPONENT_TYPE_U32:
|
||||
case GIMP_COMPONENT_TYPE_HALF:
|
||||
default:
|
||||
/* leave 'linear' alone */
|
||||
break;
|
||||
|
||||
case GIMP_COMPONENT_TYPE_FLOAT:
|
||||
case GIMP_COMPONENT_TYPE_HALF:
|
||||
case GIMP_COMPONENT_TYPE_DOUBLE:
|
||||
/* default to linear when converting to float or double */
|
||||
g_object_set (private->template,
|
||||
|
|
Loading…
Reference in New Issue