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

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

Member Function Documentation

◆ Exec()

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

Reimplemented from IIccOpDef.

Definition at line 442 of file IccMpeCalc.cpp.

443 {
444 int n = op->data.select.v1+2;
445 size_t ss = os.pStack->size();
446 if (n>(int)ss)
447 return false;
448 icFloatNumber *s = &(*os.pStack)[ss-n];
450 int j, k;
451 for (j=0, k=n-1; j<k; j++, k--) {
452 t = s[j];
453 s[j] = s[k];
454 s[k] = t;
455 }
456 return true;
457 }
float icFloatNumber
All floating point operations/variables in IccProfLib use the icFloatNumber data type.
Definition IccDefs.h:100
icUInt16Number v1
Definition IccMpeCalc.h:243
struct SIccCalcOp::@1::@2 select
union SIccCalcOp::@1 data
CIccFloatVector * pStack
Definition IccMpeCalc.h:275

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


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