![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "system/display_profile.h"#include "system/mem_alloc.h"#include "system/macros.h"#include <dwmapi.h>#include <gdk/gdkwin32.h>
Include dependency graph for display_profile.c:Go to the source code of this file.
Functions | |
| void | dt_display_profile_read (GtkWidget *widget, guint8 **buffer, gint *buffer_size, gchar **source) |
| 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().