\hypertarget{tensor__decoder__custom_8h}{}\doxysection{nnstreamer/include/tensor\+\_\+decoder\+\_\+custom.h File Reference}
\label{tensor__decoder__custom_8h}\index{nnstreamer/include/tensor\_decoder\_custom.h@{nnstreamer/include/tensor\_decoder\_custom.h}}


N\+N\+Streamer A\+P\+Is for tensor\+\_\+decoder 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\+\_\+decoder\+\_\+custom.\+h\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=332pt]{tensor__decoder__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=344pt]{tensor__decoder__custom_8h__dep__incl}
\end{center}
\end{figure}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{tensor__decoder__custom_8h_a443834dff1cea4b10c82c0aecc183dd5}{nnstreamer\+\_\+decoder\+\_\+custom\+\_\+register}} (const gchar $\ast$name, \mbox{\hyperlink{tensor__decoder__custom_8h_ac6be8b41e6341d2a118b65ce2ba04900}{tensor\+\_\+decoder\+\_\+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__decoder__custom_8h_a0630a5d8fb076325a488a1fdd74b2a9d}{nnstreamer\+\_\+decoder\+\_\+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 int($\ast$ \mbox{\hyperlink{tensor__decoder__custom_8h_ac6be8b41e6341d2a118b65ce2ba04900}{tensor\+\_\+decoder\+\_\+custom}} )(const \mbox{\hyperlink{structGstTensorMemory}{Gst\+Tensor\+Memory}} $\ast$input, const \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$config, void $\ast$\mbox{\hyperlink{gsttensor__if_8c_a3c9cc8d6e8da85fef51da4c7115b97f6}{data}}, Gst\+Buffer $\ast$out\+\_\+buf)
\begin{DoxyCompactList}\small\item\em Decode from tensors to media as customized operation. \end{DoxyCompactList}\end{DoxyCompactItemize}


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

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

\begin{DoxyDate}{Date}
22 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__bug000080}{Bug}}]No known bugs except for N\+YI items\end{DoxyRefDesc}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{tensor__decoder__custom_8h_a443834dff1cea4b10c82c0aecc183dd5}\label{tensor__decoder__custom_8h_a443834dff1cea4b10c82c0aecc183dd5}} 
\index{tensor\_decoder\_custom.h@{tensor\_decoder\_custom.h}!nnstreamer\_decoder\_custom\_register@{nnstreamer\_decoder\_custom\_register}}
\index{nnstreamer\_decoder\_custom\_register@{nnstreamer\_decoder\_custom\_register}!tensor\_decoder\_custom.h@{tensor\_decoder\_custom.h}}
\doxysubsubsection{\texorpdfstring{nnstreamer\_decoder\_custom\_register()}{nnstreamer\_decoder\_custom\_register()}}
{\footnotesize\ttfamily int nnstreamer\+\_\+decoder\+\_\+custom\+\_\+register (\begin{DoxyParamCaption}\item[{const gchar $\ast$}]{name,  }\item[{\mbox{\hyperlink{tensor__decoder__custom_8h_ac6be8b41e6341d2a118b65ce2ba04900}{tensor\+\_\+decoder\+\_\+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\+\_\+decoder 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 972 of file gsttensor\+\_\+decoder.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__decoder__custom_8h_a443834dff1cea4b10c82c0aecc183dd5_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{tensor__decoder__custom_8h_a0630a5d8fb076325a488a1fdd74b2a9d}\label{tensor__decoder__custom_8h_a0630a5d8fb076325a488a1fdd74b2a9d}} 
\index{tensor\_decoder\_custom.h@{tensor\_decoder\_custom.h}!nnstreamer\_decoder\_custom\_unregister@{nnstreamer\_decoder\_custom\_unregister}}
\index{nnstreamer\_decoder\_custom\_unregister@{nnstreamer\_decoder\_custom\_unregister}!tensor\_decoder\_custom.h@{tensor\_decoder\_custom.h}}
\doxysubsubsection{\texorpdfstring{nnstreamer\_decoder\_custom\_unregister()}{nnstreamer\_decoder\_custom\_unregister()}}
{\footnotesize\ttfamily int nnstreamer\+\_\+decoder\+\_\+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\+\_\+decoder 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 998 of file gsttensor\+\_\+decoder.\+c.

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


\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{tensor__decoder__custom_8h_ac6be8b41e6341d2a118b65ce2ba04900}\label{tensor__decoder__custom_8h_ac6be8b41e6341d2a118b65ce2ba04900}} 
\index{tensor\_decoder\_custom.h@{tensor\_decoder\_custom.h}!tensor\_decoder\_custom@{tensor\_decoder\_custom}}
\index{tensor\_decoder\_custom@{tensor\_decoder\_custom}!tensor\_decoder\_custom.h@{tensor\_decoder\_custom.h}}
\doxysubsubsection{\texorpdfstring{tensor\_decoder\_custom}{tensor\_decoder\_custom}}
{\footnotesize\ttfamily G\+\_\+\+B\+E\+G\+I\+N\+\_\+\+D\+E\+C\+LS typedef int($\ast$ tensor\+\_\+decoder\+\_\+custom) (const \mbox{\hyperlink{structGstTensorMemory}{Gst\+Tensor\+Memory}} $\ast$input, const \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$config, void $\ast$\mbox{\hyperlink{gsttensor__if_8c_a3c9cc8d6e8da85fef51da4c7115b97f6}{data}}, Gst\+Buffer $\ast$out\+\_\+buf)}



Decode from tensors to media as customized operation. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em input} & the input memory containing tensors \\
\hline
\mbox{\texttt{ in}}  & {\em config} & input tensors config \\
\hline
\mbox{\texttt{ in}}  & {\em data} & private data for the callback \\
\hline
\mbox{\texttt{ out}}  & {\em output} & buffer filled by user \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 if success. -\/E\+R\+R\+NO if error. 
\end{DoxyReturn}


Definition at line 32 of file tensor\+\_\+decoder\+\_\+custom.\+h.

