Oyranos  0.9.7
Oyranos is a full featured Color Management System
Functions | Variables

Little CMS 2 ICC style color profiles. More...

Collaboration diagram for lcm2 Module:

Functions

oyImage_slcm2ParseCGATS (const char *cgats)
 Parse a CGATS text. More...
 
int l2cmsMOptions_Handle5 (oyOptions_s *options, const char *command, oyOptions_s **result)
 
const char * l2cmsInfoGetTextProfileC5 (const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
 
oyProfile_slcm2AbstractWhitePointBradford (double *src_iccXYZ, double *illu_iccXYZ, uint32_t icc_profile_flags)
 create a White point correction profile with Bradford More...
 
int l2cmsMOptions_Handle4 (oyOptions_s *options, const char *command, oyOptions_s **result)
 
const char * l2cmsInfoGetTextProfile4 (const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
 
oyProfile_slcm2AbstractWhitePoint (double cie_a, double cie_b, uint32_t icc_profile_flags)
 create a White point correction profile More...
 
int l2cmsMOptions_Handle3 (oyOptions_s *options, const char *command, oyOptions_s **result)
 
const char * l2cmsInfoGetTextProfileC3 (const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
 
cmsHPROFILE l2cmsGamutCheckAbstract (oyProfile_s *proof, cmsUInt32Number flags, int intent, int intent_proof, uint32_t icc_profile_flags)
 convert a proofing profile into a abstract one More...
 
int l2cmsMOptions_Handle2 (oyOptions_s *options, const char *command, oyOptions_s **result)
 
const char * l2cmsInfoGetTextProfileC2 (const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
 
oyProfile_sl2cmsCreateICCMatrixProfile (float gamma, float rx, float ry, float gx, float gy, float bx, float by, float wx, float wy, int icc_profile_flags)
 create a profile from primaries, white point and one gamma value More...
 
int l2cmsMOptions_Handle (oyOptions_s *options, const char *command, oyOptions_s **result)
 
const char * l2cmsInfoGetTextProfileC (const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
 

Variables

oyCMMapi10_s_ l2cms_api10_cmm5
 Node for Parsing a CGATS text. More...
 
oyCMMapi10_s_ l2cms_api10_cmm4
 Node for Creating White Point Effect Profiles. More...
 
oyCMMapi10_s_ l2cms_api10_cmm3
 Node for Creating White Point Effect Profiles. More...
 
oyCMMapi10_s_ l2cms_api10_cmm2
 Node for Creating Proofing Effect Profiles. More...
 
oyCMMapi10_s_ l2cms_api10_cmm
 Node for Creating simple Color Matrix Profiles. More...
 

Detailed Description

Little CMS 2 ICC style color profiles.

The modules provide ICC style color space creation.

Function Documentation

◆ l2cmsCreateICCMatrixProfile()

oyProfile_s* l2cmsCreateICCMatrixProfile ( float  gamma,
float  rx,
float  ry,
float  gx,
float  gy,
float  bx,
float  by,
float  wx,
float  wy,
int  icc_profile_flags 
)

create a profile from primaries, white point and one gamma value

Function l2cmsCreateICCMatrixProfile

Used for ICC from EDID, Camera RAW etc. Marti calls these matrix/shaper.

Version
Oyranos: 0.9.6
Date
2014/04/07
Since
2009/10/24 (Oyranos: 0.1.10)

References lcm2CreateICCMatrixProfile2(), and OY_ICC_VERSION_2.

◆ l2cmsGamutCheckAbstract()

cmsHPROFILE l2cmsGamutCheckAbstract ( oyProfile_s proof,
cmsUInt32Number  flags,
int  intent,
int  intent_proof,
uint32_t  icc_profile_flags 
)

convert a proofing profile into a abstract one

Function l2cmsGamutCheckAbstract

Abstract profiles can easily be merged into a multi profile transform.

Parameters
proofthe proofing profile; owned by the function
flagsthe gamut check and softproof flags
intentrendering intent
intent_proofproof rendering intent
icc_profile_flagsprofile flags
Version
Oyranos: 0.1.11
Since
2009/11/04 (Oyranos: 0.1.10)
Date
2010/08/14

◆ l2cmsInfoGetTextProfile4()

const char* l2cmsInfoGetTextProfile4 ( const char *  select,
oyNAME_e  type,
oyStruct_s *context  OY_UNUSED 
)

This function implements oyCMMinfoGetText_f.

Version
Oyranos: 0.9.7
Date
2018/03/02
Since
2017/06/06 (Oyranos: 0.9.7)

◆ l2cmsInfoGetTextProfileC()

const char* l2cmsInfoGetTextProfileC ( const char *  select,
oyNAME_e  type,
oyStruct_s *context  OY_UNUSED 
)

This function implements oyCMMinfoGetText_f.

Version
Oyranos: 0.1.10
Since
2009/12/11 (Oyranos: 0.1.10)
Date
2009/12/11

◆ l2cmsInfoGetTextProfileC2()

const char* l2cmsInfoGetTextProfileC2 ( const char *  select,
oyNAME_e  type,
oyStruct_s *context  OY_UNUSED 
)

This function implements oyCMMinfoGetText_f.

Version
Oyranos: 0.3.0
Since
2011/02/21 (Oyranos: 0.3.0)
Date
2011/02/21

◆ l2cmsInfoGetTextProfileC3()

const char* l2cmsInfoGetTextProfileC3 ( const char *  select,
oyNAME_e  type,
oyStruct_s *context  OY_UNUSED 
)

This function implements oyCMMinfoGetText_f.

Version
Oyranos: 0.9.7
Date
2018/03/01
Since
2017/06/06 (Oyranos: 0.9.7)

◆ l2cmsInfoGetTextProfileC5()

const char* l2cmsInfoGetTextProfileC5 ( const char *  select,
oyNAME_e  type,
oyStruct_s *context  OY_UNUSED 
)

This function implements oyCMMinfoGetText_f.

Version
Oyranos: 0.9.7
Since
2017/06/06 (Oyranos: 0.9.7)
Date
2017/06/06

◆ l2cmsMOptions_Handle()

int l2cmsMOptions_Handle ( oyOptions_s options,
const char *  command,
oyOptions_s **  result 
)

This function implements oyMOptions_Handle_f.

Parameters
[in]optionsexpects at least one option
  • "color_matrix.redx_redy_greenx_greeny_bluex_bluey_whitex_whitey_gamma" The option shall contain 9 double values.
  • "icc_profile_flags" OY_ICC_VERSION_2 and OY_ICC_VERSION_4 let select version 2 and 4 profiles separately. This option shall be a integer.
[in]command"//" OY_TYPE_STD "/create_profile.color_matrix.icc"
[out]resultwill contain a oyProfile_s in "icc_profile.create_profile.color_matrix"

This function uses internally l2cmsCreateICCMatrixProfile().

Version
Oyranos: 0.1.10
Since
2009/12/11 (Oyranos: 0.1.10)
Date
2009/12/11

References oyFilterRegistrationMatch(), oyNAME_PATTERN, oyOptions_s::oyOptions_Find(), and oyOptions_s::oyOptions_FindDouble().

◆ l2cmsMOptions_Handle2()

int l2cmsMOptions_Handle2 ( oyOptions_s options,
const char *  command,
oyOptions_s **  result 
)

This function implements oyMOptions_Handle_f.

Parameters
[in]optionsexpects at least one option
[in]command"//" OY_TYPE_STD "/create_profile.proofing_profile"
[out]resultwill contain a oyProfile_s in "icc_profile.create_profile.proofing_profile"

This function uses internally l2cmsAddProofProfile().

Version
Oyranos: 0.3.0
Since
2011/02/21 (Oyranos: 0.3.0)
Date
2011/02/21

References oyFilterRegistrationMatch(), oyOBJECT_PROFILE_S, oyOptions_s::oyOptions_GetType(), and oyProfile_s::oyProfile_Release().

◆ l2cmsMOptions_Handle3()

int l2cmsMOptions_Handle3 ( oyOptions_s options,
const char *  command,
oyOptions_s **  result 
)

This function implements oyMOptions_Handle_f.

Parameters
[in]optionsexpects at least two options
  • "cie_a": The option shall be a double.
  • "cie_b": The option shall be a double.
  • "icc_profile_flags" OY_ICC_VERSION_2 and OY_ICC_VERSION_4 let select version 2 and 4 profiles separately. This option shall be a integer.
[in]command"//" OY_TYPE_STD "/create_profile.white_point_adjust.lab"
[out]resultwill contain a oyProfile_s in "icc_profile.create_profile.white_point_adjust.lab"

This function uses internally lcm2AbstractWhitePoint().

Version
Oyranos: 0.9.7
Since
2017/06/05 (Oyranos: 0.9.7)
Date
2017/06/05

References oyFilterRegistrationMatch(), and oyOptions_s::oyOptions_FindDouble().

◆ l2cmsMOptions_Handle4()

int l2cmsMOptions_Handle4 ( oyOptions_s options,
const char *  command,
oyOptions_s **  result 
)

This function implements oyMOptions_Handle_f.

Parameters
[in]optionsexpects at least two options
  • "src_iccXYZ": The option shall be a double[3] array.
  • "illu_iccXYZ": The option shall be a double[3] array.
  • "icc_profile_flags" OY_ICC_VERSION_2 and OY_ICC_VERSION_4 let select version 2 and 4 profiles separately. This option shall be a integer.
[in]command"//" OY_TYPE_STD "/create_profile.white_point_adjust.bradford"
[out]resultwill contain a oyProfile_s in "icc_profile.create_profile.white_point_adjust.bradford"

This function uses internally lcm2AbstractWhitePoint().

Version
Oyranos: 0.9.7
Date
2018/03/02
Since
2017/06/05 (Oyranos: 0.9.7)

References oyFilterRegistrationMatch(), and oyOptions_s::oyOptions_FindDouble().

◆ l2cmsMOptions_Handle5()

int l2cmsMOptions_Handle5 ( oyOptions_s options,
const char *  command,
oyOptions_s **  result 
)

This function implements oyMOptions_Handle_f.

Parameters
[in]optionsexpects at least one options
  • "cgats": The option shall be a string.
[in]command"//" OY_TYPE_STD "/parse_cgats"
[out]resultwill contain a oyImage_s in "colors"

The Handler uses internally lcm2ParseCGATS().

Version
Oyranos: 0.9.7
Since
2017/11/26 (Oyranos: 0.9.7)
Date
2017/11/26

References lcm2ParseCGATS(), oyFilterRegistrationMatch(), oyOption_s::oyOption_FromRegistration(), oyOption_s::oyOption_MoveInStruct(), oyOptions_s::oyOptions_FindString(), oyOptions_s::oyOptions_MoveIn(), and oyOptions_s::oyOptions_New().

◆ lcm2AbstractWhitePoint()

oyProfile_s* lcm2AbstractWhitePoint ( double  cie_a,
double  cie_b,
uint32_t  icc_profile_flags 
)

create a White point correction profile

Function lcm2AbstractWhitePoint

Abstract profiles can easily be merged into a multi profile transform.

See also
lcm2CreateAbstractWhitePointProfile()
Parameters
cie_athe white point coordinate
cie_bthe white point coordinate
icc_profile_flagsprofile flags
Version
Oyranos: 0.9.7
Since
2017/06/05 (Oyranos: 0.9.7)
Date
2018/01/17

◆ lcm2AbstractWhitePointBradford()

oyProfile_s* lcm2AbstractWhitePointBradford ( double *  src_iccXYZ,
double *  illu_iccXYZ,
uint32_t  icc_profile_flags 
)

create a White point correction profile with Bradford

Function lcm2AbstractWhitePointBradford

Abstract profiles can easily be merged into a multi profile transform.

See also
lcm2CreateAbstractWhitePointProfileBradford()
Parameters
src_iccXYZthe source white point
illu_iccXYZthe illumination white point
icc_profile_flagsprofile flags
Version
Oyranos: 0.9.7
Date
2018/03/02
Since
2017/06/05 (Oyranos: 0.9.7)

◆ lcm2ParseCGATS()

oyImage_s* lcm2ParseCGATS ( const char *  cgats)

Parse a CGATS text.

Function lcm2ParseCGATS

Version
Oyranos: 0.9.7
Since
2017/11/26 (Oyranos: 0.9.7)
Date
2017/11/26

Referenced by l2cmsMOptions_Handle5().

Variable Documentation

◆ l2cms_api10_cmm

oyCMMapi10_s_ l2cms_api10_cmm
Initial value:
= {
0,0,0,
OY_LCM2_CREATE_MATRIX_REGISTRATION,
CMM_VERSION,
CMM_API_VERSION,
0,
0,
0,
(char**)l2cms_texts_profile_create,
}
oyCMMapi10_s_ l2cms_api10_cmm2
Node for Creating Proofing Effect Profiles.
Definition: oyranos_cmm_lcm2.c:4001
int l2cmsMOptions_Handle(oyOptions_s *options, const char *command, oyOptions_s **result)
Definition: oyranos_cmm_lcm2.c:4092
const char * l2cmsInfoGetTextProfileC(const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
Definition: oyranos_cmm_lcm2.c:4171
@ oyOBJECT_CMM_API10_S
Definition: oyranos_object.h:175
int l2cmsCMMMessageFuncSet(oyMessage_f l2cms_msg_func)
Definition: oyranos_cmm_lcm2.c:2952
int l2cmsCMMInit(oyStruct_s *filter OY_UNUSED)
API requirement.
Definition: oyranos_cmm_lcm2.c:397
the basic API interface
Definition: oyCMMapi_s.h:88

Node for Creating simple Color Matrix Profiles.

l2cms_api10_cmm

littleCMS 2 oyCMMapi10_s implementation

For the front end API see oyOptions_Handle(). The backend options are described in l2cmsMOptions_Handle().

Version
Oyranos: 0.1.10
Since
2009/12/11 (Oyranos: 0.1.10)
Date
2009/12/11

◆ l2cms_api10_cmm2

oyCMMapi10_s_ l2cms_api10_cmm2
Initial value:
= {
0,0,0,
OY_LCM2_CREATE_ABSTRACT_PROOFING_REGISTRATION,
CMM_VERSION,
CMM_API_VERSION,
0,
0,
0,
(char**)l2cms_texts_profile_create,
}
oyCMMapi10_s_ l2cms_api10_cmm3
Node for Creating White Point Effect Profiles.
Definition: oyranos_cmm_lcm2.c:3711
int l2cmsMOptions_Handle2(oyOptions_s *options, const char *command, oyOptions_s **result)
Definition: oyranos_cmm_lcm2.c:3887
const char * l2cmsInfoGetTextProfileC2(const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
Definition: oyranos_cmm_lcm2.c:3954

Node for Creating Proofing Effect Profiles.

l2cms_api10_cmm2

littleCMS 2 oyCMMapi10_s implementation

For the front end API see oyOptions_Handle(). The backend options are described in l2cmsMOptions_Handle2().

Version
Oyranos: 0.3.0
Since
2011/02/21 (Oyranos: 0.3.0)
Date
2011/02/21

◆ l2cms_api10_cmm3

oyCMMapi10_s_ l2cms_api10_cmm3
Initial value:
= {
0,0,0,
OY_LCM2_CREATE_ABSTRACT_WHITE_POINT_LAB_REGISTRATION,
CMM_VERSION,
CMM_API_VERSION,
0,
0,
0,
(char**)l2cms_texts_profile_create,
}
int l2cmsMOptions_Handle3(oyOptions_s *options, const char *command, oyOptions_s **result)
Definition: oyranos_cmm_lcm2.c:3616
oyCMMapi10_s_ l2cms_api10_cmm4
Node for Creating White Point Effect Profiles.
Definition: oyranos_cmm_lcm2.c:3505
const char * l2cmsInfoGetTextProfileC3(const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
Definition: oyranos_cmm_lcm2.c:3667

Node for Creating White Point Effect Profiles.

l2cms_api10_cmm3

littleCMS 2 oyCMMapi10_s implementation

For the front end API see oyOptions_Handle(). The backend options are described in l2cmsMOptions_Handle3().

Version
Oyranos: 0.9.7
Since
2017/06/05 (Oyranos: 0.9.7)
Date
2017/06/05

◆ l2cms_api10_cmm4

oyCMMapi10_s_ l2cms_api10_cmm4
Initial value:
= {
0,0,0,
OY_LCM2_CREATE_ABSTRACT_WHITE_POINT_BRADFORD_REGISTRATION,
CMM_VERSION,
CMM_API_VERSION,
0,
0,
0,
(char**)l2cms_texts_profile_create,
}
oyCMMapi10_s_ l2cms_api10_cmm5
Node for Parsing a CGATS text.
Definition: oyranos_cmm_lcm2.c:3290
int l2cmsMOptions_Handle4(oyOptions_s *options, const char *command, oyOptions_s **result)
Definition: oyranos_cmm_lcm2.c:3405
const char * l2cmsInfoGetTextProfile4(const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
Definition: oyranos_cmm_lcm2.c:3461

Node for Creating White Point Effect Profiles.

l2cms_api10_cmm4

littleCMS 2 oyCMMapi10_s implementation

For the front end API see oyOptions_Handle(). The backend options are described in l2cmsMOptions_Handle4().

Version
Oyranos: 0.9.7
Date
2018/03/02
Since
2018/03/02 (Oyranos: 0.9.7)

◆ l2cms_api10_cmm5

oyCMMapi10_s_ l2cms_api10_cmm5
Initial value:
= {
0,0,0,
0,
OY_LCM2_PARSE_CGATS,
CMM_VERSION,
CMM_API_VERSION,
0,
0,
0,
(char**)l2cms_texts_parse_cgats,
}
int l2cmsMOptions_Handle5(oyOptions_s *options, const char *command, oyOptions_s **result)
Definition: oyranos_cmm_lcm2.c:3197
const char * l2cmsInfoGetTextProfileC5(const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
Definition: oyranos_cmm_lcm2.c:3245

Node for Parsing a CGATS text.

l2cms_api10_cmm5

littleCMS 2 oyCMMapi10_s implementation

For the front end API see oyOptions_Handle(). The backend options are described in l2cmsMOptions_Handle5().

Version
Oyranos: 0.9.7
Since
2017/06/05 (Oyranos: 0.9.7)
Date
2017/06/05