IccMAX 2.1.27
Color Profile Tools
Loading...
Searching...
No Matches
CIccOpDefSolve Class Reference
+ Inheritance diagram for CIccOpDefSolve:
+ Collaboration diagram for CIccOpDefSolve:

Public Member Functions

virtual int ArgsPushed (CIccMpeCalculator *pCalc, SIccCalcOp &op)
 
virtual int ArgsUsed (CIccMpeCalculator *pCalc, SIccCalcOp &op)
 
virtual void Describe (SIccCalcOp &op, std::string &desc, int nVerboseness)
 
virtual bool Exec (SIccCalcOp *op, SIccOpState &os)
 
virtual bool IsValid (CIccMpeCalculator *pCalc, SIccCalcOp &op)
 

Detailed Description

Member Function Documentation

◆ ArgsPushed()

virtual int IIccOpDef::ArgsPushed ( CIccMpeCalculator pCalc,
SIccCalcOp op 
)
inlinevirtualinherited
297{ return op.ArgsPushed(pCalc);}
icUInt16Number ArgsPushed(CIccMpeCalculator *pCalc)
Definition IccMpeCalc.cpp:2354

References SIccCalcOp::ArgsPushed().

+ Here is the call graph for this function:

◆ ArgsUsed()

virtual int IIccOpDef::ArgsUsed ( CIccMpeCalculator pCalc,
SIccCalcOp op 
)
inlinevirtualinherited
298{ return op.ArgsUsed(pCalc);}
icUInt16Number ArgsUsed(CIccMpeCalculator *pCalc)
Definition IccMpeCalc.cpp:2222

References SIccCalcOp::ArgsUsed().

+ Here is the call graph for this function:

◆ Describe()

virtual void IIccOpDef::Describe ( SIccCalcOp op,
std::string &  desc,
int  nVerboseness 
)
inlinevirtualinherited
300{op.Describe(desc, nVerboseness);}
void Describe(std::string &desc, int nVerboseness=100)
Definition IccMpeCalc.cpp:1787

References SIccCalcOp::Describe().

+ Here is the call graph for this function:

◆ Exec()

virtual bool CIccOpDefSolve::Exec ( SIccCalcOp op,
SIccOpState os 
)
inlinevirtual

Reimplemented from IIccOpDef.

554 {
555 size_t ss = os.pStack->size();
556 int r=op->data.select.v1+1;
557 int c=op->data.select.v2+1;
558 int nMSize = r*c;
559 int nSize = nMSize + c;
560
561 if (nSize>(int)ss)
562 return false;
563
564 if (r>1 && c>1) {
565
566 if (os.pScratch->size()<(size_t)c)
567 os.pScratch->resize(c);
568
569 icFloatNumber *ptrStack = &(*os.pStack)[ss-nSize];
570 icFloatNumber *x = &(*os.pScratch)[0];
571 icFloatNumber *mtx = ptrStack;
572 icFloatNumber *y = &ptrStack[nMSize];
573
574 bool bResult = false;
575
576 if (g_pIccMatrixSolver) {
577 bResult = g_pIccMatrixSolver->Solve(x, mtx, y, r, c);
578 }
579 if (bResult) {
580 memcpy(ptrStack, x, c*sizeof(icFloatNumber));
581 ptrStack[c] = 1.0;
582 }
583 else {
584 memset(ptrStack, 0, c*sizeof(icFloatNumber));
585 ptrStack[c] = 0.0;
586 }
587 os.pStack->resize(ss-nSize+r+1);
588 }
589 return true;
590 }
ICCPROFLIB_API IIccMatrixSolver * g_pIccMatrixSolver
Definition IccSolve.cpp:186
CIccFloatVector * pScratch
Definition IccMpeCalc.h:276
CIccFloatVector * pStack
Definition IccMpeCalc.h:275
float icFloatNumber
Definition IccDefs.h:101
union SIccCalcOp::@1 data
virtual bool Solve(icFloatNumber *dXVector, const icFloatNumber *dMatrix, const icFloatNumber *dYVector, icUInt16Number nRows, icUInt16Number nCols)=0

References g_pIccMatrixSolver, SIccOpState::pScratch, SIccOpState::pStack, and IIccMatrixSolver::Solve().

+ Here is the call graph for this function:

◆ IsValid()

virtual bool IIccOpDef::IsValid ( CIccMpeCalculator pCalc,
SIccCalcOp op 
)
inlinevirtualinherited

Reimplemented in CIccOpDefInvalid.

302{ return op.IsValidOp(pCalc); }
static bool IsValidOp(icSigCalcOp sig)
Definition IccMpeCalc.cpp:2073

References SIccCalcOp::IsValidOp().

+ Here is the call graph for this function:

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