FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | 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 "avfilter.h"
#include "internal.h"
#include "formats.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  BlackFrameContext
 

Functions

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

Variables

static const AVFilterPad avfilter_vf_blackframe_inputs []
 
static const AVFilterPad avfilter_vf_blackframe_outputs []
 
AVFilter avfilter_vf_blackframe
 

Detailed Description

Search for black frames to detect scene transitions.

Ported from MPlayer libmpcodecs/vf_blackframe.c.

Definition in file vf_blackframe.c.

Function Documentation

static int query_formats ( AVFilterContext ctx)
static

Definition at line 48 of file vf_blackframe.c.

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

Definition at line 60 of file vf_blackframe.c.

static int filter_frame ( AVFilterLink inlink,
AVFilterBufferRef frame 
)
static

Definition at line 84 of file vf_blackframe.c.

Variable Documentation

const AVFilterPad avfilter_vf_blackframe_inputs[]
static
Initial value:
= {
{
.name = "default",
.get_video_buffer = ff_null_get_video_buffer,
.filter_frame = filter_frame,
},
{ NULL }
}

Definition at line 114 of file vf_blackframe.c.

const AVFilterPad avfilter_vf_blackframe_outputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}

Definition at line 124 of file vf_blackframe.c.

AVFilter avfilter_vf_blackframe
Initial value:
= {
.name = "blackframe",
.description = NULL_IF_CONFIG_SMALL("Detect frames that are (almost) black."),
.priv_size = sizeof(BlackFrameContext),
.init = init,
}

Definition at line 132 of file vf_blackframe.c.