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

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

Definition at line 39 of file vf_freezeframes.c.

Definition at line 40 of file vf_freezeframes.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( freezeframes  )
static int config_output ( AVFilterLink outlink)
static

Definition at line 51 of file vf_freezeframes.c.

static int activate ( AVFilterContext ctx)
static

Definition at line 74 of file vf_freezeframes.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 130 of file vf_freezeframes.c.

Variable Documentation

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 NULL
Definition: coverity.c:32
trying all byte sequences megabyte in length and selecting the best looking sequence will yield cases to try But first
#define FLAGS
#define OFFSET(x)

Definition at line 42 of file vf_freezeframes.c.

const AVFilterPad freezeframes_inputs[]
static
Initial value:
= {
{
.name = "source",
},
{
.name = "replace",
},
{ NULL },
}
#define NULL
Definition: coverity.c:32

Definition at line 137 of file vf_freezeframes.c.

const AVFilterPad freezeframes_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
},
{ NULL },
}
#define NULL
Definition: coverity.c:32
static int config_output(AVFilterLink *outlink)

Definition at line 149 of file vf_freezeframes.c.

AVFilter ff_vf_freezeframes
Initial value:
= {
.name = "freezeframes",
.description = NULL_IF_CONFIG_SMALL("Freeze video frames."),
.priv_size = sizeof(FreezeFramesContext),
.priv_class = &freezeframes_class,
}
static const AVFilterPad freezeframes_outputs[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static av_cold void uninit(AVFilterContext *ctx)
static const AVFilterPad freezeframes_inputs[]
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
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
static int activate(AVFilterContext *ctx)

Definition at line 158 of file vf_freezeframes.c.