19#ifndef AVUTIL_DETECTION_BBOX_H
20#define AVUTIL_DETECTION_BBOX_H
36#define AV_DETECTION_BBOX_LABEL_NAME_MAX_SIZE 64
50#define AV_NUM_DETECTION_BBOX_CLASSIFY 4
simple assert() macros that are a bit more flexible than ISO C assert().
#define av_assert0(cond)
assert() equivalent, that is always enabled.
#define AV_DETECTION_BBOX_LABEL_NAME_MAX_SIZE
AVDetectionBBoxHeader * av_detection_bbox_alloc(uint32_t nb_bboxes, size_t *out_size)
Allocates memory for AVDetectionBBoxHeader, plus an array of nb_bboxes AVDetectionBBox,...
#define AV_NUM_DETECTION_BBOX_CLASSIFY
At most 4 classifications based on the detected bounding box.
AVDetectionBBoxHeader * av_detection_bbox_create_side_data(AVFrame *frame, uint32_t nb_bboxes)
Allocates memory for AVDetectionBBoxHeader, plus an array of nb_bboxes AVDetectionBBox,...
static av_always_inline AVDetectionBBox * av_get_detection_bbox(const AVDetectionBBoxHeader *header, unsigned int idx)
reference-counted frame API
Utilties for rational number calculation.
char detect_label[AV_DETECTION_BBOX_LABEL_NAME_MAX_SIZE]
Detect result with confidence.
int x
Distance in pixels from the left/top edge of the frame, together with width and height,...
char classify_labels[AV_NUM_DETECTION_BBOX_CLASSIFY][AV_DETECTION_BBOX_LABEL_NAME_MAX_SIZE]
AVRational detect_confidence
AVRational classify_confidences[AV_NUM_DETECTION_BBOX_CLASSIFY]
This structure describes decoded (raw) audio or video data.
Rational number (pair of numerator and denominator).