FFmpeg
Functions | Variables
vf_swapuv.c File Reference
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "filters.h"
#include "formats.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 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
 

Variables

static const AVFilterPad swapuv_inputs []
 
const AVFilter ff_vf_swapuv
 

Detailed Description

swap UV filter

Definition in file vf_swapuv.c.

Function Documentation

◆ do_swap()

static void do_swap ( AVFrame frame)
static

Definition at line 32 of file vf_swapuv.c.

Referenced by filter_frame(), and get_video_buffer().

◆ get_video_buffer()

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

Definition at line 39 of file vf_swapuv.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink link,
AVFrame inpicref 
)
static

Definition at line 46 of file vf_swapuv.c.

◆ is_planar_yuv()

static int is_planar_yuv ( const AVPixFmtDescriptor desc)
static

Definition at line 52 of file vf_swapuv.c.

Referenced by query_formats().

◆ query_formats()

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

Definition at line 70 of file vf_swapuv.c.

Variable Documentation

◆ swapuv_inputs

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

Definition at line 86 of file vf_swapuv.c.

◆ ff_vf_swapuv

const AVFilter ff_vf_swapuv
Initial value:

Definition at line 95 of file vf_swapuv.c.

FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: filters.h:262
get_video_buffer
static AVFrame * get_video_buffer(AVFilterLink *link, int w, int h)
Definition: vf_swapuv.c:39
swapuv_inputs
static const AVFilterPad swapuv_inputs[]
Definition: vf_swapuv.c:86
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_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
query_formats
static int query_formats(const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
Definition: vf_swapuv.c:70
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
filter_frame
static int filter_frame(AVFilterLink *link, AVFrame *inpicref)
Definition: vf_swapuv.c:46
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201