\hypertarget{tensor__converter__custom_8h}{}\doxysection{nnstreamer/include/tensor\+\_\+converter\+\_\+custom.h File Reference}
\label{tensor__converter__custom_8h}\index{nnstreamer/include/tensor\_converter\_custom.h@{nnstreamer/include/tensor\_converter\_custom.h}}


N\+N\+Streamer A\+P\+Is for tensor\+\_\+converter custom condition.  


{\ttfamily \#include $<$glib.\+h$>$}\newline
{\ttfamily \#include $<$gst/gst.\+h$>$}\newline
{\ttfamily \#include \char`\"{}tensor\+\_\+typedef.\+h\char`\"{}}\newline
Include dependency graph for tensor\+\_\+converter\+\_\+custom.\+h\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=332pt]{tensor__converter__custom_8h__incl}
\end{center}
\end{figure}
This graph shows which files directly or indirectly include this file\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=346pt]{tensor__converter__custom_8h__dep__incl}
\end{center}
\end{figure}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{tensor__converter__custom_8h_af29f7bbcd5f3b0b8ddc7ae773eb770dc}{nnstreamer\+\_\+converter\+\_\+custom\+\_\+register}} (const gchar $\ast$name, \mbox{\hyperlink{tensor__converter__custom_8h_a6e01cf896922b5c7412d99603566d619}{tensor\+\_\+converter\+\_\+custom}} func, void $\ast$\mbox{\hyperlink{gsttensor__if_8c_a3c9cc8d6e8da85fef51da4c7115b97f6}{data}})
\begin{DoxyCompactList}\small\item\em Register the custom callback function. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{tensor__converter__custom_8h_ad95aaba85ff633b94836e4968fd7f195}{nnstreamer\+\_\+converter\+\_\+custom\+\_\+unregister}} (const gchar $\ast$name)
\begin{DoxyCompactList}\small\item\em Unregister the custom callback function. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
G\+\_\+\+B\+E\+G\+I\+N\+\_\+\+D\+E\+C\+LS typedef Gst\+Buffer $\ast$($\ast$ \mbox{\hyperlink{tensor__converter__custom_8h_a6e01cf896922b5c7412d99603566d619}{tensor\+\_\+converter\+\_\+custom}} )(Gst\+Buffer $\ast$in\+\_\+buf, void $\ast$\mbox{\hyperlink{gsttensor__if_8c_a3c9cc8d6e8da85fef51da4c7115b97f6}{data}}, \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$config)
\begin{DoxyCompactList}\small\item\em Convert to tensors as customized operation. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
N\+N\+Streamer A\+P\+Is for tensor\+\_\+converter custom condition. 

G\+Streamer/\+N\+N\+Streamer Tensor-\/\+Converter Copyright (C) 2021 Gichan Jang \href{mailto:gichan2.jang@samsung.com}{\texttt{ gichan2.\+jang@samsung.\+com}}

\begin{DoxyDate}{Date}
18 Mar 2021 
\end{DoxyDate}
\begin{DoxySeeAlso}{See also}
\href{https://github.com/nnstreamer/nnstreamer}{\texttt{ https\+://github.\+com/nnstreamer/nnstreamer}} 
\end{DoxySeeAlso}
\begin{DoxyAuthor}{Author}
Gichan Jang \href{mailto:gichan2.jang@samsung.com}{\texttt{ gichan2.\+jang@samsung.\+com}} 
\end{DoxyAuthor}
\begin{DoxyRefDesc}{Bug}
\item[\mbox{\hyperlink{bug__bug000079}{Bug}}]No known bugs except for N\+YI items\end{DoxyRefDesc}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{tensor__converter__custom_8h_af29f7bbcd5f3b0b8ddc7ae773eb770dc}\label{tensor__converter__custom_8h_af29f7bbcd5f3b0b8ddc7ae773eb770dc}} 
\index{tensor\_converter\_custom.h@{tensor\_converter\_custom.h}!nnstreamer\_converter\_custom\_register@{nnstreamer\_converter\_custom\_register}}
\index{nnstreamer\_converter\_custom\_register@{nnstreamer\_converter\_custom\_register}!tensor\_converter\_custom.h@{tensor\_converter\_custom.h}}
\doxysubsubsection{\texorpdfstring{nnstreamer\_converter\_custom\_register()}{nnstreamer\_converter\_custom\_register()}}
{\footnotesize\ttfamily int nnstreamer\+\_\+converter\+\_\+custom\+\_\+register (\begin{DoxyParamCaption}\item[{const gchar $\ast$}]{name,  }\item[{\mbox{\hyperlink{tensor__converter__custom_8h_a6e01cf896922b5c7412d99603566d619}{tensor\+\_\+converter\+\_\+custom}}}]{func,  }\item[{void $\ast$}]{data }\end{DoxyParamCaption})}



Register the custom callback function. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em name} & The name of tensor\+\_\+converter custom callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em func} & The custom condition function body \\
\hline
 & {\em \mbox{[}in/out\mbox{]}} & data The internal data for the function \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 if success. -\/E\+R\+R\+NO if error.
\end{DoxyReturn}
Register the custom callback function.

\begin{DoxyReturn}{Returns}
0 if success. -\/E\+R\+R\+NO if error. 
\end{DoxyReturn}


Definition at line 2473 of file gsttensor\+\_\+converter.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__converter__custom_8h_af29f7bbcd5f3b0b8ddc7ae773eb770dc_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{tensor__converter__custom_8h_ad95aaba85ff633b94836e4968fd7f195}\label{tensor__converter__custom_8h_ad95aaba85ff633b94836e4968fd7f195}} 
\index{tensor\_converter\_custom.h@{tensor\_converter\_custom.h}!nnstreamer\_converter\_custom\_unregister@{nnstreamer\_converter\_custom\_unregister}}
\index{nnstreamer\_converter\_custom\_unregister@{nnstreamer\_converter\_custom\_unregister}!tensor\_converter\_custom.h@{tensor\_converter\_custom.h}}
\doxysubsubsection{\texorpdfstring{nnstreamer\_converter\_custom\_unregister()}{nnstreamer\_converter\_custom\_unregister()}}
{\footnotesize\ttfamily int nnstreamer\+\_\+converter\+\_\+custom\+\_\+unregister (\begin{DoxyParamCaption}\item[{const gchar $\ast$}]{name }\end{DoxyParamCaption})}



Unregister the custom callback function. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em name} & The registered name of tensor\+\_\+converter custom callback function. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 if success. -\/E\+R\+R\+NO if error.
\end{DoxyReturn}
Unregister the custom callback function.

\begin{DoxyReturn}{Returns}
0 if success. -\/E\+R\+R\+NO if error. 
\end{DoxyReturn}


Definition at line 2500 of file gsttensor\+\_\+converter.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__converter__custom_8h_ad95aaba85ff633b94836e4968fd7f195_cgraph}
\end{center}
\end{figure}


\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{tensor__converter__custom_8h_a6e01cf896922b5c7412d99603566d619}\label{tensor__converter__custom_8h_a6e01cf896922b5c7412d99603566d619}} 
\index{tensor\_converter\_custom.h@{tensor\_converter\_custom.h}!tensor\_converter\_custom@{tensor\_converter\_custom}}
\index{tensor\_converter\_custom@{tensor\_converter\_custom}!tensor\_converter\_custom.h@{tensor\_converter\_custom.h}}
\doxysubsubsection{\texorpdfstring{tensor\_converter\_custom}{tensor\_converter\_custom}}
{\footnotesize\ttfamily G\+\_\+\+B\+E\+G\+I\+N\+\_\+\+D\+E\+C\+LS typedef Gst\+Buffer$\ast$($\ast$ tensor\+\_\+converter\+\_\+custom) (Gst\+Buffer $\ast$in\+\_\+buf, void $\ast$\mbox{\hyperlink{gsttensor__if_8c_a3c9cc8d6e8da85fef51da4c7115b97f6}{data}}, \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$config)}



Convert to tensors as customized operation. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em in\+\_\+buf} & the input stream buffer \\
\hline
 & {\em \mbox{[}in/out\mbox{]}} & data private data for the callback \\
\hline
\mbox{\texttt{ out}}  & {\em config} & tensors config structure to be filled \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
output buffer filled by user 
\end{DoxyReturn}


Definition at line 31 of file tensor\+\_\+converter\+\_\+custom.\+h.

