FFmpeg
Loading...
Searching...
No Matches
detection_bbox.c File Reference
#include "detection_bbox.h"
#include "mem.h"

Go to the source code of this file.

Functions

AVDetectionBBoxHeaderav_detection_bbox_alloc (uint32_t nb_bboxes, size_t *out_size)
 Allocates memory for AVDetectionBBoxHeader, plus an array of nb_bboxes AVDetectionBBox, and initializes the variables.
 
AVDetectionBBoxHeaderav_detection_bbox_create_side_data (AVFrame *frame, uint32_t nb_bboxes)
 Allocates memory for AVDetectionBBoxHeader, plus an array of nb_bboxes AVDetectionBBox, in the given AVFrame frame as AVFrameSideData of type AV_FRAME_DATA_DETECTION_BBOXES and initializes the variables.
 

Function Documentation

◆ av_detection_bbox_alloc()

AVDetectionBBoxHeader * av_detection_bbox_alloc ( uint32_t nb_bboxes,
size_t * out_size )

Allocates memory for AVDetectionBBoxHeader, plus an array of nb_bboxes AVDetectionBBox, and initializes the variables.

Can be freed with a normal av_free() call.

Parameters
nb_bboxesnumber of AVDetectionBBox structures to allocate
out_sizeif non-NULL, the size in bytes of the resulting data array is written here.

Definition at line 22 of file detection_bbox.c.

Referenced by av_detection_bbox_create_side_data(), and main().

◆ av_detection_bbox_create_side_data()

AVDetectionBBoxHeader * av_detection_bbox_create_side_data ( AVFrame * frame,
uint32_t nb_bboxes )

Allocates memory for AVDetectionBBoxHeader, plus an array of nb_bboxes AVDetectionBBox, in the given AVFrame frame as AVFrameSideData of type AV_FRAME_DATA_DETECTION_BBOXES and initializes the variables.

Definition at line 52 of file detection_bbox.c.

Referenced by dnn_detect_fill_side_data(), dnn_detect_post_proc_ssd(), dnn_detect_post_proc_tf(), and main().