工具与软件:
您好、TI 专家!
是否有任何方法将现有 vx_reference 映射或分配给 vxObjectArray?
或者、如果可能、甚至可以使用现有 vx_reference 创建 vxObjectArray。
此致、
Juhyun
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具与软件:
您好、TI 专家!
是否有任何方法将现有 vx_reference 映射或分配给 vxObjectArray?
或者、如果可能、甚至可以使用现有 vx_reference 创建 vxObjectArray。
此致、
Juhyun
Juhunyun、您好!
感谢您的答复。
在以下代码片段中将元素用作 dst 并将现有引用用作 src、
vx_status copyImageHandles(vx_image src, vx_image dst)
{
vx_status status = VX_SUCCESS;
void *addr[TIVX_IMAGE_MAX_PLANES] = {NULL};
uint32_t size[TIVX_IMAGE_MAX_PLANES];
uint32_t num_entries;
status = tivxReferenceExportHandle((vx_reference)src,
addr,
size,
max_entries,
&num_entries);
if(status==VX_SUCCESS)
{
status = tivxReferenceImportHandle((vx_reference)dst,
(const void **)addr,
(const uint32_t *)size,
num_entries);
}
return status;
}
如果 dst 已分配(由 vxMapImagePatch 或 vxVerifyGraph 分配)、则此操作有效。
此致、
Gokul