deshake_opencl.c File Reference

transform input video More...

#include "libavutil/common.h"
#include "libavutil/dict.h"
#include "libavutil/pixdesc.h"
#include "deshake_opencl.h"
Include dependency graph for deshake_opencl.c:

Go to the source code of this file.

Macros

#define MATRIX_SIZE   6
 
#define PLANE_NUM   3
 
#define TRANSFORM_OPENCL_CHECK(method, ...)
 
#define TRANSFORM_OPENCL_SET_KERNEL_ARG(arg_ptr)
 

Functions

int ff_opencl_transform (AVFilterContext *ctx, int width, int height, int cw, int ch, const float *matrix_y, const float *matrix_uv, enum InterpolateMethod interpolate, enum FillMethod fill, AVFrame *in, AVFrame *out)
 
int ff_opencl_deshake_init (AVFilterContext *ctx)
 
void ff_opencl_deshake_uninit (AVFilterContext *ctx)
 
int ff_opencl_deshake_process_inout_buf (AVFilterContext *ctx, AVFrame *in, AVFrame *out)
 

Detailed Description

transform input video

Definition in file deshake_opencl.c.

Macro Definition Documentation

#define MATRIX_SIZE   6

Definition at line 31 of file deshake_opencl.c.

Referenced by ff_opencl_deshake_init().

#define PLANE_NUM   3

Definition at line 32 of file deshake_opencl.c.

Referenced by ff_opencl_deshake_init().

#define TRANSFORM_OPENCL_CHECK (   method,
  ... 
)
Value:
status = method(__VA_ARGS__); \
if (status != CL_SUCCESS) { \
av_log(ctx, AV_LOG_ERROR, "error %s %d\n", # method, status); \
}
initialize output if(nPeaks >3)%at least 3 peaks in spectrum for trying to find f0 nf0peaks
void av_log(void *avcl, int level, const char *fmt,...)
Definition: log.c:246
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:148
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 the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame This method is called when a frame is wanted on an output For an it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return it should return
#define AVERROR_EXTERNAL
Generic error in an external library.
Definition: error.h:57

Definition at line 34 of file deshake_opencl.c.

Referenced by ff_opencl_transform().

#define TRANSFORM_OPENCL_SET_KERNEL_ARG (   arg_ptr)
Value:
status = clSetKernelArg((kernel),(arg_no++),(sizeof(arg_ptr)),(void*)(&(arg_ptr))); \
if (status != CL_SUCCESS) { \
av_log(ctx, AV_LOG_ERROR, "cannot set kernel argument: %d\n", status ); \
}
initialize output if(nPeaks >3)%at least 3 peaks in spectrum for trying to find f0 nf0peaks
void av_log(void *avcl, int level, const char *fmt,...)
Definition: log.c:246
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:148
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 the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame This method is called when a frame is wanted on an output For an it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return it should return
#define AVERROR_EXTERNAL
Generic error in an external library.
Definition: error.h:57

Definition at line 41 of file deshake_opencl.c.

Referenced by ff_opencl_transform().

Function Documentation

int ff_opencl_deshake_init ( AVFilterContext ctx)

Definition at line 97 of file deshake_opencl.c.

Referenced by init().

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

Definition at line 136 of file deshake_opencl.c.

Referenced by filter_frame().

void ff_opencl_deshake_uninit ( AVFilterContext ctx)

Definition at line 124 of file deshake_opencl.c.

Referenced by uninit().

int ff_opencl_transform ( AVFilterContext ctx,
int  width,
int  height,
int  cw,
int  ch,
const float *  matrix_y,
const float *  matrix_uv,
enum InterpolateMethod  interpolate,
enum FillMethod  fill,
AVFrame in,
AVFrame out 
)

Definition at line 48 of file deshake_opencl.c.

Referenced by init().