Show how to obtain and use a monitor profile.
#include <stdio.h>
int main(
int argc OY_UNUSED,
char ** argv OY_UNUSED ) {
const char * monitor_icc_dscr = NULL;
printf( "first monitor has profile: %s\n", monitor_icc_dscr );
float rgb_in[9] = {0,0,0, 0.5,0.5,0.5, 1,1,1};
float rgb_moni[9];
NULL, 3 );
int i;
for(i = 0; i < 3; ++i)
printf("%.02f %.02f %.02f -> %.05f %.05f %.05f\n",
rgb_in[3*i+0],rgb_in[3*i+1],rgb_in[3*i+2], rgb_moni[3*i+0],rgb_moni[3*i+1],rgb_moni[3*i+2]);
return 0;
}