MbufCopy()函数

Synopsis

Copy data from one buffer to another.

Format

void MbufCopy(SrcBufId, DestBufId)

MIL_ID SrcBufId; Source buffer identifier
MIL_ID DestBufId; Destination buffer identifier

Description

This function copies the specified source buffer data to the specified destination buffer. If the source and destination buffers are of different data types, MIL converts the data automatically.

The SrcBufId and DestBufId parameters specify the identifiers of the source and destination data buffers.

If the source buffer depth is greater than that of the destination, the most significant bits are truncated when the data is copied into the destination. If the destination depth is greater than that of the source, the source data is zero or sign-extended (depending on the type of the source) when copied into the destination.

Note, when copying from a non-binary buffer to a binary buffer, all non-zero pixels in the source buffer are represented as ones (1) in the binary buffer.

See also

MbufCopyClip, MbufCopyCond, MbufCopyMask