Internal header for NNStreamer plugins and native single-shot APIs. More...
Go to the source code of this file.
Functions | |
G_BEGIN_DECLS gchar * | nnsconf_get_custom_value_string (const gchar *group, const gchar *key) |
Get the custom configuration value from .ini and envvar. @detail For predefined configurations defined in this header, use the given enum for faster configuration processing. For custom configurations not defined in this header, you may use this API to access your own custom configurations. Configuration values may be loaded only once during runtime, thus, if the values are changed in run-time, the changes are not guaranteed to be reflected. The ENVVAR is supposed to be NNSTREAMER_${group}_${key}, which has higher priority than the .ini configuration. Be careful not to use special characters in group name ([, ], _). More... | |
gboolean | nnsconf_get_custom_value_bool (const gchar *group, const gchar *key, gboolean def) |
Get the custom configuration value from .ini and envvar. @detail For predefined configurations defined in this header, use the given enum for faster configuration processing. For custom configurations not defined in this header, you may use this API to access your own custom configurations. Configuration values may be loaded only once during runtime, thus, if the values are changed in run-time, the changes are not guaranteed to be reflected. The ENVVAR is supposed to be NNSTREAMER_${group}_${key}, which has higher priority than the .ini configuration. Be careful not to use special characters in group name ([, ], _). More... | |
gchar * | gst_tensor_filter_detect_framework (const gchar *const *model_files, const guint num_models, const gboolean load_conf) |
Get neural network framework name from given model file. This does not guarantee the framework is available on the target device. More... | |
gboolean | gst_tensor_filter_check_hw_availability (const gchar *name, const accl_hw hw, const char *custom) |
Check if the given hw is supported by the framework. More... | |
Internal header for NNStreamer plugins and native single-shot APIs.
Copyright (c) 2021 Samsung Electronics Co., Ltd. All Rights Reserved.
Definition in file nnstreamer_internal.h.
gboolean gst_tensor_filter_check_hw_availability | ( | const gchar * | name, |
const accl_hw | hw, | ||
const char * | custom | ||
) |
Check if the given hw is supported by the framework.
[in] | name | The name of filter sub-plugin. |
[in] | hw | Backend accelerator hardware. |
[in] | custom | User-defined string to handle detailed hardware option. |
Only check for specific HW, DEFAULT/AUTO are always supported
Definition at line 2923 of file tensor_filter_common.c.
gchar* gst_tensor_filter_detect_framework | ( | const gchar *const * | model_files, |
const guint | num_models, | ||
const gboolean | load_conf | ||
) |
Get neural network framework name from given model file. This does not guarantee the framework is available on the target device.
[in] | model_files | the prediction model paths |
[in] | num_models | the number of model files |
[in] | load_conf | flag to load configuration for the priority of framework |
[in] | model_files | the prediction model paths |
[in] | num_models | the number of model files |
[in] | load_conf | flag to load configuration for the priority of framework |
Definition at line 1232 of file tensor_filter_common.c.
gboolean nnsconf_get_custom_value_bool | ( | const gchar * | group, |
const gchar * | key, | ||
gboolean | def | ||
) |
Get the custom configuration value from .ini and envvar. @detail For predefined configurations defined in this header, use the given enum for faster configuration processing. For custom configurations not defined in this header, you may use this API to access your own custom configurations. Configuration values may be loaded only once during runtime, thus, if the values are changed in run-time, the changes are not guaranteed to be reflected. The ENVVAR is supposed to be NNSTREAMER_${group}_${key}, which has higher priority than the .ini configuration. Be careful not to use special characters in group name ([, ], _).
[in] | group | The group name, [group], in .ini file. |
[in] | key | The key name, key = value, in .ini file. |
[in] | def | The default return value in case there is no value available. |
Get the custom configuration value from .ini and envvar. @detail For predefined configurations defined in this header, use the given enum for faster configuration processing. For custom configurations not defined in this header, you may use this API to access your own custom configurations. Configuration values may be loaded only once during runtime, thus, if the values are changed in run-time, the changes are not guaranteed to be reflected. The ENVVAR is supposed to be NNSTREAMER_${group}_${key}, which has higher priority than the .ini configuration. Be careful not to use special characters in group name ([, ], _).
Definition at line 609 of file nnstreamer_conf.c.
G_BEGIN_DECLS gchar* nnsconf_get_custom_value_string | ( | const gchar * | group, |
const gchar * | key | ||
) |
Get the custom configuration value from .ini and envvar. @detail For predefined configurations defined in this header, use the given enum for faster configuration processing. For custom configurations not defined in this header, you may use this API to access your own custom configurations. Configuration values may be loaded only once during runtime, thus, if the values are changed in run-time, the changes are not guaranteed to be reflected. The ENVVAR is supposed to be NNSTREAMER_${group}_${key}, which has higher priority than the .ini configuration. Be careful not to use special characters in group name ([, ], _).
[in] | group | The group name, [group], in .ini file. |
[in] | key | The key name, key = value, in .ini file. |
Get the custom configuration value from .ini and envvar. @detail For predefined configurations defined in this header, use the given enum for faster configuration processing. For custom configurations not defined in this header, you may use this API to access your own custom configurations. Configuration values may be loaded only once during runtime, thus, if the values are changed in run-time, the changes are not guaranteed to be reflected. The ENVVAR is supposed to be NNSTREAMER_${group}_${key}, which has higher priority than the .ini configuration. Be careful not to use special characters in group name ([, ], _).
Internal lib error? out-of-memory?
Definition at line 557 of file nnstreamer_conf.c.