FFmpeg
Classes | Macros | Typedefs | Functions | Variables
vf_blackframe.c File Reference

Search for black frames to detect scene transitions. More...

#include <stdio.h>
#include <inttypes.h>
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Classes

struct  BlackFrameContext
 

Macros

#define SET_META(key, format, value)
 
#define OFFSET(x)   offsetof(BlackFrameContext, x)
 
#define FLAGS   AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 

Typedefs

typedef struct BlackFrameContext BlackFrameContext
 

Functions

 AVFILTER_DEFINE_CLASS (blackframe)
 

Variables

AVFilter ff_vf_blackframe
 

Detailed Description

Search for black frames to detect scene transitions.

Ported from MPlayer libmpcodecs/vf_blackframe.c.

Macro Definition Documentation

§ SET_META

#define SET_META (   key,
  format,
  value 
)
Value:
snprintf(buf, sizeof(buf), format, value); \
av_dict_set(metadata, key, buf, 0)

Variable Documentation

§ ff_vf_blackframe

AVFilter ff_vf_blackframe
Initial value:
= {
.name = "blackframe",
.description = NULL_IF_CONFIG_SMALL("Detect frames that are (almost) black."),
.priv_size = sizeof(BlackFrameContext),
.priv_class = &blackframe_class,
.query_formats = query_formats,
.inputs = avfilter_vf_blackframe_inputs,
.outputs = avfilter_vf_blackframe_outputs,
}
Definition: vf_blackframe.c:40
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186