Doxygen Book
_NNStreamerExternalConverter Struct Reference

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)
 

Detailed Description

Converter's subplugin implementation.

Definition at line 41 of file nnstreamer_plugin_api_converter.h.

Member Data Documentation

◆ close

void(* _NNStreamerExternalConverter::close) (void **priv_data)

tensor_converter will call this to close subplugin.

Parameters
[in]private_datafrees private_data and set NULL.

Definition at line 82 of file nnstreamer_plugin_api_converter.h.

◆ convert

GstBuffer*(* _NNStreamerExternalConverter::convert) (GstBuffer *in_buf, GstTensorsConfig *config, void *priv_data)

Convert the given input stream to tensor/tensors stream.

Parameters
[in]bufThe input stream buffer
[out]configtensors config structure to be filled
Return values
Returninput buffer(in_buf) if the data is to be kept untouched.
Returna new GstBuf if the data is to be modified.

Definition at line 48 of file nnstreamer_plugin_api_converter.h.

◆ get_out_config

gboolean(* _NNStreamerExternalConverter::get_out_config) (const GstCaps *in_caps, GstTensorsConfig *config)

Set the tensor config structure from the given stream frame.

Parameters
[in]in_capsThe input (original/media data) stream's metadata
[out]configThe output (tensor/tensors) metadata
Return values
ReturnTrue if get caps successfully, FALSE if not.

Definition at line 58 of file nnstreamer_plugin_api_converter.h.

◆ name

const char* _NNStreamerExternalConverter::name

Definition at line 45 of file nnstreamer_plugin_api_converter.h.

◆ open

int(* _NNStreamerExternalConverter::open) (const gchar *script_path, void **priv_data)

tensor_converter will call this to open subplugin.

Parameters
[in]script_pathscript 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.
Returns
0 if ok. < 0 if error.

Definition at line 75 of file nnstreamer_plugin_api_converter.h.

◆ query_caps

GstCaps*(* _NNStreamerExternalConverter::query_caps) (const GstTensorsConfig *config)

Filters (narrows down) the GstCap (st) with the given config.

Parameters
[in]configThe config of output tensor/tensors
Return values
Returnsubplugin caps (if config is NULL, return default caps)

Definition at line 68 of file nnstreamer_plugin_api_converter.h.


The documentation for this struct was generated from the following file: