FFmpeg
Loading...
Searching...
No Matches
vf_neighbor_opencl.c File Reference
#include "config_components.h"
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/avstring.h"
#include "avfilter.h"
#include "filters.h"
#include "opencl.h"
#include "opencl_source.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  NeighborOpenCLContext
 

Macros

#define OFFSET(x)
 
#define FLAGS   (AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM)
 

Functions

static int neighbor_opencl_init (AVFilterContext *avctx)
 
static int neighbor_opencl_make_filter_params (AVFilterContext *avctx)
 
static int neighbor_opencl_filter_frame (AVFilterLink *inlink, AVFrame *input)
 
static av_cold void neighbor_opencl_uninit (AVFilterContext *avctx)
 

Variables

static const AVFilterPad neighbor_opencl_inputs []
 
static const AVFilterPad neighbor_opencl_outputs []
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET ( x)
Value:

Definition at line 262 of file vf_neighbor_opencl.c.

◆ FLAGS

Definition at line 263 of file vf_neighbor_opencl.c.

Function Documentation

◆ neighbor_opencl_init()

static int neighbor_opencl_init ( AVFilterContext * avctx)
static

Definition at line 51 of file vf_neighbor_opencl.c.

Referenced by neighbor_opencl_filter_frame().

◆ neighbor_opencl_make_filter_params()

static int neighbor_opencl_make_filter_params ( AVFilterContext * avctx)
static

Definition at line 91 of file vf_neighbor_opencl.c.

Referenced by neighbor_opencl_filter_frame().

◆ neighbor_opencl_filter_frame()

static int neighbor_opencl_filter_frame ( AVFilterLink * inlink,
AVFrame * input )
static

Definition at line 125 of file vf_neighbor_opencl.c.

◆ neighbor_opencl_uninit()

static av_cold void neighbor_opencl_uninit ( AVFilterContext * avctx)
static

Definition at line 221 of file vf_neighbor_opencl.c.

Variable Documentation

◆ neighbor_opencl_inputs

const AVFilterPad neighbor_opencl_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = &neighbor_opencl_filter_frame,
},
}
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
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:46
static int neighbor_opencl_filter_frame(AVFilterLink *inlink, AVFrame *input)

Definition at line 245 of file vf_neighbor_opencl.c.

◆ neighbor_opencl_outputs

const AVFilterPad neighbor_opencl_outputs[]
static
Initial value:
= {
{
.name = "default",
},
}
int ff_opencl_filter_config_output(AVFilterLink *outlink)
Create a suitable hardware frames context for the output.
Definition opencl.c:83

Definition at line 254 of file vf_neighbor_opencl.c.