MulC

Multiply by a constant

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwiMulC_8u_C1IRSfs ( Fw8u value, Fw8u * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_8u_C3IRSfs ( const Fw8u value[3], Fw8u * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_8u_AC4IRSfs ( const Fw8u value[3], Fw8u * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_8u_C4IRSfs ( const Fw8u value[4], Fw8u * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_16s_C1IRSfs ( Fw16s value, Fw16s * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_16s_C3IRSfs ( const Fw16s value[3], Fw16s * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_16s_AC4IRSfs ( const Fw16s value[3], Fw16s * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_16s_C4IRSfs ( const Fw16s value[4], Fw16s * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_16sc_C1IRSfs ( Fw16sc value, Fw16sc * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_16sc_C3IRSfs ( const Fw16sc value[3], Fw16sc * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_16sc_AC4IRSfs ( const Fw16sc value[3], Fw16sc * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_32sc_C1IRSfs ( Fw32sc value, Fw32sc * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_32sc_C3IRSfs ( const Fw32sc value[3], Fw32sc * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_32sc_AC4IRSfs ( const Fw32sc value[3], Fw32sc * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_32f_C1IR ( Fw32f value, Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiMulC_32f_C3IR ( const Fw32f value[3], Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiMulC_32f_AC4IR ( const Fw32f value[3], Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiMulC_32f_C4IR ( const Fw32f value[4], Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiMulC_32fc_C1IR ( Fw32fc value, Fw32fc * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiMulC_32fc_C3IR ( const Fw32fc value[3], Fw32fc * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiMulC_32fc_AC4IR ( const Fw32fc value[3], Fw32fc * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiMulC_8u_C1RSfs ( const Fw8u * pSrc, int srcStep, Fw8u value, Fw8u * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_8u_C3RSfs ( const Fw8u * pSrc, int srcStep, const Fw8u value[3], Fw8u * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_8u_AC4RSfs ( const Fw8u * pSrc, int srcStep, const Fw8u value[3], Fw8u * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_8u_C4RSfs ( const Fw8u * pSrc, int srcStep, const Fw8u value[4], Fw8u * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_16s_C1RSfs ( const Fw16s * pSrc, int srcStep, Fw16s value, Fw16s * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_16s_C3RSfs ( const Fw16s * pSrc, int srcStep, const Fw16s value[3], Fw16s * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_16s_AC4RSfs ( const Fw16s * pSrc, int srcStep, const Fw16s value[3], Fw16s * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_16s_C4RSfs ( const Fw16s * pSrc, int srcStep, const Fw16s value[4], Fw16s * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_16sc_C1RSfs ( const Fw16sc * pSrc, int srcStep, Fw16sc value, Fw16sc * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_16sc_C3RSfs ( const Fw16sc * pSrc, int srcStep, const Fw16sc value[3], Fw16sc * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_16sc_AC4RSfs ( const Fw16sc * pSrc, int srcStep, const Fw16sc value[3], Fw16sc * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_32sc_C1RSfs ( const Fw32sc * pSrc, int srcStep, Fw32sc value, Fw32sc * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_32sc_C3RSfs ( const Fw32sc * pSrc, int srcStep, const Fw32sc value[3], Fw32sc * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_32sc_AC4RSfs ( const Fw32sc * pSrc, int srcStep, const Fw32sc value[3], Fw32sc * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiMulC_32f_C1R ( const Fw32f * pSrc, int srcStep, Fw32f value, Fw32f * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiMulC_32f_C3R ( const Fw32f * pSrc, int srcStep, const Fw32f value[3], Fw32f * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiMulC_32f_AC4R ( const Fw32f * pSrc, int srcStep, const Fw32f value[3], Fw32f * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiMulC_32f_C4R ( const Fw32f * pSrc, int srcStep, const Fw32f value[4], Fw32f * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiMulC_32fc_C1R ( const Fw32fc * pSrc, int srcStep, Fw32fc value, Fw32fc * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiMulC_32fc_C3R ( const Fw32fc * pSrc, int srcStep, const Fw32fc value[3], Fw32fc * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiMulC_32fc_AC4R ( const Fw32fc * pSrc, int srcStep, const Fw32fc value[3], Fw32fc * pDst, int dstStep, FwiSize roiSize );

Parameters

dstStep   Destination buffer step size (width of the buffer in bytes).
pDst   Pointer to a location in a destination buffer.
pSrc   Pointer to a location in a source buffer.
pSrcDst   Pointer to a location in a buffer that contains both the source and destination.
roiSize   Specifies the height and width of an ROI.
scaleFactor   Specifies the integer scaling factor for the Sfs operation. The returned result is multiplied by 2^(-scaleFactor).
srcDstStep   Source and destination buffer step size in bytes (width of both buffers in bytes).
srcStep   Source buffer step size (width of the buffer in bytes).
value   Specified value.
value[3]   An array of three specified values.
value[4]   An array of four specified values.

Description

These functions step through an ROI in a source buffer and multiply the source data by a specified constant value.

The product can be written back to the source location or to a destination buffer.

The 8-bit unsigned, 16-bit signed, 16-bit signed complex, and 32-bit signed complex versions of the functions perform an integer scaling operation before writing the results.