FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
f_graphmonitor.c File Reference
#include "config_components.h"
#include "float.h"
#include "libavutil/pixdesc.h"
#include "libavutil/eval.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavutil/timestamp.h"
#include "libavutil/xga_font_data.h"
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  CacheItem
 
struct  GraphMonitorContext
 

Macros

#define OFFSET(x)   offsetof(GraphMonitorContext, x)
 
#define VF   AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 

Enumerations

enum  {
  MODE_QUEUE = 1 << 0, MODE_FCIN = 1 << 1, MODE_FCOUT = 1 << 2, MODE_PTS = 1 << 3,
  MODE_TIME = 1 << 4, MODE_TB = 1 << 5, MODE_FMT = 1 << 6, MODE_SIZE = 1 << 7,
  MODE_RATE = 1 << 8, MODE_EOF = 1 << 9, MODE_SCIN = 1 << 10, MODE_SCOUT = 1 << 11,
  MODE_PTS_DELTA = 1 << 12, MODE_TIME_DELTA = 1 << 13, MODE_FC_DELTA = 1 << 14, MODE_SC_DELTA = 1 << 15
}
 

Functions

static av_cold int init (AVFilterContext *ctx)
 
static int query_formats (AVFilterContext *ctx)
 
static void clear_image (GraphMonitorContext *s, AVFrame *out, AVFilterLink *outlink)
 
static void drawtext (AVFrame *pic, int x, int y, const char *txt, uint8_t *color)
 
static int filter_have_queued (AVFilterContext *filter)
 
static int draw_items (AVFilterContext *ctx, AVFrame *out, int xpos, int ypos, AVFilterLink *l, size_t frames)
 
static int create_frame (AVFilterContext *ctx, int64_t pts)
 
static int activate (AVFilterContext *ctx)
 
static int config_output (AVFilterLink *outlink)
 
static av_cold void uninit (AVFilterContext *ctx)
 
 AVFILTER_DEFINE_CLASS_EXT (graphmonitor, "(a)graphmonitor", graphmonitor_options)
 

Variables

static const AVOption graphmonitor_options []
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(GraphMonitorContext, x)

Definition at line 83 of file f_graphmonitor.c.

◆ VF

Definition at line 84 of file f_graphmonitor.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MODE_QUEUE 
MODE_FCIN 
MODE_FCOUT 
MODE_PTS 
MODE_TIME 
MODE_TB 
MODE_FMT 
MODE_SIZE 
MODE_RATE 
MODE_EOF 
MODE_SCIN 
MODE_SCOUT 
MODE_PTS_DELTA 
MODE_TIME_DELTA 
MODE_FC_DELTA 
MODE_SC_DELTA 

Definition at line 64 of file f_graphmonitor.c.

Function Documentation

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 118 of file f_graphmonitor.c.

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 130 of file f_graphmonitor.c.

◆ clear_image()

static void clear_image ( GraphMonitorContext s,
AVFrame out,
AVFilterLink outlink 
)
static

Definition at line 146 of file f_graphmonitor.c.

Referenced by create_frame().

◆ drawtext()

static void drawtext ( AVFrame pic,
int  x,
int  y,
const char *  txt,
uint8_t *  color 
)
static

Definition at line 155 of file f_graphmonitor.c.

Referenced by create_frame(), and draw_items().

◆ filter_have_queued()

static int filter_have_queued ( AVFilterContext filter)
static

Definition at line 185 of file f_graphmonitor.c.

Referenced by create_frame().

◆ draw_items()

static int draw_items ( AVFilterContext ctx,
AVFrame out,
int  xpos,
int  ypos,
AVFilterLink l,
size_t  frames 
)
static

Definition at line 206 of file f_graphmonitor.c.

Referenced by create_frame().

◆ create_frame()

static int create_frame ( AVFilterContext ctx,
int64_t  pts 
)
static

Definition at line 328 of file f_graphmonitor.c.

Referenced by activate().

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 404 of file f_graphmonitor.c.

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 442 of file f_graphmonitor.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 463 of file f_graphmonitor.c.

◆ AVFILTER_DEFINE_CLASS_EXT()

AVFILTER_DEFINE_CLASS_EXT ( graphmonitor  ,
"(a)graphmonitor"  ,
graphmonitor_options   
)

Variable Documentation

◆ graphmonitor_options

const AVOption graphmonitor_options[]
static

Definition at line 86 of file f_graphmonitor.c.