#include <inttypes.h>
Go to the source code of this file.
Defines | |
| #define | FREI0R_MAJOR_VERSION 1 |
| #define | FREI0R_MINOR_VERSION 0 |
| #define | F0R_COLOR_MODEL_BGRA8888 0 |
| #define | F0R_PARAM_BOOL 0 |
| #define | F0R_PARAM_DOUBLE 1 |
| #define | F0R_PARAM_COLOR 2 |
| #define | F0R_PARAM_POSITION 3 |
Typedefs | |
| typedef f0r_plugin_info | f0r_plugin_info_t |
| typedef double | f0r_param_bool |
| typedef double | f0r_param_double |
| typedef f0r_param_color | f0r_param_color_t |
| typedef f0r_param_position | f0r_param_position_t |
| typedef f0r_param_info | f0r_param_info_t |
| typedef void * | f0r_instance_t |
| typedef void * | f0r_param_t |
Functions | |
| int | f0r_init () |
| void | f0r_deinit () |
| void | f0r_get_plugin_info (f0r_plugin_info_t *info) |
| void | f0r_get_param_info (f0r_param_info_t *info, int param_index) |
| f0r_instance_t | f0r_construct (unsigned int width, unsigned int height) |
| void | f0r_destruct (f0r_instance_t instance) |
| void | f0r_set_param_value (f0r_instance_t instance, f0r_param_t param, int param_index) |
| void | f0r_get_param_value (f0r_instance_t instance, f0r_param_t param, int param_index) |
| void | f0r_update (f0r_instance_t instance, double time, const uint32_t *inframe, uint32_t *outframe) |
A conforming plugin must implement and export all functions declared in this header.
|
|
List of supported color models - so far only BGRA8888. |
|
|
Parameter type for boolean values |
|
|
Parameter type for color |
|
|
Parameter type for doubles |
|
|
Parameter type for position |
|
|
These defines determine whether the plugin is a filter or a source (sometimes also called generator) |
|
|
These defines determine whether the plugin is a filter or a source (sometimes also called generator) |
|
|
The frei0r API major version |
|
|
The frei0r API minor version |
|
|
The boolean type. The allowed range of values is [0, 1]. [0, 0.5[ is mapped to false and [0.5, 1] is mapped to true. |
|
|
The color type. All three color components are in the range [0, 1]. |
|
|
The double type. The allowed range of values is [0, 1]. |
|
|
Similar to f0r_plugin_info_t, this structure is filled by the plugin for every parameter. |
|
|
The position type. Both position coordinates are in the range [0, 1]. |
|
|
The f0r_plugin_info_t structure is filled in by the plugin to tell the application about its name, type, number of parameters, and version. |
|
||||||||||||
|
Constructor for effect instances. The plugin returns a pointer to its internal instance structure. The resolution has to be a multiple of 8 in both dimension.
|
|
|
f0r_deinit is called once when the plugin is unloaded by the application. |
|
|
Destroys an effect instance.
|
|
||||||||||||
|
f0r_get_param_info is called by the application to query the type of each parameter.
|
|
||||||||||||||||
|
This function allows the application to query the parameter values of an effect instance.
|
|
|
Is called once after init. The plugin has to fill in the values in info.
|
|
|
f0r_init() is called once when the plugin is loaded by the application. |
|
||||||||||||||||
|
This function allows the application to set the parameter values of an effect instance. Validity of the parameter pointer is handled by the application thus the data must be copied.
|
|
||||||||||||||||||||
|
This is where the core effect processing happens. The application calls it after it has set the necessary parameter values. inframe and outframe data has to be aligned to a multiple of eight.
|
1.4.1