Norm C
SSE2
FwStatus | fwsNorm_Inf_32f | ( | const Fw32f * pSrc, int len, Fw32f * pNorm ); | |
FwStatus | fwsNorm_Inf_64f | ( | const Fw64f * pSrc, int len, Fw64f * pNorm ); | |
FwStatus | fwsNorm_Inf_16s32f | ( | const Fw16s * pSrc, int len, Fw32f * pNorm ); | |
FwStatus | fwsNorm_Inf_32fc32f | ( | const Fw32fc * pSrc, int len, Fw32f * pNorm ); | |
FwStatus | fwsNorm_Inf_64fc64f | ( | const Fw64fc * pSrc, int len, Fw64f * pNorm ); | |
FwStatus | fwsNorm_Inf_16s32s_Sfs | ( | const Fw16s * pSrc, int len, Fw32s * pNorm, int scaleFactor ); |
len | Specifies the number of elements in a buffer. | |
pNorm | Pointer to the destination buffer that contains the NormC, NormL1, or NormL2 of the values in the source buffer, depending on the function call. | |
pSrc | Pointer to a source buffer. | |
scaleFactor | Specifies an integer scaling factor for the Sfs operation. The returned result is multiplied by 2^(-scaleFactor). |
These functions step through vector elements in a source buffer, calculate the C Norm, and write the value to a location specified by a pointer.
The following formula is used.
C Norm =((n = 0) - (len-1)) max (|pSrc[n]|)
The 16-bit signed to 32-bit signed version of the function performs an integer scaling operation before the result is written.