libweed  2.0.0
Macros | Functions
weed-plugin-utils.h File Reference
#include <weed/weed.h>
#include <weed/weed-palettes.h>
#include <weed/weed-effects.h>

Go to the source code of this file.

Macros

#define __WEED_PLUGIN_UTILS_H__
 
#define EXPORTED
 
#define NOT_EXPORTED
 
#define ALLOW_UNUSED
 
#define FN_DECL   static
 
#define ABS(a)   (((a) < 0) ? -(a) : (a))
 
#define WEED_SETUP_START(weed_api_version, filter_api_version)
 
#define WEED_SETUP_START_MINMAX(weed_api_min_version, weed_api_max_version, filter_api_min_version, filter_api_max_version)
 
#define WEED_SETUP_END   } return plugin_info;}
 
#define WEED_DESETUP_START   EXPORTED void weed_desetup(void) {
 
#define WEED_DESETUP_END   }
 

Functions

FN_DECL weed_plant_tweed_plugin_info_init (weed_bootstrap_f weed_boot, int32_t weed_abi_min_version, int32_t weed_abi_max_version, int32_t filter_api_min_version, int32_t weed_filter_api_max_version) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_channel_template_init (const char *name, int flags) ALLOW_UNUSED
 
FN_DECL weed_plant_t ** weed_clone_plants (weed_plant_t **plants) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_filter_class_init (const char *name, const char *author, int version, int flags, int *palette_list, weed_init_f init_func, weed_process_f process_func, weed_deinit_f deinit_func, weed_plant_t **in_chantmpls, weed_plant_t **out_chantmpls, weed_plant_t **in_paramtmpls, weed_plant_t **out_paramtmpls) ALLOW_UNUSED
 
FN_DECL void weed_plugin_info_add_filter_class (weed_plant_t *plugin_info, weed_plant_t *filter_class) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_text_init (const char *name, const char *label, const char *def) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_float_init (const char *name, const char *label, double def, double min, double max) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_switch_init (const char *name, const char *label, int def) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_integer_init (const char *name, const char *label, int def, int min, int max) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_colRGBd_init (const char *name, const char *label, double red, double green, double blue) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_colRGBi_init (const char *name, const char *label, int red, int green, int blue) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_radio_init (const char *name, const char *label, int def, int group) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_string_list_init (const char *name, const char *label, int def, const char **const list) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_out_param_colRGBd_init (const char *name, double red, double green, double blue) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_out_param_colRGBi_init (const char *name, int red, int green, int blue) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_out_param_text_init (const char *name, const char *def) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_out_param_float_init_nominmax (const char *name, double def) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_out_param_float_init (const char *name, double def, double min, double max) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_out_param_switch_init (const char *name, int def) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_out_param_integer_init_nominmax (const char *name, int def) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_out_param_integer_init (const char *name, int def, int min, int max) ALLOW_UNUSED
 
FN_DECL void weed_plugin_set_package_version (weed_plant_t *pi, int v)
 
FN_DECL void weed_filter_set_flags (weed_plant_t *filter, int flags)
 
FN_DECL void weed_chantmpl_set_flags (weed_plant_t *chantmpl, int flags)
 
FN_DECL void weed_paramtmpl_set_flags (weed_plant_t *paramtmpl, int flags)
 
FN_DECL void weed_gui_set_flags (weed_plant_t *gui, int flags)
 
FN_DECL void weed_filter_set_name (weed_plant_t *filter, const char *name)
 
FN_DECL void weed_chantmpl_set_name (weed_plant_t *chantmpl, const char *name)
 
FN_DECL void weed_paramtmpl_set_name (weed_plant_t *paramtmpl, const char *name)
 
FN_DECL void weed_paramtmpl_declare_transition (weed_plant_t *pt)
 
FN_DECL weed_plant_tweed_get_host_info (weed_plant_t *plugin_info)
 
FN_DECL int weed_get_api_version (weed_plant_t *plugin_info) ALLOW_UNUSED
 
FN_DECL int weed_get_host_verbosity (weed_plant_t *host_info)
 
FN_DECL int weed_host_get_flags (weed_plant_t *host_info)
 
FN_DECL int weed_host_supports_linear_gamma (weed_plant_t *host_info)
 
FN_DECL int weed_host_supports_premultiplied_alpha (weed_plant_t *host_info)
 
FN_DECL int weed_filter_get_flags (weed_plant_t *filter)
 
FN_DECL int weed_filter_get_version (weed_plant_t *filter)
 
FN_DECL weed_plant_tweed_filter_get_gui (weed_plant_t *filter) ALLOW_UNUSED
 
FN_DECL weed_plant_tweed_paramtmpl_get_gui (weed_plant_t *paramt) ALLOW_UNUSED
 
FN_DECL int weed_paramtmpl_get_flags (weed_plant_t *paramtmpl)
 
FN_DECL int weed_chantmpl_get_flags (weed_plant_t *chantmpl)
 
FN_DECL weed_plant_tweed_get_in_channel (weed_plant_t *inst, int idx)
 
FN_DECL weed_plant_tweed_get_out_channel (weed_plant_t *inst, int idx)
 
FN_DECL weed_plant_tweed_get_in_param (weed_plant_t *inst, int idx)
 
FN_DECL weed_plant_tweed_get_out_param (weed_plant_t *inst, int idx)
 
FN_DECL int weed_instance_get_flags (weed_plant_t *inst)
 
FN_DECL weed_plant_tweed_instance_get_filter (weed_plant_t *inst)
 
FN_DECL weed_plant_tweed_instance_get_gui (weed_plant_t *inst)
 
FN_DECL void * weed_channel_get_pixel_data (weed_plant_t *channel)
 
FN_DECL int weed_channel_get_width (weed_plant_t *channel)
 
FN_DECL int weed_channel_get_height (weed_plant_t *channel)
 
FN_DECL int weed_channel_get_palette (weed_plant_t *channel)
 
FN_DECL int weed_channel_get_yuv_clamping (weed_plant_t *channel)
 
FN_DECL int weed_channel_get_stride (weed_plant_t *channel)
 
FN_DECL int weed_channel_is_disabled (weed_plant_t *channel)
 
FN_DECL weed_plant_tweed_param_get_template (weed_plant_t *param)
 
FN_DECL weed_plant_tweed_param_get_gui (weed_plant_t *param) ALLOW_UNUSED
 
FN_DECL int weed_param_get_value_int (weed_plant_t *param)
 
FN_DECL int weed_param_get_value_boolean (weed_plant_t *param)
 
FN_DECL double weed_param_get_value_double (weed_plant_t *param)
 
FN_DECL int64_t weed_param_get_value_int64 (weed_plant_t *param)
 
FN_DECL char * weed_param_get_value_string (weed_plant_t *param)
 
FN_DECL int weed_is_threading (weed_plant_t *inst)
 
FN_DECL int weed_channel_get_offset (weed_plant_t *channel)
 
FN_DECL int weed_channel_get_real_height (weed_plant_t *channel)
 
FN_DECL int is_big_endian (void)
 

Macro Definition Documentation

◆ __WEED_PLUGIN_UTILS_H__

#define __WEED_PLUGIN_UTILS_H__

◆ ABS

#define ABS (   a)    (((a) < 0) ? -(a) : (a))

◆ ALLOW_UNUSED

#define ALLOW_UNUSED

◆ EXPORTED

#define EXPORTED

◆ FN_DECL

#define FN_DECL   static

◆ NOT_EXPORTED

#define NOT_EXPORTED

◆ WEED_DESETUP_END

#define WEED_DESETUP_END   }

◆ WEED_DESETUP_START

#define WEED_DESETUP_START   EXPORTED void weed_desetup(void) {

◆ WEED_SETUP_END

#define WEED_SETUP_END   } return plugin_info;}

◆ WEED_SETUP_START

#define WEED_SETUP_START (   weed_api_version,
  filter_api_version 
)
Value:
EXPORTED weed_plant_t *weed_setup(weed_bootstrap_f weed_boot) { \
weed_plant_t *plugin_info = weed_plugin_info_init(weed_boot, weed_api_version, weed_api_version, filter_api_version, filter_api_version); \
if (plugin_info == NULL) {return NULL;} {

◆ WEED_SETUP_START_MINMAX

#define WEED_SETUP_START_MINMAX (   weed_api_min_version,
  weed_api_max_version,
  filter_api_min_version,
  filter_api_max_version 
)
Value:
EXPORTED weed_plant_t *weed_setup(weed_bootstrap_f weed_boot) { \
weed_plant_t *plugin_info = weed_plugin_info_init(weed_boot, weed_api_min_version, weed_api_max_version, filter_api_min_version, filter_api_max_version); \
if (plugin_info == NULL) {return NULL;} {

Function Documentation

◆ is_big_endian()

FN_DECL int is_big_endian ( void  )

◆ weed_channel_get_height()

FN_DECL int weed_channel_get_height ( weed_plant_t channel)

◆ weed_channel_get_offset()

FN_DECL int weed_channel_get_offset ( weed_plant_t channel)

◆ weed_channel_get_palette()

FN_DECL int weed_channel_get_palette ( weed_plant_t channel)

◆ weed_channel_get_pixel_data()

FN_DECL void* weed_channel_get_pixel_data ( weed_plant_t channel)

◆ weed_channel_get_real_height()

FN_DECL int weed_channel_get_real_height ( weed_plant_t channel)

◆ weed_channel_get_stride()

FN_DECL int weed_channel_get_stride ( weed_plant_t channel)

◆ weed_channel_get_width()

FN_DECL int weed_channel_get_width ( weed_plant_t channel)

◆ weed_channel_get_yuv_clamping()

FN_DECL int weed_channel_get_yuv_clamping ( weed_plant_t channel)

◆ weed_channel_is_disabled()

FN_DECL int weed_channel_is_disabled ( weed_plant_t channel)

◆ weed_channel_template_init()

FN_DECL weed_plant_t* weed_channel_template_init ( const char *  name,
int  flags 
)

◆ weed_chantmpl_get_flags()

FN_DECL int weed_chantmpl_get_flags ( weed_plant_t chantmpl)

◆ weed_chantmpl_set_flags()

FN_DECL void weed_chantmpl_set_flags ( weed_plant_t chantmpl,
int  flags 
)

◆ weed_chantmpl_set_name()

FN_DECL void weed_chantmpl_set_name ( weed_plant_t chantmpl,
const char *  name 
)

◆ weed_clone_plants()

FN_DECL weed_plant_t** weed_clone_plants ( weed_plant_t **  plants)

◆ weed_colRGBd_init()

FN_DECL weed_plant_t* weed_colRGBd_init ( const char *  name,
const char *  label,
double  red,
double  green,
double  blue 
)

◆ weed_colRGBi_init()

FN_DECL weed_plant_t* weed_colRGBi_init ( const char *  name,
const char *  label,
int  red,
int  green,
int  blue 
)

◆ weed_filter_class_init()

FN_DECL weed_plant_t* weed_filter_class_init ( const char *  name,
const char *  author,
int  version,
int  flags,
int *  palette_list,
weed_init_f  init_func,
weed_process_f  process_func,
weed_deinit_f  deinit_func,
weed_plant_t **  in_chantmpls,
weed_plant_t **  out_chantmpls,
weed_plant_t **  in_paramtmpls,
weed_plant_t **  out_paramtmpls 
)

◆ weed_filter_get_flags()

FN_DECL int weed_filter_get_flags ( weed_plant_t filter)

◆ weed_filter_get_gui()

FN_DECL weed_plant_t* weed_filter_get_gui ( weed_plant_t filter)

◆ weed_filter_get_version()

FN_DECL int weed_filter_get_version ( weed_plant_t filter)

◆ weed_filter_set_flags()

FN_DECL void weed_filter_set_flags ( weed_plant_t filter,
int  flags 
)

◆ weed_filter_set_name()

FN_DECL void weed_filter_set_name ( weed_plant_t filter,
const char *  name 
)

◆ weed_float_init()

FN_DECL weed_plant_t* weed_float_init ( const char *  name,
const char *  label,
double  def,
double  min,
double  max 
)

◆ weed_get_api_version()

FN_DECL int weed_get_api_version ( weed_plant_t plugin_info)

◆ weed_get_host_info()

FN_DECL weed_plant_t* weed_get_host_info ( weed_plant_t plugin_info)

◆ weed_get_host_verbosity()

FN_DECL int weed_get_host_verbosity ( weed_plant_t host_info)

◆ weed_get_in_channel()

FN_DECL weed_plant_t* weed_get_in_channel ( weed_plant_t inst,
int  idx 
)

◆ weed_get_in_param()

FN_DECL weed_plant_t* weed_get_in_param ( weed_plant_t inst,
int  idx 
)

◆ weed_get_out_channel()

FN_DECL weed_plant_t* weed_get_out_channel ( weed_plant_t inst,
int  idx 
)

◆ weed_get_out_param()

FN_DECL weed_plant_t* weed_get_out_param ( weed_plant_t inst,
int  idx 
)

◆ weed_gui_set_flags()

FN_DECL void weed_gui_set_flags ( weed_plant_t gui,
int  flags 
)

◆ weed_host_get_flags()

FN_DECL int weed_host_get_flags ( weed_plant_t host_info)

◆ weed_host_supports_linear_gamma()

FN_DECL int weed_host_supports_linear_gamma ( weed_plant_t host_info)

◆ weed_host_supports_premultiplied_alpha()

FN_DECL int weed_host_supports_premultiplied_alpha ( weed_plant_t host_info)

◆ weed_instance_get_filter()

FN_DECL weed_plant_t* weed_instance_get_filter ( weed_plant_t inst)

◆ weed_instance_get_flags()

FN_DECL int weed_instance_get_flags ( weed_plant_t inst)

◆ weed_instance_get_gui()

FN_DECL weed_plant_t* weed_instance_get_gui ( weed_plant_t inst)

◆ weed_integer_init()

FN_DECL weed_plant_t* weed_integer_init ( const char *  name,
const char *  label,
int  def,
int  min,
int  max 
)

◆ weed_is_threading()

FN_DECL int weed_is_threading ( weed_plant_t inst)

◆ weed_out_param_colRGBd_init()

FN_DECL weed_plant_t* weed_out_param_colRGBd_init ( const char *  name,
double  red,
double  green,
double  blue 
)

◆ weed_out_param_colRGBi_init()

FN_DECL weed_plant_t* weed_out_param_colRGBi_init ( const char *  name,
int  red,
int  green,
int  blue 
)

◆ weed_out_param_float_init()

FN_DECL weed_plant_t* weed_out_param_float_init ( const char *  name,
double  def,
double  min,
double  max 
)

◆ weed_out_param_float_init_nominmax()

FN_DECL weed_plant_t* weed_out_param_float_init_nominmax ( const char *  name,
double  def 
)

◆ weed_out_param_integer_init()

FN_DECL weed_plant_t* weed_out_param_integer_init ( const char *  name,
int  def,
int  min,
int  max 
)

◆ weed_out_param_integer_init_nominmax()

FN_DECL weed_plant_t* weed_out_param_integer_init_nominmax ( const char *  name,
int  def 
)

◆ weed_out_param_switch_init()

FN_DECL weed_plant_t* weed_out_param_switch_init ( const char *  name,
int  def 
)

◆ weed_out_param_text_init()

FN_DECL weed_plant_t* weed_out_param_text_init ( const char *  name,
const char *  def 
)

◆ weed_param_get_gui()

FN_DECL weed_plant_t* weed_param_get_gui ( weed_plant_t param)

◆ weed_param_get_template()

FN_DECL weed_plant_t* weed_param_get_template ( weed_plant_t param)

◆ weed_param_get_value_boolean()

FN_DECL int weed_param_get_value_boolean ( weed_plant_t param)

◆ weed_param_get_value_double()

FN_DECL double weed_param_get_value_double ( weed_plant_t param)

◆ weed_param_get_value_int()

FN_DECL int weed_param_get_value_int ( weed_plant_t param)

◆ weed_param_get_value_int64()

FN_DECL int64_t weed_param_get_value_int64 ( weed_plant_t param)

◆ weed_param_get_value_string()

FN_DECL char* weed_param_get_value_string ( weed_plant_t param)

◆ weed_paramtmpl_declare_transition()

FN_DECL void weed_paramtmpl_declare_transition ( weed_plant_t pt)

◆ weed_paramtmpl_get_flags()

FN_DECL int weed_paramtmpl_get_flags ( weed_plant_t paramtmpl)

◆ weed_paramtmpl_get_gui()

FN_DECL weed_plant_t* weed_paramtmpl_get_gui ( weed_plant_t paramt)

◆ weed_paramtmpl_set_flags()

FN_DECL void weed_paramtmpl_set_flags ( weed_plant_t paramtmpl,
int  flags 
)

◆ weed_paramtmpl_set_name()

FN_DECL void weed_paramtmpl_set_name ( weed_plant_t paramtmpl,
const char *  name 
)

◆ weed_plugin_info_add_filter_class()

FN_DECL void weed_plugin_info_add_filter_class ( weed_plant_t plugin_info,
weed_plant_t filter_class 
)

◆ weed_plugin_info_init()

FN_DECL weed_plant_t* weed_plugin_info_init ( weed_bootstrap_f  weed_boot,
int32_t  weed_abi_min_version,
int32_t  weed_abi_max_version,
int32_t  filter_api_min_version,
int32_t  weed_filter_api_max_version 
)

◆ weed_plugin_set_package_version()

FN_DECL void weed_plugin_set_package_version ( weed_plant_t pi,
int  v 
)

◆ weed_radio_init()

FN_DECL weed_plant_t* weed_radio_init ( const char *  name,
const char *  label,
int  def,
int  group 
)

◆ weed_string_list_init()

FN_DECL weed_plant_t* weed_string_list_init ( const char *  name,
const char *  label,
int  def,
const char **const  list 
)

◆ weed_switch_init()

FN_DECL weed_plant_t* weed_switch_init ( const char *  name,
const char *  label,
int  def 
)

◆ weed_text_init()

FN_DECL weed_plant_t* weed_text_init ( const char *  name,
const char *  label,
const char *  def 
)
weed_bootstrap_f
weed_plant_t *(* weed_bootstrap_f)(weed_default_getter_f *, int32_t plugin_weed_min_api_version, int32_t plugin_weed_max_api_version, int32_t plugin_filter_min_api_version, int32_t plugin_filter_max_api_version)
Definition: weed-effects.h:152
weed_plugin_info_init
FN_DECL weed_plant_t * weed_plugin_info_init(weed_bootstrap_f weed_boot, int32_t weed_abi_min_version, int32_t weed_abi_max_version, int32_t filter_api_min_version, int32_t weed_filter_api_max_version) ALLOW_UNUSED
weed_plant_t
weed_leaf_t weed_plant_t
Definition: weed.h:125
EXPORTED
#define EXPORTED
Definition: weed-plugin-utils.h:81