FFmpeg
Data Structures | Functions | Variables
vf_hflip.c File Reference
#include <string.h>
#include "libavutil/opt.h"
#include "avfilter.h"
#include "formats.h"
#include "hflip.h"
#include "internal.h"
#include "vf_hflip_init.h"
#include "video.h"
#include "libavutil/pixdesc.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"

Go to the source code of this file.

Data Structures

struct  ThreadData
 Used for passing data between threads. More...
 

Functions

 AVFILTER_DEFINE_CLASS (hflip)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_props (AVFilterLink *inlink)
 
static int filter_slice (AVFilterContext *ctx, void *arg, int job, int nb_jobs)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 

Variables

static const AVOption hflip_options []
 
static const AVFilterPad avfilter_vf_hflip_inputs []
 
static const AVFilterPad avfilter_vf_hflip_outputs []
 
const AVFilter ff_vf_hflip
 

Detailed Description

horizontal flip filter

Definition in file vf_hflip.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( hflip  )

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 47 of file vf_hflip.c.

◆ config_props()

static int config_props ( AVFilterLink inlink)
static

Definition at line 65 of file vf_hflip.c.

◆ filter_slice()

static int filter_slice ( AVFilterContext ctx,
void *  arg,
int  job,
int  nb_jobs 
)
static

Definition at line 89 of file vf_hflip.c.

Referenced by filter_frame().

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 119 of file vf_hflip.c.

Variable Documentation

◆ hflip_options

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

Definition at line 41 of file vf_hflip.c.

◆ avfilter_vf_hflip_inputs

const AVFilterPad avfilter_vf_hflip_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.config_props = config_props,
},
}

Definition at line 145 of file vf_hflip.c.

◆ avfilter_vf_hflip_outputs

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

Definition at line 154 of file vf_hflip.c.

◆ ff_vf_hflip

const AVFilter ff_vf_hflip
Initial value:
= {
.name = "hflip",
.description = NULL_IF_CONFIG_SMALL("Horizontally flip the input video."),
.priv_size = sizeof(FlipContext),
.priv_class = &hflip_class,
}

Definition at line 161 of file vf_hflip.c.

FILTER_QUERY_FUNC
#define FILTER_QUERY_FUNC(func)
Definition: internal.h:167
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_hflip.c:119
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:190
NULL
#define NULL
Definition: coverity.c:32
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:115
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:152
avfilter_vf_hflip_inputs
static const AVFilterPad avfilter_vf_hflip_inputs[]
Definition: vf_hflip.c:145
config_props
static int config_props(AVFilterLink *inlink)
Definition: vf_hflip.c:65
FlipContext
Definition: hflip.h:27
AVFILTER_FLAG_SLICE_THREADS
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
Definition: avfilter.h:127
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:191
avfilter_vf_hflip_outputs
static const AVFilterPad avfilter_vf_hflip_outputs[]
Definition: vf_hflip.c:154
query_formats
static int query_formats(AVFilterContext *ctx)
Definition: vf_hflip.c:47