VvasInferResult is a type-erased container that holds the actual inference
result along with utility function pointers for lifecycle management. The
data pointer is cast to the concrete result structure indicated by
infer_result_type.
Definition
struct VvasInferResult {
void *data;
VvasInferResultType infer_result_type;
VvasInferResult* (*create) (void);
bool (*free) (void *);
bool (*copy) (const void *, void **);
bool (*transform) (void *, VvasInferScaleInfo *);
};
Members
dataPointer to the concrete result structure. Cast to
VvasInferDetectionwheninfer_result_typeisVVAS_INFER_RESULT_DETECTION, or toVvasListofVvasInferClassificationwhen it isVVAS_INFER_RESULT_CLASSIFICATION.infer_result_typeDiscriminator identifying the result type. See VvasInferResultType.
createAllocates a new result of this type.
freeReleases the result and its
data.copyDeep-copies the result into a new allocation.
transformScales bounding-box coordinates using the supplied
VvasInferScaleInfo. Used internally during cascade inference to map predictions back to the original frame resolution.