Swap

Change channel order

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwiSwapChannels_8u_C3R ( const Fw8u * pSrcint srcStepFw8u * pDstint dstStepFwiSize roiSizeconst int dstOrder[3] );
FwStatus   fwiSwapChannels_8u_AC4R ( const Fw8u * pSrcint srcStepFw8u * pDstint dstStepFwiSize roiSizeconst int dstOrder[3] );
FwStatus   fwiSwapChannels_16u_C3R ( const Fw16u * pSrcint srcStepFw16u * pDstint dstStepFwiSize roiSizeconst int dstOrder[3] );
FwStatus   fwiSwapChannels_16u_AC4R ( const Fw16u * pSrcint srcStepFw16u * pDstint dstStepFwiSize roiSizeconst int dstOrder[3] );
FwStatus   fwiSwapChannels_32s_C3R ( const Fw32s * pSrcint srcStepFw32s * pDstint dstStepFwiSize roiSizeconst int dstOrder[3] );
FwStatus   fwiSwapChannels_32s_AC4R ( const Fw32s * pSrcint srcStepFw32s * pDstint dstStepFwiSize roiSizeconst int dstOrder[3] );
FwStatus   fwiSwapChannels_32f_C3R ( const Fw32f * pSrcint srcStepFw32f * pDstint dstStepFwiSize roiSizeconst int dstOrder[3] );
FwStatus   fwiSwapChannels_32f_AC4R ( const Fw32f * pSrcint srcStepFw32f * pDstint dstStepFwiSize roiSizeconst int dstOrder[3] );
FwStatus   fwiSwapChannels_8u_C3IR ( Fw8u * pSrcDstint srcDstStepFwiSize roiSizeconst int dstOrder[3] );

Parameters

dstOrder[3]   Specifies destination buffer channel order. For example, dstOrder[1] = 0 indicates that source channel 0 is destination channel 1.
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).

Description

These functions step through an ROI in a source buffer, swap the source buffer channels as specified by the destination order, and write the channel data to the destination buffer.

For example, dstOrder[1] = 0 places channel 0 in the source buffer into channel 1 of the destination buffer.