FFmpeg
Data Structures | Macros | Functions | Variables
vf_avgblur_opencl.c File Reference
#include "config_components.h"
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "internal.h"
#include "opencl.h"
#include "opencl_source.h"
#include "video.h"
#include "boxblur.h"

Go to the source code of this file.

Data Structures

struct  AverageBlurOpenCLContext
 

Macros

#define OFFSET(x)   offsetof(AverageBlurOpenCLContext, x)
 
#define FLAGS   (AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM)
 

Functions

static int avgblur_opencl_init (AVFilterContext *avctx)
 
static int avgblur_opencl_make_filter_params (AVFilterLink *inlink)
 
static int boxblur_opencl_make_filter_params (AVFilterLink *inlink)
 
static int avgblur_opencl_filter_frame (AVFilterLink *inlink, AVFrame *input)
 
static av_cold void avgblur_opencl_uninit (AVFilterContext *avctx)
 

Variables

static const AVFilterPad avgblur_opencl_inputs []
 
static const AVFilterPad avgblur_opencl_outputs []
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(AverageBlurOpenCLContext, x)

Definition at line 328 of file vf_avgblur_opencl.c.

◆ FLAGS

Definition at line 329 of file vf_avgblur_opencl.c.

Function Documentation

◆ avgblur_opencl_init()

static int avgblur_opencl_init ( AVFilterContext avctx)
static

Definition at line 56 of file vf_avgblur_opencl.c.

Referenced by avgblur_opencl_filter_frame().

◆ avgblur_opencl_make_filter_params()

static int avgblur_opencl_make_filter_params ( AVFilterLink inlink)
static

Definition at line 94 of file vf_avgblur_opencl.c.

Referenced by avgblur_opencl_filter_frame().

◆ boxblur_opencl_make_filter_params()

static int boxblur_opencl_make_filter_params ( AVFilterLink inlink)
static

Definition at line 111 of file vf_avgblur_opencl.c.

Referenced by avgblur_opencl_filter_frame().

◆ avgblur_opencl_filter_frame()

static int avgblur_opencl_filter_frame ( AVFilterLink inlink,
AVFrame input 
)
static

Definition at line 147 of file vf_avgblur_opencl.c.

◆ avgblur_opencl_uninit()

static av_cold void avgblur_opencl_uninit ( AVFilterContext avctx)
static

Definition at line 279 of file vf_avgblur_opencl.c.

Variable Documentation

◆ avgblur_opencl_inputs

const AVFilterPad avgblur_opencl_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = &avgblur_opencl_filter_frame,
},
}

Definition at line 309 of file vf_avgblur_opencl.c.

◆ avgblur_opencl_outputs

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

Definition at line 319 of file vf_avgblur_opencl.c.

ff_opencl_filter_config_output
int ff_opencl_filter_config_output(AVFilterLink *outlink)
Create a suitable hardware frames context for the output.
Definition: opencl.c:81
ff_opencl_filter_config_input
int ff_opencl_filter_config_input(AVFilterLink *inlink)
Check that the input link contains a suitable hardware frames context and extract the device from it.
Definition: opencl.c:45
avgblur_opencl_filter_frame
static int avgblur_opencl_filter_frame(AVFilterLink *inlink, AVFrame *input)
Definition: vf_avgblur_opencl.c:147
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201