|
FFmpeg
|
Box and grid drawing filters. More...
#include "config_components.h"#include "libavutil/colorspace.h"#include "libavutil/common.h"#include "libavutil/opt.h"#include "libavutil/eval.h"#include "libavutil/pixdesc.h"#include "libavutil/parseutils.h"#include "libavutil/detection_bbox.h"#include "avfilter.h"#include "drawutils.h"#include "filters.h"#include "video.h"Go to the source code of this file.
Data Structures | |
| struct | DrawBoxContext |
Macros | |
| #define | ASSIGN_THREE_CHANNELS |
| #define | ASSIGN_FOUR_CHANNELS |
| #define | ASSIGN_THREE_CHANNELS_PACKED |
| #define | ASSIGN_FOUR_CHANNELS_PACKED |
| #define | OFFSET(x) |
| #define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM |
Typedefs | |
| typedef int(* | PixelBelongsToRegion) (struct DrawBoxContext *s, int x, int y) |
Enumerations | |
| enum | { Y , U , V , A } |
| enum | { R , G , B } |
| enum | var_name { VAR_DAR , VAR_HSUB , VAR_VSUB , VAR_IN_H , VAR_IH , VAR_IN_W , VAR_IW , VAR_SAR , VAR_X , VAR_Y , VAR_H , VAR_W , VAR_T , VAR_MAX , VARS_NB } |
Functions | |
| static void | draw_region (AVFrame *frame, DrawBoxContext *ctx, int left, int top, int right, int down, PixelBelongsToRegion pixel_belongs_to_region) |
| static void | draw_region_rgb_packed (AVFrame *frame, DrawBoxContext *ctx, int left, int top, int right, int down, PixelBelongsToRegion pixel_belongs_to_region) |
| static enum AVFrameSideDataType | box_source_string_parse (const char *box_source_string) |
| static av_cold int | init (AVFilterContext *ctx) |
| static int | config_input (AVFilterLink *inlink) |
| static av_pure av_always_inline int | pixel_belongs_to_box (DrawBoxContext *s, int x, int y) |
| static int | filter_frame (AVFilterLink *inlink, AVFrame *frame) |
| static int | process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags) |
Variables | |
| static const char *const | var_names [] |
| static const int | NUM_EXPR_EVALS = 5 |
| static enum AVPixelFormat | pix_fmts [] |
Box and grid drawing filters.
Also a nice template for a filter that needs to write in the input frame.
Definition in file vf_drawbox.c.
| #define ASSIGN_THREE_CHANNELS |
| #define ASSIGN_FOUR_CHANNELS |
Definition at line 109 of file vf_drawbox.c.
Referenced by draw_region().
| #define ASSIGN_THREE_CHANNELS_PACKED |
| #define ASSIGN_FOUR_CHANNELS_PACKED |
Definition at line 163 of file vf_drawbox.c.
Referenced by draw_region_rgb_packed().
| #define OFFSET | ( | x | ) |
Definition at line 441 of file vf_drawbox.c.
Definition at line 442 of file vf_drawbox.c.
| typedef int(* PixelBelongsToRegion) (struct DrawBoxContext *s, int x, int y) |
Definition at line 77 of file vf_drawbox.c.
| anonymous enum |
| Enumerator | |
|---|---|
| Y | |
| U | |
| V | |
| A | |
Definition at line 57 of file vf_drawbox.c.
| anonymous enum |
| Enumerator | |
|---|---|
| R | |
| G | |
| B | |
Definition at line 58 of file vf_drawbox.c.
| enum var_name |
| Enumerator | |
|---|---|
| VAR_DAR | |
| VAR_HSUB | |
| VAR_VSUB | |
| VAR_IN_H | |
| VAR_IH | |
| VAR_IN_W | |
| VAR_IW | |
| VAR_SAR | |
| VAR_X | |
| VAR_Y | |
| VAR_H | |
| VAR_W | |
| VAR_T | |
| VAR_MAX | |
| VARS_NB | |
Definition at line 60 of file vf_drawbox.c.
|
static |
Definition at line 113 of file vf_drawbox.c.
Referenced by config_input().
|
static |
Definition at line 167 of file vf_drawbox.c.
Referenced by config_input().
|
static |
Definition at line 219 of file vf_drawbox.c.
Referenced by init().
|
static |
Definition at line 230 of file vf_drawbox.c.
|
static |
Definition at line 271 of file vf_drawbox.c.
Referenced by process_command().
|
static |
Definition at line 366 of file vf_drawbox.c.
Referenced by filter_frame().
|
static |
Definition at line 372 of file vf_drawbox.c.
|
static |
Definition at line 408 of file vf_drawbox.c.
|
static |
Definition at line 42 of file vf_drawbox.c.
|
static |
Definition at line 102 of file vf_drawbox.c.
Referenced by config_input(), and drawbox_vaapi_config_output().
|
static |
Definition at line 257 of file vf_drawbox.c.