FFmpeg
Data Structures | Macros | Functions | Variables
vf_shuffleplanes.c File Reference
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/pixfmt.h"
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  ShufflePlanesContext
 

Macros

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

Functions

static int query_formats (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
 
static av_cold int shuffleplanes_config_input (AVFilterLink *inlink)
 
static int shuffleplanes_filter_frame (AVFilterLink *inlink, AVFrame *frame)
 
 AVFILTER_DEFINE_CLASS (shuffleplanes)
 

Variables

static const AVOption shuffleplanes_options []
 
static const AVFilterPad shuffleplanes_inputs []
 
const AVFilter ff_vf_shuffleplanes
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 138 of file vf_shuffleplanes.c.

◆ FLAGS

Definition at line 139 of file vf_shuffleplanes.c.

Function Documentation

◆ query_formats()

static int query_formats ( const AVFilterContext ctx,
AVFilterFormatsConfig **  cfg_in,
AVFilterFormatsConfig **  cfg_out 
)
static

Definition at line 44 of file vf_shuffleplanes.c.

◆ shuffleplanes_config_input()

static av_cold int shuffleplanes_config_input ( AVFilterLink inlink)
static

Definition at line 78 of file vf_shuffleplanes.c.

◆ shuffleplanes_filter_frame()

static int shuffleplanes_filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 97 of file vf_shuffleplanes.c.

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( shuffleplanes  )

Variable Documentation

◆ shuffleplanes_options

const AVOption shuffleplanes_options[]
static
Initial value:
= {
{ "map0", "Index of the input plane to be used as the first output plane ", OFFSET(map[0]), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 3, FLAGS },
{ "map1", "Index of the input plane to be used as the second output plane ", OFFSET(map[1]), AV_OPT_TYPE_INT, { .i64 = 1 }, 0, 3, FLAGS },
{ "map2", "Index of the input plane to be used as the third output plane ", OFFSET(map[2]), AV_OPT_TYPE_INT, { .i64 = 2 }, 0, 3, FLAGS },
{ "map3", "Index of the input plane to be used as the fourth output plane ", OFFSET(map[3]), AV_OPT_TYPE_INT, { .i64 = 3 }, 0, 3, FLAGS },
{ NULL },
}

Definition at line 140 of file vf_shuffleplanes.c.

◆ shuffleplanes_inputs

const AVFilterPad shuffleplanes_inputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = shuffleplanes_config_input,
.filter_frame = shuffleplanes_filter_frame,
},
}

Definition at line 150 of file vf_shuffleplanes.c.

◆ ff_vf_shuffleplanes

const AVFilter ff_vf_shuffleplanes
Initial value:
= {
.name = "shuffleplanes",
.description = NULL_IF_CONFIG_SMALL("Shuffle video planes."),
.priv_size = sizeof(ShufflePlanesContext),
.priv_class = &shuffleplanes_class,
}

Definition at line 159 of file vf_shuffleplanes.c.

FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: filters.h:262
ShufflePlanesContext
Definition: vf_shuffleplanes.c:31
shuffleplanes_config_input
static av_cold int shuffleplanes_config_input(AVFilterLink *inlink)
Definition: vf_shuffleplanes.c:78
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
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: filters.h:263
NULL
#define NULL
Definition: coverity.c:32
OFFSET
#define OFFSET(x)
Definition: vf_shuffleplanes.c:138
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
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
FILTER_QUERY_FUNC2
#define FILTER_QUERY_FUNC2(func)
Definition: filters.h:239
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition: opt.h:259
shuffleplanes_inputs
static const AVFilterPad shuffleplanes_inputs[]
Definition: vf_shuffleplanes.c:150
query_formats
static int query_formats(const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
Definition: vf_shuffleplanes.c:44
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
map
const VDPAUPixFmtMap * map
Definition: hwcontext_vdpau.c:71
shuffleplanes_filter_frame
static int shuffleplanes_filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_shuffleplanes.c:97
FLAGS
#define FLAGS
Definition: vf_shuffleplanes.c:139