FFmpeg
Data Structures | Macros | Functions | Variables
vf_convolution_opencl.c File Reference
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/avstring.h"
#include "avfilter.h"
#include "internal.h"
#include "opencl.h"
#include "opencl_source.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  ConvolutionOpenCLContext
 

Macros

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

Functions

static int convolution_opencl_init (AVFilterContext *avctx)
 
static int convolution_opencl_make_filter_params (AVFilterContext *avctx)
 
static int convolution_opencl_filter_frame (AVFilterLink *inlink, AVFrame *input)
 
static av_cold void convolution_opencl_uninit (AVFilterContext *avctx)
 

Variables

static const AVFilterPad convolution_opencl_inputs []
 
static const AVFilterPad convolution_opencl_outputs []
 

Macro Definition Documentation

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

Definition at line 342 of file vf_convolution_opencl.c.

Definition at line 343 of file vf_convolution_opencl.c.

Function Documentation

static int convolution_opencl_init ( AVFilterContext avctx)
static

Definition at line 56 of file vf_convolution_opencl.c.

Referenced by convolution_opencl_filter_frame().

static int convolution_opencl_make_filter_params ( AVFilterContext avctx)
static

Definition at line 99 of file vf_convolution_opencl.c.

Referenced by convolution_opencl_filter_frame().

static int convolution_opencl_filter_frame ( AVFilterLink inlink,
AVFrame input 
)
static

Definition at line 172 of file vf_convolution_opencl.c.

static av_cold void convolution_opencl_uninit ( AVFilterContext avctx)
static

Definition at line 296 of file vf_convolution_opencl.c.

Variable Documentation

const AVFilterPad convolution_opencl_inputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
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:60
static int convolution_opencl_filter_frame(AVFilterLink *inlink, AVFrame *input)

Definition at line 323 of file vf_convolution_opencl.c.

const AVFilterPad convolution_opencl_outputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
int ff_opencl_filter_config_output(AVFilterLink *outlink)
Create a suitable hardware frames context for the output.
Definition: opencl.c:96

Definition at line 333 of file vf_convolution_opencl.c.