Merge branch 'cicp-color-states' into 'main'
Fix the hlg transfer function See merge request GNOME/gtk!7493
This commit is contained in:
@@ -99,7 +99,7 @@ hlg_eotf (float v)
|
|||||||
if (v <= 0.5)
|
if (v <= 0.5)
|
||||||
return (v * v) / 3;
|
return (v * v) / 3;
|
||||||
else
|
else
|
||||||
return expf (((v - c) / a) + b) / 12.0;
|
return (expf ((v - c) / a) + b) / 12.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline float
|
static inline float
|
||||||
|
|||||||
@@ -632,13 +632,10 @@ gdk_color_state_new_for_cicp (const GdkCicp *cicp,
|
|||||||
eotf = pq_eotf;
|
eotf = pq_eotf;
|
||||||
oetf = pq_oetf;
|
oetf = pq_oetf;
|
||||||
break;
|
break;
|
||||||
#if 0
|
|
||||||
/* round-trip tests for hlg are failing, for some reason */
|
|
||||||
case 18:
|
case 18:
|
||||||
eotf = hlg_eotf;
|
eotf = hlg_eotf;
|
||||||
oetf = hlg_oetf;
|
oetf = hlg_oetf;
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
default:
|
default:
|
||||||
g_set_error (error,
|
g_set_error (error,
|
||||||
G_IO_ERROR, G_IO_ERROR_FAILED,
|
G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||||
|
|||||||
Reference in New Issue
Block a user