Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
Loading...
Searching...
No Matches
CIccOpDefFromLab Class Reference
+ Inheritance diagram for CIccOpDefFromLab:
+ Collaboration diagram for CIccOpDefFromLab:

Public Member Functions

virtual bool Exec (SIccCalcOp *op, SIccOpState &os)
 
- Public Member Functions inherited from IIccOpDef
virtual int ArgsPushed (CIccMpeCalculator *pCalc, SIccCalcOp &op)
 
virtual int ArgsUsed (CIccMpeCalculator *pCalc, SIccCalcOp &op)
 
virtual void Describe (SIccCalcOp &op, std::string &desc, int nVerboseness)
 
 IIccOpDef ()
 
virtual bool IsValid (CIccMpeCalculator *pCalc, SIccCalcOp &op)
 
virtual ~IIccOpDef ()
 

Detailed Description

Definition at line 1747 of file IccMpeCalc.cpp.

Member Function Documentation

◆ Exec()

virtual bool CIccOpDefFromLab::Exec ( SIccCalcOp * op,
SIccOpState & os )
inlinevirtual

Reimplemented from IIccOpDef.

Definition at line 1750 of file IccMpeCalc.cpp.

1751 {
1752 int j, n = op->data.select.v1+1;
1753 int n2 = n+n;
1754 int tn = n*3;
1755 icFloatNumber a1, a2, a3;
1756 size_t ss = os.pStack->size();
1757 if (tn>(int)ss)
1758 return false;
1759 icFloatNumber fy, *s = &(*os.pStack)[ss-tn];
1760 for (j=0; j<n; j++) {
1761 a1 = s[j];
1762 a2 = s[j+n];
1763 a3 = s[j+n2];
1764
1765 fy = (icFloatNumber)((a1 + 16.0f) / 116.0f);
1766
1767 s[j] = icICubeth((icFloatNumber)(a2/500.0 + fy));
1768 s[j+n] = icICubeth(fy);
1769 s[j+n2] = icICubeth((icFloatNumber)(fy - a3/200.0));
1770 }
1771 return true;
1772 }
float icFloatNumber
All floating point operations/variables in IccProfLib use the icFloatNumber data type.
Definition IccDefs.h:100
icFloatNumber icICubeth(icFloatNumber v)
Definition IccUtil.cpp:815
icUInt16Number v1
Definition IccMpeCalc.h:243
struct SIccCalcOp::@1::@2 select
union SIccCalcOp::@1 data
CIccFloatVector * pStack
Definition IccMpeCalc.h:275

References SIccCalcOp::data, icICubeth(), SIccOpState::pStack, SIccCalcOp::select, and SIccCalcOp::v1.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: