Converter's subplugin implementation. More...
#include <nnstreamer_plugin_api_converter.h>
Public Attributes | |
const char * | name |
GstBuffer *(* | convert )(GstBuffer *in_buf, GstTensorsConfig *config, void *priv_data) |
gboolean(* | get_out_config )(const GstCaps *in_caps, GstTensorsConfig *config) |
GstCaps *(* | query_caps )(const GstTensorsConfig *config) |
int(* | open )(const gchar *script_path, void **priv_data) |
void(* | close )(void **priv_data) |
Converter's subplugin implementation.
Definition at line 41 of file nnstreamer_plugin_api_converter.h.
void(* _NNStreamerExternalConverter::close) (void **priv_data) |
tensor_converter will call this to close subplugin.
[in] | private_data | frees private_data and set NULL. |
Definition at line 82 of file nnstreamer_plugin_api_converter.h.
GstBuffer*(* _NNStreamerExternalConverter::convert) (GstBuffer *in_buf, GstTensorsConfig *config, void *priv_data) |
Convert the given input stream to tensor/tensors stream.
[in] | buf | The input stream buffer |
[out] | config | tensors config structure to be filled |
Return | input buffer(in_buf) if the data is to be kept untouched. |
Return | a new GstBuf if the data is to be modified. |
Definition at line 48 of file nnstreamer_plugin_api_converter.h.
gboolean(* _NNStreamerExternalConverter::get_out_config) (const GstCaps *in_caps, GstTensorsConfig *config) |
Set the tensor config structure from the given stream frame.
[in] | in_caps | The input (original/media data) stream's metadata |
[out] | config | The output (tensor/tensors) metadata |
Return | True if get caps successfully, FALSE if not. |
Definition at line 58 of file nnstreamer_plugin_api_converter.h.
const char* _NNStreamerExternalConverter::name |
Definition at line 45 of file nnstreamer_plugin_api_converter.h.
int(* _NNStreamerExternalConverter::open) (const gchar *script_path, void **priv_data) |
tensor_converter will call this to open subplugin.
[in] | script_path | script path of the subplugin. |
[in/out] | private_data A subplugin may save its internal private data here. The subplugin is responsible for alloc/free of this pointer. Normally, open() allocates memory for private_data. |
Definition at line 75 of file nnstreamer_plugin_api_converter.h.
GstCaps*(* _NNStreamerExternalConverter::query_caps) (const GstTensorsConfig *config) |
Filters (narrows down) the GstCap (st) with the given config.
[in] | config | The config of output tensor/tensors |
Return | subplugin caps (if config is NULL, return default caps) |
Definition at line 68 of file nnstreamer_plugin_api_converter.h.