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

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 1426 of file IccMpeCalc.cpp.

Member Function Documentation

◆ Exec()

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

Reimplemented from IIccOpDef.

Definition at line 1429 of file IccMpeCalc.cpp.

1430 {
1431 int j, n = op->data.select.v1+1;
1432 icFloatNumber a1, a2;
1433 int tn = n*2;
1434 size_t ss = os.pStack->size();
1435 if (tn>(int)ss)
1436 return false;
1437 icFloatNumber *s = &(*os.pStack)[ss-tn];
1438 for (j=0; j<n; j++) {
1439 a1 = s[j];
1440 a2 = s[j+n];
1441 s[j] = (icFloatNumber)atan2(a2, a1);
1442 }
1443 OsShrinkArgs(n);
1444 return true;
1445 }
float icFloatNumber
All floating point operations/variables in IccProfLib use the icFloatNumber data type.
Definition IccDefs.h:100
#define OsShrinkArgs(N)
icUInt16Number v1
Definition IccMpeCalc.h:243
struct SIccCalcOp::@1::@2 select
union SIccCalcOp::@1 data
CIccFloatVector * pStack
Definition IccMpeCalc.h:275

References SIccCalcOp::data, OsShrinkArgs, SIccOpState::pStack, SIccCalcOp::select, and SIccCalcOp::v1.


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