Skip to main content

MbufPut1d

Put data from a user-supplied array into a one-dimensional area of a buffer.

Syntax

void MbufPut1d(
AIL_ID DestBufId, //out
AIL_INT OffX, //in
AIL_INT SizeX, //in
const void * UserArrayPtr //in
)

Description

This function copies data from a user-supplied array to a specific one-dimensional area of the specified Aurora Imaging Library destination buffer. If the destination buffer has multiple bands, Aurora Imaging Library copies the data from the user-supplied array to the destination buffer sequentially. The internal data format of the user-supplied array need not match the data format of the Aurora Imaging Library destination buffer (planar); an internal conversion will be performed if necessary. Note, however, if the formats do match, the operation will be much faster. For more information, refer to MbufPutColor2d with M_PLANAR.

Parameters

DestBufId (out, AIL_ID)

Specifies the identifier of the destination buffer.

OffX (in, AIL_INT)

Specifies the horizontal offset of the destination buffer area in which to put data, relative to the destination buffer's top-left pixel.

SizeX (in, AIL_INT)

Specifies the width of the destination buffer area in which to put the data.

UserArrayPtr *(in, void)

Specifies the address of the user array from which to put data into the destination buffer. Ensure that user array is large enough to contain the data to be copied into the destination buffer.

Copyright © 2026 Zebra Technologies.