Skip to main content

MbufFreeComponent

Free one or more buffer components of a specified container.

Syntax

void MbufFreeComponent(
AIL_ID ContainerBufId, //out
AIL_INT64 Component, //in
AIL_INT64 ControlFlag //in
)

Description

This function deallocates one or more previously allocated buffer components of the specified container. The memory reserved for the specified component is released.

Child buffers associated with the component must be deallocated, using MbufFree, prior to deallocating the component.

All buffers allocated on a particular system must be freed before the system can be freed.

Parameters

ContainerBufId (out, AIL_ID)

Specifies the Aurora Imaging Library identifier of the container which contains the component(s) to be freed.

Component (in, AIL_INT64)

Specifies the criterion used to determine which component(s) will be freed from the container. For all settings except M_COMPONENT_ALL or a component type, an error will be generated if no components of the container specified in ContainerBufId meet the criterion.

For specifying which component to free using a uniquely identifying criterion

ValueDescription
M_COMPONENT_BY_IDSpecifies the component with the specified Aurora Imaging Library identifier.
M_COMPONENT_BY_INDEXSpecifies the component with the specified index in the container.

For specifying which components to free using a generalized criterion

ValueDescription
M_COMPONENT_BY_GROUP_IDSpecifies that the component(s) have the specified group ID. The group ID of a component can be inquired using MbufInquireContainer with M_COMPONENT_GROUP_ID.
M_COMPONENT_BY_REGION_IDSpecifies that the component(s) have the specified region ID. The region ID of a component can be inquired using MbufInquireContainer with M_COMPONENT_REGION_ID.
M_COMPONENT_BY_SOURCE_IDSpecifies that the component(s) have the specified source ID. The source ID of a component can be inquired using MbufInquireContainer with M_COMPONENT_SOURCE_ID.
M_COMPONENT_ALLSpecifies all components of the container.

For specifying the component to free by component type

ValueDescription
M_COMPONENT_CONFIDENCESpecifies the components that store confidence information for theM_COMPONENT_RANGEor M_COMPONENT_DISPARITYcomponent of the container.
M_COMPONENT_COORDINATE_MAP_A_AILSpecifies the components that store the A coordinate map provided by the camera.
M_COMPONENT_COORDINATE_MAP_B_AILSpecifies the components that store the B coordinate map provided by the camera.
M_COMPONENT_CUSTOM + nSpecifies the components that have a custom component type, identified by n, where n can be a value between 0 and 254.
M_COMPONENT_DISPARITYSpecifies the components that store a disparity map.
M_COMPONENT_INFRAREDSpecifies the components that store an intensity image of infrared light.
M_COMPONENT_INTENSITYSpecifies the components that store an intensity image of visible light.
M_COMPONENT_MATRIX_AILSpecifies the components that store a 4x4 matrix that transforms depth map coordinates.
M_COMPONENT_MESH_AILSpecifies the components that storemesh information for an M_COMPONENT_RANGEcomponent of the container.
M_COMPONENT_METADATASpecifies the components that store metadata information.
M_COMPONENT_MULTISPECTRALSpecifies the components that store an intensity image where each band represents the intensity of a specific wavelength of light.
M_COMPONENT_NORMALS_AILSpecifies the components that store normals information for each point in the M_COMPONENT_RANGEcomponent of the container.
M_COMPONENT_RANGESpecifies the components that store 3D distance/position information.
M_COMPONENT_REFLECTANCESpecifies the components that store a reflectance map.
M_COMPONENT_REGION_AILSpecifies the components that store a region of interest (ROI) for theM_COMPONENT_RANGE component of the container.
M_COMPONENT_SCATTERSpecifies the components that store a scatter map.
M_COMPONENT_ULTRAVIOLETSpecifies the components that store an intensity image of ultraviolet light.
M_COMPONENT_UNDEFINEDSpecifies the components that store information of an unknown type.

ControlFlag (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

Copyright © 2026 Zebra Technologies.