FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vf_shuffleframes.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 "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  ShuffleFramesContext
 

Macros

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

Functions

static av_cold int init (AVFilterContext *ctx)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *frame)
 
static av_cold void uninit (AVFilterContext *ctx)
 
 AVFILTER_DEFINE_CLASS (shuffleframes)
 

Variables

static const AVOption shuffleframes_options []
 
static const AVFilterPad shuffleframes_inputs []
 
static const AVFilterPad shuffleframes_outputs []
 
AVFilter ff_vf_shuffleframes
 

Macro Definition Documentation

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

Definition at line 131 of file vf_shuffleframes.c.

Definition at line 132 of file vf_shuffleframes.c.

Function Documentation

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 41 of file vf_shuffleframes.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 83 of file vf_shuffleframes.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 117 of file vf_shuffleframes.c.

AVFILTER_DEFINE_CLASS ( shuffleframes  )

Variable Documentation

const AVOption shuffleframes_options[]
static
Initial value:
= {
{ "mapping", "set destination indexes of input frames", OFFSET(mapping), AV_OPT_TYPE_STRING, {.str="0"}, 0, 0, FLAGS },
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
#define FLAGS

Definition at line 133 of file vf_shuffleframes.c.

const AVFilterPad shuffleframes_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL },
}
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)

Definition at line 140 of file vf_shuffleframes.c.

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

Definition at line 149 of file vf_shuffleframes.c.

AVFilter ff_vf_shuffleframes
Initial value:
= {
.name = "shuffleframes",
.description = NULL_IF_CONFIG_SMALL("Shuffle video frames."),
.priv_size = sizeof(ShuffleFramesContext),
.priv_class = &shuffleframes_class,
.init = init,
}
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:125
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static const AVFilterPad shuffleframes_outputs[]
static const AVFilterPad outputs[]
Definition: af_afftfilt.c:386
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:376
static int flags
Definition: cpu.c:47
static const AVFilterPad shuffleframes_inputs[]
static av_cold void uninit(AVFilterContext *ctx)
static av_cold int init(AVFilterContext *ctx)

Definition at line 157 of file vf_shuffleframes.c.