![]() |
Oyranos
0.9.7
Oyranos is a full featured Color Management System
|
littleCMS CMM module for Oyranos More...
#include <lcms.h>
#include <dlfcn.h>
#include "oyCMM_s.h"
#include "oyCMMapi4_s.h"
#include "oyCMMapi4_s_.h"
#include "oyCMMapi6_s_.h"
#include "oyCMMapi7_s.h"
#include "oyCMMapi7_s_.h"
#include "oyCMMapi10_s_.h"
#include "oyCMMui_s_.h"
#include "oyConnectorImaging_s_.h"
#include "oyProfiles_s.h"
#include "oyStructList_s.h"
#include "oyranos_cmm.h"
#include "oyranos_generic.h"
#include "oyranos_helper.h"
#include "oyranos_i18n.h"
#include "oyranos_io.h"
#include "oyranos_image.h"
#include "oyranos_object_internal.h"
#include "oyranos_string.h"
#include <math.h>
Macros | |
#define | lcmsPROOF_LUT_GRID_RASTER 53 |
Functions | |
int | lcmsErrorHandlerFunction (int ErrorCode, const char *ErrorText) |
int | lcmsCMMMessageFuncSet (oyMessage_f message_func) |
lcmsTransformWrap_s * | lcmsTransformWrap_Set_ (cmsHTRANSFORM xform, icColorSpaceSignature color_in, icColorSpaceSignature color_out, oyPixel_t oy_pixel_layout_in, oyPixel_t oy_pixel_layout_out, oyPointer_s *oy) |
fill a lcmsTransformWrap_s struct More... | |
int | lcmsCMMTransform_GetWrap_ (oyPointer_s *cmm_ptr, lcmsTransformWrap_s **s) |
convert to lcms transform wrapper struct More... | |
int | lcmsCMMDeleteTransformWrap (oyPointer *wrap) |
lcmsProfileWrap_s * | lcmsCMMProfile_GetWrap_ (oyPointer_s *cmm_ptr) |
convert to lcms profile wrapper struct More... | |
int | lcmsCMMProfileReleaseWrap (oyPointer *p) |
release a lcms profile wrapper struct More... | |
int | lcmsCMMCheckPointer (oyPointer_s *cmm_ptr, const char *resource) |
int | oyPixelToCMMPixelLayout_ (oyPixel_t pixel_layout, icColorSpaceSignature color_space) |
char * | lcmsFilterNode_GetText (oyFilterNode_s *node, oyNAME_e type, oyAlloc_f allocateFunc) |
implement oyCMMFilterNode_GetText_f() More... | |
cmsHPROFILE | lcmsGamutCheckAbstract (oyProfile_s *proof, DWORD flags, int intent, int intent_proof) |
convert a proofing profile into a abstract one More... | |
oyPointer | lcmsCMMColorConversion_ToMem_ (cmsHTRANSFORM *xform, size_t *size, oyAlloc_f allocateFunc) |
cmsHPROFILE | lcmsAddProfile (oyProfile_s *p) |
add a profile from Oyranos to the lcms profile stack More... | |
cmsHPROFILE | lcmsAddProofProfile (oyProfile_s *proof, DWORD flags, int intent, int intent_proof) |
add a abstract proofing profile to the lcms profile stack More... | |
oyPointer | lcmsFilterNode_CmmIccContextToMem (oyFilterNode_s *node, size_t *size, oyAlloc_f allocateFunc) |
implement oyCMMFilterNode_CreateContext_f() More... | |
int | lcmsModuleData_Convert (oyPointer_s *data_in, oyPointer_s *data_out, oyFilterNode_s *node) |
convert between data formatsThe function might be used to provide a module specific context. Implements oyModuleData_Convert_f More... | |
int | lcmsFilterPlug_CmmIccRun (oyFilterPlug_s *requestor_plug, oyPixelAccess_s *ticket) |
implement oyCMMFilterPlug_GetNext_f() More... | |
int | lcmsCMMInit (oyStruct_s *filter OY_UNUSED) |
API requirement. More... | |
int | lcmsCMMData_Open (oyStruct_s *data, oyPointer_s *oy) |
oyCMMProfileOpen_t implementation More... | |
cmsHTRANSFORM | lcmsCMMConversionContextCreate_ (cmsHPROFILE *lps, int profiles_n, oyProfiles_s *simulation, int proof_n, int proof, oyPixel_t oy_pixel_layout_in, oyPixel_t oy_pixel_layout_out, oyOptions_s *opts, lcmsTransformWrap_s **ltw, oyPointer_s *oy) |
create a CMM transform More... | |
int | lcmsMOptions_Handle2 (oyOptions_s *options, const char *command, oyOptions_s **result) |
int | lcmsGetOptionsUI (oyCMMapiFilter_s *module OY_UNUSED, oyOptions_s *options, int flags, char **ui_text, oyAlloc_f allocateFunc) |
return XFORMS for matching options More... | |
oyProfile_s * | lcmsCreateICCMatrixProfile (float gamma, float rx, float ry, float gx, float gy, float bx, float by, float wx, float wy) |
ICC from EDID. More... | |
int | lcmsMOptions_Handle (oyOptions_s *options, const char *command, oyOptions_s **result) |
const char * | lcmsInfoGetTextProfileC2 (const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED) |
const char * | lcmsInfoGetTextProfileC (const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED) |
const char * | lcmsApi4UiGetText (const char *select, oyNAME_e type, oyStruct_s *context) |
const char * | lcmsInfoGetText (const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED) |
Variables | |
oyCMMapi4_s_ | lcms_api4_cmm |
littleCMS oyCMMapi4_s implementation More... | |
oyCMMapi10_s_ | lcms_api10_cmm2 |
littleCMS oyCMMapi10_s implementation More... | |
oyCMMapi10_s_ | lcms_api10_cmm |
littleCMS oyCMMapi10_s implementation More... | |
oyCMMapi6_s_ | lcms_api6_cmm |
littleCMS oyCMMapi6_s implementation More... | |
oyCMMapi7_s_ | lcms_api7_cmm |
littleCMS oyCMMapi7_s implementation More... | |
oyCMMui_s_ | lcms_api4_ui |
lcms oyCMMapi4_s::ui implementation More... | |
oyCMM_s | lcms_cmm_module |
lcms module infos More... | |
littleCMS CMM module for Oyranos
Oyranos is an open source Color Management System
#define lcmsPROOF_LUT_GRID_RASTER 53 |
The proofing LUTs grid size may improove the sharpness of out of color marking, but at the prise of lost speed and increased memory consumption. 53 is the grid size used internally in lcms' gamut marking code.
cmsHPROFILE lcmsAddProfile | ( | oyProfile_s * | p | ) |
add a profile from Oyranos to the lcms profile stack
Function lcmsAddProfile Look in the Oyranos cache for a CMM internal representation
References oyOBJECT_PROFILE_S, and oyProfile_s::type_.
cmsHPROFILE lcmsAddProofProfile | ( | oyProfile_s * | proof, |
DWORD | flags, | ||
int | intent, | ||
int | intent_proof | ||
) |
add a abstract proofing profile to the lcms profile stack
Function lcmsAddProofProfile Look in the Oyranos cache for a CMM internal representation or generate a new abstract profile containing the proofing profiles changes. This can be a proofing color space simulation or out of gamut marking.
References oyOBJECT_PROFILE_S, and oyProfile_s::type_.
const char* lcmsApi4UiGetText | ( | const char * | select, |
oyNAME_e | type, | ||
oyStruct_s * | context | ||
) |
This function implements oyCMMGetText_f.
References lcmsInfoGetText(), oyNAME_NAME, and oyNAME_NICK.
int lcmsCMMCheckPointer | ( | oyPointer_s * | cmm_ptr, |
const char * | resource | ||
) |
Function lcmsCMMCheckPointer
oyPointer lcmsCMMColorConversion_ToMem_ | ( | cmsHTRANSFORM * | xform, |
size_t * | size, | ||
oyAlloc_f | allocateFunc | ||
) |
Function lcmsCMMColorConversion_ToMem_
convert a lcms color conversion context to a device link
cmsHTRANSFORM lcmsCMMConversionContextCreate_ | ( | cmsHPROFILE * | lps, |
int | profiles_n, | ||
oyProfiles_s * | simulation, | ||
int | proof_n, | ||
int | proof, | ||
oyPixel_t | oy_pixel_layout_in, | ||
oyPixel_t | oy_pixel_layout_out, | ||
oyOptions_s * | opts, | ||
lcmsTransformWrap_s ** | ltw, | ||
oyPointer_s * | oy | ||
) |
create a CMM transform
Function lcmsCMMConversionContextCreate_
int lcmsCMMData_Open | ( | oyStruct_s * | data, |
oyPointer_s * | oy | ||
) |
oyCMMProfileOpen_t implementation
Function lcmsCMMDataOpen
int lcmsCMMDeleteTransformWrap | ( | oyPointer * | wrap | ) |
Function lcmsCMMDeleteTransformWrap
int lcmsCMMInit | ( | oyStruct_s *filter | OY_UNUSED | ) |
API requirement.
Function lcmsCMMInit
int lcmsCMMMessageFuncSet | ( | oyMessage_f | message_func | ) |
Function lcmsCMMMessageFuncSet
lcmsProfileWrap_s * lcmsCMMProfile_GetWrap_ | ( | oyPointer_s * | cmm_ptr | ) |
convert to lcms profile wrapper struct
Function lcmsCMMProfile_GetWrap_
int lcmsCMMProfileReleaseWrap | ( | oyPointer * | p | ) |
release a lcms profile wrapper struct
Function lcmsCMMProfileReleaseWrap
int lcmsCMMTransform_GetWrap_ | ( | oyPointer_s * | cmm_ptr, |
lcmsTransformWrap_s ** | s | ||
) |
convert to lcms transform wrapper struct
Function lcmsCMMTransform_GetWrap_
oyProfile_s* lcmsCreateICCMatrixProfile | ( | float | gamma, |
float | rx, | ||
float | ry, | ||
float | gx, | ||
float | gy, | ||
float | bx, | ||
float | by, | ||
float | wx, | ||
float | wy | ||
) |
ICC from EDID.
Function lcmsCreateICCMatrixProfile
int lcmsErrorHandlerFunction | ( | int | ErrorCode, |
const char * | ErrorText | ||
) |
Function lcmsErrorHandlerFunction
oyPointer lcmsFilterNode_CmmIccContextToMem | ( | oyFilterNode_s * | node, |
size_t * | size, | ||
oyAlloc_f | allocateFunc | ||
) |
implement oyCMMFilterNode_CreateContext_f()
Function lcmsFilterNode_CmmIccContextToMem
References oyCONNECTOR_EVENT_INCOMPATIBLE_DATA, oyFilterNode_s::oyFilterNode_GetOptions(), oyFilterNode_s::oyFilterNode_GetPlug(), oyFilterNode_s::oyFilterNode_GetSocket(), oyFilterNode_s::oyFilterNode_GetTags(), oyFilterPlug_s::oyFilterPlug_GetSocket(), oyFilterSocket_s::oyFilterSocket_Callback(), oyFilterSocket_s::oyFilterSocket_GetData(), oyImage_s::oyImage_GetProfile(), oyOBJECT_IMAGE_S, oyOptions_s::oyOptions_FindString(), and oyImage_s::type_.
char * lcmsFilterNode_GetText | ( | oyFilterNode_s * | node, |
oyNAME_e | type, | ||
oyAlloc_f | allocateFunc | ||
) |
implement oyCMMFilterNode_GetText_f()
Function lcmsFilterNode_GetText
References oyFilterCore_s::oyFilterCore_GetText(), oyFilterNode_s::oyFilterNode_GetCore(), oyFilterNode_s::oyFilterNode_GetOptions(), oyFilterNode_s::oyFilterNode_GetPlug(), oyFilterNode_s::oyFilterNode_GetSocket(), oyFilterNode_s::oyFilterNode_GetTags(), oyFilterNode_s::oyFilterNode_GetText(), oyFilterPlug_s::oyFilterPlug_GetSocket(), oyFilterSocket_s::oyFilterSocket_GetData(), oyNAME_NAME, and oyOptions_s::oyOptions_FindString().
int lcmsFilterPlug_CmmIccRun | ( | oyFilterPlug_s * | requestor_plug, |
oyPixelAccess_s * | ticket | ||
) |
implement oyCMMFilterPlug_GetNext_f()
Function lcmsFilterPlug_CmmIccRun
References oyPixelAccess_s::oy_, oyArray2d_s::oyArray2d_Create(), oyArray2d_s::oyArray2d_GetDataGeo1(), oyArray2d_s::oyArray2d_Release(), oyCHANS, oyCONNECTOR_EVENT_INCOMPATIBLE_DATA, oyDataTypeGetSize(), oyFilterNode_s::oyFilterNode_GetPlug(), oyFilterNode_s::oyFilterNode_GetPlugNode(), oyFilterNode_s::oyFilterNode_Run(), oyFilterPlug_s::oyFilterPlug_GetSocket(), oyFilterPlug_s::oyFilterPlug_ResolveImage(), oyFilterSocket_s::oyFilterSocket_Callback(), oyFilterSocket_s::oyFilterSocket_GetNode(), oyFLOAT, oyImage_s::oyImage_GetPixelLayout(), oyLAYOUT, oyPixelAccess_s::oyPixelAccess_Copy(), oyPixelAccess_s::oyPixelAccess_GetArray(), oyPixelAccess_s::oyPixelAccess_GetOutputImage(), oyPixelAccess_s::oyPixelAccess_SetArray(), and oyToDataType_m.
cmsHPROFILE lcmsGamutCheckAbstract | ( | oyProfile_s * | proof, |
DWORD | flags, | ||
int | intent, | ||
int | intent_proof | ||
) |
convert a proofing profile into a abstract one
Function lcmsGamutCheckAbstract Abstract profiles can easily be merged into a multi profile transform.
proof | the proofing profile; owned by the function |
flags | the gamut check and softproof flags |
intent | rendering intent |
intent_proof | proof rendering intent |
int lcmsGetOptionsUI | ( | oyCMMapiFilter_s *module | OY_UNUSED, |
oyOptions_s * | options, | ||
int | flags, | ||
char ** | ui_text, | ||
oyAlloc_f | allocateFunc | ||
) |
return XFORMS for matching options
Function lcmsGetOptionsUI
const char* lcmsInfoGetText | ( | const char * | select, |
oyNAME_e | type, | ||
oyStruct_s *context | OY_UNUSED | ||
) |
This function implements oyCMMinfoGetText_f.
Referenced by lcmsApi4UiGetText().
const char* lcmsInfoGetTextProfileC | ( | const char * | select, |
oyNAME_e | type, | ||
oyStruct_s *context | OY_UNUSED | ||
) |
This function implements oyCMMinfoGetText_f.
const char* lcmsInfoGetTextProfileC2 | ( | const char * | select, |
oyNAME_e | type, | ||
oyStruct_s *context | OY_UNUSED | ||
) |
This function implements oyCMMinfoGetText_f.
int lcmsMOptions_Handle | ( | oyOptions_s * | options, |
const char * | command, | ||
oyOptions_s ** | result | ||
) |
This function implements oyMOptions_Handle_f.
References oyFilterRegistrationMatch(), oyNAME_PATTERN, oyOptions_s::oyOptions_Find(), and oyOptions_s::oyOptions_FindDouble().
int lcmsMOptions_Handle2 | ( | oyOptions_s * | options, |
const char * | command, | ||
oyOptions_s ** | result | ||
) |
This function implements oyMOptions_Handle_f.
References oyFilterRegistrationMatch(), oyOBJECT_PROFILE_S, oyOptions_s::oyOptions_GetType(), and oyProfile_s::oyProfile_Release().
lcmsTransformWrap_s * lcmsTransformWrap_Set_ | ( | cmsHTRANSFORM | xform, |
icColorSpaceSignature | color_in, | ||
icColorSpaceSignature | color_out, | ||
oyPixel_t | oy_pixel_layout_in, | ||
oyPixel_t | oy_pixel_layout_out, | ||
oyPointer_s * | oy | ||
) |
fill a lcmsTransformWrap_s struct
Function lcmsTransformWrap_Set_
int oyPixelToCMMPixelLayout_ | ( | oyPixel_t | pixel_layout, |
icColorSpaceSignature | color_space | ||
) |
Function oyPixelToCMMPixelLayout_
References oyToChannels_m, oyToColorOffset_m, oyToDataType_m, oyToFlavor_m, and oyToPlanar_m.
oyCMMapi10_s_ lcms_api10_cmm |
littleCMS oyCMMapi10_s implementation
lcms_api10_cmm a filter for simple profile creation
oyCMMapi10_s_ lcms_api10_cmm2 |
littleCMS oyCMMapi10_s implementation
lcms_api10_cmm2 a filter for proofing effect profile creation
oyCMMapi4_s_ lcms_api4_cmm |
littleCMS oyCMMapi4_s implementation
lcms_api4_cmm a filter providing CMM API's
oyCMMui_s_ lcms_api4_ui |
lcms oyCMMapi4_s::ui implementation
lcms_api4_ui The UI for lcms.
oyCMMapi6_s_ lcms_api6_cmm |
littleCMS oyCMMapi6_s implementation
lcms_api6 a filter providing CMM API's
oyCMMapi7_s_ lcms_api7_cmm |
littleCMS oyCMMapi7_s implementation
lcms_api7 a filter providing CMM API's
oyCMM_s lcms_cmm_module |
lcms module infos
lcms_cmm_module