imgSetBufferElementFromVoidPtr
- 已更新2023-02-21
- 閱讀時間為 1 分鐘
Usage
rval imgSetBufferElementFromVoidPtr(BUFLIST_ID bid, uInt32 element, uInt32 itemType, const void* valuePtr);
Purpose
Sets the value for a specified itemType for a buffer in a buffer list.
Parameters
| Name | Type | Direction |
| bid | BUFLIST_ID | input |
| element | uInt32 | input |
| itemType | uInt32 | input |
| valuePtr | void* | Data is passed by void*. The data type should match the expected item type. |
| rval | Int32 | output |
Parameter Discussion
bid: valid BUFLIST_ID variable.
element: element number of the buffer list item to modify.
itemType: describes the parameter of the element to set, as specified by the following constants:
| IMG_BUFF_ADDRESS | Specifies the buffer address portion of a buffer list element. |
| IMG_BUFF_CHANNEL | Specifies the channel from which to acquire an image. |
| IMG_BUFF_COMMAND | Specifies the command portion of a buffer list element. |
| IMG_BUFF_SIZE | Specifies the size portion of a buffer list element (the buffer size). Required for user-allocated buffers. |
| IMG_BUFF_SKIPCOUNT | Specifies the skip count portion of a buffer list element. |
Return Value
This function returns 0 on success. On failure, this function returns an error code. For information about the error code, call imgShowError.
![]() |
Note Refer to Constants for valid element and command types. |
