FFmpeg
Data Structures | Macros | Functions | Variables
vf_showinfo.c File Reference
#include <inttypes.h>
#include "libavutil/bswap.h"
#include "libavutil/adler32.h"
#include "libavutil/display.h"
#include "libavutil/dovi_meta.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/film_grain_params.h"
#include "libavutil/hdr_dynamic_metadata.h"
#include "libavutil/hdr_dynamic_vivid_metadata.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 "libavutil/detection_bbox.h"
#include "libavutil/uuid.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, const AVFrameSideData *sd)
 
static void dump_stereo3d (AVFilterContext *ctx, const AVFrameSideData *sd)
 
static void dump_s12m_timecode (AVFilterContext *ctx, AVRational frame_rate, const AVFrameSideData *sd)
 
static void dump_roi (AVFilterContext *ctx, const AVFrameSideData *sd)
 
static void dump_detection_bbox (AVFilterContext *ctx, const AVFrameSideData *sd)
 
static void dump_mastering_display (AVFilterContext *ctx, const AVFrameSideData *sd)
 
static void dump_dynamic_hdr_plus (AVFilterContext *ctx, AVFrameSideData *sd)
 
static void dump_dynamic_hdr_vivid (AVFilterContext *ctx, AVFrameSideData *sd)
 
static void dump_content_light_metadata (AVFilterContext *ctx, AVFrameSideData *sd)
 
static void dump_video_enc_params (AVFilterContext *ctx, const AVFrameSideData *sd)
 
static void dump_sei_unregistered_metadata (AVFilterContext *ctx, const AVFrameSideData *sd)
 
static void dump_sei_film_grain_params_metadata (AVFilterContext *ctx, const AVFrameSideData *sd)
 
static void dump_dovi_metadata (AVFilterContext *ctx, const 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 []
 
const AVFilter ff_vf_showinfo
 

Detailed Description

filter for showing textual video frame information

Definition in file vf_showinfo.c.

Macro Definition Documentation

◆ OFFSET

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

Definition at line 56 of file vf_showinfo.c.

◆ VF

Definition at line 57 of file vf_showinfo.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( showinfo  )

◆ dump_spherical()

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

Definition at line 66 of file vf_showinfo.c.

Referenced by filter_frame().

◆ dump_stereo3d()

static void dump_stereo3d ( AVFilterContext ctx,
const AVFrameSideData sd 
)
static

Definition at line 105 of file vf_showinfo.c.

Referenced by filter_frame().

◆ dump_s12m_timecode()

static void dump_s12m_timecode ( AVFilterContext ctx,
AVRational  frame_rate,
const AVFrameSideData sd 
)
static

Definition at line 123 of file vf_showinfo.c.

Referenced by filter_frame().

◆ dump_roi()

static void dump_roi ( AVFilterContext ctx,
const AVFrameSideData sd 
)
static

Definition at line 139 of file vf_showinfo.c.

Referenced by filter_frame().

◆ dump_detection_bbox()

static void dump_detection_bbox ( AVFilterContext ctx,
const AVFrameSideData sd 
)
static

Definition at line 161 of file vf_showinfo.c.

Referenced by filter_frame().

◆ dump_mastering_display()

static void dump_mastering_display ( AVFilterContext ctx,
const AVFrameSideData sd 
)
static

Definition at line 186 of file vf_showinfo.c.

Referenced by filter_frame().

◆ dump_dynamic_hdr_plus()

static void dump_dynamic_hdr_plus ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 212 of file vf_showinfo.c.

Referenced by filter_frame().

◆ dump_dynamic_hdr_vivid()

static void dump_dynamic_hdr_vivid ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 312 of file vf_showinfo.c.

Referenced by filter_frame().

◆ dump_content_light_metadata()

static void dump_content_light_metadata ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 395 of file vf_showinfo.c.

Referenced by filter_frame().

◆ dump_video_enc_params()

static void dump_video_enc_params ( AVFilterContext ctx,
const AVFrameSideData sd 
)
static

Definition at line 404 of file vf_showinfo.c.

Referenced by filter_frame().

◆ dump_sei_unregistered_metadata()

static void dump_sei_unregistered_metadata ( AVFilterContext ctx,
const AVFrameSideData sd 
)
static

Definition at line 423 of file vf_showinfo.c.

Referenced by filter_frame().

◆ dump_sei_film_grain_params_metadata()

static void dump_sei_film_grain_params_metadata ( AVFilterContext ctx,
const AVFrameSideData sd 
)
static

Definition at line 442 of file vf_showinfo.c.

Referenced by filter_frame().

◆ dump_dovi_metadata()

static void dump_dovi_metadata ( AVFilterContext ctx,
const AVFrameSideData sd 
)
static

Definition at line 509 of file vf_showinfo.c.

Referenced by filter_frame().

◆ dump_color_property()

static void dump_color_property ( AVFilterContext ctx,
AVFrame frame 
)
static

Definition at line 613 of file vf_showinfo.c.

Referenced by filter_frame().

◆ update_sample_stats_8()

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

Definition at line 646 of file vf_showinfo.c.

Referenced by update_sample_stats().

◆ update_sample_stats_16()

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

Definition at line 656 of file vf_showinfo.c.

Referenced by update_sample_stats().

◆ 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 672 of file vf_showinfo.c.

Referenced by filter_frame().

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 680 of file vf_showinfo.c.

◆ config_props()

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

Definition at line 821 of file vf_showinfo.c.

Referenced by config_props_in(), and config_props_out().

◆ config_props_in()

static int config_props_in ( AVFilterLink link)
static

Definition at line 832 of file vf_showinfo.c.

◆ config_props_out()

static int config_props_out ( AVFilterLink link)
static

Definition at line 838 of file vf_showinfo.c.

Variable Documentation

◆ showinfo_options

const AVOption showinfo_options[]
static
Initial value:
= {
{ "checksum", "calculate checksums", OFFSET(calculate_checksums), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, VF },
{ NULL }
}

Definition at line 59 of file vf_showinfo.c.

◆ avfilter_vf_showinfo_inputs

const AVFilterPad avfilter_vf_showinfo_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.config_props = config_props_in,
},
}

Definition at line 844 of file vf_showinfo.c.

◆ avfilter_vf_showinfo_outputs

const AVFilterPad avfilter_vf_showinfo_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_props_out,
},
}

Definition at line 853 of file vf_showinfo.c.

◆ ff_vf_showinfo

const 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,
}

Definition at line 861 of file vf_showinfo.c.

config_props_out
static int config_props_out(AVFilterLink *link)
Definition: vf_showinfo.c:838
avfilter_vf_showinfo_inputs
static const AVFilterPad avfilter_vf_showinfo_inputs[]
Definition: vf_showinfo.c:844
OFFSET
#define OFFSET(x)
Definition: vf_showinfo.c:56
config_props_in
static int config_props_in(AVFilterLink *link)
Definition: vf_showinfo.c:832
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_showinfo.c:680
VF
#define VF
Definition: vf_showinfo.c:57
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:190
NULL
#define NULL
Definition: coverity.c:32
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
avfilter_vf_showinfo_outputs
static const AVFilterPad avfilter_vf_showinfo_outputs[]
Definition: vf_showinfo.c:853
ShowInfoContext
Definition: vf_showinfo.c:51
AVFILTER_FLAG_METADATA_ONLY
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
Definition: avfilter.h:143
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_OPT_TYPE_BOOL
@ AV_OPT_TYPE_BOOL
Definition: opt.h:244
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:191
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561