Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
display_profile.h File Reference
#include <gtk/gtk.h>
+ Include dependency graph for display_profile.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void dt_display_profile_read (GtkWidget *widget, guint8 **buffer, gint *buffer_size, gchar **source)
 

Function Documentation

◆ dt_display_profile_read()

void dt_display_profile_read ( GtkWidget widget,
guint8 **  buffer,
gint *  buffer_size,
gchar **  source 
)

Read the ICC profile the OS associates with the monitor showing widget.

On success sets *buffer (caller frees with dt_free) and *buffer_size, and sets *source to a short human-readable origin for logging (caller frees with dt_free). On platforms with no implementation, leaves everything untouched.

Does NOT cover colord: that path is asynchronous and calls back into the colour-profile subsystem's own state, so it stays with its consumer in common/colorspaces.c.

Definition at line 59 of file display_profile.c.

References dt_free, FALSE, IS_NULL_PTR, L, size, type, and window.

Referenced by dt_colorspaces_set_display_profile().