FFmpeg
Data Structures | Macros | Functions | Variables
vf_showinfo.c File Reference

filter for showing textual video frame information More...

#include <inttypes.h>
#include "libavutil/bswap.h"
#include "libavutil/adler32.h"
#include "libavutil/display.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/spherical.h"
#include "libavutil/stereo3d.h"
#include "libavutil/timestamp.h"
#include "libavutil/timecode.h"
#include "libavutil/mastering_display_metadata.h"
#include "libavutil/video_enc_params.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  ShowInfoContext
 

Macros

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

Functions

 AVFILTER_DEFINE_CLASS (showinfo)
 
static void dump_spherical (AVFilterContext *ctx, AVFrame *frame, AVFrameSideData *sd)
 
static void dump_stereo3d (AVFilterContext *ctx, AVFrameSideData *sd)
 
static void dump_roi (AVFilterContext *ctx, AVFrameSideData *sd)
 
static void dump_mastering_display (AVFilterContext *ctx, AVFrameSideData *sd)
 
static void dump_content_light_metadata (AVFilterContext *ctx, AVFrameSideData *sd)
 
static void dump_video_enc_params (AVFilterContext *ctx, AVFrameSideData *sd)
 
static void dump_color_property (AVFilterContext *ctx, AVFrame *frame)
 
static void update_sample_stats_8 (const uint8_t *src, int len, int64_t *sum, int64_t *sum2)
 
static void update_sample_stats_16 (int be, const uint8_t *src, int len, int64_t *sum, int64_t *sum2)
 
static void update_sample_stats (int depth, int be, const uint8_t *src, int len, int64_t *sum, int64_t *sum2)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *frame)
 
static int config_props (AVFilterContext *ctx, AVFilterLink *link, int is_out)
 
static int config_props_in (AVFilterLink *link)
 
static int config_props_out (AVFilterLink *link)
 

Variables

static const AVOption showinfo_options []
 
static const AVFilterPad avfilter_vf_showinfo_inputs []
 
static const AVFilterPad avfilter_vf_showinfo_outputs []
 
AVFilter ff_vf_showinfo
 

Detailed Description

filter for showing textual video frame information

Definition in file vf_showinfo.c.

Macro Definition Documentation

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

Definition at line 50 of file vf_showinfo.c.

Definition at line 51 of file vf_showinfo.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( showinfo  )
static void dump_spherical ( AVFilterContext ctx,
AVFrame frame,
AVFrameSideData sd 
)
static

Definition at line 60 of file vf_showinfo.c.

Referenced by filter_frame().

static void dump_stereo3d ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 99 of file vf_showinfo.c.

Referenced by filter_frame().

static void dump_roi ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 117 of file vf_showinfo.c.

Referenced by filter_frame().

static void dump_mastering_display ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 139 of file vf_showinfo.c.

Referenced by filter_frame().

static void dump_content_light_metadata ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 165 of file vf_showinfo.c.

Referenced by filter_frame().

static void dump_video_enc_params ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 174 of file vf_showinfo.c.

Referenced by filter_frame().

static void dump_color_property ( AVFilterContext ctx,
AVFrame frame 
)
static

Definition at line 193 of file vf_showinfo.c.

Referenced by filter_frame().

static void update_sample_stats_8 ( const uint8_t src,
int  len,
int64_t *  sum,
int64_t *  sum2 
)
static

Definition at line 226 of file vf_showinfo.c.

Referenced by update_sample_stats().

static void update_sample_stats_16 ( int  be,
const uint8_t src,
int  len,
int64_t *  sum,
int64_t *  sum2 
)
static

Definition at line 236 of file vf_showinfo.c.

Referenced by update_sample_stats().

static void update_sample_stats ( int  depth,
int  be,
const uint8_t src,
int  len,
int64_t *  sum,
int64_t *  sum2 
)
static

Definition at line 252 of file vf_showinfo.c.

Referenced by filter_frame().

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 260 of file vf_showinfo.c.

static int config_props ( AVFilterContext ctx,
AVFilterLink link,
int  is_out 
)
static

Definition at line 392 of file vf_showinfo.c.

Referenced by config_props_in(), and config_props_out().

static int config_props_in ( AVFilterLink link)
static

Definition at line 403 of file vf_showinfo.c.

static int config_props_out ( AVFilterLink link)
static

Definition at line 409 of file vf_showinfo.c.

Variable Documentation

const AVOption showinfo_options[]
static
Initial value:
= {
{ "checksum", "calculate checksums", OFFSET(calculate_checksums), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, VF },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: vf_showinfo.c:50
#define VF
Definition: vf_showinfo.c:51

Definition at line 53 of file vf_showinfo.c.

const AVFilterPad avfilter_vf_showinfo_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.config_props = config_props_in,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_showinfo.c:260
static int config_props_in(AVFilterLink *link)
Definition: vf_showinfo.c:403

Definition at line 415 of file vf_showinfo.c.

const AVFilterPad avfilter_vf_showinfo_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_props_out,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int config_props_out(AVFilterLink *link)
Definition: vf_showinfo.c:409

Definition at line 425 of file vf_showinfo.c.

AVFilter ff_vf_showinfo
Initial value:
= {
.name = "showinfo",
.description = NULL_IF_CONFIG_SMALL("Show textual information for each video frame."),
.priv_size = sizeof(ShowInfoContext),
.priv_class = &showinfo_class,
}
static const AVFilterPad avfilter_vf_showinfo_inputs[]
Definition: vf_showinfo.c:415
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static const AVFilterPad avfilter_vf_showinfo_outputs[]
Definition: vf_showinfo.c:425

Definition at line 434 of file vf_showinfo.c.