FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
unsharp_opencl.c File Reference

unsharp input video More...

#include "unsharp_opencl.h"
#include "libavutil/common.h"
#include "libavutil/opencl_internal.h"

Go to the source code of this file.

Macros

#define PLANE_NUM   3
 

Functions

static void add_mask_counter (uint32_t *dst, uint32_t *counter1, uint32_t *counter2, int len)
 
static int compute_mask (int step, uint32_t *mask)
 
static int compute_mask_matrix (cl_mem cl_mask_matrix, int step_x, int step_y)
 
static int generate_mask (AVFilterContext *ctx)
 
int ff_opencl_apply_unsharp (AVFilterContext *ctx, AVFrame *in, AVFrame *out)
 
int ff_opencl_unsharp_init (AVFilterContext *ctx)
 
void ff_opencl_unsharp_uninit (AVFilterContext *ctx)
 
int ff_opencl_unsharp_process_inout_buf (AVFilterContext *ctx, AVFrame *in, AVFrame *out)
 

Detailed Description

unsharp input video

Definition in file unsharp_opencl.c.

Macro Definition Documentation

#define PLANE_NUM   3

Definition at line 30 of file unsharp_opencl.c.

Referenced by ff_opencl_unsharp_init().

Function Documentation

static void add_mask_counter ( uint32_t *  dst,
uint32_t *  counter1,
uint32_t *  counter2,
int  len 
)
inlinestatic

Definition at line 32 of file unsharp_opencl.c.

Referenced by compute_mask().

static int compute_mask ( int  step,
uint32_t *  mask 
)
static

Definition at line 40 of file unsharp_opencl.c.

Referenced by compute_mask_matrix().

static int compute_mask_matrix ( cl_mem  cl_mask_matrix,
int  step_x,
int  step_y 
)
static

Definition at line 88 of file unsharp_opencl.c.

Referenced by generate_mask().

static int generate_mask ( AVFilterContext ctx)
static

Definition at line 127 of file unsharp_opencl.c.

Referenced by ff_opencl_unsharp_init().

int ff_opencl_apply_unsharp ( AVFilterContext ctx,
AVFrame in,
AVFrame out 
)

Definition at line 150 of file unsharp_opencl.c.

Referenced by init().

int ff_opencl_unsharp_init ( AVFilterContext ctx)

Definition at line 202 of file unsharp_opencl.c.

Referenced by init().

void ff_opencl_unsharp_uninit ( AVFilterContext ctx)

Definition at line 233 of file unsharp_opencl.c.

Referenced by uninit().

int ff_opencl_unsharp_process_inout_buf ( AVFilterContext ctx,
AVFrame in,
AVFrame out 
)

Definition at line 244 of file unsharp_opencl.c.

Referenced by filter_frame().