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

swap UV filter More...

#include "libavutil/pixdesc.h"
#include "libavutil/version.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Functions

static void do_swap (AVFrame *frame)
 
static AVFrameget_video_buffer (AVFilterLink *link, int w, int h)
 
static int filter_frame (AVFilterLink *link, AVFrame *inpicref)
 
static int is_planar_yuv (const AVPixFmtDescriptor *desc)
 
static int query_formats (AVFilterContext *ctx)
 

Variables

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

Detailed Description

swap UV filter

Definition in file vf_swapuv.c.

Function Documentation

static void do_swap ( AVFrame frame)
static

Definition at line 33 of file vf_swapuv.c.

Referenced by filter_frame(), and get_video_buffer().

static AVFrame* get_video_buffer ( AVFilterLink link,
int  w,
int  h 
)
static

Definition at line 46 of file vf_swapuv.c.

static int filter_frame ( AVFilterLink link,
AVFrame inpicref 
)
static

Definition at line 53 of file vf_swapuv.c.

static int is_planar_yuv ( const AVPixFmtDescriptor desc)
static

Definition at line 59 of file vf_swapuv.c.

Referenced by query_formats().

static int query_formats ( AVFilterContext ctx)
static

Definition at line 77 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 }
}
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *link, AVFrame *inpicref)
Definition: vf_swapuv.c:53
static AVFrame * get_video_buffer(AVFilterLink *link, int w, int h)
Definition: vf_swapuv.c:46

Definition at line 91 of file vf_swapuv.c.

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

Definition at line 101 of file vf_swapuv.c.

AVFilter ff_vf_swapuv
Initial value:
= {
.name = "swapuv",
.description = NULL_IF_CONFIG_SMALL("Swap U and V components."),
.query_formats = query_formats,
.inputs = swapuv_inputs,
.outputs = swapuv_outputs,
}
static int query_formats(AVFilterContext *ctx)
Definition: vf_swapuv.c:77
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static const AVFilterPad swapuv_inputs[]
Definition: vf_swapuv.c:91
static const AVFilterPad swapuv_outputs[]
Definition: vf_swapuv.c:101

Definition at line 109 of file vf_swapuv.c.