/** * Gives the next actor plugin based on the name of a plugin but skips * GL plugins. * * @see visual_actor_get_prev_by_name_nogl * * @param name The name of the current plugin or NULL to get the first. * * @return The name of the next plugin within the list that is not a GL plugin. */ const char *visual_actor_get_next_by_name_nogl (const char *name) { const char *next = name; VisPluginData *plugin; VisPluginRef *ref; VisActorPlugin *actplugin; int gl; do { next = visual_plugin_get_next_by_name (visual_actor_get_list (), next); if (next == NULL) return NULL; ref = visual_plugin_find (__lv_plugins_actor, next); plugin = visual_plugin_load (ref); actplugin = VISUAL_ACTOR_PLUGIN (plugin->info->plugin); if ((actplugin->vidoptions.depth & VISUAL_VIDEO_DEPTH_GL) > 0) gl = TRUE; else gl = FALSE; visual_plugin_unload (plugin); } while (gl == TRUE); return next; }
/** * Gives the next actor plugin based on the name of a plugin. * * @see visual_actor_get_prev_by_name * * @param name The name of the current plugin, or NULL to get the first. * * @return The name of the next plugin within the list. */ const char *visual_actor_get_next_by_name (const char *name) { return visual_plugin_get_next_by_name (visual_actor_get_list (), name); }
/** * Gives the next transform plugin based on the name of a plugin. * * @see visual_transform_get_prev_by_name * * @param name The name of the current plugin, or NULL to get the first. * * @return The name of the next plugin within the list. */ const char *visual_transform_get_next_by_name (const char *name) { return visual_plugin_get_next_by_name (visual_transform_get_list (), name); }