MulCScale

Multiply by constant with scaling

Supported Technologies

MT, SSE2

Synopsis

FwStatus   fwiMulCScale_8u_C1IR ( Fw8u valueFw8u * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiMulCScale_8u_C3IR ( const Fw8u value[3]Fw8u * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiMulCScale_8u_AC4IR ( const Fw8u value[3]Fw8u * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiMulCScale_8u_C4IR ( const Fw8u value[4]Fw8u * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiMulCScale_16u_C1IR ( Fw16u valueFw16u * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiMulCScale_16u_C3IR ( const Fw16u value[3]Fw16u * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiMulCScale_16u_AC4IR ( const Fw16u value[3]Fw16u * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiMulCScale_16u_C4IR ( const Fw16u value[4]Fw16u * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiMulCScale_8u_C1R ( const Fw8u * pSrcint srcStepFw8u valueFw8u * pDstint dstStepFwiSize roiSize );
FwStatus   fwiMulCScale_8u_C3R ( const Fw8u * pSrcint srcStepconst Fw8u value[3]Fw8u * pDstint dstStepFwiSize roiSize );
FwStatus   fwiMulCScale_8u_AC4R ( const Fw8u * pSrcint srcStepconst Fw8u value[4]Fw8u * pDstint dstStepFwiSize roiSize );
FwStatus   fwiMulCScale_8u_C4R ( const Fw8u * pSrcint srcStepconst Fw8u value[4]Fw8u * pDstint dstStepFwiSize roiSize );
FwStatus   fwiMulCScale_16u_C1R ( const Fw16u * pSrcint srcStepFw16u valueFw16u * pDstint dstStepFwiSize roiSize );
FwStatus   fwiMulCScale_16u_C3R ( const Fw16u * pSrcint srcStepconst Fw16u value[3]Fw16u * pDstint dstStepFwiSize roiSize );
FwStatus   fwiMulCScale_16u_AC4R ( const Fw16u * pSrcint srcStepconst Fw16u value[4]Fw16u * pDstint dstStepFwiSize roiSize );
FwStatus   fwiMulCScale_16u_C4R ( const Fw16u * pSrcint srcStepconst Fw16u value[4]Fw16u * pDstint dstStepFwiSize 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.
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, multiply the source data by a specified constant value, then divide the product by a scaling factor equal to the upper bound of the range of values that can be represented by the source data type.

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