Dewobble
Video motion stabilization with awareness of lens projection
filter_config.h
Go to the documentation of this file.
1 #ifndef DEWOBBLE_FILTER_CONFIG_H
2 #define DEWOBBLE_FILTER_CONFIG_H
3 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 #include <CL/cl.h>
12 
13 #include "camera.h"
14 #include "stabilizer.h"
15 
19 typedef enum DewobbleInterpolation {
20  DEWOBBLE_INTERPOLATION_NEAREST,
21  DEWOBBLE_INTERPOLATION_LINEAR,
22  DEWOBBLE_INTERPOLATION_CUBIC,
23  DEWOBBLE_INTERPOLATION_LANCZOS4,
24  DEWOBBLE_NB_INTERPOLATIONS,
26 
30 typedef enum DewobbleBorderType {
31  DEWOBBLE_BORDER_CONSTANT,
32  DEWOBBLE_BORDER_REPLICATE,
33  DEWOBBLE_BORDER_REFLECT,
34  DEWOBBLE_BORDER_WRAP,
35  DEWOBBLE_BORDER_REFLECT_101,
36  DEWOBBLE_NB_BORDER_TYPES,
38 
42 typedef struct _DewobbleFilterConfig *DewobbleFilterConfig;
43 
48  DewobbleCamera input_camera,
49  DewobbleCamera output_camera,
50  DewobbleStabilizer stabilizer);
51 
56 
61  DewobbleFilterConfig c_config,
62  int interpolation);
63 
68  DewobbleFilterConfig c_config,
69  int border_type);
70 
75  DewobbleFilterConfig c_config,
76  double *border_colors);
77 
82 
87  DewobbleFilterConfig c_config,
88  cl_context context);
89 
94  DewobbleFilterConfig c_config,
95  cl_device_id device);
96 
97 #ifdef __cplusplus
98 }
99 #endif
100 
101 #endif // DEWOBBLE_FILTER_CONFIG_H
struct _DewobbleCamera * DewobbleCamera
Definition: camera.h:16
void dewobble_filter_config_set_interpolation(DewobbleFilterConfig c_config, int interpolation)
DewobbleInterpolation
Definition: filter_config.h:19
DewobbleBorderType
Definition: filter_config.h:30
void dewobble_filter_config_set_opencl_context(DewobbleFilterConfig c_config, cl_context context)
struct _DewobbleFilterConfig * DewobbleFilterConfig
Definition: filter_config.h:42
void dewobble_filter_config_set_border_color(DewobbleFilterConfig c_config, double *border_colors)
void dewobble_filter_config_set_debug(DewobbleFilterConfig c_config, int debug)
DewobbleFilterConfig dewobble_filter_config_create(DewobbleCamera input_camera, DewobbleCamera output_camera, DewobbleStabilizer stabilizer)
void dewobble_filter_config_set_border_type(DewobbleFilterConfig c_config, int border_type)
void dewobble_filter_config_set_opencl_device(DewobbleFilterConfig c_config, cl_device_id device)
void dewobble_filter_config_destroy(DewobbleFilterConfig *filter)
struct _DewobbleStabilizer * DewobbleStabilizer
Definition: stabilizer.h:18