LiVES  3.2.0
Macros | Functions
weed-effects-utils.h File Reference

Go to the source code of this file.

Macros

#define _WEEED_FILTER_UTILS_H_
 
#define WARN_UNUSED
 
#define WEED_PLANT_IS_PLUGIN_INFO(plant)
 
#define WEED_PLANT_IS_HOST_INFO(plant)   (weed_plant_get_type(plant) == WEED_PLANT_HOST_INFO ? WEED_TRUE : WEED_FALSE)
 
#define WEED_PLANT_IS_FILTER_CLASS(plant)
 
#define WEED_PLANT_IS_FILTER_INSTANCE(plant)
 
#define WEED_PLANT_IS_CHANNEL(plant)   (weed_plant_get_type(plant) == WEED_PLANT_CHANNEL ? WEED_TRUE : WEED_FALSE)
 
#define WEED_PLANT_IS_CHANNEL_TEMPLATE(plant)
 
#define WEED_PLANT_IS_PARAMETER(plant)   (weed_plant_get_type(plant) == WEED_PLANT_PARAMETER ? WEED_TRUE : WEED_FALSE)
 
#define WEED_PLANT_IS_PARAMETER_TEMPLATE(plant)
 
#define WEED_PLANT_IS_GUI(plant)   (weed_plant_get_type(plant) == WEED_PLANT_GUI ? WEED_TRUE : WEED_FALSE)
 
#define weed_palette_is_alpha(pal)   ((((pal >= 1024) && (pal < 2048))) ? WEED_TRUE : WEED_FALSE)
 
#define weed_palette_is_rgb(pal)   (pal >0 && pal < 512 ? WEED_TRUE : WEED_FALSE)
 
#define weed_palette_is_yuv(pal)   (pal >= 512 && pal < 1024 ? WEED_TRUE : WEED_FALSE)
 
#define weed_palette_is_float(pal)
 
#define pixel_size(pal)
 This is actually the MACRO pixel size in bytes, to get the real pixel size, divide by weed_palette_pixles_per_macropixel() More...
 
#define weed_palette_has_alpha(pal)
 
#define weed_palette_get_plane_ratio_horizontal(pal, plane)
 
#define weed_palette_get_plane_ratio_vertical(pal, plane)
 
#define weed_palette_get_nplanes(pal)
 
#define weed_palette_get_pixels_per_macropixel(pal)
 
#define weed_palette_is_valid(pal)   (weed_palette_get_nplanes(pal) == 0 ? WEED_FALSE : WEED_TRUE)
 
#define weed_palette_is_planar(pal)   (weed_palette_get_nplanes(pal) > 1)
 

Functions

int32_t weed_plant_get_type (weed_plant_t *)
 
void weed_add_plant_flags (weed_plant_t *, uint32_t flags, const char *ign_prefix)
 
void weed_clear_plant_flags (weed_plant_t *t, uint32_t flags, const char *ign_prefix)
 
uint32_t weed_leaf_set_flagbits (weed_plant_t *, const char *leaf, uint32_t flagbits)
 value ORed with flags More...
 
uint32_t weed_leaf_clear_flagbits (weed_plant_t *, const char *leaf, uint32_t flagbits)
 ~value ANDed with flags More...
 
int weed_host_info_get_flags (weed_plant_t *host_info)
 
void weed_host_info_set_flags (weed_plant_t *host_info, int flags)
 
void weed_host_set_supports_linear_gamma (weed_plant_t *host_info)
 
void weed_host_set_supports_premult_alpha (weed_plant_t *host_info)
 
void weed_host_set_verbosity (weed_plant_t *host_info, int verbosityy)
 
char * weed_plugin_info_get_package_name (weed_plant_t *pinfo)
 
int weed_filter_get_flags (weed_plant_t *filter)
 
int weed_filter_is_resizer (weed_plant_t *filter)
 
char * weed_filter_get_name (weed_plant_t *filter)
 
weed_plant_t ** weed_filter_get_in_chantmpls (weed_plant_t *filter, int *ntmpls)
 
weed_plant_t ** weed_filter_get_out_chantmpls (weed_plant_t *filter, int *ntmpls)
 
weed_plant_t ** weed_filter_get_in_paramtmpls (weed_plant_t *filter, int *ntmpls)
 
weed_plant_t ** weed_filter_get_out_paramtmpls (weed_plant_t *filter, int *ntmpls)
 
weed_plant_t * weed_filter_get_gui (weed_plant_t *filter, int create_if_not_exists)
 
weed_plant_t * weed_filter_get_plugin_info (weed_plant_t *filter)
 
char * weed_filter_get_package_name (weed_plant_t *filter)
 
int weed_filter_hints_unstable (weed_plant_t *filter)
 
int weed_filter_hints_hidden (weed_plant_t *filter)
 
int weed_filter_hints_stateless (weed_plant_t *filter)
 
int weed_filter_is_converter (weed_plant_t *filter)
 
int weed_filter_is_process_last (weed_plant_t *filter)
 
int weed_filter_prefers_linear_gamma (weed_plant_t *filter)
 
int weed_filter_prefers_premult_alpha (weed_plant_t *filter)
 
int weed_filter_non_realtime (weed_plant_t *filter)
 
int weed_filter_may_thread (weed_plant_t *filter)
 
int weed_filter_channel_sizes_vary (weed_plant_t *filter)
 
int weed_filter_palettes_vary (weed_plant_t *filter)
 
weed_plant_t ** weed_instance_get_out_channels (weed_plant_t *instance, int *nchans)
 
weed_plant_t ** weed_instance_get_in_channels (weed_plant_t *instance, int *nchans)
 
weed_plant_t ** weed_instance_get_in_params (weed_plant_t *instance, int *nparams)
 
weed_plant_t ** weed_instance_get_out_params (weed_plant_t *instance, int *nparams)
 
weed_plant_t * weed_instance_get_gui (weed_plant_t *inst, int create_if_not_exists)
 
int weed_instance_get_flags (weed_plant_t *instance)
 
void weed_instance_set_flags (weed_plant_t *instance, int flags)
 
char * weed_chantmpl_get_name (weed_plant_t *chantmpl)
 
int weed_chantmpl_get_flags (weed_plant_t *chantmpl)
 
int weed_chantmpl_is_optional (weed_plant_t *chantmpl)
 
int weed_chantmpl_is_audio (weed_plant_t *chantmpl)
 
int * weed_chantmpl_get_palette_list (weed_plant_t *filter, weed_plant_t *chantmpl, int *nvals)
 
int weed_chantmpl_get_max_audio_length (weed_plant_t *chantmpl)
 
int weed_chantmpl_get_max_repeats (weed_plant_t *chantmpl)
 
void * weed_channel_get_pixel_data (weed_plant_t *channel)
 
void ** weed_channel_get_pixel_data_planar (weed_plant_t *channel, int *nplanes)
 
int weed_channel_get_width (weed_plant_t *channel)
 width in macropixels More...
 
int weed_channel_get_height (weed_plant_t *channel)
 
int weed_channel_get_palette (weed_plant_t *channel)
 
int weed_channel_get_gamma_type (weed_plant_t *channel)
 
int weed_channel_get_palette_yuv (weed_plant_t *channel, int *clamping, int *sampling, int *subspace)
 
int weed_channel_get_rowstride (weed_plant_t *channel)
 
int * weed_channel_get_rowstrides (weed_plant_t *channel, int *nplanes)
 
int weed_channel_is_disabled (weed_plant_t *channel)
 
weed_plant_t * weed_channel_get_template (weed_plant_t *channel)
 
void weed_channel_set_width (weed_plant_t *channel, int width)
 width in macropixels More...
 
void weed_channel_set_height (weed_plant_t *channel, int height)
 
void weed_channel_set_size (weed_plant_t *channel, int width, int height)
 
void weed_channel_set_palette (weed_plant_t *channel, int palette)
 
weed_plant_t * weed_channel_set_gamma_type (weed_plant_t *channel, int gamma_type)
 only sets value; no conversion of pixel_data done More...
 
int weed_channel_get_width_pixels (weed_plant_t *channel)
 width in pixels: only relevant when comparing widths of diferrent palettes More...
 
int weed_channel_get_audio_rate (weed_plant_t *channel)
 
int weed_channel_get_naudchans (weed_plant_t *channel)
 
int weed_channel_get_audio_length (weed_plant_t *channel)
 
float ** weed_channel_get_audio_data (weed_plant_t *channel, int *naudchans)
 
weed_plant_t * weed_channel_set_audio_data (weed_plant_t *channel, float **data, int arate, int naudchans, int nsamps)
 
weed_plant_t * weed_paramtmpl_get_gui (weed_plant_t *paramtmpl, int create_if_not_exists)
 
int weed_paramtmpl_get_flags (weed_plant_t *paramtmpl)
 
char * weed_paramtmpl_get_name (weed_plant_t *paramtmpl)
 
int weed_paramtmpl_get_type (weed_plant_t *paramtmpl)
 
int weed_paramtmpl_has_variable_size (weed_plant_t *paramtmpl)
 
int weed_paramtmpl_has_value_perchannel (weed_plant_t *paramtmpl)
 
uint32_t weed_paramtmpl_value_type (weed_plant_t *paramtmpl)
 
int weed_paramtmpl_does_wrap (weed_plant_t *paramtmpl)
 
int weed_paramtmpl_hints_string_choice (weed_plant_t *paramtmpl)
 
int weed_paramtmpl_hints_hidden (weed_plant_t *paramtmpl)
 
int weed_paramtmpl_value_irrelevant (weed_plant_t *paramtmpl)
 
int weed_param_is_hidden (weed_plant_t *param, int temporary)
 
weed_plant_t * weed_param_get_gui (weed_plant_t *param, int create_if_not_exists)
 
weed_plant_t * weed_param_get_template (weed_plant_t *param)
 
int weed_param_get_type (weed_plant_t *param)
 
int weed_param_has_variable_size (weed_plant_t *param)
 
int weed_param_has_value_perchannel (weed_plant_t *param)
 
int weed_param_does_wrap (weed_plant_t *param)
 
int weed_param_get_value_type (weed_plant_t *param)
 
int weed_param_value_irrelevant (weed_plant_t *param)
 
int weed_param_get_value_int (weed_plant_t *param)
 
int weed_param_get_value_boolean (weed_plant_t *param)
 
double weed_param_get_value_double (weed_plant_t *param)
 
int64_t weed_param_get_value_int64 (weed_plant_t *param)
 
char * weed_param_get_value_string (weed_plant_t *param)
 
int weed_param_get_nchoices (weed_plant_t *param)
 
int weed_gui_get_flags (weed_plant_t *gui)
 gui plants More...
 
char * weed_seed_type_to_text (uint32_t seed_type) WARN_UNUSED
 
char * weed_error_to_text (weed_error_t error) WARN_UNUSED
 
char * weed_palette_get_name_full (int pal, int clamping, int subspace) WARN_UNUSED
 
const char * weed_palette_get_name (int pal)
 
const char * weed_yuv_clamping_get_name (int clamping)
 
const char * weed_yuv_subspace_get_name (int subspace)
 
const char * weed_gamma_get_name (int gamma)
 
double weed_palette_get_compression_ratio (int pal)
 
int weed_palette_get_bits_per_macropixel (int pal)
 

Macro Definition Documentation

◆ _WEEED_FILTER_UTILS_H_

#define _WEEED_FILTER_UTILS_H_

Definition at line 16 of file weed-effects-utils.h.

◆ pixel_size

#define pixel_size (   pal)
Value:
((pal == WEED_PALETTE_RGB24 || pal == WEED_PALETTE_BGR24 || pal == WEED_PALETTE_YUV888) ? 3 : \
(pal == WEED_PALETTE_RGBA32 || pal == WEED_PALETTE_BGRA32 || pal == WEED_PALETTE_ARGB32 || \
pal == WEED_PALETTE_YUVA8888 || pal == WEED_PALETTE_UYVY || pal == WEED_PALETTE_YUYV) ? 4 : 1)

This is actually the MACRO pixel size in bytes, to get the real pixel size, divide by weed_palette_pixles_per_macropixel()

Definition at line 217 of file weed-effects-utils.h.

◆ WARN_UNUSED

#define WARN_UNUSED

Definition at line 25 of file weed-effects-utils.h.

◆ weed_palette_get_nplanes

#define weed_palette_get_nplanes (   pal)
Value:
((pal == WEED_PALETTE_RGB24 || pal == WEED_PALETTE_BGR24 || \
pal == WEED_PALETTE_RGBA32 || pal == WEED_PALETTE_BGRA32 || pal == WEED_PALETTE_ARGB32 || \
pal == WEED_PALETTE_UYVY || pal == WEED_PALETTE_YUYV || pal == WEED_PALETTE_YUV411 || \
pal == WEED_PALETTE_YUV888 || pal == WEED_PALETTE_YUVA8888 || pal == WEED_PALETTE_AFLOAT || \
pal == WEED_PALETTE_A8 || pal == WEED_PALETTE_A1 || pal == WEED_PALETTE_RGBFLOAT || \
pal == WEED_PALETTE_RGBAFLOAT) ? 1 : (pal == WEED_PALETTE_YUV420P || \
pal == WEED_PALETTE_YVU420P || pal == WEED_PALETTE_YUV422P || \
pal == WEED_PALETTE_YUV444P) ? 3 : pal == WEED_PALETTE_YUVA4444P ? 4 : 0)

Definition at line 239 of file weed-effects-utils.h.

◆ weed_palette_get_pixels_per_macropixel

#define weed_palette_get_pixels_per_macropixel (   pal)
Value:
((pal == WEED_PALETTE_UYVY || pal == WEED_PALETTE_YUYV) ? 2 : \
(pal == WEED_PALETTE_YUV411) ? 4 : (weed_palette_is_valid(pal) ? 1 : 0))

Definition at line 248 of file weed-effects-utils.h.

◆ weed_palette_get_plane_ratio_horizontal

#define weed_palette_get_plane_ratio_horizontal (   pal,
  plane 
)
Value:
((double)(plane == 0 ? 1.0 : (plane == 1 || plane == 2) ? \
(pal == WEED_PALETTE_YUV444P || pal == WEED_PALETTE_YUVA4444P) ? 1.0 : \
(pal == WEED_PALETTE_YUV422P || pal == WEED_PALETTE_YUV420P || \
pal == WEED_PALETTE_YVU420P) ? 0.5 : plane == 3 ? \
pal == WEED_PALETTE_YUVA4444P ? 1.0 : 0.0 : 0.0 : 0.0))

Definition at line 226 of file weed-effects-utils.h.

◆ weed_palette_get_plane_ratio_vertical

#define weed_palette_get_plane_ratio_vertical (   pal,
  plane 
)
Value:
((double)(plane == 0 ? 1.0 : (plane == 1 || plane == 2) ? \
(pal == WEED_PALETTE_YUV444P || pal == WEED_PALETTE_YUVA4444P || \
pal == WEED_PALETTE_YUV422P) ? 1.0 : (pal == WEED_PALETTE_YUV420P || \
pal == WEED_PALETTE_YVU420P) ? 0.5 : plane == 3 ? \
pal == WEED_PALETTE_YUVA4444P ? 1.0 : 0.0 : 0.0 : 0.0))

Definition at line 233 of file weed-effects-utils.h.

◆ weed_palette_has_alpha

#define weed_palette_has_alpha (   pal)
Value:
((pal == WEED_PALETTE_RGBA32 || pal == WEED_PALETTE_BGRA32 || \
pal == WEED_PALETTE_ARGB32 || pal == WEED_PALETTE_YUVA4444P || pal == WEED_PALETTE_YUVA8888 || \
pal == WEED_PALETTE_RGBAFLOAT || weed_palette_is_alpha(pal)) ? WEED_TRUE : WEED_FALSE)

Definition at line 221 of file weed-effects-utils.h.

◆ weed_palette_is_alpha

#define weed_palette_is_alpha (   pal)    ((((pal >= 1024) && (pal < 2048))) ? WEED_TRUE : WEED_FALSE)

Definition at line 209 of file weed-effects-utils.h.

◆ weed_palette_is_float

#define weed_palette_is_float (   pal)
Value:
((pal == WEED_PALETTE_RGBAFLOAT || pal == WEED_PALETTE_AFLOAT || \
pal == WEED_PALETTE_RGBFLOAT) ? WEED_TRUE : WEED_FALSE)

Definition at line 213 of file weed-effects-utils.h.

◆ weed_palette_is_planar

#define weed_palette_is_planar (   pal)    (weed_palette_get_nplanes(pal) > 1)

Definition at line 255 of file weed-effects-utils.h.

◆ weed_palette_is_rgb

#define weed_palette_is_rgb (   pal)    (pal >0 && pal < 512 ? WEED_TRUE : WEED_FALSE)

Definition at line 210 of file weed-effects-utils.h.

◆ weed_palette_is_valid

#define weed_palette_is_valid (   pal)    (weed_palette_get_nplanes(pal) == 0 ? WEED_FALSE : WEED_TRUE)

Definition at line 251 of file weed-effects-utils.h.

◆ weed_palette_is_yuv

#define weed_palette_is_yuv (   pal)    (pal >= 512 && pal < 1024 ? WEED_TRUE : WEED_FALSE)

Definition at line 211 of file weed-effects-utils.h.

◆ WEED_PLANT_IS_CHANNEL

#define WEED_PLANT_IS_CHANNEL (   plant)    (weed_plant_get_type(plant) == WEED_PLANT_CHANNEL ? WEED_TRUE : WEED_FALSE)

Definition at line 41 of file weed-effects-utils.h.

◆ WEED_PLANT_IS_CHANNEL_TEMPLATE

#define WEED_PLANT_IS_CHANNEL_TEMPLATE (   plant)
Value:
(weed_plant_get_type(plant) == WEED_PLANT_CHANNEL_TEMPLATE ? \
WEED_TRUE : WEED_FALSE)

Definition at line 43 of file weed-effects-utils.h.

◆ WEED_PLANT_IS_FILTER_CLASS

#define WEED_PLANT_IS_FILTER_CLASS (   plant)
Value:
(weed_plant_get_type(plant) == WEED_PLANT_FILTER_CLASS ? WEED_TRUE : \
WEED_FALSE)

Definition at line 36 of file weed-effects-utils.h.

◆ WEED_PLANT_IS_FILTER_INSTANCE

#define WEED_PLANT_IS_FILTER_INSTANCE (   plant)
Value:
(weed_plant_get_type(plant) == WEED_PLANT_FILTER_INSTANCE ? WEED_TRUE : \
WEED_FALSE)

Definition at line 38 of file weed-effects-utils.h.

◆ WEED_PLANT_IS_GUI

#define WEED_PLANT_IS_GUI (   plant)    (weed_plant_get_type(plant) == WEED_PLANT_GUI ? WEED_TRUE : WEED_FALSE)

Definition at line 51 of file weed-effects-utils.h.

◆ WEED_PLANT_IS_HOST_INFO

#define WEED_PLANT_IS_HOST_INFO (   plant)    (weed_plant_get_type(plant) == WEED_PLANT_HOST_INFO ? WEED_TRUE : WEED_FALSE)

Definition at line 34 of file weed-effects-utils.h.

◆ WEED_PLANT_IS_PARAMETER

#define WEED_PLANT_IS_PARAMETER (   plant)    (weed_plant_get_type(plant) == WEED_PLANT_PARAMETER ? WEED_TRUE : WEED_FALSE)

Definition at line 46 of file weed-effects-utils.h.

◆ WEED_PLANT_IS_PARAMETER_TEMPLATE

#define WEED_PLANT_IS_PARAMETER_TEMPLATE (   plant)
Value:
(weed_plant_get_type(plant) == WEED_PLANT_PARAMETER_TEMPLATE ? \
WEED_TRUE : WEED_FALSE)

Definition at line 48 of file weed-effects-utils.h.

◆ WEED_PLANT_IS_PLUGIN_INFO

#define WEED_PLANT_IS_PLUGIN_INFO (   plant)
Value:
(weed_plant_get_type(plant) == WEED_PLANT_PLUGIN_INFO ? WEED_TRUE : \
WEED_FALSE)

Definition at line 31 of file weed-effects-utils.h.

Function Documentation

◆ weed_add_plant_flags()

void weed_add_plant_flags ( weed_plant_t *  ,
uint32_t  flags,
const char *  ign_prefix 
)

Definition at line 67 of file weed-effects-utils.c.

Referenced by weed_flagset_array_count(), and weed_params_create().

◆ weed_channel_get_audio_data()

float** weed_channel_get_audio_data ( weed_plant_t *  channel,
int *  naudchans 
)

Definition at line 564 of file weed-effects-utils.c.

◆ weed_channel_get_audio_length()

int weed_channel_get_audio_length ( weed_plant_t *  channel)

Definition at line 503 of file weed-effects-utils.c.

◆ weed_channel_get_audio_rate()

int weed_channel_get_audio_rate ( weed_plant_t *  channel)

Definition at line 493 of file weed-effects-utils.c.

◆ weed_channel_get_gamma_type()

int weed_channel_get_gamma_type ( weed_plant_t *  channel)

Definition at line 458 of file weed-effects-utils.c.

◆ weed_channel_get_height()

int weed_channel_get_height ( weed_plant_t *  channel)

Definition at line 432 of file weed-effects-utils.c.

◆ weed_channel_get_naudchans()

int weed_channel_get_naudchans ( weed_plant_t *  channel)

Definition at line 498 of file weed-effects-utils.c.

◆ weed_channel_get_palette()

int weed_channel_get_palette ( weed_plant_t *  channel)

◆ weed_channel_get_palette_yuv()

int weed_channel_get_palette_yuv ( weed_plant_t *  channel,
int *  clamping,
int *  sampling,
int *  subspace 
)

Definition at line 469 of file weed-effects-utils.c.

Referenced by get_palette_name_for_clip().

◆ weed_channel_get_pixel_data()

void* weed_channel_get_pixel_data ( weed_plant_t *  channel)

Definition at line 404 of file weed-effects-utils.c.

◆ weed_channel_get_pixel_data_planar()

void** weed_channel_get_pixel_data_planar ( weed_plant_t *  channel,
int *  nplanes 
)

Definition at line 409 of file weed-effects-utils.c.

◆ weed_channel_get_rowstride()

int weed_channel_get_rowstride ( weed_plant_t *  channel)

Definition at line 482 of file weed-effects-utils.c.

◆ weed_channel_get_rowstrides()

int* weed_channel_get_rowstrides ( weed_plant_t *  channel,
int *  nplanes 
)

Definition at line 487 of file weed-effects-utils.c.

◆ weed_channel_get_template()

weed_plant_t* weed_channel_get_template ( weed_plant_t *  channel)

◆ weed_channel_get_width()

int weed_channel_get_width ( weed_plant_t *  channel)

width in macropixels

width in macropixels

Definition at line 415 of file weed-effects-utils.c.

Referenced by weed_channel_get_width_pixels().

◆ weed_channel_get_width_pixels()

int weed_channel_get_width_pixels ( weed_plant_t *  channel)

width in pixels: only relevant when comparing widths of diferrent palettes

width in pixels: only relevant when comparing widths of diferrent palettes

Definition at line 427 of file weed-effects-utils.c.

◆ weed_channel_is_disabled()

int weed_channel_is_disabled ( weed_plant_t *  channel)

Definition at line 508 of file weed-effects-utils.c.

◆ weed_channel_set_audio_data()

weed_plant_t* weed_channel_set_audio_data ( weed_plant_t *  channel,
float **  data,
int  arate,
int  naudchans,
int  nsamps 
)

Definition at line 570 of file weed-effects-utils.c.

Referenced by get_audio_from_plugin(), and push_audio_to_channel().

◆ weed_channel_set_gamma_type()

weed_plant_t* weed_channel_set_gamma_type ( weed_plant_t *  channel,
int  gamma_type 
)

only sets value; no conversion of pixel_data done

Definition at line 463 of file weed-effects-utils.c.

◆ weed_channel_set_height()

void weed_channel_set_height ( weed_plant_t *  channel,
int  height 
)

Definition at line 437 of file weed-effects-utils.c.

◆ weed_channel_set_palette()

void weed_channel_set_palette ( weed_plant_t *  channel,
int  palette 
)

Definition at line 448 of file weed-effects-utils.c.

◆ weed_channel_set_size()

void weed_channel_set_size ( weed_plant_t *  channel,
int  width,
int  height 
)

Definition at line 442 of file weed-effects-utils.c.

◆ weed_channel_set_width()

void weed_channel_set_width ( weed_plant_t *  channel,
int  width 
)

width in macropixels

width in macropixels

Definition at line 421 of file weed-effects-utils.c.

◆ weed_chantmpl_get_flags()

int weed_chantmpl_get_flags ( weed_plant_t *  chantmpl)

Definition at line 290 of file weed-effects-utils.c.

Referenced by get_audio_from_plugin(), and weed_chantmpl_is_optional().

◆ weed_chantmpl_get_max_audio_length()

int weed_chantmpl_get_max_audio_length ( weed_plant_t *  chantmpl)

Definition at line 295 of file weed-effects-utils.c.

Referenced by push_audio_to_channel().

◆ weed_chantmpl_get_max_repeats()

int weed_chantmpl_get_max_repeats ( weed_plant_t *  chantmpl)

a return value of zero means unlimited repeats

Definition at line 373 of file weed-effects-utils.c.

◆ weed_chantmpl_get_name()

char* weed_chantmpl_get_name ( weed_plant_t *  chantmpl)

Definition at line 285 of file weed-effects-utils.c.

◆ weed_chantmpl_get_palette_list()

int* weed_chantmpl_get_palette_list ( weed_plant_t *  filter,
weed_plant_t *  chantmpl,
int *  nvals 
)

Definition at line 386 of file weed-effects-utils.c.

Referenced by has_alpha_palette(), and has_non_alpha_palette().

◆ weed_chantmpl_is_audio()

int weed_chantmpl_is_audio ( weed_plant_t *  chantmpl)

◆ weed_chantmpl_is_optional()

int weed_chantmpl_is_optional ( weed_plant_t *  chantmpl)

◆ weed_clear_plant_flags()

void weed_clear_plant_flags ( weed_plant_t *  t,
uint32_t  flags,
const char *  ign_prefix 
)

Definition at line 85 of file weed-effects-utils.c.

Referenced by weed_plant_free_host().

◆ weed_error_to_text()

char* weed_error_to_text ( weed_error_t  error)

Definition at line 647 of file weed-effects-utils.c.

◆ weed_filter_channel_sizes_vary()

int weed_filter_channel_sizes_vary ( weed_plant_t *  filter)

Definition at line 201 of file weed-effects-utils.c.

Referenced by weed_filter_is_resizer().

◆ weed_filter_get_flags()

int weed_filter_get_flags ( weed_plant_t *  filter)

◆ weed_filter_get_gui()

weed_plant_t* weed_filter_get_gui ( weed_plant_t *  filter,
int  create_if_not_exists 
)

Definition at line 146 of file weed-effects-utils.c.

Referenced by weed_filter_hints_hidden().

◆ weed_filter_get_in_chantmpls()

weed_plant_t** weed_filter_get_in_chantmpls ( weed_plant_t *  filter,
int *  ntmpls 
)

◆ weed_filter_get_in_paramtmpls()

weed_plant_t** weed_filter_get_in_paramtmpls ( weed_plant_t *  filter,
int *  ntmpls 
)

◆ weed_filter_get_name()

char* weed_filter_get_name ( weed_plant_t *  filter)

Definition at line 240 of file weed-effects-utils.c.

◆ weed_filter_get_out_chantmpls()

weed_plant_t** weed_filter_get_out_chantmpls ( weed_plant_t *  filter,
int *  ntmpls 
)

◆ weed_filter_get_out_paramtmpls()

weed_plant_t** weed_filter_get_out_paramtmpls ( weed_plant_t *  filter,
int *  ntmpls 
)

Definition at line 263 of file weed-effects-utils.c.

Referenced by weed_params_create().

◆ weed_filter_get_package_name()

char* weed_filter_get_package_name ( weed_plant_t *  filter)

Definition at line 154 of file weed-effects-utils.c.

Referenced by on_rte_info_clicked().

◆ weed_filter_get_plugin_info()

weed_plant_t* weed_filter_get_plugin_info ( weed_plant_t *  filter)

Definition at line 150 of file weed-effects-utils.c.

Referenced by weed_filter_get_package_name().

◆ weed_filter_hints_hidden()

int weed_filter_hints_hidden ( weed_plant_t *  filter)

Definition at line 231 of file weed-effects-utils.c.

◆ weed_filter_hints_stateless()

int weed_filter_hints_stateless ( weed_plant_t *  filter)

Definition at line 186 of file weed-effects-utils.c.

◆ weed_filter_hints_unstable()

int weed_filter_hints_unstable ( weed_plant_t *  filter)

Definition at line 181 of file weed-effects-utils.c.

◆ weed_filter_is_converter()

int weed_filter_is_converter ( weed_plant_t *  filter)

◆ weed_filter_is_process_last()

int weed_filter_is_process_last ( weed_plant_t *  filter)

Definition at line 226 of file weed-effects-utils.c.

Referenced by init_event_is_process_last().

◆ weed_filter_is_resizer()

int weed_filter_is_resizer ( weed_plant_t *  filter)

Definition at line 822 of file weed-effects-utils.c.

Referenced by weed_instance_is_resizer().

◆ weed_filter_may_thread()

int weed_filter_may_thread ( weed_plant_t *  filter)

Definition at line 196 of file weed-effects-utils.c.

◆ weed_filter_non_realtime()

int weed_filter_non_realtime ( weed_plant_t *  filter)

Definition at line 191 of file weed-effects-utils.c.

◆ weed_filter_palettes_vary()

int weed_filter_palettes_vary ( weed_plant_t *  filter)

Definition at line 206 of file weed-effects-utils.c.

Referenced by weed_filter_is_palette_converter().

◆ weed_filter_prefers_linear_gamma()

int weed_filter_prefers_linear_gamma ( weed_plant_t *  filter)

Definition at line 211 of file weed-effects-utils.c.

◆ weed_filter_prefers_premult_alpha()

int weed_filter_prefers_premult_alpha ( weed_plant_t *  filter)

Definition at line 216 of file weed-effects-utils.c.

◆ weed_gamma_get_name()

const char* weed_gamma_get_name ( int  gamma)

Definition at line 774 of file weed-effects-utils.c.

Referenced by do_gamma_import_warn().

◆ weed_gui_get_flags()

int weed_gui_get_flags ( weed_plant_t *  gui)

gui plants

Definition at line 640 of file weed-effects-utils.c.

Referenced by weed_params_to_rfx().

◆ weed_host_info_get_flags()

int weed_host_info_get_flags ( weed_plant_t *  host_info)

◆ weed_host_info_set_flags()

void weed_host_info_set_flags ( weed_plant_t *  host_info,
int  flags 
)

◆ weed_host_set_supports_linear_gamma()

void weed_host_set_supports_linear_gamma ( weed_plant_t *  host_info)

Definition at line 131 of file weed-effects-utils.c.

◆ weed_host_set_supports_premult_alpha()

void weed_host_set_supports_premult_alpha ( weed_plant_t *  host_info)

Definition at line 136 of file weed-effects-utils.c.

◆ weed_host_set_verbosity()

void weed_host_set_verbosity ( weed_plant_t *  host_info,
int  verbosityy 
)

Definition at line 126 of file weed-effects-utils.c.

◆ weed_instance_get_flags()

int weed_instance_get_flags ( weed_plant_t *  instance)

Definition at line 580 of file weed-effects-utils.c.

◆ weed_instance_get_gui()

weed_plant_t* weed_instance_get_gui ( weed_plant_t *  inst,
int  create_if_not_exists 
)

Definition at line 158 of file weed-effects-utils.c.

Referenced by weed_reinit_effect().

◆ weed_instance_get_in_channels()

weed_plant_t** weed_instance_get_in_channels ( weed_plant_t *  instance,
int *  nchans 
)

◆ weed_instance_get_in_params()

weed_plant_t** weed_instance_get_in_params ( weed_plant_t *  instance,
int *  nparams 
)

◆ weed_instance_get_out_channels()

weed_plant_t** weed_instance_get_out_channels ( weed_plant_t *  instance,
int *  nchans 
)

Definition at line 596 of file weed-effects-utils.c.

Referenced by run_process_func().

◆ weed_instance_get_out_params()

weed_plant_t** weed_instance_get_out_params ( weed_plant_t *  instance,
int *  nparams 
)

Definition at line 608 of file weed-effects-utils.c.

◆ weed_instance_set_flags()

void weed_instance_set_flags ( weed_plant_t *  instance,
int  flags 
)

Definition at line 585 of file weed-effects-utils.c.

◆ weed_leaf_clear_flagbits()

uint32_t weed_leaf_clear_flagbits ( weed_plant_t *  ,
const char *  leaf,
uint32_t  flagbits 
)

~value ANDed with flags

Definition at line 58 of file weed-effects-utils.c.

Referenced by weed_clear_plant_flags(), and weed_leaf_delete_host().

◆ weed_leaf_set_flagbits()

uint32_t weed_leaf_set_flagbits ( weed_plant_t *  ,
const char *  leaf,
uint32_t  flagbits 
)

value ORed with flags

Definition at line 49 of file weed-effects-utils.c.

Referenced by weed_add_plant_flags().

◆ weed_palette_get_bits_per_macropixel()

int weed_palette_get_bits_per_macropixel ( int  pal)

Definition at line 1411 of file colourspace.c.

Referenced by cconx_convert_pixel_data(), and weed_palette_get_compression_ratio().

◆ weed_palette_get_compression_ratio()

double weed_palette_get_compression_ratio ( int  pal)

Definition at line 803 of file weed-effects-utils.c.

◆ weed_palette_get_name()

const char* weed_palette_get_name ( int  pal)

◆ weed_palette_get_name_full()

char* weed_palette_get_name_full ( int  pal,
int  clamping,
int  subspace 
)

Definition at line 764 of file weed-effects-utils.c.

Referenced by get_palette_name_for_clip(), and open_vid_playback_plugin().

◆ weed_param_does_wrap()

int weed_param_does_wrap ( weed_plant_t *  param)

Definition at line 548 of file weed-effects-utils.c.

◆ weed_param_get_gui()

weed_plant_t* weed_param_get_gui ( weed_plant_t *  param,
int  create_if_not_exists 
)

◆ weed_param_get_nchoices()

int weed_param_get_nchoices ( weed_plant_t *  param)

Definition at line 553 of file weed-effects-utils.c.

◆ weed_param_get_template()

weed_plant_t* weed_param_get_template ( weed_plant_t *  param)

◆ weed_param_get_type()

int weed_param_get_type ( weed_plant_t *  param)

Definition at line 523 of file weed-effects-utils.c.

Referenced by set_copy_to().

◆ weed_param_get_value_boolean()

int weed_param_get_value_boolean ( weed_plant_t *  param)

Definition at line 619 of file weed-effects-utils.c.

◆ weed_param_get_value_double()

double weed_param_get_value_double ( weed_plant_t *  param)

Definition at line 624 of file weed-effects-utils.c.

◆ weed_param_get_value_int()

int weed_param_get_value_int ( weed_plant_t *  param)

Definition at line 614 of file weed-effects-utils.c.

◆ weed_param_get_value_int64()

int64_t weed_param_get_value_int64 ( weed_plant_t *  param)

Definition at line 629 of file weed-effects-utils.c.

◆ weed_param_get_value_string()

char* weed_param_get_value_string ( weed_plant_t *  param)

Definition at line 634 of file weed-effects-utils.c.

◆ weed_param_get_value_type()

int weed_param_get_value_type ( weed_plant_t *  param)

Definition at line 528 of file weed-effects-utils.c.

◆ weed_param_has_value_perchannel()

int weed_param_has_value_perchannel ( weed_plant_t *  param)

Definition at line 538 of file weed-effects-utils.c.

Referenced by set_copy_to().

◆ weed_param_has_variable_size()

int weed_param_has_variable_size ( weed_plant_t *  param)

Definition at line 533 of file weed-effects-utils.c.

Referenced by set_copy_to().

◆ weed_param_is_hidden()

int weed_param_is_hidden ( weed_plant_t *  param,
int  temporary 
)

Definition at line 170 of file weed-effects-utils.c.

Referenced by is_hidden_param(), and on_resetp_clicked().

◆ weed_param_value_irrelevant()

int weed_param_value_irrelevant ( weed_plant_t *  param)

Definition at line 543 of file weed-effects-utils.c.

Referenced by interpolate_param().

◆ weed_paramtmpl_does_wrap()

int weed_paramtmpl_does_wrap ( weed_plant_t *  paramtmpl)

Definition at line 334 of file weed-effects-utils.c.

Referenced by weed_param_does_wrap(), and weed_params_to_rfx().

◆ weed_paramtmpl_get_flags()

int weed_paramtmpl_get_flags ( weed_plant_t *  paramtmpl)

◆ weed_paramtmpl_get_gui()

weed_plant_t* weed_paramtmpl_get_gui ( weed_plant_t *  paramtmpl,
int  create_if_not_exists 
)

◆ weed_paramtmpl_get_name()

char* weed_paramtmpl_get_name ( weed_plant_t *  paramtmpl)

Definition at line 317 of file weed-effects-utils.c.

◆ weed_paramtmpl_get_type()

int weed_paramtmpl_get_type ( weed_plant_t *  paramtmpl)

◆ weed_paramtmpl_has_value_perchannel()

int weed_paramtmpl_has_value_perchannel ( weed_plant_t *  paramtmpl)

Definition at line 328 of file weed-effects-utils.c.

Referenced by weed_param_has_value_perchannel().

◆ weed_paramtmpl_has_variable_size()

int weed_paramtmpl_has_variable_size ( weed_plant_t *  paramtmpl)

◆ weed_paramtmpl_hints_hidden()

int weed_paramtmpl_hints_hidden ( weed_plant_t *  paramtmpl)

Definition at line 351 of file weed-effects-utils.c.

Referenced by weed_param_is_hidden().

◆ weed_paramtmpl_hints_string_choice()

int weed_paramtmpl_hints_string_choice ( weed_plant_t *  paramtmpl)

Definition at line 342 of file weed-effects-utils.c.

◆ weed_paramtmpl_value_irrelevant()

int weed_paramtmpl_value_irrelevant ( weed_plant_t *  paramtmpl)

◆ weed_paramtmpl_value_type()

uint32_t weed_paramtmpl_value_type ( weed_plant_t *  paramtmpl)

Definition at line 305 of file weed-effects-utils.c.

Referenced by weed_param_get_value_type().

◆ weed_plant_get_type()

int32_t weed_plant_get_type ( weed_plant_t *  )

Definition at line 44 of file weed-effects-utils.c.

Referenced by _weed_get_gui(), and weed_leaf_set_monitor().

◆ weed_plugin_info_get_package_name()

char* weed_plugin_info_get_package_name ( weed_plant_t *  pinfo)

Definition at line 141 of file weed-effects-utils.c.

Referenced by weed_filter_get_package_name().

◆ weed_seed_type_to_text()

char* weed_seed_type_to_text ( uint32_t  seed_type)

Definition at line 680 of file weed-effects-utils.c.

◆ weed_yuv_clamping_get_name()

const char* weed_yuv_clamping_get_name ( int  clamping)

Definition at line 751 of file weed-effects-utils.c.

Referenced by on_vppa_ok_clicked(), and weed_palette_get_name_full().

◆ weed_yuv_subspace_get_name()

const char* weed_yuv_subspace_get_name ( int  subspace)

Definition at line 757 of file weed-effects-utils.c.

Referenced by weed_palette_get_name_full().

weed_plant_get_type
int32_t weed_plant_get_type(weed_plant_t *)
Definition: weed-effects-utils.c:44
weed_palette_is_valid
#define weed_palette_is_valid(pal)
Definition: weed-effects-utils.h:251
weed_palette_is_alpha
#define weed_palette_is_alpha(pal)
Definition: weed-effects-utils.h:209