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 []
 
static const AVFilterPad avfilter_vf_vflip_outputs []
 
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_video_buffer = get_video_buffer,
.filter_frame = filter_frame,
.config_props = config_input,
},
{ NULL }
}

Definition at line 128 of file vf_vflip.c.

◆ avfilter_vf_vflip_outputs

const AVFilterPad avfilter_vf_vflip_outputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}

Definition at line 139 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 147 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
inputs
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
Definition: filter_design.txt:243
outputs
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
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:117
avfilter_vf_vflip_outputs
static const AVFilterPad avfilter_vf_vflip_outputs[]
Definition: vf_vflip.c:139
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:126
FlipContext
Definition: hflip.h:27
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561