\hypertarget{gsttensor__sparseenc_8c}{}\doxysection{nnstreamer/elements/gsttensor\+\_\+sparseenc.c File Reference}
\label{gsttensor__sparseenc_8c}\index{nnstreamer/elements/gsttensor\_sparseenc.c@{nnstreamer/elements/gsttensor\_sparseenc.c}}


G\+Streamer element to encode dense tensors into sparse tensors.  


{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$nnstreamer\+\_\+util.\+h$>$}\newline
{\ttfamily \#include \char`\"{}gsttensor\+\_\+sparseenc.\+h\char`\"{}}\newline
Include dependency graph for gsttensor\+\_\+sparseenc.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8c__incl}
\end{center}
\end{figure}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{gsttensor__sparseenc_8c_a49606be7356624568932ec81c0d429f4}{D\+BG}}~(!self-\/$>$silent)
\begin{DoxyCompactList}\small\item\em Macro for debug mode. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{gsttensor__sparseenc_8c_adef911caed7c65a1643062817f4a59d7}{G\+S\+T\+\_\+\+C\+A\+T\+\_\+\+D\+E\+F\+A\+U\+LT}}~gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+debug
\item 
\#define \mbox{\hyperlink{gsttensor__sparseenc_8c_a18d799dbbbb0fd0132807aa9bb7d9adf}{D\+E\+F\+A\+U\+L\+T\+\_\+\+S\+I\+L\+E\+NT}}~\mbox{\hyperlink{gsttensor__if_8c_a834713a9a17ec303f21e3dc4ecbe9161}{T\+R\+UE}}
\begin{DoxyCompactList}\small\item\em Flag to print minimized log. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{gsttensor__sparseenc_8c_ae37d1eac1e2399bd4070de3f8f2dd249}{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+parent\+\_\+class}}~parent\+\_\+class
\end{DoxyCompactItemize}
\doxysubsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \{ \mbox{\hyperlink{gsttensor__sparseenc_8c_a0ed680fdb405e7195d9f14032851eebbac37dda0da1a44e10c0504afeeb863f3c}{P\+R\+O\+P\+\_\+0}}, 
\mbox{\hyperlink{gsttensor__sparseenc_8c_a0ed680fdb405e7195d9f14032851eebba707b785966c328fb5a6088b7879c7bb5}{P\+R\+O\+P\+\_\+\+S\+I\+L\+E\+NT}}
 \}
\begin{DoxyCompactList}\small\item\em tensor\+\_\+sparse\+\_\+enc properties \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{gsttensor__sparseenc_8c_a3d157eb1943c14d03183fbcc9b67cc30}{G\+S\+T\+\_\+\+D\+E\+B\+U\+G\+\_\+\+C\+A\+T\+E\+G\+O\+R\+Y\+\_\+\+S\+T\+A\+T\+IC}} (gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+debug)
\item 
\mbox{\hyperlink{gsttensor__sparseenc_8c_a1c9380278b16568d974991c525c477c0}{G\+\_\+\+D\+E\+F\+I\+N\+E\+\_\+\+T\+Y\+PE}} (\mbox{\hyperlink{gsttensor__sparseenc_8h_a2ac72bdec42786527950b6f4a9fac306}{Gst\+Tensor\+Sparse\+Enc}}, gst\+\_\+tensor\+\_\+sparse\+\_\+enc, G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+E\+L\+E\+M\+E\+NT)
\item 
static void \mbox{\hyperlink{gsttensor__sparseenc_8c_af83491f0b40809739cdb43b692639760}{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+finalize}} (G\+Object $\ast$object)
\begin{DoxyCompactList}\small\item\em Function to finalize instance. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{gsttensor__sparseenc_8c_acf46ffb267405d85361e3aba09388629}{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+set\+\_\+property}} (G\+Object $\ast$object, guint prop\+\_\+id, const G\+Value $\ast$value, G\+Param\+Spec $\ast$pspec)
\begin{DoxyCompactList}\small\item\em Setter for tensor\+\_\+sparse\+\_\+enc properties. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{gsttensor__sparseenc_8c_acf06386387ff32596c32f4536b7c59e7}{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+get\+\_\+property}} (G\+Object $\ast$object, guint prop\+\_\+id, G\+Value $\ast$value, G\+Param\+Spec $\ast$pspec)
\begin{DoxyCompactList}\small\item\em Getter for tensor\+\_\+sparse\+\_\+enc properties. \end{DoxyCompactList}\item 
static Gst\+Flow\+Return \mbox{\hyperlink{gsttensor__sparseenc_8c_ac47fe32209c09ee3d8676d61d06f75eb}{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+chain}} (Gst\+Pad $\ast$pad, Gst\+Object $\ast$parent, Gst\+Buffer $\ast$buf)
\begin{DoxyCompactList}\small\item\em Internal function to transform the input buffer. \end{DoxyCompactList}\item 
static Gst\+Caps $\ast$ \mbox{\hyperlink{gsttensor__sparseenc_8c_a4d984b39de2b709105dbb3324809d1cc}{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+query\+\_\+caps}} (\mbox{\hyperlink{gsttensor__sparseenc_8h_a2ac72bdec42786527950b6f4a9fac306}{Gst\+Tensor\+Sparse\+Enc}} $\ast$self, Gst\+Pad $\ast$pad, Gst\+Caps $\ast$filter)
\begin{DoxyCompactList}\small\item\em Get pad caps for caps negotiation. \end{DoxyCompactList}\item 
static gboolean \mbox{\hyperlink{gsttensor__sparseenc_8c_ac201cd30942aca5a1c2140cf65342a2e}{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+sink\+\_\+event}} (Gst\+Pad $\ast$pad, Gst\+Object $\ast$parent, Gst\+Event $\ast$event)
\begin{DoxyCompactList}\small\item\em This function handles sink pad event. \end{DoxyCompactList}\item 
static gboolean \mbox{\hyperlink{gsttensor__sparseenc_8c_a03e8c36d01b072a525ca9b4f669ebbff}{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+sink\+\_\+query}} (Gst\+Pad $\ast$pad, Gst\+Object $\ast$parent, Gst\+Query $\ast$query)
\begin{DoxyCompactList}\small\item\em This function handles sink pad query. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{gsttensor__sparseenc_8c_a8d2e1380328e999508db2865725a4ce9}{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+class\+\_\+init}} (\mbox{\hyperlink{gsttensor__sparseenc_8h_ad1afe493ee441fc540cccdb34eef3525}{Gst\+Tensor\+Sparse\+Enc\+Class}} $\ast$klass)
\begin{DoxyCompactList}\small\item\em Initialize the tensor\+\_\+sparse\textquotesingle{}s class. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{gsttensor__sparseenc_8c_a4a2c4f6dfba65b8ee800218e3423a339}{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+init}} (\mbox{\hyperlink{gsttensor__sparseenc_8h_a2ac72bdec42786527950b6f4a9fac306}{Gst\+Tensor\+Sparse\+Enc}} $\ast$self)
\begin{DoxyCompactList}\small\item\em Initialize tensor\+\_\+sparse\+\_\+enc element. \end{DoxyCompactList}\item 
static gboolean \mbox{\hyperlink{gsttensor__sparseenc_8c_a550fa80202536f88a57eb93ec78777f0}{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+parse\+\_\+caps}} (\mbox{\hyperlink{gsttensor__sparseenc_8h_a2ac72bdec42786527950b6f4a9fac306}{Gst\+Tensor\+Sparse\+Enc}} $\ast$self, const Gst\+Caps $\ast$caps)
\begin{DoxyCompactList}\small\item\em Parse caps and set tensors config. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
static Gst\+Static\+Pad\+Template \mbox{\hyperlink{gsttensor__sparseenc_8c_a26e2485c5fd610ac13e266fb32008cf7}{sink\+\_\+template}}
\begin{DoxyCompactList}\small\item\em Template for sink pad. \end{DoxyCompactList}\item 
static Gst\+Static\+Pad\+Template \mbox{\hyperlink{gsttensor__sparseenc_8c_a643731249f31c7864f3fb8d64d41a373}{src\+\_\+template}}
\begin{DoxyCompactList}\small\item\em Template for src pad. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
G\+Streamer element to encode dense tensors into sparse tensors. 

Copyright (C) 2021 Samsung Electronics Co., Ltd.

\begin{DoxyDate}{Date}
27 Jul 2021 
\end{DoxyDate}
\begin{DoxySeeAlso}{See also}
\href{https://github.com/nnstreamer/nnstreamer}{\texttt{ https\+://github.\+com/nnstreamer/nnstreamer}} 
\end{DoxySeeAlso}
\begin{DoxyAuthor}{Author}
Yongjoo Ahn \href{mailto:yongjoo1.ahn@samsung.com}{\texttt{ yongjoo1.\+ahn@samsung.\+com}} 
\end{DoxyAuthor}
\begin{DoxyRefDesc}{Bug}
\item[\mbox{\hyperlink{bug__bug000058}{Bug}}]No known bugs except for N\+YI items \end{DoxyRefDesc}


\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{gsttensor__sparseenc_8c_a49606be7356624568932ec81c0d429f4}\label{gsttensor__sparseenc_8c_a49606be7356624568932ec81c0d429f4}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!DBG@{DBG}}
\index{DBG@{DBG}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{DBG}{DBG}}
{\footnotesize\ttfamily \#define D\+BG~(!self-\/$>$silent)}



Macro for debug mode. 

S\+E\+C\+T\+I\+ON\+:element-\/tensor\+\_\+sparse\+\_\+enc

tensor\+\_\+sparse\+\_\+enc is a G\+Streamer element to encode incoming tensor into sparse format.

The input is always in the format of other/tensors,format=static. The output is always in the format of ohter/tensors,format=sparse.

Please see also tensor\+\_\+sparse\+\_\+dec.

$<$refsect2$>$ $<$title$>$Example launch line$<$/title$>$ $\vert$\mbox{[} gst-\/launch-\/1.\+0 ... ! other/tensors,format=static ! \textbackslash{} tensor\+\_\+sparse\+\_\+enc ! tensor\+\_\+sink \mbox{]}$\vert$ $<$/refsect2$>$ 

Definition at line 44 of file gsttensor\+\_\+sparseenc.\+c.

\mbox{\Hypertarget{gsttensor__sparseenc_8c_a18d799dbbbb0fd0132807aa9bb7d9adf}\label{gsttensor__sparseenc_8c_a18d799dbbbb0fd0132807aa9bb7d9adf}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!DEFAULT\_SILENT@{DEFAULT\_SILENT}}
\index{DEFAULT\_SILENT@{DEFAULT\_SILENT}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{DEFAULT\_SILENT}{DEFAULT\_SILENT}}
{\footnotesize\ttfamily \#define D\+E\+F\+A\+U\+L\+T\+\_\+\+S\+I\+L\+E\+NT~\mbox{\hyperlink{gsttensor__if_8c_a834713a9a17ec303f21e3dc4ecbe9161}{T\+R\+UE}}}



Flag to print minimized log. 



Definition at line 62 of file gsttensor\+\_\+sparseenc.\+c.

\mbox{\Hypertarget{gsttensor__sparseenc_8c_adef911caed7c65a1643062817f4a59d7}\label{gsttensor__sparseenc_8c_adef911caed7c65a1643062817f4a59d7}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!GST\_CAT\_DEFAULT@{GST\_CAT\_DEFAULT}}
\index{GST\_CAT\_DEFAULT@{GST\_CAT\_DEFAULT}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{GST\_CAT\_DEFAULT}{GST\_CAT\_DEFAULT}}
{\footnotesize\ttfamily \#define G\+S\+T\+\_\+\+C\+A\+T\+\_\+\+D\+E\+F\+A\+U\+LT~gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+debug}



Definition at line 48 of file gsttensor\+\_\+sparseenc.\+c.

\mbox{\Hypertarget{gsttensor__sparseenc_8c_ae37d1eac1e2399bd4070de3f8f2dd249}\label{gsttensor__sparseenc_8c_ae37d1eac1e2399bd4070de3f8f2dd249}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!gst\_tensor\_sparse\_enc\_parent\_class@{gst\_tensor\_sparse\_enc\_parent\_class}}
\index{gst\_tensor\_sparse\_enc\_parent\_class@{gst\_tensor\_sparse\_enc\_parent\_class}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_sparse\_enc\_parent\_class}{gst\_tensor\_sparse\_enc\_parent\_class}}
{\footnotesize\ttfamily \#define gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+parent\+\_\+class~parent\+\_\+class}



Definition at line 80 of file gsttensor\+\_\+sparseenc.\+c.



\doxysubsection{Enumeration Type Documentation}
\mbox{\Hypertarget{gsttensor__sparseenc_8c_a0ed680fdb405e7195d9f14032851eebb}\label{gsttensor__sparseenc_8c_a0ed680fdb405e7195d9f14032851eebb}} 
\doxysubsubsection{\texorpdfstring{anonymous enum}{anonymous enum}}
{\footnotesize\ttfamily anonymous enum}



tensor\+\_\+sparse\+\_\+enc properties 

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{PROP\_0@{PROP\_0}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!PROP\_0@{PROP\_0}}}\mbox{\Hypertarget{gsttensor__sparseenc_8c_a0ed680fdb405e7195d9f14032851eebbac37dda0da1a44e10c0504afeeb863f3c}\label{gsttensor__sparseenc_8c_a0ed680fdb405e7195d9f14032851eebbac37dda0da1a44e10c0504afeeb863f3c}} 
P\+R\+O\+P\+\_\+0&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{PROP\_SILENT@{PROP\_SILENT}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!PROP\_SILENT@{PROP\_SILENT}}}\mbox{\Hypertarget{gsttensor__sparseenc_8c_a0ed680fdb405e7195d9f14032851eebba707b785966c328fb5a6088b7879c7bb5}\label{gsttensor__sparseenc_8c_a0ed680fdb405e7195d9f14032851eebba707b785966c328fb5a6088b7879c7bb5}} 
P\+R\+O\+P\+\_\+\+S\+I\+L\+E\+NT&\\
\hline

\end{DoxyEnumFields}


Definition at line 53 of file gsttensor\+\_\+sparseenc.\+c.



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{gsttensor__sparseenc_8c_a1c9380278b16568d974991c525c477c0}\label{gsttensor__sparseenc_8c_a1c9380278b16568d974991c525c477c0}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!G\_DEFINE\_TYPE@{G\_DEFINE\_TYPE}}
\index{G\_DEFINE\_TYPE@{G\_DEFINE\_TYPE}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{G\_DEFINE\_TYPE()}{G\_DEFINE\_TYPE()}}
{\footnotesize\ttfamily G\+\_\+\+D\+E\+F\+I\+N\+E\+\_\+\+T\+Y\+PE (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gsttensor__sparseenc_8h_a2ac72bdec42786527950b6f4a9fac306}{Gst\+Tensor\+Sparse\+Enc}}}]{,  }\item[{gst\+\_\+tensor\+\_\+sparse\+\_\+enc}]{,  }\item[{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+E\+L\+E\+M\+E\+NT}]{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{gsttensor__sparseenc_8c_a3d157eb1943c14d03183fbcc9b67cc30}\label{gsttensor__sparseenc_8c_a3d157eb1943c14d03183fbcc9b67cc30}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!GST\_DEBUG\_CATEGORY\_STATIC@{GST\_DEBUG\_CATEGORY\_STATIC}}
\index{GST\_DEBUG\_CATEGORY\_STATIC@{GST\_DEBUG\_CATEGORY\_STATIC}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{GST\_DEBUG\_CATEGORY\_STATIC()}{GST\_DEBUG\_CATEGORY\_STATIC()}}
{\footnotesize\ttfamily G\+S\+T\+\_\+\+D\+E\+B\+U\+G\+\_\+\+C\+A\+T\+E\+G\+O\+R\+Y\+\_\+\+S\+T\+A\+T\+IC (\begin{DoxyParamCaption}\item[{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+debug}]{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{gsttensor__sparseenc_8c_ac47fe32209c09ee3d8676d61d06f75eb}\label{gsttensor__sparseenc_8c_ac47fe32209c09ee3d8676d61d06f75eb}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!gst\_tensor\_sparse\_enc\_chain@{gst\_tensor\_sparse\_enc\_chain}}
\index{gst\_tensor\_sparse\_enc\_chain@{gst\_tensor\_sparse\_enc\_chain}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_sparse\_enc\_chain()}{gst\_tensor\_sparse\_enc\_chain()}}
{\footnotesize\ttfamily static Gst\+Flow\+Return gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+chain (\begin{DoxyParamCaption}\item[{Gst\+Pad $\ast$}]{pad,  }\item[{Gst\+Object $\ast$}]{parent,  }\item[{Gst\+Buffer $\ast$}]{buf }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Internal function to transform the input buffer. 



Definition at line 372 of file gsttensor\+\_\+sparseenc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8c_ac47fe32209c09ee3d8676d61d06f75eb_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8c_ac47fe32209c09ee3d8676d61d06f75eb_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gsttensor__sparseenc_8c_a8d2e1380328e999508db2865725a4ce9}\label{gsttensor__sparseenc_8c_a8d2e1380328e999508db2865725a4ce9}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!gst\_tensor\_sparse\_enc\_class\_init@{gst\_tensor\_sparse\_enc\_class\_init}}
\index{gst\_tensor\_sparse\_enc\_class\_init@{gst\_tensor\_sparse\_enc\_class\_init}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_sparse\_enc\_class\_init()}{gst\_tensor\_sparse\_enc\_class\_init()}}
{\footnotesize\ttfamily static void gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+class\+\_\+init (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gsttensor__sparseenc_8h_ad1afe493ee441fc540cccdb34eef3525}{Gst\+Tensor\+Sparse\+Enc\+Class}} $\ast$}]{klass }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Initialize the tensor\+\_\+sparse\textquotesingle{}s class. 

\mbox{\hyperlink{struct__GstTensorSparseEnc_a2b097e6597610c6c91e8856f3341ff11}{Gst\+Tensor\+Sparse\+Enc\+::silent}}\+:

The flag to enable/disable debugging messages.

Definition at line 101 of file gsttensor\+\_\+sparseenc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8c_a8d2e1380328e999508db2865725a4ce9_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gsttensor__sparseenc_8c_af83491f0b40809739cdb43b692639760}\label{gsttensor__sparseenc_8c_af83491f0b40809739cdb43b692639760}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!gst\_tensor\_sparse\_enc\_finalize@{gst\_tensor\_sparse\_enc\_finalize}}
\index{gst\_tensor\_sparse\_enc\_finalize@{gst\_tensor\_sparse\_enc\_finalize}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_sparse\_enc\_finalize()}{gst\_tensor\_sparse\_enc\_finalize()}}
{\footnotesize\ttfamily static void gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+finalize (\begin{DoxyParamCaption}\item[{G\+Object $\ast$}]{object }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Function to finalize instance. 



Definition at line 172 of file gsttensor\+\_\+sparseenc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8c_af83491f0b40809739cdb43b692639760_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8c_af83491f0b40809739cdb43b692639760_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gsttensor__sparseenc_8c_acf06386387ff32596c32f4536b7c59e7}\label{gsttensor__sparseenc_8c_acf06386387ff32596c32f4536b7c59e7}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!gst\_tensor\_sparse\_enc\_get\_property@{gst\_tensor\_sparse\_enc\_get\_property}}
\index{gst\_tensor\_sparse\_enc\_get\_property@{gst\_tensor\_sparse\_enc\_get\_property}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_sparse\_enc\_get\_property()}{gst\_tensor\_sparse\_enc\_get\_property()}}
{\footnotesize\ttfamily static void gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+get\+\_\+property (\begin{DoxyParamCaption}\item[{G\+Object $\ast$}]{object,  }\item[{guint}]{prop\+\_\+id,  }\item[{G\+Value $\ast$}]{value,  }\item[{G\+Param\+Spec $\ast$}]{pspec }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Getter for tensor\+\_\+sparse\+\_\+enc properties. 



Definition at line 207 of file gsttensor\+\_\+sparseenc.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8c_acf06386387ff32596c32f4536b7c59e7_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gsttensor__sparseenc_8c_a4a2c4f6dfba65b8ee800218e3423a339}\label{gsttensor__sparseenc_8c_a4a2c4f6dfba65b8ee800218e3423a339}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!gst\_tensor\_sparse\_enc\_init@{gst\_tensor\_sparse\_enc\_init}}
\index{gst\_tensor\_sparse\_enc\_init@{gst\_tensor\_sparse\_enc\_init}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_sparse\_enc\_init()}{gst\_tensor\_sparse\_enc\_init()}}
{\footnotesize\ttfamily static void gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+init (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gsttensor__sparseenc_8h_a2ac72bdec42786527950b6f4a9fac306}{Gst\+Tensor\+Sparse\+Enc}} $\ast$}]{self }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Initialize tensor\+\_\+sparse\+\_\+enc element. 



Definition at line 142 of file gsttensor\+\_\+sparseenc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8c_a4a2c4f6dfba65b8ee800218e3423a339_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gsttensor__sparseenc_8c_a550fa80202536f88a57eb93ec78777f0}\label{gsttensor__sparseenc_8c_a550fa80202536f88a57eb93ec78777f0}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!gst\_tensor\_sparse\_enc\_parse\_caps@{gst\_tensor\_sparse\_enc\_parse\_caps}}
\index{gst\_tensor\_sparse\_enc\_parse\_caps@{gst\_tensor\_sparse\_enc\_parse\_caps}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_sparse\_enc\_parse\_caps()}{gst\_tensor\_sparse\_enc\_parse\_caps()}}
{\footnotesize\ttfamily static gboolean gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+parse\+\_\+caps (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gsttensor__sparseenc_8h_a2ac72bdec42786527950b6f4a9fac306}{Gst\+Tensor\+Sparse\+Enc}} $\ast$}]{self,  }\item[{const Gst\+Caps $\ast$}]{caps }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Parse caps and set tensors config. 

not fully configured

Definition at line 228 of file gsttensor\+\_\+sparseenc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8c_a550fa80202536f88a57eb93ec78777f0_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8c_a550fa80202536f88a57eb93ec78777f0_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gsttensor__sparseenc_8c_a4d984b39de2b709105dbb3324809d1cc}\label{gsttensor__sparseenc_8c_a4d984b39de2b709105dbb3324809d1cc}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!gst\_tensor\_sparse\_enc\_query\_caps@{gst\_tensor\_sparse\_enc\_query\_caps}}
\index{gst\_tensor\_sparse\_enc\_query\_caps@{gst\_tensor\_sparse\_enc\_query\_caps}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_sparse\_enc\_query\_caps()}{gst\_tensor\_sparse\_enc\_query\_caps()}}
{\footnotesize\ttfamily static Gst\+Caps $\ast$ gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+query\+\_\+caps (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gsttensor__sparseenc_8h_a2ac72bdec42786527950b6f4a9fac306}{Gst\+Tensor\+Sparse\+Enc}} $\ast$}]{self,  }\item[{Gst\+Pad $\ast$}]{pad,  }\item[{Gst\+Caps $\ast$}]{filter }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Get pad caps for caps negotiation. 

pad don\textquotesingle{}t have current caps. use the template caps

Definition at line 286 of file gsttensor\+\_\+sparseenc.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8c_a4d984b39de2b709105dbb3324809d1cc_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gsttensor__sparseenc_8c_acf46ffb267405d85361e3aba09388629}\label{gsttensor__sparseenc_8c_acf46ffb267405d85361e3aba09388629}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!gst\_tensor\_sparse\_enc\_set\_property@{gst\_tensor\_sparse\_enc\_set\_property}}
\index{gst\_tensor\_sparse\_enc\_set\_property@{gst\_tensor\_sparse\_enc\_set\_property}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_sparse\_enc\_set\_property()}{gst\_tensor\_sparse\_enc\_set\_property()}}
{\footnotesize\ttfamily static void gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+set\+\_\+property (\begin{DoxyParamCaption}\item[{G\+Object $\ast$}]{object,  }\item[{guint}]{prop\+\_\+id,  }\item[{const G\+Value $\ast$}]{value,  }\item[{G\+Param\+Spec $\ast$}]{pspec }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Setter for tensor\+\_\+sparse\+\_\+enc properties. 



Definition at line 186 of file gsttensor\+\_\+sparseenc.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8c_acf46ffb267405d85361e3aba09388629_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gsttensor__sparseenc_8c_ac201cd30942aca5a1c2140cf65342a2e}\label{gsttensor__sparseenc_8c_ac201cd30942aca5a1c2140cf65342a2e}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!gst\_tensor\_sparse\_enc\_sink\_event@{gst\_tensor\_sparse\_enc\_sink\_event}}
\index{gst\_tensor\_sparse\_enc\_sink\_event@{gst\_tensor\_sparse\_enc\_sink\_event}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_sparse\_enc\_sink\_event()}{gst\_tensor\_sparse\_enc\_sink\_event()}}
{\footnotesize\ttfamily static gboolean gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+sink\+\_\+event (\begin{DoxyParamCaption}\item[{Gst\+Pad $\ast$}]{pad,  }\item[{Gst\+Object $\ast$}]{parent,  }\item[{Gst\+Event $\ast$}]{event }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



This function handles sink pad event. 



Definition at line 254 of file gsttensor\+\_\+sparseenc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8c_ac201cd30942aca5a1c2140cf65342a2e_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8c_ac201cd30942aca5a1c2140cf65342a2e_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gsttensor__sparseenc_8c_a03e8c36d01b072a525ca9b4f669ebbff}\label{gsttensor__sparseenc_8c_a03e8c36d01b072a525ca9b4f669ebbff}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!gst\_tensor\_sparse\_enc\_sink\_query@{gst\_tensor\_sparse\_enc\_sink\_query}}
\index{gst\_tensor\_sparse\_enc\_sink\_query@{gst\_tensor\_sparse\_enc\_sink\_query}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_sparse\_enc\_sink\_query()}{gst\_tensor\_sparse\_enc\_sink\_query()}}
{\footnotesize\ttfamily static gboolean gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+sink\+\_\+query (\begin{DoxyParamCaption}\item[{Gst\+Pad $\ast$}]{pad,  }\item[{Gst\+Object $\ast$}]{parent,  }\item[{Gst\+Query $\ast$}]{query }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



This function handles sink pad query. 



Definition at line 317 of file gsttensor\+\_\+sparseenc.\+c.

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


\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{gsttensor__sparseenc_8c_a26e2485c5fd610ac13e266fb32008cf7}\label{gsttensor__sparseenc_8c_a26e2485c5fd610ac13e266fb32008cf7}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!sink\_template@{sink\_template}}
\index{sink\_template@{sink\_template}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{sink\_template}{sink\_template}}
{\footnotesize\ttfamily Gst\+Static\+Pad\+Template sink\+\_\+template\hspace{0.3cm}{\ttfamily [static]}}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= GST\_STATIC\_PAD\_TEMPLATE (\textcolor{stringliteral}{"sink"},}
\DoxyCodeLine{    GST\_PAD\_SINK,}
\DoxyCodeLine{    GST\_PAD\_ALWAYS,}
\DoxyCodeLine{    GST\_STATIC\_CAPS (\mbox{\hyperlink{tensor__typedef_8h_a439a25631e5849f93c9f1dcdc7c2baa5}{GST\_TENSORS\_CAP\_DEFAULT}}))}

\end{DoxyCode}


Template for sink pad. 



Definition at line 67 of file gsttensor\+\_\+sparseenc.\+c.

\mbox{\Hypertarget{gsttensor__sparseenc_8c_a643731249f31c7864f3fb8d64d41a373}\label{gsttensor__sparseenc_8c_a643731249f31c7864f3fb8d64d41a373}} 
\index{gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}!src\_template@{src\_template}}
\index{src\_template@{src\_template}!gsttensor\_sparseenc.c@{gsttensor\_sparseenc.c}}
\doxysubsubsection{\texorpdfstring{src\_template}{src\_template}}
{\footnotesize\ttfamily Gst\+Static\+Pad\+Template src\+\_\+template\hspace{0.3cm}{\ttfamily [static]}}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= GST\_STATIC\_PAD\_TEMPLATE (\textcolor{stringliteral}{"src"},}
\DoxyCodeLine{    GST\_PAD\_SRC,}
\DoxyCodeLine{    GST\_PAD\_ALWAYS,}
\DoxyCodeLine{    GST\_STATIC\_CAPS (\mbox{\hyperlink{tensor__typedef_8h_a21a07d818b9fe6dbee3cccdde72cc2e1}{GST\_TENSORS\_SPARSE\_CAP\_DEFAULT}}))}

\end{DoxyCode}


Template for src pad. 



Definition at line 75 of file gsttensor\+\_\+sparseenc.\+c.

