AddProduct

Add product

Supported Technologies

MT, SSE2

Synopsis

FwStatus   fwiAddProduct_8u32f_C1IR ( const Fw8u * pSrc1int src1Stepconst Fw8u * pSrc2int src2StepFw32f * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiAddProduct_8s32f_C1IR ( const Fw8s * pSrc1int src1Stepconst Fw8s * pSrc2int src2StepFw32f * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiAddProduct_16u32f_C1IR ( const Fw16u * pSrc1int src1Stepconst Fw16u * pSrc2int src2StepFw32f * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiAddProduct_32f_C1IR ( const Fw32f * pSrc1int src1Stepconst Fw32f * pSrc2int src2StepFw32f * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiAddProduct_8u32f_C1IMR ( const Fw8u * pSrc1int src1Stepconst Fw8u * pSrc2int src2Stepconst Fw8u * pMaskint maskStepFw32f * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiAddProduct_8s32f_C1IMR ( const Fw8s * pSrc1int src1Stepconst Fw8s * pSrc2int src2Stepconst Fw8u * pMaskint maskStepFw32f * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiAddProduct_16u32f_C1IMR ( const Fw16u * pSrc1int src1Stepconst Fw16u * pSrc2int src2Stepconst Fw8u * pMaskint maskStepFw32f * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiAddProduct_32f_C1IMR ( const Fw32f * pSrc1int src1Stepconst Fw32f * pSrc2int src2Stepconst Fw8u * pMaskint maskStepFw32f * pSrcDstint srcDstStepFwiSize roiSize );

Parameters

maskStep   Mask buffer step size in bytes (width of the buffer in bytes).
pMask   Pointer to a location in a buffer that contains a mask to be used in the operation.
pSrc1   Pointer to a location in source buffer one.
pSrc2   Pointer to a location in source buffer two.
pSrcDst   Pointer to a location in a buffer that contains both the source and destination.
roiSize   Specifies the height and width of an ROI.
src1Step   Source buffer one step size (width of the buffer in bytes).
src2Step   Source buffer two step size (width of the buffer in bytes).
srcDstStep   Source and destination buffer step size in bytes (width of both buffers in bytes).

Description

These functions step through ROIs in two source buffers, add the product of the data in buffer 1 and the data in buffer 2 to the data in buffer 1, and write the sum back to the source location.

There are versions of the functions that perform a masking operation before writing the results.