FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
vf_swapuv.c File Reference

swap UV filter More...

#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Functions

static AVFilterBufferRefget_video_buffer (AVFilterLink *link, int perms, int w, int h)
 
static int filter_frame (AVFilterLink *link, AVFilterBufferRef *inpicref)
 
static int query_formats (AVFilterContext *ctx)
 

Variables

static const AVFilterPad swapuv_inputs []
 
static const AVFilterPad swapuv_outputs []
 
AVFilter avfilter_vf_swapuv
 

Detailed Description

swap UV filter

Definition in file vf_swapuv.c.

Function Documentation

static AVFilterBufferRef* get_video_buffer ( AVFilterLink link,
int  perms,
int  w,
int  h 
)
static

Definition at line 31 of file vf_swapuv.c.

static int filter_frame ( AVFilterLink link,
AVFilterBufferRef inpicref 
)
static

Definition at line 43 of file vf_swapuv.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 51 of file vf_swapuv.c.

Variable Documentation

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

Definition at line 66 of file vf_swapuv.c.

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

Definition at line 76 of file vf_swapuv.c.

AVFilter avfilter_vf_swapuv
Initial value:
= {
.name = "swapuv",
.description = NULL_IF_CONFIG_SMALL("Swap U and V components."),
.priv_size = 0,
.query_formats = query_formats,
.inputs = swapuv_inputs,
.outputs = swapuv_outputs,
}

Definition at line 84 of file vf_swapuv.c.