Lines 205-211
int main(int argc, char *argv[])
Link Here
|
205 |
oyConfig_s * oy_device = 0; |
205 |
oyConfig_s * oy_device = 0; |
206 |
oyProfile_s * profile = 0; |
206 |
oyProfile_s * profile = 0; |
207 |
const char * tmp = 0; |
207 |
const char * tmp = 0; |
208 |
icSignature profile_class; |
208 |
icSignature profile_class = icSigDisplayClass; |
209 |
oyOptions_s * options = 0; |
209 |
oyOptions_s * options = 0; |
210 |
oyOptions_SetFromText( &options, |
210 |
oyOptions_SetFromText( &options, |
211 |
"//"OY_TYPE_STD"/config/icc_profile.x_color_region_target", |
211 |
"//"OY_TYPE_STD"/config/icc_profile.x_color_region_target", |
Lines 331-337
int main(int argc, char *argv[])
Link Here
|
331 |
oyConfig_s * oy_device = 0; |
331 |
oyConfig_s * oy_device = 0; |
332 |
oyProfile_s * profile = 0; |
332 |
oyProfile_s * profile = 0; |
333 |
const char * tmp = 0; |
333 |
const char * tmp = 0; |
334 |
icSignature profile_class; |
|
|
335 |
oyOptions_s * options = 0; |
334 |
oyOptions_s * options = 0; |
336 |
oyOptions_SetFromText( &options, |
335 |
oyOptions_SetFromText( &options, |
337 |
"//"OY_TYPE_STD"/config/icc_profile.x_color_region_target", |
336 |
"//"OY_TYPE_STD"/config/icc_profile.x_color_region_target", |
Lines 344-358
int main(int argc, char *argv[])
Link Here
|
344 |
oyConfDomain_s * d = oyConfDomain_FromReg( device_class, 0 ); |
343 |
oyConfDomain_s * d = oyConfDomain_FromReg( device_class, 0 ); |
345 |
const char * icc_profile_class = oyConfDomain_GetText( d, |
344 |
const char * icc_profile_class = oyConfDomain_GetText( d, |
346 |
"icc_profile_class", oyNAME_NICK ); |
345 |
"icc_profile_class", oyNAME_NICK ); |
347 |
if(icc_profile_class && strcmp(icc_profile_class,"display") == 0) |
|
|
348 |
profile_class = icSigDisplayClass; |
349 |
else if(icc_profile_class && strcmp(icc_profile_class,"output") == 0) |
350 |
profile_class = icSigOutputClass; |
351 |
else if(icc_profile_class && strcmp(icc_profile_class,"input") == 0) |
352 |
profile_class = icSigInputClass; |
353 |
|
346 |
|
354 |
printf("icc_profile_class: %s\n", icc_profile_class ); |
347 |
printf("icc_profile_class: %s\n", icc_profile_class ); |
355 |
oyConfDomain_Release( &d ); |
348 |
oyConfDomain_Release( &d ); |
356 |
} |
349 |
} |
357 |
|
350 |
|
358 |
error = oyDeviceGet( 0, device_class, device_name, 0, &oy_device ); |
351 |
error = oyDeviceGet( 0, device_class, device_name, 0, &oy_device ); |
Lines 374-387
int main(int argc, char *argv[])
Link Here
|
374 |
oyProfile_s * profile = 0; |
367 |
oyProfile_s * profile = 0; |
375 |
oyConfigs_s * taxi_devices = 0; |
368 |
oyConfigs_s * taxi_devices = 0; |
376 |
oyConfig_s * device = oy_device; |
369 |
oyConfig_s * device = oy_device; |
377 |
const char * profile_file_name = 0; |
|
|
378 |
|
370 |
|
379 |
oyDevicesFromTaxiDB( device, 0, &taxi_devices, 0 ); |
371 |
oyDevicesFromTaxiDB( device, 0, &taxi_devices, 0 ); |
380 |
|
372 |
|
381 |
size = oyConfigs_Count( taxi_devices ); |
373 |
size = oyConfigs_Count( taxi_devices ); |
382 |
|
374 |
|
383 |
error = oyDeviceGetProfile( device, options, &profile ); |
375 |
error = oyDeviceGetProfile( device, options, &profile ); |
384 |
profile_file_name = oyProfile_GetFileName( profile, 0 ); |
|
|
385 |
|
376 |
|
386 |
int show_only_device_related = 1; |
377 |
int show_only_device_related = 1; |
387 |
int empty_added = -1; |
378 |
int empty_added = -1; |