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

Go to the source code of this file.

Data Structures

struct  FlipContext
 

Functions

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 AVFilterPad avfilter_vf_vflip_inputs []
 
const AVFilter ff_vf_vflip
 

Detailed Description

video vertical flip filter

Definition in file vf_vflip.c.

Function Documentation

◆ config_input()

static int config_input ( AVFilterLink link)
static

Definition at line 37 of file vf_vflip.c.

◆ get_video_buffer()

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

Definition at line 48 of file vf_vflip.c.

◆ flip_bayer()

static int flip_bayer ( AVFilterLink link,
AVFrame in 
)
static

Definition at line 71 of file vf_vflip.c.

Referenced by filter_frame().

◆ filter_frame()

static int filter_frame ( AVFilterLink link,
AVFrame frame 
)
static

Definition at line 100 of file vf_vflip.c.

Variable Documentation

◆ 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 120 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),
}

Definition at line 130 of file vf_vflip.c.

avfilter_vf_vflip_inputs
static const AVFilterPad avfilter_vf_vflip_inputs[]
Definition: vf_vflip.c:120
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: filters.h:262
config_input
static int config_input(AVFilterLink *link)
Definition: vf_vflip.c:37
filter_frame
static int filter_frame(AVFilterLink *link, AVFrame *frame)
Definition: vf_vflip.c:100
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
get_video_buffer
static AVFrame * get_video_buffer(AVFilterLink *link, int w, int h)
Definition: vf_vflip.c:48
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
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
FlipContext
Definition: hflip.h:27
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201