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 "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 FFFilter ff_vf_freezeframes
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 37 of file vf_freezeframes.c.

◆ FLAGS

Definition at line 38 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 49 of file vf_freezeframes.c.

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 74 of file vf_freezeframes.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 132 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 40 of file vf_freezeframes.c.

◆ freezeframes_inputs

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

Definition at line 139 of file vf_freezeframes.c.

◆ freezeframes_outputs

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

Definition at line 150 of file vf_freezeframes.c.

◆ ff_vf_freezeframes

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

Definition at line 158 of file vf_freezeframes.c.

config_output
static int config_output(AVFilterLink *outlink)
Definition: vf_freezeframes.c:49
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: filters.h:262
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_freezeframes.c:132
OFFSET
#define OFFSET(x)
Definition: vf_freezeframes.c:37
FLAGS
#define FLAGS
Definition: vf_freezeframes.c:38
FreezeFramesContext
Definition: vf_freezeframes.c:30
freezeframes_inputs
static const AVFilterPad freezeframes_inputs[]
Definition: vf_freezeframes.c:139
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
Underlying C type is int64_t.
Definition: opt.h:263
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: filters.h:263
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:94
activate
static int activate(AVFilterContext *ctx)
Definition: vf_freezeframes.c:74
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
freezeframes_outputs
static const AVFilterPad freezeframes_outputs[]
Definition: vf_freezeframes.c:150