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

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

Member Function Documentation

◆ Exec()

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

Reimplemented from IIccOpDef.

Definition at line 231 of file IccMpeCalc.cpp.

232 {
233 icUInt32Number n, j;
234 if (!op->extra) {
235 for (n=1; n+os.idx<os.nOps; n++)
236 if (op[n].sig!=icSigDataOp)
237 break;
238 op->extra = n;
239 }
240 else {
241 n=(icUInt32Number)op->extra;
242 }
243 size_t ss = os.pStack->size();
244 os.pStack->resize(ss+n);
245 icFloatNumber *s = &(*os.pStack)[ss];
246 for (j=0; j<n; j++) {
247 s[j] = op[j].data.num;
248 }
249 os.idx += n-1;
250 return true;
251 }
icArraySignature sig
float icFloatNumber
All floating point operations/variables in IccProfLib use the icFloatNumber data type.
Definition IccDefs.h:100
@ icSigDataOp
Definition IccMpeCalc.h:112
unsigned int icUInt32Number
unsigned long extra
Definition IccMpeCalc.h:247
union SIccCalcOp::@1 data
icFloat32Number num
Definition IccMpeCalc.h:235
icUInt32Number idx
Definition IccMpeCalc.h:280
icUInt32Number nOps
Definition IccMpeCalc.h:281
CIccFloatVector * pStack
Definition IccMpeCalc.h:275

References SIccCalcOp::data, SIccCalcOp::extra, icSigDataOp, SIccOpState::idx, SIccOpState::nOps, SIccCalcOp::num, SIccOpState::pStack, and sig.


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