vf_showinfo.c File Reference

filter for showing textual video frame information More...

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

Go to the source code of this file.

Data Structures

struct  ShowInfoContext
 

Functions

static av_cold int init (AVFilterContext *ctx, const char *args, void *opaque)
 
static void end_frame (AVFilterLink *inlink)
 

Variables

AVFilter avfilter_vf_showinfo
 

Detailed Description

filter for showing textual video frame information

Definition in file vf_showinfo.c.

Function Documentation

static void end_frame ( AVFilterLink inlink)
static

Definition at line 41 of file vf_showinfo.c.

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

Definition at line 34 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,
.inputs = (AVFilterPad[]) {{ .name = "default",
.get_video_buffer = avfilter_null_get_video_buffer,
.start_frame = avfilter_null_start_frame,
.end_frame = end_frame,
.min_perms = AV_PERM_READ, },
{ .name = NULL}},
.outputs = (AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO },
{ .name = NULL}},
}
static void end_frame(AVFilterLink *inlink)
Definition: vf_showinfo.c:41
#define AV_PERM_READ
can read from the buffer
Definition: avfilter.h:81
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
Definition: vf_showinfo.c:34
A filter pad used for either input or output.
Definition: avfilter.h:312
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
NULL
Definition: eval.c:50
void avfilter_null_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
start_frame() handler for filters which simply pass video along
Definition: defaults.c:268
AVFilterBufferRef * avfilter_null_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
get_video_buffer() handler for filters which simply pass video along
Definition: defaults.c:288

Definition at line 80 of file vf_showinfo.c.