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

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

Member Function Documentation

◆ Exec()

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

Reimplemented from IIccOpDef.

Definition at line 390 of file IccMpeCalc.cpp.

391 {
392 size_t ss = os.pStack->size();
393 int j;
394 int n=op->data.select.v1+1;
395 int t=op->data.select.v2+1;
396 if (n>(int)ss)
397 return false;
398
399 if (n && t) {
400 OsExtendArgs(n*t);
401
402 icFloatNumber *to = &(*os.pStack)[ss];
403 icFloatNumber *from = to-n;
404
405 for (j=0; j<t; j++) {
406 memcpy(to, from, n*sizeof(icFloatNumber));
407 to+=n;
408 }
409 }
410 return true;
411 }
float icFloatNumber
All floating point operations/variables in IccProfLib use the icFloatNumber data type.
Definition IccDefs.h:100
#define OsExtendArgs(N)
icUInt16Number v2
Definition IccMpeCalc.h:242
icUInt16Number v1
Definition IccMpeCalc.h:243
struct SIccCalcOp::@1::@2 select
union SIccCalcOp::@1 data
CIccFloatVector * pStack
Definition IccMpeCalc.h:275

References SIccCalcOp::data, OsExtendArgs, SIccOpState::pStack, SIccCalcOp::select, SIccCalcOp::v1, and SIccCalcOp::v2.


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