AddProduct

Add product

Supported Technologies

MT, SSE2

Synopsis

FwStatus   fwiAddProduct_8u32f_C1IR ( const Fw8u * pSrc1, int src1Step, const Fw8u * pSrc2, int src2Step, Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiAddProduct_8s32f_C1IR ( const Fw8s * pSrc1, int src1Step, const Fw8s * pSrc2, int src2Step, Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiAddProduct_16u32f_C1IR ( const Fw16u * pSrc1, int src1Step, const Fw16u * pSrc2, int src2Step, Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiAddProduct_32f_C1IR ( const Fw32f * pSrc1, int src1Step, const Fw32f * pSrc2, int src2Step, Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiAddProduct_8u32f_C1IMR ( const Fw8u * pSrc1, int src1Step, const Fw8u * pSrc2, int src2Step, const Fw8u * pMask, int maskStep, Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiAddProduct_8s32f_C1IMR ( const Fw8s * pSrc1, int src1Step, const Fw8s * pSrc2, int src2Step, const Fw8u * pMask, int maskStep, Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiAddProduct_16u32f_C1IMR ( const Fw16u * pSrc1, int src1Step, const Fw16u * pSrc2, int src2Step, const Fw8u * pMask, int maskStep, Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiAddProduct_32f_C1IMR ( const Fw32f * pSrc1, int src1Step, const Fw32f * pSrc2, int src2Step, const Fw8u * pMask, int maskStep, Fw32f * pSrcDst, int srcDstStep, FwiSize 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.