FFmpeg
Data Structures | Functions | Variables
vf_vflip.c File Reference
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  FlipContext
 

Functions

 AVFILTER_DEFINE_CLASS (vflip)
 
static int config_input (AVFilterLink *link)
 
static AVFrameget_video_buffer (AVFilterLink *link, int w, int h)
 
static int flip_bayer (AVFilterLink *link, AVFrame *in)
 
static int filter_frame (AVFilterLink *link, AVFrame *frame)
 

Variables

static const AVOption vflip_options []
 
static const AVFilterPad avfilter_vf_vflip_inputs []
 
const AVFilter ff_vf_vflip
 

Detailed Description

video vertical flip filter

Definition in file vf_vflip.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( vflip  )

◆ config_input()

static int config_input ( AVFilterLink link)
static

Definition at line 45 of file vf_vflip.c.

◆ get_video_buffer()

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

Definition at line 56 of file vf_vflip.c.

◆ flip_bayer()

static int flip_bayer ( AVFilterLink link,
AVFrame in 
)
static

Definition at line 79 of file vf_vflip.c.

Referenced by filter_frame().

◆ filter_frame()

static int filter_frame ( AVFilterLink link,
AVFrame frame 
)
static

Definition at line 108 of file vf_vflip.c.

Variable Documentation

◆ vflip_options

const AVOption vflip_options[]
static
Initial value:
= {
{ NULL }
}

Definition at line 39 of file vf_vflip.c.

◆ avfilter_vf_vflip_inputs

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

Definition at line 128 of file vf_vflip.c.

◆ ff_vf_vflip

const AVFilter ff_vf_vflip
Initial value:
= {
.name = "vflip",
.description = NULL_IF_CONFIG_SMALL("Flip the input video vertically."),
.priv_size = sizeof(FlipContext),
.priv_class = &vflip_class,
}

Definition at line 138 of file vf_vflip.c.

avfilter_vf_vflip_inputs
static const AVFilterPad avfilter_vf_vflip_inputs[]
Definition: vf_vflip.c:128
config_input
static int config_input(AVFilterLink *link)
Definition: vf_vflip.c:45
filter_frame
static int filter_frame(AVFilterLink *link, AVFrame *frame)
Definition: vf_vflip.c:108
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_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:182
NULL
#define NULL
Definition: coverity.c:32
get_video_buffer
static AVFrame * get_video_buffer(AVFilterLink *link, int w, int h)
Definition: vf_vflip.c:56
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:106
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:147
FlipContext
Definition: hflip.h:27
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:183