Compare to upper and lower threshold values, replace with a specified value
MT, SSE2, Family10h
FwStatus | fwsThreshold_LTValGTVal_16s | ( | const Fw16s * pSrc, Fw16s * pDst, int len, Fw16s levelLT, Fw16s valueLT, Fw16s levelGT, Fw16s valueGT ); | |
FwStatus | fwsThreshold_LTValGTVal_32s | ( | const Fw32s * pSrc, Fw32s * pDst, int len, Fw32s levelLT, Fw32s valueLT, Fw32s levelGT, Fw32s valueGT ); | |
FwStatus | fwsThreshold_LTValGTVal_32f | ( | const Fw32f * pSrc, Fw32f * pDst, int len, Fw32f levelLT, Fw32f valueLT, Fw32f levelGT, Fw32f valueGT ); | |
FwStatus | fwsThreshold_LTValGTVal_64f | ( | const Fw64f * pSrc, Fw64f * pDst, int len, Fw64f levelLT, Fw64f valueLT, Fw64f levelGT, Fw64f valueGT ); | |
FwStatus | fwsThreshold_LTValGTVal_16s_I | ( | Fw16s * pSrcDst, int len, Fw16s levelLT, Fw16s valueLT, Fw16s levelGT, Fw16s valueGT ); | |
FwStatus | fwsThreshold_LTValGTVal_32s_I | ( | Fw32s * pSrcDst, int len, Fw32s levelLT, Fw32s valueLT, Fw32s levelGT, Fw32s valueGT ); | |
FwStatus | fwsThreshold_LTValGTVal_32f_I | ( | Fw32f * pSrcDst, int len, Fw32f levelLT, Fw32f valueLT, Fw32f levelGT, Fw32f valueGT ); | |
FwStatus | fwsThreshold_LTValGTVal_64f_I | ( | Fw64f * pSrcDst, int len, Fw64f levelLT, Fw64f valueLT, Fw64f levelGT, Fw64f valueGT ); |
len | Specifies the number of elements in a buffer. | |
levelGT | Specifies a threshold level for greater-than comparison. | |
levelLT | Specifies a threshold level for less-than comparison. | |
pDst | Pointer to a destination buffer. | |
pSrc | Pointer to a source buffer. | |
pSrcDst | Pointer to a buffer that is both the source and destination. | |
valueGT | Specifies a value to set when a greater-than comparison evaluates as true. | |
valueLT | Specifies a value to set when a less-than comparison evaluates as true. |
These functions step through vector elements in a source buffer and compare source data to two specified threshold values.
The levelLT parameter must be less than the levelGT parameter.
When the source data is less than levelLT, the function writes the value specified by valueLT.
When the source data is greater than the value specified by levelGT, the function writes the value specified by valueGT.
When the source data is within the range defined by levelLT and levelGT, the function writes the value of the source data.
Output data can be written to a destination buffer or back to the source buffer for in-place operation.
The following evaluation formulas are used.
|valueLT, pSrc[n] < levelLT| For fwThreshold_LTValGTVal: pDst[n] = |pSrc[n], levelLT <= pSrc[n] <= levelGT | | |valueGT, pSrc[n] > levelGT|