Subplugin Manager for NNStreamer. More...
Go to the source code of this file.
Macros | |
#define | NNS_SUBPLUGIN_CHECKER (0xdeadbeef) |
Enumerations | |
enum | subpluginType { NNS_SUBPLUGIN_FILTER = NNSCONF_PATH_FILTERS, NNS_SUBPLUGIN_DECODER = NNSCONF_PATH_DECODERS, NNS_EASY_CUSTOM_FILTER = NNSCONF_PATH_EASY_CUSTOM_FILTERS, NNS_SUBPLUGIN_CONVERTER = NNSCONF_PATH_CONVERTERS, NNS_SUBPLUGIN_TRAINER = NNSCONF_PATH_TRAINERS, NNS_CUSTOM_CONVERTER, NNS_CUSTOM_DECODER, NNS_IF_CUSTOM, NNS_SUBPLUGIN_END } |
Functions | |
const void * | get_subplugin (subpluginType type, const char *name) |
Retrieve the registered data with the subplugin name. More... | |
gchar ** | get_all_subplugins (subpluginType type) |
Get the list of registered subplugins. More... | |
gboolean | register_subplugin (subpluginType type, const char *name, const void *data) |
Register the subplugin. If duplicated name exists, it is rejected. More... | |
gboolean | unregister_subplugin (subpluginType type, const char *name) |
Unregister the subplugin. More... | |
void | subplugin_set_custom_property_desc (subpluginType type, const char *name, const gchar *prop, va_list varargs) |
common interface to set custom property description of a sub-plugin. More... | |
GData * | subplugin_get_custom_property_desc (subpluginType type, const char *name) |
common interface to get custom property description of a sub-plugin. More... | |
Subplugin Manager for NNStreamer.
NNStreamer Subplugin Manager Copyright (C) 2018 MyungJoo Ham myung joo. ham@s amsu ng.co m
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; version 2.1 of the License.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
To Packagers:
This file is to be packaged as "devel" package for NN developers. (subplugin writers)
Definition in file nnstreamer_subplugin.h.
#define NNS_SUBPLUGIN_CHECKER (0xdeadbeef) |
Definition at line 53 of file nnstreamer_subplugin.h.
enum subpluginType |
Enumerator | |
---|---|
NNS_SUBPLUGIN_FILTER | |
NNS_SUBPLUGIN_DECODER | |
NNS_EASY_CUSTOM_FILTER | |
NNS_SUBPLUGIN_CONVERTER | |
NNS_SUBPLUGIN_TRAINER | |
NNS_CUSTOM_CONVERTER | |
NNS_CUSTOM_DECODER | |
NNS_IF_CUSTOM | |
NNS_SUBPLUGIN_END |
Definition at line 40 of file nnstreamer_subplugin.h.
gchar** get_all_subplugins | ( | subpluginType | type | ) |
Get the list of registered subplugins.
[in] | type | Subplugin Type |
Get the list of registered subplugins.
Definition at line 176 of file nnstreamer_subplugin.c.
const void* get_subplugin | ( | subpluginType | type, |
const char * | name | ||
) |
Retrieve the registered data with the subplugin name.
[in] | type | Subplugin Type |
[in] | name | Subplugin Name. The filename should be libnnstreamer_${type}_${name}.so |
Retrieve the registered data with the subplugin name.
Search and register if found with the conf
Definition at line 141 of file nnstreamer_subplugin.c.
gboolean register_subplugin | ( | subpluginType | type, |
const char * | name, | ||
const void * | data | ||
) |
Register the subplugin. If duplicated name exists, it is rejected.
[in] | type | Subplugin Type |
[in] | name | Subplugin Name. The filename should be subplugin_prefixes[type]${name}.so |
[in] | data | The registered data |
Register the subplugin. If duplicated name exists, it is rejected.
Definition at line 225 of file nnstreamer_subplugin.c.
GData* subplugin_get_custom_property_desc | ( | subpluginType | type, |
const char * | name | ||
) |
common interface to get custom property description of a sub-plugin.
Definition at line 359 of file nnstreamer_subplugin.c.
void subplugin_set_custom_property_desc | ( | subpluginType | type, |
const char * | name, | ||
const gchar * | prop, | ||
va_list | varargs | ||
) |
common interface to set custom property description of a sub-plugin.
Definition at line 329 of file nnstreamer_subplugin.c.
gboolean unregister_subplugin | ( | subpluginType | type, |
const char * | name | ||
) |
Unregister the subplugin.
[in] | type | Subplugin type |
[in] | name | Subplugin Name. The filename should be subplugin_prefixes[type]${name}.so |
Unregister the subplugin.
Definition at line 289 of file nnstreamer_subplugin.c.