FFmpeg
Data Structures | Macros | Functions | Variables
vf_freezeframes.c File Reference
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  FreezeFramesContext
 

Macros

#define OFFSET(x)   offsetof(FreezeFramesContext, x)
 
#define FLAGS   (AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM)
 

Functions

 AVFILTER_DEFINE_CLASS (freezeframes)
 
static int config_output (AVFilterLink *outlink)
 
static int activate (AVFilterContext *ctx)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVOption freezeframes_options []
 
static const AVFilterPad freezeframes_inputs []
 
static const AVFilterPad freezeframes_outputs []
 
const AVFilter ff_vf_freezeframes
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 38 of file vf_freezeframes.c.

◆ FLAGS

Definition at line 39 of file vf_freezeframes.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( freezeframes  )

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 50 of file vf_freezeframes.c.

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 73 of file vf_freezeframes.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 129 of file vf_freezeframes.c.

Variable Documentation

◆ freezeframes_options

const AVOption freezeframes_options[]
static
Initial value:
= {
{ "first", "set first frame to freeze", OFFSET(first), AV_OPT_TYPE_INT64, {.i64=0}, 0, INT64_MAX, FLAGS },
{ "last", "set last frame to freeze", OFFSET(last), AV_OPT_TYPE_INT64, {.i64=0}, 0, INT64_MAX, FLAGS },
{ "replace", "set frame to replace", OFFSET(replace), AV_OPT_TYPE_INT64, {.i64=0}, 0, INT64_MAX, FLAGS },
{ NULL },
}

Definition at line 41 of file vf_freezeframes.c.

◆ freezeframes_inputs

const AVFilterPad freezeframes_inputs[]
static
Initial value:
= {
{
.name = "source",
},
{
.name = "replace",
},
}

Definition at line 136 of file vf_freezeframes.c.

◆ freezeframes_outputs

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

Definition at line 147 of file vf_freezeframes.c.

◆ ff_vf_freezeframes

const AVFilter ff_vf_freezeframes
Initial value:
= {
.name = "freezeframes",
.description = NULL_IF_CONFIG_SMALL("Freeze video frames."),
.priv_size = sizeof(FreezeFramesContext),
.priv_class = &freezeframes_class,
.activate = activate,
.uninit = uninit,
}

Definition at line 155 of file vf_freezeframes.c.

config_output
static int config_output(AVFilterLink *outlink)
Definition: vf_freezeframes.c:50
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_freezeframes.c:129
OFFSET
#define OFFSET(x)
Definition: vf_freezeframes.c:38
FLAGS
#define FLAGS
Definition: vf_freezeframes.c:39
FreezeFramesContext
Definition: vf_freezeframes.c:31
freezeframes_inputs
static const AVFilterPad freezeframes_inputs[]
Definition: vf_freezeframes.c:136
first
trying all byte sequences megabyte in length and selecting the best looking sequence will yield cases to try But first
Definition: rate_distortion.txt:12
AV_OPT_TYPE_INT64
@ AV_OPT_TYPE_INT64
Definition: opt.h:225
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:152
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
activate
static int activate(AVFilterContext *ctx)
Definition: vf_freezeframes.c:73
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:153
freezeframes_outputs
static const AVFilterPad freezeframes_outputs[]
Definition: vf_freezeframes.c:147