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

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

Member Function Documentation

◆ Exec()

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

Reimplemented from IIccOpDef.

Definition at line 801 of file IccMpeCalc.cpp.

802 {
803 int j, n = op->data.select.v1+1;
804 int tn = n*2;
805 size_t ss = os.pStack->size();
806 if (tn>(int)ss)
807 return false;
808 icFloatNumber *s = &(*os.pStack)[ss-tn];
809 for (j=0; j<n; j++) {
810 s[j] = icMax(s[j], s[j+n]);
811 }
812 OsShrinkArgs(n);
813 return true;
814 }
float icFloatNumber
All floating point operations/variables in IccProfLib use the icFloatNumber data type.
Definition IccDefs.h:100
#define OsShrinkArgs(N)
icFloatNumber icMax(icFloatNumber v1, icFloatNumber v2)
Definition IccUtil.cpp:903
icUInt16Number v1
Definition IccMpeCalc.h:243
struct SIccCalcOp::@1::@2 select
union SIccCalcOp::@1 data
CIccFloatVector * pStack
Definition IccMpeCalc.h:275

References SIccCalcOp::data, icMax(), OsShrinkArgs, 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: