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

Macro Definition Documentation

◆ OFFSET

#define OFFSET ( x)
Value:

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 },
}
#define FLAGS
Definition cmdutils.c:598
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ 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:275

Definition at line 135 of file vf_shuffleframes.c.

◆ shuffleframes_inputs

const AVFilterPad shuffleframes_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
}
static int filter_frame(DBEDecodeContext *s, AVFrame *frame)
Definition dolby_e.c:1067
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200

Definition at line 142 of file vf_shuffleframes.c.

◆ ff_vf_shuffleframes

const FFFilter ff_vf_shuffleframes
Initial value:
= {
.p.name = "shuffleframes",
.p.description = NULL_IF_CONFIG_SMALL("Shuffle video frames."),
.p.priv_class = &shuffleframes_class,
.priv_size = sizeof(ShuffleFramesContext),
.init = init,
}
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
#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:196
static av_cold void uninit(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 shuffleframes_inputs[]
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

Definition at line 150 of file vf_shuffleframes.c.