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

File: IccTagLut.cpp. More...

#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "IccTag.h"
#include "IccUtil.h"
#include "IccProfile.h"
#include "IccMpeBasic.h"
+ Include dependency graph for IccTagLut.cpp:

Go to the source code of this file.

Functions

static icFloatNumber ClutUnitClip (icFloatNumber v)
 
static bool IsUnity (const icFloatNumber &num)
 

Variables

const icFloatNumber VERYSMALLNUM = (icFloatNumber)0.0000001
 

Detailed Description

File: IccTagLut.cpp.

Contains: Implementation of the Lut Tag classes

Version: V1

Copyright: � see ICC Software License

Definition in file IccTagLut.cpp.

Function Documentation

◆ ClutUnitClip()

static icFloatNumber ClutUnitClip ( icFloatNumber v)
static

Definition at line 1602 of file IccTagLut.cpp.

1603{
1604 if (v<0)
1605 return 0;
1606 else if (v>1.0)
1607 return 1.0;
1608
1609 return v;
1610}

Referenced by CIccCLUT::CIccCLUT().

+ Here is the caller graph for this function:

◆ IsUnity()

static bool IsUnity ( const icFloatNumber & num)
static

Definition at line 520 of file IccTagLut.cpp.

521{
522 return (num>(1.0-VERYSMALLNUM) && num<(1.0+VERYSMALLNUM));
523}
const icFloatNumber VERYSMALLNUM

References VERYSMALLNUM.

Referenced by CIccMatrix::IsIdentity(), CIccTagCurve::IsIdentity(), and CIccTagParametricCurve::IsIdentity().

+ Here is the caller graph for this function:

Variable Documentation

◆ VERYSMALLNUM

const icFloatNumber VERYSMALLNUM = (icFloatNumber)0.0000001

Definition at line 519 of file IccTagLut.cpp.

Referenced by CIccTagCurve::IsIdentity(), and IsUnity().