FFmpeg
Data Structures | Macros | Functions | Variables
vf_freezeframes.c File Reference
#include "libavutil/avassert.h"
#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 []
 
AVFilter ff_vf_freezeframes
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 39 of file vf_freezeframes.c.

◆ FLAGS

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

◆ freezeframes_inputs

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

Definition at line 137 of file vf_freezeframes.c.

◆ freezeframes_outputs

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

Definition at line 149 of file vf_freezeframes.c.

◆ ff_vf_freezeframes

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

Definition at line 158 of file vf_freezeframes.c.

config_output
static int config_output(AVFilterLink *outlink)
Definition: vf_freezeframes.c:51
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_freezeframes.c:130
OFFSET
#define OFFSET(x)
Definition: vf_freezeframes.c:39
FLAGS
#define FLAGS
Definition: vf_freezeframes.c:40
FreezeFramesContext
Definition: vf_freezeframes.c:32
freezeframes_inputs
static const AVFilterPad freezeframes_inputs[]
Definition: vf_freezeframes.c:137
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:226
outputs
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
NULL
#define NULL
Definition: coverity.c:32
inputs
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
Definition: filter_design.txt:243
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:74
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
freezeframes_outputs
static const AVFilterPad freezeframes_outputs[]
Definition: vf_freezeframes.c:149