Div

Divide

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwiDiv_8u_C1IRSfs ( const Fw8u * pSrc, int srcStep, Fw8u * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_8u_C3IRSfs ( const Fw8u * pSrc, int srcStep, Fw8u * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_16s_C1IRSfs ( const Fw16s * pSrc, int srcStep, Fw16s * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_16s_C3IRSfs ( const Fw16s * pSrc, int srcStep, Fw16s * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_16sc_C1IRSfs ( const Fw16sc * pSrc, int srcStep, Fw16sc * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_16sc_C3IRSfs ( const Fw16sc * pSrc, int srcStep, Fw16sc * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_16sc_AC4IRSfs ( const Fw16sc * pSrc, int srcStep, Fw16sc * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_32sc_C1IRSfs ( const Fw32sc * pSrc, int srcStep, Fw32sc * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_32sc_C3IRSfs ( const Fw32sc * pSrc, int srcStep, Fw32sc * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_32sc_AC4IRSfs ( const Fw32sc * pSrc, int srcStep, Fw32sc * pSrcDst, int srcDstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_32f_C1IR ( const Fw32f * pSrc, int srcStep, Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiDiv_32f_C3IR ( const Fw32f * pSrc, int srcStep, Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiDiv_32f_C4IR ( const Fw32f * pSrc, int srcStep, Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiDiv_32f_AC4IR ( const Fw32f * pSrc, int srcStep, Fw32f * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiDiv_32fc_C1IR ( const Fw32fc * pSrc, int srcStep, Fw32fc * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiDiv_32fc_C3IR ( const Fw32fc * pSrc, int srcStep, Fw32fc * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiDiv_32fc_AC4IR ( const Fw32fc * pSrc, int srcStep, Fw32fc * pSrcDst, int srcDstStep, FwiSize roiSize );
FwStatus   fwiDiv_8u_C1RSfs ( const Fw8u * pSrc1, int src1Step, const Fw8u * pSrc2, int src2Step, Fw8u * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_8u_C3RSfs ( const Fw8u * pSrc1, int src1Step, const Fw8u * pSrc2, int src2Step, Fw8u * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_16s_C1RSfs ( const Fw16s * pSrc1, int src1Step, const Fw16s * pSrc2, int src2Step, Fw16s * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_16s_C3RSfs ( const Fw16s * pSrc1, int src1Step, const Fw16s * pSrc2, int src2Step, Fw16s * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_16sc_C1RSfs ( const Fw16sc * pSrc1, int src1Step, const Fw16sc * pSrc2, int src2Step, Fw16sc * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_16sc_C3RSfs ( const Fw16sc * pSrc1, int src1Step, const Fw16sc * pSrc2, int src2Step, Fw16sc * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_16sc_AC4RSfs ( const Fw16sc * pSrc1, int src1Step, const Fw16sc * pSrc2, int src2Step, Fw16sc * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_32sc_C1RSfs ( const Fw32sc * pSrc1, int src1Step, const Fw32sc * pSrc2, int src2Step, Fw32sc * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_32sc_C3RSfs ( const Fw32sc * pSrc1, int src1Step, const Fw32sc * pSrc2, int src2Step, Fw32sc * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_32sc_AC4RSfs ( const Fw32sc * pSrc1, int src1Step, const Fw32sc * pSrc2, int src2Step, Fw32sc * pDst, int dstStep, FwiSize roiSize, int scaleFactor );
FwStatus   fwiDiv_32f_C1R ( const Fw32f * pSrc1, int src1Step, const Fw32f * pSrc2, int src2Step, Fw32f * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiDiv_32f_C3R ( const Fw32f * pSrc1, int src1Step, const Fw32f * pSrc2, int src2Step, Fw32f * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiDiv_32f_C4R ( const Fw32f * pSrc1, int src1Step, const Fw32f * pSrc2, int src2Step, Fw32f * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiDiv_32f_AC4R ( const Fw32f * pSrc1, int src1Step, const Fw32f * pSrc2, int src2Step, Fw32f * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiDiv_32fc_C1R ( const Fw32fc * pSrc1, int src1Step, const Fw32fc * pSrc2, int src2Step, Fw32fc * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiDiv_32fc_C3R ( const Fw32fc * pSrc1, int src1Step, const Fw32fc * pSrc2, int src2Step, Fw32fc * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiDiv_32fc_AC4R ( const Fw32fc * pSrc1, int src1Step, const Fw32fc * pSrc2, int src2Step, 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.
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.
scaleFactor   Specifies the integer scaling factor for the Sfs operation. The returned result is multiplied by 2^(-scaleFactor).
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).
srcStep   Source buffer step size (width of the buffer in bytes).

Description

These functions step through ROIs in two source buffers and divide the data in buffer 2 by the data in buffer 1.

The quotient 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.