Dewobble
Video motion stabilization with awareness of lens projection
Typedefs | Enumerations | Functions
filter_config.h File Reference
#include <CL/cl.h>
#include "camera.h"
#include "stabilizer.h"

Go to the source code of this file.

Typedefs

typedef enum DewobbleBorderType DewobbleBorderType
 
typedef struct _DewobbleFilterConfig * DewobbleFilterConfig
 
typedef enum DewobbleInterpolation DewobbleInterpolation
 

Enumerations

enum  DewobbleBorderType {
  DEWOBBLE_BORDER_CONSTANT , DEWOBBLE_BORDER_REPLICATE , DEWOBBLE_BORDER_REFLECT , DEWOBBLE_BORDER_WRAP ,
  DEWOBBLE_BORDER_REFLECT_101 , DEWOBBLE_NB_BORDER_TYPES
}
 
enum  DewobbleInterpolation {
  DEWOBBLE_INTERPOLATION_NEAREST , DEWOBBLE_INTERPOLATION_LINEAR , DEWOBBLE_INTERPOLATION_CUBIC , DEWOBBLE_INTERPOLATION_LANCZOS4 ,
  DEWOBBLE_NB_INTERPOLATIONS
}
 

Functions

DewobbleFilterConfig dewobble_filter_config_create (DewobbleCamera input_camera, DewobbleCamera output_camera, DewobbleStabilizer stabilizer)
 
void dewobble_filter_config_destroy (DewobbleFilterConfig *filter)
 
void dewobble_filter_config_set_border_color (DewobbleFilterConfig c_config, double *border_colors)
 
void dewobble_filter_config_set_border_type (DewobbleFilterConfig c_config, int border_type)
 
void dewobble_filter_config_set_debug (DewobbleFilterConfig c_config, int debug)
 
void dewobble_filter_config_set_interpolation (DewobbleFilterConfig c_config, int interpolation)
 
void dewobble_filter_config_set_opencl_context (DewobbleFilterConfig c_config, cl_context context)
 
void dewobble_filter_config_set_opencl_device (DewobbleFilterConfig c_config, cl_device_id device)
 

Typedef Documentation

◆ DewobbleInterpolation

Pixel interpolation algorithm.

◆ DewobbleBorderType

Border extrapolation algorithm

◆ DewobbleFilterConfig

typedef struct _DewobbleFilterConfig* DewobbleFilterConfig

Configuration for a dewobble::Filter

Enumeration Type Documentation

◆ DewobbleInterpolation

Pixel interpolation algorithm.

◆ DewobbleBorderType

Border extrapolation algorithm

Function Documentation

◆ dewobble_filter_config_create()

DewobbleFilterConfig dewobble_filter_config_create ( DewobbleCamera  input_camera,
DewobbleCamera  output_camera,
DewobbleStabilizer  stabilizer 
)

Create a Dewobble filter configuration. See dewobble::FilterConfig.

◆ dewobble_filter_config_destroy()

void dewobble_filter_config_destroy ( DewobbleFilterConfig filter)

Destroy a filter configuration

◆ dewobble_filter_config_set_interpolation()

void dewobble_filter_config_set_interpolation ( DewobbleFilterConfig  c_config,
int  interpolation 
)

Set pixel interpolation algorithm

◆ dewobble_filter_config_set_border_type()

void dewobble_filter_config_set_border_type ( DewobbleFilterConfig  c_config,
int  border_type 
)

Set border extrapolation algorithm

◆ dewobble_filter_config_set_border_color()

void dewobble_filter_config_set_border_color ( DewobbleFilterConfig  c_config,
double *  border_colors 
)

Set border colour (for fixed border)

◆ dewobble_filter_config_set_debug()

void dewobble_filter_config_set_debug ( DewobbleFilterConfig  c_config,
int  debug 
)

Set debug mode

◆ dewobble_filter_config_set_opencl_context()

void dewobble_filter_config_set_opencl_context ( DewobbleFilterConfig  c_config,
cl_context  context 
)

Set OpenCL context to be used

◆ dewobble_filter_config_set_opencl_device()

void dewobble_filter_config_set_opencl_device ( DewobbleFilterConfig  c_config,
cl_device_id  device 
)

Set OpenCL device to be used