• Home
  • Raw
  • Download

Lines Matching refs:lv2

174 gst_lv2_get_preset_names (GstLV2 * lv2, GstObject * obj)  in gst_lv2_get_preset_names()  argument
177 if (!lv2->presets) { in gst_lv2_get_preset_names()
181 lilv_plugin_get_related (lv2->klass->plugin, in gst_lv2_get_preset_names()
185 lv2->presets = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, in gst_lv2_get_preset_names()
199 g_hash_table_insert (lv2->presets, in gst_lv2_get_preset_names()
211 if (lv2->presets) { in gst_lv2_get_preset_names()
212 GList *node, *keys = g_hash_table_get_keys (lv2->presets); in gst_lv2_get_preset_names()
213 gchar **names = g_new0 (gchar *, g_hash_table_size (lv2->presets) + 1); in gst_lv2_get_preset_names()
257 gst_lv2_load_preset (GstLV2 * lv2, GstObject * obj, const gchar * name) in gst_lv2_load_preset() argument
259 LilvNode *preset = g_hash_table_lookup (lv2->presets, name); in gst_lv2_load_preset()
262 gpointer user_data[] = { lv2->klass, obj }; in gst_lv2_load_preset()
266 lilv_state_restore (state, lv2->instance, set_port_value, in gst_lv2_load_preset()
297 gst_lv2_save_preset (GstLV2 * lv2, GstObject * obj, const gchar * name) in gst_lv2_save_preset() argument
300 gpointer user_data[] = { lv2->klass, obj }; in gst_lv2_save_preset()
304 LilvInstance *instance = lv2->instance; in gst_lv2_save_preset()
321 instance = lilv_plugin_instantiate (lv2->klass->plugin, GST_AUDIO_DEF_RATE, in gst_lv2_save_preset()
325 state = lilv_state_new_from_instance (lv2->klass->plugin, instance, &lv2_map, in gst_lv2_save_preset()
348 g_hash_table_insert (lv2->presets, g_strdup (name), in gst_lv2_save_preset()
355 if (!lv2->instance) { in gst_lv2_save_preset()
369 gst_lv2_rename_preset (GstLV2 * lv2, GstObject * obj,
378 gst_lv2_delete_preset (GstLV2 * lv2, GstObject * obj, const gchar * name) in gst_lv2_delete_preset() argument
381 LilvNode *preset = g_hash_table_lookup (lv2->presets, name); in gst_lv2_delete_preset()
389 g_hash_table_remove (lv2->presets, name); in gst_lv2_delete_preset()
397 gst_lv2_init (GstLV2 * lv2, GstLV2Class * lv2_class) in gst_lv2_init() argument
399 lv2->klass = lv2_class; in gst_lv2_init()
401 lv2->instance = NULL; in gst_lv2_init()
402 lv2->activated = FALSE; in gst_lv2_init()
404 lv2->ports.control.in = g_new0 (gfloat, lv2_class->control_in_ports->len); in gst_lv2_init()
405 lv2->ports.control.out = g_new0 (gfloat, lv2_class->control_out_ports->len); in gst_lv2_init()
409 gst_lv2_finalize (GstLV2 * lv2) in gst_lv2_finalize() argument
411 if (lv2->presets) { in gst_lv2_finalize()
412 g_hash_table_destroy (lv2->presets); in gst_lv2_finalize()
414 g_free (lv2->ports.control.in); in gst_lv2_finalize()
415 g_free (lv2->ports.control.out); in gst_lv2_finalize()
419 gst_lv2_setup (GstLV2 * lv2, unsigned long rate) in gst_lv2_setup() argument
421 GstLV2Class *lv2_class = lv2->klass; in gst_lv2_setup()
426 if (lv2->instance) in gst_lv2_setup()
427 lilv_instance_free (lv2->instance); in gst_lv2_setup()
429 if (!(lv2->instance = in gst_lv2_setup()
439 lilv_instance_connect_port (lv2->instance, port->index, in gst_lv2_setup()
440 &(lv2->ports.control.in[i])); in gst_lv2_setup()
447 lilv_instance_connect_port (lv2->instance, port->index, in gst_lv2_setup()
448 &(lv2->ports.control.out[i])); in gst_lv2_setup()
451 lilv_instance_activate (lv2->instance); in gst_lv2_setup()
452 lv2->activated = TRUE; in gst_lv2_setup()
458 gst_lv2_cleanup (GstLV2 * lv2, GstObject * obj) in gst_lv2_cleanup() argument
460 if (lv2->activated == FALSE) { in gst_lv2_cleanup()
465 if (lv2->instance == NULL) { in gst_lv2_cleanup()
472 lilv_instance_deactivate (lv2->instance); in gst_lv2_cleanup()
474 lv2->activated = FALSE; in gst_lv2_cleanup()
476 lilv_instance_free (lv2->instance); in gst_lv2_cleanup()
477 lv2->instance = NULL; in gst_lv2_cleanup()
483 gst_lv2_object_set_property (GstLV2 * lv2, GObject * object, in gst_lv2_object_set_property() argument
488 prop_id -= lv2->klass->properties; in gst_lv2_object_set_property()
491 g_return_if_fail (prop_id < lv2->klass->control_in_ports->len); in gst_lv2_object_set_property()
499 lv2->ports.control.in[prop_id] = in gst_lv2_object_set_property()
503 lv2->ports.control.in[prop_id] = g_value_get_int (value); in gst_lv2_object_set_property()
506 lv2->ports.control.in[prop_id] = g_value_get_float (value); in gst_lv2_object_set_property()
509 lv2->ports.control.in[prop_id] = g_value_get_enum (value); in gst_lv2_object_set_property()
519 gst_lv2_object_get_property (GstLV2 * lv2, GObject * object, in gst_lv2_object_get_property() argument
526 prop_id -= lv2->klass->properties; in gst_lv2_object_get_property()
528 if (prop_id < lv2->klass->control_in_ports->len) { in gst_lv2_object_get_property()
529 controls = lv2->ports.control.in; in gst_lv2_object_get_property()
530 } else if (prop_id < lv2->klass->control_in_ports->len + in gst_lv2_object_get_property()
531 lv2->klass->control_out_ports->len) { in gst_lv2_object_get_property()
532 controls = lv2->ports.control.out; in gst_lv2_object_get_property()
533 prop_id -= lv2->klass->control_in_ports->len; in gst_lv2_object_get_property()