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 "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 void hflip_byte_c (const uint8_t *src, uint8_t *dst, int w)
 
static void hflip_short_c (const uint8_t *ssrc, uint8_t *ddst, int w)
 
static void hflip_dword_c (const uint8_t *ssrc, uint8_t *ddst, int w)
 
static void hflip_b24_c (const uint8_t *src, uint8_t *dst, int w)
 
static void hflip_b48_c (const uint8_t *src, uint8_t *dst, int w)
 
static void hflip_qword_c (const uint8_t *ssrc, uint8_t *ddst, int w)
 
static int config_props (AVFilterLink *inlink)
 
int ff_hflip_init (FlipContext *s, int step[4], int nb_planes)
 
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 46 of file vf_hflip.c.

◆ hflip_byte_c()

static void hflip_byte_c ( const uint8_t *  src,
uint8_t *  dst,
int  w 
)
static

Definition at line 64 of file vf_hflip.c.

Referenced by ff_hflip_init().

◆ hflip_short_c()

static void hflip_short_c ( const uint8_t *  ssrc,
uint8_t *  ddst,
int  w 
)
static

Definition at line 72 of file vf_hflip.c.

Referenced by ff_hflip_init().

◆ hflip_dword_c()

static void hflip_dword_c ( const uint8_t *  ssrc,
uint8_t *  ddst,
int  w 
)
static

Definition at line 82 of file vf_hflip.c.

Referenced by ff_hflip_init().

◆ hflip_b24_c()

static void hflip_b24_c ( const uint8_t *  src,
uint8_t *  dst,
int  w 
)
static

Definition at line 92 of file vf_hflip.c.

Referenced by ff_hflip_init().

◆ hflip_b48_c()

static void hflip_b48_c ( const uint8_t *  src,
uint8_t *  dst,
int  w 
)
static

Definition at line 105 of file vf_hflip.c.

Referenced by ff_hflip_init().

◆ hflip_qword_c()

static void hflip_qword_c ( const uint8_t *  ssrc,
uint8_t *  ddst,
int  w 
)
static

Definition at line 118 of file vf_hflip.c.

Referenced by ff_hflip_init().

◆ config_props()

static int config_props ( AVFilterLink inlink)
static

Definition at line 128 of file vf_hflip.c.

◆ ff_hflip_init()

int ff_hflip_init ( FlipContext s,
int  step[4],
int  nb_planes 
)

Definition at line 148 of file vf_hflip.c.

Referenced by check_hflip(), and config_props().

◆ filter_slice()

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

Definition at line 175 of file vf_hflip.c.

Referenced by filter_frame().

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 205 of file vf_hflip.c.

Variable Documentation

◆ hflip_options

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

Definition at line 40 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,
},
{ NULL }
}

Definition at line 230 of file vf_hflip.c.

◆ avfilter_vf_hflip_outputs

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

Definition at line 240 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 248 of file vf_hflip.c.

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
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_hflip.c:205
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:117
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
avfilter_vf_hflip_inputs
static const AVFilterPad avfilter_vf_hflip_inputs[]
Definition: vf_hflip.c:230
config_props
static int config_props(AVFilterLink *inlink)
Definition: vf_hflip.c:128
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:117
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
avfilter_vf_hflip_outputs
static const AVFilterPad avfilter_vf_hflip_outputs[]
Definition: vf_hflip.c:240
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
query_formats
static int query_formats(AVFilterContext *ctx)
Definition: vf_hflip.c:46