\hypertarget{gsttensor__decoder_8h}{}\doxysection{nnstreamer/elements/gsttensor\+\_\+decoder.h File Reference}
\label{gsttensor__decoder_8h}\index{nnstreamer/elements/gsttensor\_decoder.h@{nnstreamer/elements/gsttensor\_decoder.h}}


G\+Streamer plugin to convert tensors to media types.  


{\ttfamily \#include $<$gst/gst.\+h$>$}\newline
{\ttfamily \#include $<$gst/base/gstbasetransform.\+h$>$}\newline
{\ttfamily \#include \char`\"{}tensor\+\_\+common.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}nnstreamer\+\_\+subplugin.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}nnstreamer\+\_\+plugin\+\_\+api\+\_\+decoder.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}tensor\+\_\+decoder\+\_\+custom.\+h\char`\"{}}\newline
Include dependency graph for gsttensor\+\_\+decoder.\+h\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__decoder_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]{gsttensor__decoder_8h__dep__incl}
\end{center}
\end{figure}
\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structdecoder__custom__cb__s}{decoder\+\_\+custom\+\_\+cb\+\_\+s}}
\item 
struct \mbox{\hyperlink{struct__GstTensorDecoder}{\+\_\+\+Gst\+Tensor\+Decoder}}
\begin{DoxyCompactList}\small\item\em Internal data structure for tensordec instances. \end{DoxyCompactList}\item 
struct \mbox{\hyperlink{struct__GstTensorDecoderClass}{\+\_\+\+Gst\+Tensor\+Decoder\+Class}}
\begin{DoxyCompactList}\small\item\em Gst\+Tensor\+Decoder\+Class inherits Gst\+Base\+Transform\+Class. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{gsttensor__decoder_8h_a77a7283325c14035645b80e2e5052b28}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+ER}}~(\mbox{\hyperlink{gsttensor__decoder_8h_a88cf4bf1b88c044a32a5f9394061ff0f}{gst\+\_\+tensordec\+\_\+get\+\_\+type}}())
\item 
\#define \mbox{\hyperlink{gsttensor__decoder_8h_af6b8774b3766b7397864fedc64ae16bf}{G\+S\+T\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+ER}}(obj)~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+I\+N\+S\+T\+A\+N\+C\+E\+\_\+\+C\+A\+ST((obj),\mbox{\hyperlink{gsttensor__decoder_8h_a77a7283325c14035645b80e2e5052b28}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+ER}},\mbox{\hyperlink{gsttensor__decoder_8h_a253f099f613bbf42c02b45c82c66794b}{Gst\+Tensor\+Decoder}}))
\item 
\#define \mbox{\hyperlink{gsttensor__decoder_8h_a054c3681bec129a71571803feb905198}{G\+S\+T\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+E\+R\+\_\+\+C\+L\+A\+SS}}(klass)~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+C\+L\+A\+S\+S\+\_\+\+C\+A\+ST((klass),\mbox{\hyperlink{gsttensor__decoder_8h_a77a7283325c14035645b80e2e5052b28}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+ER}},\mbox{\hyperlink{gsttensor__decoder_8h_a6c130f36214f68d169427aae3f57551e}{Gst\+Tensor\+Decoder\+Class}}))
\item 
\#define \mbox{\hyperlink{gsttensor__decoder_8h_affed09f58cb106c541b0767f46045be6}{G\+S\+T\+\_\+\+I\+S\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+ER}}(obj)~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+I\+N\+S\+T\+A\+N\+C\+E\+\_\+\+T\+Y\+PE((obj),\mbox{\hyperlink{gsttensor__decoder_8h_a77a7283325c14035645b80e2e5052b28}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+ER}}))
\item 
\#define \mbox{\hyperlink{gsttensor__decoder_8h_a0a42678056f401264134d616d760d291}{G\+S\+T\+\_\+\+I\+S\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+E\+R\+\_\+\+C\+L\+A\+SS}}(klass)~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+C\+L\+A\+S\+S\+\_\+\+T\+Y\+PE((klass),\mbox{\hyperlink{gsttensor__decoder_8h_a77a7283325c14035645b80e2e5052b28}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+ER}}))
\item 
\#define \mbox{\hyperlink{gsttensor__decoder_8h_a203a081f4f313aedcfb480cce890074f}{G\+S\+T\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+E\+R\+\_\+\+C\+A\+ST}}(obj)~((\mbox{\hyperlink{gsttensor__decoder_8h_a253f099f613bbf42c02b45c82c66794b}{Gst\+Tensor\+Decoder}} $\ast$)(obj))
\item 
\#define \mbox{\hyperlink{gsttensor__decoder_8h_a7067f3e58a4cab9c98b60debd1d81635}{Tensor\+Dec\+Max\+Op\+Num}}~(9)
\end{DoxyCompactItemize}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \mbox{\hyperlink{struct__GstTensorDecoder}{\+\_\+\+Gst\+Tensor\+Decoder}} \mbox{\hyperlink{gsttensor__decoder_8h_a253f099f613bbf42c02b45c82c66794b}{Gst\+Tensor\+Decoder}}
\item 
typedef struct \mbox{\hyperlink{struct__GstTensorDecoderClass}{\+\_\+\+Gst\+Tensor\+Decoder\+Class}} \mbox{\hyperlink{gsttensor__decoder_8h_a6c130f36214f68d169427aae3f57551e}{Gst\+Tensor\+Decoder\+Class}}
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
G\+Type \mbox{\hyperlink{gsttensor__decoder_8h_a88cf4bf1b88c044a32a5f9394061ff0f}{gst\+\_\+tensordec\+\_\+get\+\_\+type}} (void)
\begin{DoxyCompactList}\small\item\em Get Type function required for gst elements. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
G\+Streamer plugin to convert tensors to media types. 

G\+Streamer / N\+N\+Streamer tensor\+\_\+decoder header Copyright (C) 2005 Thomas Vander Stichele \href{mailto:thomas@apestaart.org}{\texttt{ thomas@apestaart.\+org}} Copyright (C) 2005 Ronald S. Bultje \href{mailto:rbultje@ronald.bitfreak.net}{\texttt{ rbultje@ronald.\+bitfreak.\+net}} Copyright (C) 2018 Jijoong Moon \href{mailto:jijoong.moon@samsung.com}{\texttt{ jijoong.\+moon@samsung.\+com}}

This library is free software; you can redistribute it and/or modify it under the terms of the G\+NU Library General Public License as published by the Free Software Foundation; version 2.\+1 of the License.

This library is distributed in the hope that it will be useful, but W\+I\+T\+H\+O\+UT A\+NY W\+A\+R\+R\+A\+N\+TY; without even the implied warranty of M\+E\+R\+C\+H\+A\+N\+T\+A\+B\+I\+L\+I\+TY or F\+I\+T\+N\+E\+SS F\+OR A P\+A\+R\+T\+I\+C\+U\+L\+AR P\+U\+R\+P\+O\+SE. See the G\+NU Library General Public License for more details.

\begin{DoxyDate}{Date}
26 Mar 2018 
\end{DoxyDate}
\begin{DoxySeeAlso}{See also}
\href{https://github.com/nnstreamer/nnstreamer}{\texttt{ https\+://github.\+com/nnstreamer/nnstreamer}} 
\end{DoxySeeAlso}
\begin{DoxyAuthor}{Author}
Jijoong Moon \href{mailto:jijoong.moon@samsung.com}{\texttt{ jijoong.\+moon@samsung.\+com}} 
\end{DoxyAuthor}
\begin{DoxyRefDesc}{Bug}
\item[\mbox{\hyperlink{bug__bug000037}{Bug}}]No known bugs except for N\+YI items\end{DoxyRefDesc}


\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{gsttensor__decoder_8h_affed09f58cb106c541b0767f46045be6}\label{gsttensor__decoder_8h_affed09f58cb106c541b0767f46045be6}} 
\index{gsttensor\_decoder.h@{gsttensor\_decoder.h}!GST\_IS\_TENSOR\_DECODER@{GST\_IS\_TENSOR\_DECODER}}
\index{GST\_IS\_TENSOR\_DECODER@{GST\_IS\_TENSOR\_DECODER}!gsttensor\_decoder.h@{gsttensor\_decoder.h}}
\doxysubsubsection{\texorpdfstring{GST\_IS\_TENSOR\_DECODER}{GST\_IS\_TENSOR\_DECODER}}
{\footnotesize\ttfamily \#define G\+S\+T\+\_\+\+I\+S\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+ER(\begin{DoxyParamCaption}\item[{}]{obj }\end{DoxyParamCaption})~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+I\+N\+S\+T\+A\+N\+C\+E\+\_\+\+T\+Y\+PE((obj),\mbox{\hyperlink{gsttensor__decoder_8h_a77a7283325c14035645b80e2e5052b28}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+ER}}))}



Definition at line 48 of file gsttensor\+\_\+decoder.\+h.

\mbox{\Hypertarget{gsttensor__decoder_8h_a0a42678056f401264134d616d760d291}\label{gsttensor__decoder_8h_a0a42678056f401264134d616d760d291}} 
\index{gsttensor\_decoder.h@{gsttensor\_decoder.h}!GST\_IS\_TENSOR\_DECODER\_CLASS@{GST\_IS\_TENSOR\_DECODER\_CLASS}}
\index{GST\_IS\_TENSOR\_DECODER\_CLASS@{GST\_IS\_TENSOR\_DECODER\_CLASS}!gsttensor\_decoder.h@{gsttensor\_decoder.h}}
\doxysubsubsection{\texorpdfstring{GST\_IS\_TENSOR\_DECODER\_CLASS}{GST\_IS\_TENSOR\_DECODER\_CLASS}}
{\footnotesize\ttfamily \#define G\+S\+T\+\_\+\+I\+S\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+E\+R\+\_\+\+C\+L\+A\+SS(\begin{DoxyParamCaption}\item[{}]{klass }\end{DoxyParamCaption})~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+C\+L\+A\+S\+S\+\_\+\+T\+Y\+PE((klass),\mbox{\hyperlink{gsttensor__decoder_8h_a77a7283325c14035645b80e2e5052b28}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+ER}}))}



Definition at line 50 of file gsttensor\+\_\+decoder.\+h.

\mbox{\Hypertarget{gsttensor__decoder_8h_af6b8774b3766b7397864fedc64ae16bf}\label{gsttensor__decoder_8h_af6b8774b3766b7397864fedc64ae16bf}} 
\index{gsttensor\_decoder.h@{gsttensor\_decoder.h}!GST\_TENSOR\_DECODER@{GST\_TENSOR\_DECODER}}
\index{GST\_TENSOR\_DECODER@{GST\_TENSOR\_DECODER}!gsttensor\_decoder.h@{gsttensor\_decoder.h}}
\doxysubsubsection{\texorpdfstring{GST\_TENSOR\_DECODER}{GST\_TENSOR\_DECODER}}
{\footnotesize\ttfamily \#define G\+S\+T\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+ER(\begin{DoxyParamCaption}\item[{}]{obj }\end{DoxyParamCaption})~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+I\+N\+S\+T\+A\+N\+C\+E\+\_\+\+C\+A\+ST((obj),\mbox{\hyperlink{gsttensor__decoder_8h_a77a7283325c14035645b80e2e5052b28}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+ER}},\mbox{\hyperlink{gsttensor__decoder_8h_a253f099f613bbf42c02b45c82c66794b}{Gst\+Tensor\+Decoder}}))}



Definition at line 44 of file gsttensor\+\_\+decoder.\+h.

\mbox{\Hypertarget{gsttensor__decoder_8h_a203a081f4f313aedcfb480cce890074f}\label{gsttensor__decoder_8h_a203a081f4f313aedcfb480cce890074f}} 
\index{gsttensor\_decoder.h@{gsttensor\_decoder.h}!GST\_TENSOR\_DECODER\_CAST@{GST\_TENSOR\_DECODER\_CAST}}
\index{GST\_TENSOR\_DECODER\_CAST@{GST\_TENSOR\_DECODER\_CAST}!gsttensor\_decoder.h@{gsttensor\_decoder.h}}
\doxysubsubsection{\texorpdfstring{GST\_TENSOR\_DECODER\_CAST}{GST\_TENSOR\_DECODER\_CAST}}
{\footnotesize\ttfamily \#define G\+S\+T\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+E\+R\+\_\+\+C\+A\+ST(\begin{DoxyParamCaption}\item[{}]{obj }\end{DoxyParamCaption})~((\mbox{\hyperlink{gsttensor__decoder_8h_a253f099f613bbf42c02b45c82c66794b}{Gst\+Tensor\+Decoder}} $\ast$)(obj))}



Definition at line 52 of file gsttensor\+\_\+decoder.\+h.

\mbox{\Hypertarget{gsttensor__decoder_8h_a054c3681bec129a71571803feb905198}\label{gsttensor__decoder_8h_a054c3681bec129a71571803feb905198}} 
\index{gsttensor\_decoder.h@{gsttensor\_decoder.h}!GST\_TENSOR\_DECODER\_CLASS@{GST\_TENSOR\_DECODER\_CLASS}}
\index{GST\_TENSOR\_DECODER\_CLASS@{GST\_TENSOR\_DECODER\_CLASS}!gsttensor\_decoder.h@{gsttensor\_decoder.h}}
\doxysubsubsection{\texorpdfstring{GST\_TENSOR\_DECODER\_CLASS}{GST\_TENSOR\_DECODER\_CLASS}}
{\footnotesize\ttfamily \#define G\+S\+T\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+E\+R\+\_\+\+C\+L\+A\+SS(\begin{DoxyParamCaption}\item[{}]{klass }\end{DoxyParamCaption})~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+C\+L\+A\+S\+S\+\_\+\+C\+A\+ST((klass),\mbox{\hyperlink{gsttensor__decoder_8h_a77a7283325c14035645b80e2e5052b28}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+ER}},\mbox{\hyperlink{gsttensor__decoder_8h_a6c130f36214f68d169427aae3f57551e}{Gst\+Tensor\+Decoder\+Class}}))}



Definition at line 46 of file gsttensor\+\_\+decoder.\+h.

\mbox{\Hypertarget{gsttensor__decoder_8h_a77a7283325c14035645b80e2e5052b28}\label{gsttensor__decoder_8h_a77a7283325c14035645b80e2e5052b28}} 
\index{gsttensor\_decoder.h@{gsttensor\_decoder.h}!GST\_TYPE\_TENSOR\_DECODER@{GST\_TYPE\_TENSOR\_DECODER}}
\index{GST\_TYPE\_TENSOR\_DECODER@{GST\_TYPE\_TENSOR\_DECODER}!gsttensor\_decoder.h@{gsttensor\_decoder.h}}
\doxysubsubsection{\texorpdfstring{GST\_TYPE\_TENSOR\_DECODER}{GST\_TYPE\_TENSOR\_DECODER}}
{\footnotesize\ttfamily \#define G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+D\+E\+C\+O\+D\+ER~(\mbox{\hyperlink{gsttensor__decoder_8h_a88cf4bf1b88c044a32a5f9394061ff0f}{gst\+\_\+tensordec\+\_\+get\+\_\+type}}())}



Definition at line 42 of file gsttensor\+\_\+decoder.\+h.

\mbox{\Hypertarget{gsttensor__decoder_8h_a7067f3e58a4cab9c98b60debd1d81635}\label{gsttensor__decoder_8h_a7067f3e58a4cab9c98b60debd1d81635}} 
\index{gsttensor\_decoder.h@{gsttensor\_decoder.h}!TensorDecMaxOpNum@{TensorDecMaxOpNum}}
\index{TensorDecMaxOpNum@{TensorDecMaxOpNum}!gsttensor\_decoder.h@{gsttensor\_decoder.h}}
\doxysubsubsection{\texorpdfstring{TensorDecMaxOpNum}{TensorDecMaxOpNum}}
{\footnotesize\ttfamily \#define Tensor\+Dec\+Max\+Op\+Num~(9)}



Definition at line 62 of file gsttensor\+\_\+decoder.\+h.



\doxysubsection{Typedef Documentation}
\mbox{\Hypertarget{gsttensor__decoder_8h_a253f099f613bbf42c02b45c82c66794b}\label{gsttensor__decoder_8h_a253f099f613bbf42c02b45c82c66794b}} 
\index{gsttensor\_decoder.h@{gsttensor\_decoder.h}!GstTensorDecoder@{GstTensorDecoder}}
\index{GstTensorDecoder@{GstTensorDecoder}!gsttensor\_decoder.h@{gsttensor\_decoder.h}}
\doxysubsubsection{\texorpdfstring{GstTensorDecoder}{GstTensorDecoder}}
{\footnotesize\ttfamily typedef struct \mbox{\hyperlink{struct__GstTensorDecoder}{\+\_\+\+Gst\+Tensor\+Decoder}} \mbox{\hyperlink{gsttensor__decoder_8h_a253f099f613bbf42c02b45c82c66794b}{Gst\+Tensor\+Decoder}}}



Definition at line 54 of file gsttensor\+\_\+decoder.\+h.

\mbox{\Hypertarget{gsttensor__decoder_8h_a6c130f36214f68d169427aae3f57551e}\label{gsttensor__decoder_8h_a6c130f36214f68d169427aae3f57551e}} 
\index{gsttensor\_decoder.h@{gsttensor\_decoder.h}!GstTensorDecoderClass@{GstTensorDecoderClass}}
\index{GstTensorDecoderClass@{GstTensorDecoderClass}!gsttensor\_decoder.h@{gsttensor\_decoder.h}}
\doxysubsubsection{\texorpdfstring{GstTensorDecoderClass}{GstTensorDecoderClass}}
{\footnotesize\ttfamily typedef struct \mbox{\hyperlink{struct__GstTensorDecoderClass}{\+\_\+\+Gst\+Tensor\+Decoder\+Class}} \mbox{\hyperlink{gsttensor__decoder_8h_a6c130f36214f68d169427aae3f57551e}{Gst\+Tensor\+Decoder\+Class}}}



Definition at line 55 of file gsttensor\+\_\+decoder.\+h.



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{gsttensor__decoder_8h_a88cf4bf1b88c044a32a5f9394061ff0f}\label{gsttensor__decoder_8h_a88cf4bf1b88c044a32a5f9394061ff0f}} 
\index{gsttensor\_decoder.h@{gsttensor\_decoder.h}!gst\_tensordec\_get\_type@{gst\_tensordec\_get\_type}}
\index{gst\_tensordec\_get\_type@{gst\_tensordec\_get\_type}!gsttensor\_decoder.h@{gsttensor\_decoder.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensordec\_get\_type()}{gst\_tensordec\_get\_type()}}
{\footnotesize\ttfamily G\+Type gst\+\_\+tensordec\+\_\+get\+\_\+type (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Get Type function required for gst elements. 

