vf_showinfo.c File Reference

filter for showing textual video frame information More...

#include "libavutil/adler32.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  ShowInfoContext
 

Functions

static av_cold int init (AVFilterContext *ctx, const char *args)
 
static int filter_frame (AVFilterLink *inlink, AVFilterBufferRef *frame)
 

Variables

static const AVFilterPad avfilter_vf_showinfo_inputs []
 
static const AVFilterPad avfilter_vf_showinfo_outputs []
 
AVFilter avfilter_vf_showinfo
 

Detailed Description

filter for showing textual video frame information

Definition in file vf_showinfo.c.

Function Documentation

static int filter_frame ( AVFilterLink inlink,
AVFilterBufferRef frame 
)
static

Definition at line 44 of file vf_showinfo.c.

static av_cold int init ( AVFilterContext ctx,
const char *  args 
)
static

Definition at line 37 of file vf_showinfo.c.

Variable Documentation

AVFilter avfilter_vf_showinfo
Initial value:
= {
.name = "showinfo",
.description = NULL_IF_CONFIG_SMALL("Show textual information for each video frame."),
.priv_size = sizeof(ShowInfoContext),
.init = init,
}
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:122
static const AVFilterPad avfilter_vf_showinfo_inputs[]
Definition: vf_showinfo.c:83
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:88
static av_cold int init(AVFilterContext *ctx, const char *args)
Definition: vf_showinfo.c:37
static const AVFilterPad avfilter_vf_showinfo_outputs[]
Definition: vf_showinfo.c:94
static const AVFilterPad inputs[]
Definition: af_ashowinfo.c:110

Definition at line 102 of file vf_showinfo.c.

const AVFilterPad avfilter_vf_showinfo_inputs[]
static
Initial value:
= {
{
.name = "default",
.get_video_buffer = ff_null_get_video_buffer,
.filter_frame = filter_frame,
.min_perms = AV_PERM_READ,
},
{ NULL }
}
#define AV_PERM_READ
can read from the buffer
Definition: avfilter.h:97
NULL
Definition: eval.c:52
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *frame)
Definition: vf_showinfo.c:44
AVFilterBufferRef * ff_null_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
Definition: video.c:72

Definition at line 83 of file vf_showinfo.c.

const AVFilterPad avfilter_vf_showinfo_outputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}
NULL
Definition: eval.c:52

Definition at line 94 of file vf_showinfo.c.