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_Handle4 (oyOptions_s *options, const char *command, oyOptions_s **result)
 
const char * l2cmsInfoGetTextProfileC4 (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_cmm4
 Node for Parsing a CGATS text. 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

◆ 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
Since
2017/06/06 (Oyranos: 0.9.7)
Date
2017/06/06

◆ l2cmsInfoGetTextProfileC4()

const char* l2cmsInfoGetTextProfileC4 ( 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().

◆ 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().

◆ 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"
[out]resultwill contain a oyProfile_s in "icc_profile.create_profile.white_point_adjust"

This function uses internally lcm2AbstractWhitePoint().

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

References oyFilterRegistrationMatch().

◆ 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 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 oyFilterRegistrationMatch().

◆ 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

◆ 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

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,
}
Definition: oyranos_object.h:175
int l2cmsMOptions_Handle(oyOptions_s *options, const char *command, oyOptions_s **result)
Definition: oyranos_cmm_lcm2.c:3851
int l2cmsCMMInit(oyStruct_s *filter OY_UNUSED)
API requirement.
Definition: oyranos_cmm_lcm2.c:388
the basic API interface
Definition: oyCMMapi_s.h:88
const char * l2cmsInfoGetTextProfileC(const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
Definition: oyranos_cmm_lcm2.c:3930
oyCMMapi10_s_ l2cms_api10_cmm2
Node for Creating Proofing Effect Profiles.
Definition: oyranos_cmm_lcm2.c:3760
int l2cmsCMMMessageFuncSet(oyMessage_f l2cms_msg_func)
Definition: oyranos_cmm_lcm2.c:2925

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,
}
Definition: oyranos_object.h:175
const char * l2cmsInfoGetTextProfileC2(const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
Definition: oyranos_cmm_lcm2.c:3713
int l2cmsCMMInit(oyStruct_s *filter OY_UNUSED)
API requirement.
Definition: oyranos_cmm_lcm2.c:388
the basic API interface
Definition: oyCMMapi_s.h:88
oyCMMapi10_s_ l2cms_api10_cmm3
Node for Creating White Point Effect Profiles.
Definition: oyranos_cmm_lcm2.c:3470
int l2cmsCMMMessageFuncSet(oyMessage_f l2cms_msg_func)
Definition: oyranos_cmm_lcm2.c:2925
int l2cmsMOptions_Handle2(oyOptions_s *options, const char *command, oyOptions_s **result)
Definition: oyranos_cmm_lcm2.c:3646

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_REGISTRATION,
CMM_VERSION,
CMM_API_VERSION,
0,
0,
0,
(char**)l2cms_texts_profile_create,
}
Definition: oyranos_object.h:175
int l2cmsCMMInit(oyStruct_s *filter OY_UNUSED)
API requirement.
Definition: oyranos_cmm_lcm2.c:388
the basic API interface
Definition: oyCMMapi_s.h:88
int l2cmsMOptions_Handle3(oyOptions_s *options, const char *command, oyOptions_s **result)
Definition: oyranos_cmm_lcm2.c:3374
const char * l2cmsInfoGetTextProfileC3(const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
Definition: oyranos_cmm_lcm2.c:3425
oyCMMapi10_s_ l2cms_api10_cmm4
Node for Parsing a CGATS text.
Definition: oyranos_cmm_lcm2.c:3263
int l2cmsCMMMessageFuncSet(oyMessage_f l2cms_msg_func)
Definition: oyranos_cmm_lcm2.c:2925

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,
0,
OY_LCM2_PARSE_CGATS,
CMM_VERSION,
CMM_API_VERSION,
0,
0,
0,
(char**)l2cms_texts_parse_cgats,
}
Definition: oyranos_object.h:175
const char * l2cmsInfoGetTextProfileC4(const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
Definition: oyranos_cmm_lcm2.c:3218
int l2cmsCMMInit(oyStruct_s *filter OY_UNUSED)
API requirement.
Definition: oyranos_cmm_lcm2.c:388
int l2cmsCMMMessageFuncSet(oyMessage_f l2cms_msg_func)
Definition: oyranos_cmm_lcm2.c:2925
int l2cmsMOptions_Handle4(oyOptions_s *options, const char *command, oyOptions_s **result)
Definition: oyranos_cmm_lcm2.c:3170

Node for Parsing a CGATS text.

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
Since
2017/06/05 (Oyranos: 0.9.7)
Date
2017/06/05