FFmpeg
Macros | Functions
bbox.c File Reference
#include "bbox.h"

Go to the source code of this file.

Macros

#define BBOX(type, name)
 

Functions

int ff_calculate_bounding_box (FFBoundingBox *bbox, const uint8_t *data, int linesize, int w, int h, int min_val, int depth)
 Calculate the smallest rectangle that will encompass the region with values > min_val. More...
 

Macro Definition Documentation

◆ BBOX

#define BBOX (   type,
  name 
)

Definition at line 23 of file bbox.c.

Function Documentation

◆ ff_calculate_bounding_box()

int ff_calculate_bounding_box ( FFBoundingBox bbox,
const uint8_t data,
int  linesize,
int  w,
int  h,
int  min_val,
int  depth 
)

Calculate the smallest rectangle that will encompass the region with values > min_val.

Parameters
bboxbounding box structure which is updated with the found values. If no pixels could be found with value > min_val, the structure is not modified.
Returns
1 in case at least one pixel with value > min_val was found, 0 otherwise

Definition at line 81 of file bbox.c.

Referenced by filter_frame(), and init().