Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
Loading...
Searching...
No Matches
IccStructBasic.cpp File Reference

File: IccStructBasic.cpp. More...

#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "IccStructBasic.h"
#include "IccUtil.h"
#include "IccStructFactory.h"
#include <algorithm>
+ Include dependency graph for IccStructBasic.cpp:

Go to the source code of this file.

Macros

#define __min   min
 

Variables

static SIccElemNameSig g_IccStructBRDFMbrTable []
 
static SIccElemNameSig g_IccStructColorantInfoMbrTable []
 
static SIccElemNameSig g_IccStructColorEncodingParamsMbrTable []
 
static SIccElemNameSig g_IccStructMeasurementInfoElemTable []
 
static SIccElemNameSig g_IccStructNamedColorMbrTable []
 
static SIccElemNameSig g_IccStructProfileInfoMbrTable []
 
static SIccElemNameSig g_IccStructTintZeroMbrTable []
 

Detailed Description

File: IccStructBasic.cpp.

Contains: Implementation of the IIccStruct class and basic inherited classes

Version: V1

Copyright: � see ICC Software License

Definition in file IccStructBasic.cpp.

Macro Definition Documentation

◆ __min

#define __min   min

Definition at line 86 of file IccStructBasic.cpp.

Variable Documentation

◆ g_IccStructBRDFMbrTable

SIccElemNameSig g_IccStructBRDFMbrTable[]
static
Initial value:
= {
{ icSigBrdfTypeMbr, "brdfTypeMbr" },
{ icSigBrdfFunctionMbr, "brdfFunctionMbr" },
{ icSigBrdfParamsPerChannelMbr, "brdfParamsPerChannelMbr" },
{ icSigBrdfTransformMbr, "brdfTransformMbr" },
{ 0, NULL },
}
@ icSigBrdfFunctionMbr
@ icSigBrdfTypeMbr
@ icSigBrdfParamsPerChannelMbr
@ icSigBrdfTransformMbr

Definition at line 205 of file IccStructBasic.cpp.

205 {
206 { icSigBrdfTypeMbr, "brdfTypeMbr" },
207 { icSigBrdfFunctionMbr, "brdfFunctionMbr" },
208 { icSigBrdfParamsPerChannelMbr, "brdfParamsPerChannelMbr" },
209 { icSigBrdfTransformMbr, "brdfTransformMbr" },
210 { 0, NULL },
211};

Referenced by CIccStructBRDF::CIccStructBRDF().

◆ g_IccStructColorantInfoMbrTable

SIccElemNameSig g_IccStructColorantInfoMbrTable[]
static
Initial value:
= {
{ icSigCinfNameMbr, "cinfNameMbr" },
{ icSigCinfLocalizedNameMbr, "cinfLocalizedNameMbr" },
{ icSigCinfPcsDataMbr, "cinfPcsDataMbr" },
{ icSigCinfSpectralDataMbr, "cinfSpectralDataMbr" },
{ 0, NULL },
}
@ icSigCinfNameMbr
@ icSigCinfPcsDataMbr
@ icSigCinfSpectralDataMbr
@ icSigCinfLocalizedNameMbr

Definition at line 336 of file IccStructBasic.cpp.

336 {
337 { icSigCinfNameMbr, "cinfNameMbr" },
338 { icSigCinfLocalizedNameMbr, "cinfLocalizedNameMbr" },
339 { icSigCinfPcsDataMbr, "cinfPcsDataMbr" },
340 { icSigCinfSpectralDataMbr, "cinfSpectralDataMbr" },
341 { 0, NULL },
342};

Referenced by CIccStructColorantInfo::CIccStructColorantInfo().

◆ g_IccStructColorEncodingParamsMbrTable

SIccElemNameSig g_IccStructColorEncodingParamsMbrTable[]
static
Initial value:
= {
{ icSigCeptBluePrimaryXYZMbr, "ceptBluePrimaryXYZMbr" },
{ icSigCeptGreenPrimaryXYZMbr, "cptGreenPrimaryXYZMbr" },
{ icSigCeptRedPrimaryXYZMbr, "ceptRedPrimaryXYZMbr" },
{ icSigCeptTransferFunctionMbr, "ceptTransferFunctionMbr" },
{ icSigCeptLumaChromaMatrixMbr, "ceptLumaChromaMatrixMbr" },
{ icSigCeptWhitePointLuminanceMbr, "ceptWhitePointLuminanceMbr" },
{ icSigCeptWhitePointChromaticityMbr, "ceptWhitePointChromaticityMbr" },
{ icSigCeptEncodingRangeMbr, "ceptEncodingRangeMbr" },
{ icSigCeptBitDepthMbr, "ceptBitDepthMbr" },
{ icSigCeptImageStateMbr, "ceptImageStateMbr" },
{ icSigCeptImageBackgroundMbr, "ceptImageBackgroundMbr" },
{ icSigCeptViewingSurroundMbr, "ceptViewingSurroundMbr" },
{ icSigCeptAmbientIlluminanceMbr, "ceptAmbientIlluminanceMbr" },
{ icSigCeptAmbientWhitePointLuminanceMbr, "ceptAmbientWhitePointLuminanceMbr" },
{ icSigCeptAmbientWhitePointChromaticityMbr, "ceptAmbientWhitePointChromaticityMbr" },
{ icSigCeptViewingFlareMbr, "ceptViewingFlareMbr" },
{ icSigCeptValidRelativeLuminanceRangeMbr, "ceptValidRelativeLuminanceRangeMbr" },
{ icSigCeptMediumWhitePointLuminanceMbr, "ceptMediumWhitePointLuminanceMbr" },
{ icSigCeptMediumWhitePointChromaticityMbr, "ceptMediumWhitePointChromaticityMbr" },
{ icSigCeptMediumBlackPointLuminanceMbr, "ceptMediumBlackPointLuminanceMbr" },
{ icSigCeptMediumBlackPointChromaticityMbr, "ceptMediumBlackPointChromaticityMbr" },
{ 0, NULL },
}
@ icSigCeptMediumWhitePointLuminanceMbr
@ icSigCeptViewingSurroundMbr
@ icSigCeptLumaChromaMatrixMbr
@ icSigCeptViewingFlareMbr
@ icSigCeptMediumBlackPointLuminanceMbr
@ icSigCeptImageBackgroundMbr
@ icSigCeptWhitePointLuminanceMbr
@ icSigCeptMediumWhitePointChromaticityMbr
@ icSigCeptImageStateMbr
@ icSigCeptRedPrimaryXYZMbr
@ icSigCeptValidRelativeLuminanceRangeMbr
@ icSigCeptTransferFunctionMbr
@ icSigCeptAmbientWhitePointChromaticityMbr
@ icSigCeptGreenPrimaryXYZMbr
@ icSigCeptWhitePointChromaticityMbr
@ icSigCeptBitDepthMbr
@ icSigCeptEncodingRangeMbr
@ icSigCeptBluePrimaryXYZMbr
@ icSigCeptAmbientIlluminanceMbr
@ icSigCeptMediumBlackPointChromaticityMbr
@ icSigCeptAmbientWhitePointLuminanceMbr

Definition at line 289 of file IccStructBasic.cpp.

289 {
290 { icSigCeptBluePrimaryXYZMbr, "ceptBluePrimaryXYZMbr" },
291 { icSigCeptGreenPrimaryXYZMbr, "cptGreenPrimaryXYZMbr" },
292 { icSigCeptRedPrimaryXYZMbr, "ceptRedPrimaryXYZMbr" },
293 { icSigCeptTransferFunctionMbr, "ceptTransferFunctionMbr" },
294 { icSigCeptLumaChromaMatrixMbr, "ceptLumaChromaMatrixMbr" },
295 { icSigCeptWhitePointLuminanceMbr, "ceptWhitePointLuminanceMbr" },
296 { icSigCeptWhitePointChromaticityMbr, "ceptWhitePointChromaticityMbr" },
297 { icSigCeptEncodingRangeMbr, "ceptEncodingRangeMbr" },
298 { icSigCeptBitDepthMbr, "ceptBitDepthMbr" },
299 { icSigCeptImageStateMbr, "ceptImageStateMbr" },
300 { icSigCeptImageBackgroundMbr, "ceptImageBackgroundMbr" },
301 { icSigCeptViewingSurroundMbr, "ceptViewingSurroundMbr" },
302 { icSigCeptAmbientIlluminanceMbr, "ceptAmbientIlluminanceMbr" },
303 { icSigCeptAmbientWhitePointLuminanceMbr, "ceptAmbientWhitePointLuminanceMbr" },
304 { icSigCeptAmbientWhitePointChromaticityMbr, "ceptAmbientWhitePointChromaticityMbr" },
305 { icSigCeptViewingFlareMbr, "ceptViewingFlareMbr" },
306 { icSigCeptValidRelativeLuminanceRangeMbr, "ceptValidRelativeLuminanceRangeMbr" },
307 { icSigCeptMediumWhitePointLuminanceMbr, "ceptMediumWhitePointLuminanceMbr" },
308 { icSigCeptMediumWhitePointChromaticityMbr, "ceptMediumWhitePointChromaticityMbr" },
309 { icSigCeptMediumBlackPointLuminanceMbr, "ceptMediumBlackPointLuminanceMbr" },
310 { icSigCeptMediumBlackPointChromaticityMbr, "ceptMediumBlackPointChromaticityMbr" },
311 { 0, NULL },
312};

Referenced by CIccStructColorEncodingParams::CIccStructColorEncodingParams().

◆ g_IccStructMeasurementInfoElemTable

SIccElemNameSig g_IccStructMeasurementInfoElemTable[]
static
Initial value:
= {
{ icSigMeasBackingMbr, "measBackingMbr" },
{ icSigMeasFlareMbr, "measFlareMbr" },
{ icSigMeasGeometryMbr, "measGeometryMbr" },
{ icSigMeasIlluminantMbr, "measIlluminantMbr" },
{ icSigMeasIlluminantRangeMbr, "measIlluminantRangeMbr" },
{ icSigMeasModeMbr, "measModeMbr" },
{ 0, NULL },
}
@ icSigMeasBackingMbr
@ icSigMeasFlareMbr
@ icSigMeasGeometryMbr
@ icSigMeasModeMbr
@ icSigMeasIlluminantRangeMbr
@ icSigMeasIlluminantMbr

Definition at line 386 of file IccStructBasic.cpp.

386 {
387 { icSigMeasBackingMbr, "measBackingMbr" },
388 { icSigMeasFlareMbr, "measFlareMbr" },
389 { icSigMeasGeometryMbr, "measGeometryMbr" },
390 { icSigMeasIlluminantMbr, "measIlluminantMbr" },
391 { icSigMeasIlluminantRangeMbr, "measIlluminantRangeMbr" },
392 { icSigMeasModeMbr, "measModeMbr" },
393 { 0, NULL },
394};

Referenced by CIccStructMeasurementInfo::CIccStructMeasurementInfo().

◆ g_IccStructNamedColorMbrTable

SIccElemNameSig g_IccStructNamedColorMbrTable[]
static
Initial value:
= {
{icSigNmclBrdfColorimetricMbr, "nmclBrdfColorimetricMbr"},
{icSigNmclBrdfColorimetricParamsMbr, "nmclBrdfColorimetricParamsMbr"},
{icSigNmclBrdfSpectralMbr, "nmclBrdfSpectralMbr"},
{icSigNmclBrdfSpectralParamsMbr, "nmclBrdfSpectralParamsMbr"},
{icSigNmclDeviceDataMbr, "nmclDeviceDataMbr"},
{icSigNmclLocalizedNameMbr, "nmclLocalizedNameMbr"},
{icSigNmclNameMbr, "nmclNameNmClrMbr"},
{icSigNmclNormalMapMbr, "nmclNormalMapNmClrMbr"},
{icSigNmclPcsDataMbr, "nmclPcsDataMbr"},
{icSigNmclSpectralDataMbr, "nmclSpectralDataMbr"},
{icSigNmclSpectralOverBlackMbr, "nmclSpectralOverBlackMbr"},
{icSigNmclSpectralOverGrayMbr, "nmclSpectralOverGrayMbr"},
{icSigNmclTintMbr, "nmclTintMbr"},
{0, NULL},
}
@ icSigNmclSpectralOverBlackMbr
@ icSigNmclPcsDataMbr
@ icSigNmclNameMbr
@ icSigNmclBrdfSpectralParamsMbr
@ icSigNmclSpectralOverGrayMbr
@ icSigNmclLocalizedNameMbr
@ icSigNmclTintMbr
@ icSigNmclBrdfSpectralMbr
@ icSigNmclBrdfColorimetricMbr
@ icSigNmclDeviceDataMbr
@ icSigNmclNormalMapMbr
@ icSigNmclSpectralDataMbr
@ icSigNmclBrdfColorimetricParamsMbr

Definition at line 419 of file IccStructBasic.cpp.

419 {
420 {icSigNmclBrdfColorimetricMbr, "nmclBrdfColorimetricMbr"},
421 {icSigNmclBrdfColorimetricParamsMbr, "nmclBrdfColorimetricParamsMbr"},
422 {icSigNmclBrdfSpectralMbr, "nmclBrdfSpectralMbr"},
423 {icSigNmclBrdfSpectralParamsMbr, "nmclBrdfSpectralParamsMbr"},
424 {icSigNmclDeviceDataMbr, "nmclDeviceDataMbr"},
425 {icSigNmclLocalizedNameMbr, "nmclLocalizedNameMbr"},
426 {icSigNmclNameMbr, "nmclNameNmClrMbr"},
427 {icSigNmclNormalMapMbr, "nmclNormalMapNmClrMbr"},
428 {icSigNmclPcsDataMbr, "nmclPcsDataMbr"},
429 {icSigNmclSpectralDataMbr, "nmclSpectralDataMbr"},
430 {icSigNmclSpectralOverBlackMbr, "nmclSpectralOverBlackMbr"},
431 {icSigNmclSpectralOverGrayMbr, "nmclSpectralOverGrayMbr"},
432 {icSigNmclTintMbr, "nmclTintMbr"},
433 {0, NULL},
434};

Referenced by CIccStructNamedColor::CIccStructNamedColor().

◆ g_IccStructProfileInfoMbrTable

SIccElemNameSig g_IccStructProfileInfoMbrTable[]
static
Initial value:
= {
{icSigPinfAttributesMbr, "pinfAttributesMbr"},
{icSigPinfProfileDescMbr, "pinfProfileDescMbr"},
{icSigPinfProfileIDMbr, "pinfProfileIDMbr"},
{icSigPinfManufacturerDescMbr, "pinfManufacturerDescMbr"},
{icSigPinfManufacturerSigMbr, "pinfManufacturerSigMbr"},
{icSigPinfModelDescMbr, "pinfModelDescMbr"},
{icSigPinfModelSigMbr, "oinfModelSigMbr"},
{icSigPinfRenderTransformMbr, "pinfRenderTransformMbr"},
{icSigPinfTechnologyMbr, "pinfTechnologyMbr"},
{ 0, NULL },
}
@ icSigPinfManufacturerSigMbr
@ icSigPinfTechnologyMbr
@ icSigPinfModelDescMbr
@ icSigPinfRenderTransformMbr
@ icSigPinfManufacturerDescMbr
@ icSigPinfAttributesMbr
@ icSigPinfProfileDescMbr
@ icSigPinfModelSigMbr
@ icSigPinfProfileIDMbr

Definition at line 576 of file IccStructBasic.cpp.

576 {
577 {icSigPinfAttributesMbr, "pinfAttributesMbr"},
578 {icSigPinfProfileDescMbr, "pinfProfileDescMbr"},
579 {icSigPinfProfileIDMbr, "pinfProfileIDMbr"},
580 {icSigPinfManufacturerDescMbr, "pinfManufacturerDescMbr"},
581 {icSigPinfManufacturerSigMbr, "pinfManufacturerSigMbr"},
582 {icSigPinfModelDescMbr, "pinfModelDescMbr"},
583 {icSigPinfModelSigMbr, "oinfModelSigMbr"},
584 {icSigPinfRenderTransformMbr, "pinfRenderTransformMbr"},
585 {icSigPinfTechnologyMbr, "pinfTechnologyMbr"},
586 { 0, NULL },
587};

Referenced by CIccStructProfileInfo::CIccStructProfileInfo().

◆ g_IccStructTintZeroMbrTable

SIccElemNameSig g_IccStructTintZeroMbrTable[]
static
Initial value:
= {
{ icSigTnt0DeviceDataMbr, "tnt0DeviceDataMbr" },
{ icSigTnt0PcsDataMbr, "tnt0PcsDataMbr" },
{ icSigTnt0SpectralDataMbr, "tnt0SpectralDataMbr" },
{ icSigTnt0SpectralOverBlackMbr, "tnt0SpectralOverBlackMbr" },
{ icSigTnt0SpectralOverGrayMbr, "tnt0SpectralOverGrayMbr" },
{ 0, NULL },
}
@ icSigTnt0SpectralOverBlackMbr
@ icSigTnt0SpectralDataMbr
@ icSigTnt0DeviceDataMbr
@ icSigTnt0PcsDataMbr
@ icSigTnt0SpectralOverGrayMbr

Definition at line 611 of file IccStructBasic.cpp.

611 {
612 { icSigTnt0DeviceDataMbr, "tnt0DeviceDataMbr" },
613 { icSigTnt0PcsDataMbr, "tnt0PcsDataMbr" },
614 { icSigTnt0SpectralDataMbr, "tnt0SpectralDataMbr" },
615 { icSigTnt0SpectralOverBlackMbr, "tnt0SpectralOverBlackMbr" },
616 { icSigTnt0SpectralOverGrayMbr, "tnt0SpectralOverGrayMbr" },
617 { 0, NULL },
618};

Referenced by CIccStructTintZero::CIccStructTintZero().