FFmpeg
Loading...
Searching...
No Matches
vf_vflip.c File Reference

video vertical flip filter More...

#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 FFFilter 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,
},
}
static int config_input(AVFilterLink *inlink)
static AVFrame * get_video_buffer(AVFilterLink *inlink, int w, int h)
Definition avf_concat.c:205
static int filter_frame(DBEDecodeContext *s, AVFrame *frame)
Definition dolby_e.c:1067
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200

Definition at line 120 of file vf_vflip.c.

◆ ff_vf_vflip

const FFFilter ff_vf_vflip
Initial value:
= {
.p.name = "vflip",
.p.description = NULL_IF_CONFIG_SMALL("Flip the input video vertically."),
.priv_size = sizeof(FlipContext),
}
#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:196
#define FILTER_INPUTS(array)
Definition filters.h:264
#define FILTER_OUTPUTS(array)
Definition filters.h:265
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static const AVFilterPad avfilter_vf_vflip_inputs[]
Definition vf_vflip.c:120
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

Definition at line 130 of file vf_vflip.c.