41#include <glib-object.h>
51#include <X11/extensions/Xrandr.h>
148 printf(
"this executable doesn't do anything for non-X11 systems currently\n");
153 printf(
"this executable was built with colord support enabled\n");
155 printf(
"this executable was built without colord support\n");
159 printf(
"ansel itself was built with colord support enabled\n");
161 printf(
"ansel itself was built without colord support\n");
202 for(
int screen = 0; screen <
max_screen; ++screen)
223 for(
int output = 0; output <
crtc_info->noutput; output++)
237 printf(
"couldn't locate primary CRTC!\n");
253 printf(
"can't get CRTC info for screen %d CRTC %d\n", screen,
crtc);
259 printf(
"CRTC for screen %d CRTC %d has no mode or no output, skipping\n", screen,
crtc);
283 printf(
"can't get output info for screen %d CRTC %d output %d\n", screen,
crtc, output);
289 printf(
"screen %d CRTC %d output %d is disconnected, skipping\n", screen,
crtc, output);
408 char *message =
NULL;
416 if(
monitor->x_atom_length == 0)
418 message =
"the X atom seems to be missing";
431 message =
"the X atom and colord returned different profiles";
436 message =
"the X atom and colord returned the same profile";
448 message =
profiles_equal ?
"the X atom and colord returned the same profile"
449 :
"the X atom and colord returned different profiles";
459 if(message)
printf(
"\t%s", message);
477 printf(
"\nBetter check your system setup\n");
480 printf(
"You may experience inconsistent color rendition between color managed applications\n");
483 printf(
"\nYour system seems to be correctly configured\n");
static void error(char *msg)
const char darktable_package_version[]
#define IS_NULL_PTR(p)
C is way too permissive with !=, == and if(var) checks, which can mean too many things depending on w...
static void dt_free_gpointer(gpointer ptr)
g_free() one pointer, with the signature GDestroyNotify wants.
#define dt_free(ptr)
g_free() ptr and set it to NULL, skipping both if it is already NULL.
float dt_aligned_pixel_simd_t __attribute__((vector_size(16), aligned(16)))
Apply one channel's tone curve to each of the three colour channels, or pass the channel through unto...