FFmpeg
Loading...
Searching...
No Matches
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)
 
#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)
Value:

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 },
}
#define FLAGS
Definition cmdutils.c:598
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ AV_OPT_TYPE_INT64
Underlying C type is int64_t.
Definition opt.h:262

Definition at line 40 of file vf_freezeframes.c.

◆ freezeframes_inputs

const AVFilterPad freezeframes_inputs[]
static
Initial value:
= {
{
.name = "source",
},
{
.name = "replace",
},
}
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200

Definition at line 139 of file vf_freezeframes.c.

◆ freezeframes_outputs

const AVFilterPad freezeframes_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
},
}
static int config_output(AVBitStreamFilterLink *outlink)

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,
}
static av_cold void uninit(AVBitStreamFilterContext *ctx)
static int activate(AVBitStreamFilterContext *ctx)
#define FILTER_INPUTS(array)
Definition filters.h:264
#define FILTER_OUTPUTS(array)
Definition filters.h:265
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static const AVFilterPad freezeframes_inputs[]
static const AVFilterPad freezeframes_outputs[]

Definition at line 158 of file vf_freezeframes.c.