\hypertarget{struct__NNStreamerExternalConverter}{}\doxysection{\+\_\+\+N\+N\+Streamer\+External\+Converter Struct Reference}
\label{struct__NNStreamerExternalConverter}\index{\_NNStreamerExternalConverter@{\_NNStreamerExternalConverter}}


Converter\textquotesingle{}s subplugin implementation.  




{\ttfamily \#include $<$nnstreamer\+\_\+plugin\+\_\+api\+\_\+converter.\+h$>$}

\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
const char $\ast$ \mbox{\hyperlink{struct__NNStreamerExternalConverter_a5f8728390be78ab7708b54ab9ad76b61}{name}}
\item 
Gst\+Buffer $\ast$($\ast$ \mbox{\hyperlink{struct__NNStreamerExternalConverter_a298ebba3aa4c9f1d79974c09385f7970}{convert}} )(Gst\+Buffer $\ast$in\+\_\+buf, \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$config, void $\ast$priv\+\_\+data)
\item 
gboolean($\ast$ \mbox{\hyperlink{struct__NNStreamerExternalConverter_aa7c80d74c2e0a4ffadcacd1cc39b3965}{get\+\_\+out\+\_\+config}} )(const Gst\+Caps $\ast$in\+\_\+caps, \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$config)
\item 
Gst\+Caps $\ast$($\ast$ \mbox{\hyperlink{struct__NNStreamerExternalConverter_a95e3873729ba2e2d9f2db81d06b658da}{query\+\_\+caps}} )(const \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$config)
\item 
int($\ast$ \mbox{\hyperlink{struct__NNStreamerExternalConverter_a8ec9c15327588e592454e8626cf23b60}{open}} )(const gchar $\ast$script\+\_\+path, void $\ast$$\ast$priv\+\_\+data)
\item 
void($\ast$ \mbox{\hyperlink{struct__NNStreamerExternalConverter_a74fefd5c8a8242db82ddfc67c77060ae}{close}} )(void $\ast$$\ast$priv\+\_\+data)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Converter\textquotesingle{}s subplugin implementation. 

Definition at line 41 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+converter.\+h.



\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{struct__NNStreamerExternalConverter_a74fefd5c8a8242db82ddfc67c77060ae}\label{struct__NNStreamerExternalConverter_a74fefd5c8a8242db82ddfc67c77060ae}} 
\index{\_NNStreamerExternalConverter@{\_NNStreamerExternalConverter}!close@{close}}
\index{close@{close}!\_NNStreamerExternalConverter@{\_NNStreamerExternalConverter}}
\doxysubsubsection{\texorpdfstring{close}{close}}
{\footnotesize\ttfamily void($\ast$ \+\_\+\+N\+N\+Streamer\+External\+Converter\+::close) (void $\ast$$\ast$priv\+\_\+data)}

tensor\+\_\+converter will call this to close subplugin. 
\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em private\+\_\+data} & frees private\+\_\+data and set N\+U\+LL. \\
\hline
\end{DoxyParams}


Definition at line 82 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+converter.\+h.

\mbox{\Hypertarget{struct__NNStreamerExternalConverter_a298ebba3aa4c9f1d79974c09385f7970}\label{struct__NNStreamerExternalConverter_a298ebba3aa4c9f1d79974c09385f7970}} 
\index{\_NNStreamerExternalConverter@{\_NNStreamerExternalConverter}!convert@{convert}}
\index{convert@{convert}!\_NNStreamerExternalConverter@{\_NNStreamerExternalConverter}}
\doxysubsubsection{\texorpdfstring{convert}{convert}}
{\footnotesize\ttfamily Gst\+Buffer$\ast$($\ast$ \+\_\+\+N\+N\+Streamer\+External\+Converter\+::convert) (Gst\+Buffer $\ast$in\+\_\+buf, \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$config, void $\ast$priv\+\_\+data)}

Convert the given input stream to tensor/tensors stream.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em buf} & The input stream buffer \\
\hline
\mbox{\texttt{ out}}  & {\em config} & tensors config structure to be filled \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em Return} & input buffer(in\+\_\+buf) if the data is to be kept untouched. \\
\hline
{\em Return} & a new Gst\+Buf if the data is to be modified. \\
\hline
\end{DoxyRetVals}


Definition at line 48 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+converter.\+h.

\mbox{\Hypertarget{struct__NNStreamerExternalConverter_aa7c80d74c2e0a4ffadcacd1cc39b3965}\label{struct__NNStreamerExternalConverter_aa7c80d74c2e0a4ffadcacd1cc39b3965}} 
\index{\_NNStreamerExternalConverter@{\_NNStreamerExternalConverter}!get\_out\_config@{get\_out\_config}}
\index{get\_out\_config@{get\_out\_config}!\_NNStreamerExternalConverter@{\_NNStreamerExternalConverter}}
\doxysubsubsection{\texorpdfstring{get\_out\_config}{get\_out\_config}}
{\footnotesize\ttfamily gboolean($\ast$ \+\_\+\+N\+N\+Streamer\+External\+Converter\+::get\+\_\+out\+\_\+config) (const Gst\+Caps $\ast$in\+\_\+caps, \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$config)}

Set the tensor config structure from the given stream frame.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em in\+\_\+caps} & The input (original/media data) stream\textquotesingle{}s metadata \\
\hline
\mbox{\texttt{ out}}  & {\em config} & The output (tensor/tensors) metadata \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em Return} & True if get caps successfully, F\+A\+L\+SE if not. \\
\hline
\end{DoxyRetVals}


Definition at line 58 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+converter.\+h.

\mbox{\Hypertarget{struct__NNStreamerExternalConverter_a5f8728390be78ab7708b54ab9ad76b61}\label{struct__NNStreamerExternalConverter_a5f8728390be78ab7708b54ab9ad76b61}} 
\index{\_NNStreamerExternalConverter@{\_NNStreamerExternalConverter}!name@{name}}
\index{name@{name}!\_NNStreamerExternalConverter@{\_NNStreamerExternalConverter}}
\doxysubsubsection{\texorpdfstring{name}{name}}
{\footnotesize\ttfamily const char$\ast$ \+\_\+\+N\+N\+Streamer\+External\+Converter\+::name}



Definition at line 45 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+converter.\+h.

\mbox{\Hypertarget{struct__NNStreamerExternalConverter_a8ec9c15327588e592454e8626cf23b60}\label{struct__NNStreamerExternalConverter_a8ec9c15327588e592454e8626cf23b60}} 
\index{\_NNStreamerExternalConverter@{\_NNStreamerExternalConverter}!open@{open}}
\index{open@{open}!\_NNStreamerExternalConverter@{\_NNStreamerExternalConverter}}
\doxysubsubsection{\texorpdfstring{open}{open}}
{\footnotesize\ttfamily int($\ast$ \+\_\+\+N\+N\+Streamer\+External\+Converter\+::open) (const gchar $\ast$script\+\_\+path, void $\ast$$\ast$priv\+\_\+data)}

tensor\+\_\+converter will call this to open subplugin. 
\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em script\+\_\+path} & script path of the subplugin. \\
\hline
 & {\em \mbox{[}in/out\mbox{]}} & private\+\_\+data A subplugin may save its internal private data here. The subplugin is responsible for alloc/free of this pointer. Normally, \mbox{\hyperlink{struct__NNStreamerExternalConverter_a8ec9c15327588e592454e8626cf23b60}{open()}} allocates memory for private\+\_\+data. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 if ok. $<$ 0 if error. 
\end{DoxyReturn}


Definition at line 75 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+converter.\+h.

\mbox{\Hypertarget{struct__NNStreamerExternalConverter_a95e3873729ba2e2d9f2db81d06b658da}\label{struct__NNStreamerExternalConverter_a95e3873729ba2e2d9f2db81d06b658da}} 
\index{\_NNStreamerExternalConverter@{\_NNStreamerExternalConverter}!query\_caps@{query\_caps}}
\index{query\_caps@{query\_caps}!\_NNStreamerExternalConverter@{\_NNStreamerExternalConverter}}
\doxysubsubsection{\texorpdfstring{query\_caps}{query\_caps}}
{\footnotesize\ttfamily Gst\+Caps$\ast$($\ast$ \+\_\+\+N\+N\+Streamer\+External\+Converter\+::query\+\_\+caps) (const \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$config)}

Filters (narrows down) the Gst\+Cap (st) with the given config.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em config} & The config of output tensor/tensors \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em Return} & subplugin caps (if config is N\+U\+LL, return default caps) \\
\hline
\end{DoxyRetVals}


Definition at line 68 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+converter.\+h.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
nnstreamer/include/\mbox{\hyperlink{nnstreamer__plugin__api__converter_8h}{nnstreamer\+\_\+plugin\+\_\+api\+\_\+converter.\+h}}\end{DoxyCompactItemize}
