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 "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  ShufflePlanesContext


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


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


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

Macro Definition Documentation

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

Definition at line 135 of file vf_shuffleplanes.c.

Definition at line 136 of file vf_shuffleplanes.c.

Function Documentation

static int query_formats ( AVFilterContext ctx)

Definition at line 43 of file vf_shuffleplanes.c.

static av_cold int shuffleplanes_config_input ( AVFilterLink inlink)

Definition at line 75 of file vf_shuffleplanes.c.

static int shuffleplanes_filter_frame ( AVFilterLink inlink,
AVFrame frame 

Definition at line 94 of file vf_shuffleplanes.c.

AVFILTER_DEFINE_CLASS ( shuffleplanes  )

Variable Documentation

const AVOption shuffleplanes_options[]
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 },
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
#define FLAGS
const VDPAUPixFmtMap * map

Definition at line 137 of file vf_shuffleplanes.c.

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

Definition at line 147 of file vf_shuffleplanes.c.

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

Definition at line 157 of file vf_shuffleplanes.c.

AVFilter ff_vf_shuffleplanes
Initial value:
= {
.name = "shuffleplanes",
.description = NULL_IF_CONFIG_SMALL("Shuffle video planes."),
.priv_size = sizeof(ShufflePlanesContext),
.priv_class = &shuffleplanes_class,
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:126
static int query_formats(AVFilterContext *ctx)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:153
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
static const AVFilterPad shuffleplanes_outputs[]
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
#define flags(name, subs,...)
Definition: cbs_av1.c:560
static const AVFilterPad shuffleplanes_inputs[]

Definition at line 165 of file vf_shuffleplanes.c.