FFmpeg
Data Structures | Macros | Functions | Variables
vf_shuffleframes.c File Reference
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/mem.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  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 []
 
const AVFilter ff_vf_shuffleframes
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 133 of file vf_shuffleframes.c.

◆ FLAGS

Definition at line 134 of file vf_shuffleframes.c.

Function Documentation

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 41 of file vf_shuffleframes.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 83 of file vf_shuffleframes.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 119 of file vf_shuffleframes.c.

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( shuffleframes  )

Variable Documentation

◆ shuffleframes_options

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 },
}

Definition at line 135 of file vf_shuffleframes.c.

◆ shuffleframes_inputs

const AVFilterPad shuffleframes_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
}

Definition at line 142 of file vf_shuffleframes.c.

◆ ff_vf_shuffleframes

const 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,
}

Definition at line 150 of file vf_shuffleframes.c.

uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_shuffleframes.c:119
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: filters.h:262
FLAGS
#define FLAGS
Definition: vf_shuffleframes.c:134
ff_video_default_filterpad
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
Definition: video.c:37
shuffleframes_inputs
static const AVFilterPad shuffleframes_inputs[]
Definition: vf_shuffleframes.c:142
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: filters.h:263
NULL
#define NULL
Definition: coverity.c:32
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_shuffleframes.c:83
init
static av_cold int init(AVFilterContext *ctx)
Definition: vf_shuffleframes.c:41
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
OFFSET
#define OFFSET(x)
Definition: vf_shuffleframes.c:133
AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
#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:182
ShuffleFramesContext
Definition: vf_shuffleframes.c:31
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_OPT_TYPE_STRING
@ AV_OPT_TYPE_STRING
Underlying C type is a uint8_t* that is either NULL or points to a C string allocated with the av_mal...
Definition: opt.h:276