\hypertarget{nnstreamer__plugin__api_8h}{}\doxysection{nnstreamer/include/nnstreamer\+\_\+plugin\+\_\+api.h File Reference}
\label{nnstreamer__plugin__api_8h}\index{nnstreamer/include/nnstreamer\_plugin\_api.h@{nnstreamer/include/nnstreamer\_plugin\_api.h}}


Optional/\+Additional N\+N\+Streamer A\+P\+Is for sub-\/plugin writers. (Need Gst devel)  


{\ttfamily \#include $<$glib.\+h$>$}\newline
{\ttfamily \#include $<$gst/gst.\+h$>$}\newline
{\ttfamily \#include $<$tensor\+\_\+typedef.\+h$>$}\newline
{\ttfamily \#include $<$nnstreamer\+\_\+version.\+h$>$}\newline
{\ttfamily \#include $<$nnstreamer\+\_\+plugin\+\_\+api\+\_\+util.\+h$>$}\newline
Include dependency graph for nnstreamer\+\_\+plugin\+\_\+api.\+h\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_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=350pt]{nnstreamer__plugin__api_8h__dep__incl}
\end{center}
\end{figure}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
G\+\_\+\+B\+E\+G\+I\+N\+\_\+\+D\+E\+C\+LS gboolean \mbox{\hyperlink{nnstreamer__plugin__api_8h_a90b4f0334c0308264ec4c839a275effa}{gst\+\_\+structure\+\_\+is\+\_\+tensor\+\_\+stream}} (const Gst\+Structure $\ast$structure)
\begin{DoxyCompactList}\small\item\em Check given mimetype is tensor stream. \end{DoxyCompactList}\item 
\mbox{\hyperlink{tensor__typedef_8h_a179b411a3defbc62047b1f892ff41f82}{media\+\_\+type}} \mbox{\hyperlink{nnstreamer__plugin__api_8h_a22e1832db83a77fc3e1261832b81eeab}{gst\+\_\+structure\+\_\+get\+\_\+media\+\_\+type}} (const Gst\+Structure $\ast$structure)
\begin{DoxyCompactList}\small\item\em Get media type from structure. \end{DoxyCompactList}\item 
gboolean \mbox{\hyperlink{nnstreamer__plugin__api_8h_a768ee5a05c44e256255f3f173619eb81}{gst\+\_\+tensors\+\_\+config\+\_\+from\+\_\+structure}} (\mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$config, const Gst\+Structure $\ast$structure)
\begin{DoxyCompactList}\small\item\em Parse structure and set tensors config (for other/tensors) \end{DoxyCompactList}\item 
gboolean \mbox{\hyperlink{nnstreamer__plugin__api_8h_ab434de2dadd23fa441063535f59d67b3}{gst\+\_\+tensors\+\_\+config\+\_\+from\+\_\+peer}} (Gst\+Pad $\ast$pad, \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$config, gboolean $\ast$is\+\_\+fixed)
\begin{DoxyCompactList}\small\item\em Parse caps from peer pad and set tensors config. \end{DoxyCompactList}\item 
Gst\+Caps $\ast$ \mbox{\hyperlink{nnstreamer__plugin__api_8h_ac43fbf5a603c4a59a0415d0b92ca9f2a}{gst\+\_\+tensor\+\_\+caps\+\_\+from\+\_\+config}} (const \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$config)
\begin{DoxyCompactList}\small\item\em Get tensor caps from tensors config (for other/tensor) \end{DoxyCompactList}\item 
Gst\+Caps $\ast$ \mbox{\hyperlink{nnstreamer__plugin__api_8h_a9f23bbb17703a58381b57195414104bf}{gst\+\_\+tensors\+\_\+caps\+\_\+from\+\_\+config}} (const \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$config)
\begin{DoxyCompactList}\small\item\em Get caps from tensors config (for other/tensors) \end{DoxyCompactList}\item 
void \mbox{\hyperlink{nnstreamer__plugin__api_8h_a25e4861db387a899ec1e1743c2cd9f52}{gst\+\_\+tensor\+\_\+alloc\+\_\+init}} (gsize alignment)
\begin{DoxyCompactList}\small\item\em set alignment that default allocator would align to \end{DoxyCompactList}\item 
gboolean \mbox{\hyperlink{nnstreamer__plugin__api_8h_aef52ebe5b36b43902af4dd571c8261f9}{gst\+\_\+tensor\+\_\+meta\+\_\+info\+\_\+parse\+\_\+memory}} (\mbox{\hyperlink{structGstTensorMetaInfo}{Gst\+Tensor\+Meta\+Info}} $\ast$meta, Gst\+Memory $\ast$mem)
\begin{DoxyCompactList}\small\item\em Parse memory and fill the tensor meta. \end{DoxyCompactList}\item 
Gst\+Memory $\ast$ \mbox{\hyperlink{nnstreamer__plugin__api_8h_ae43f2299e53ab20acea3be49146568db}{gst\+\_\+tensor\+\_\+meta\+\_\+info\+\_\+append\+\_\+header}} (\mbox{\hyperlink{structGstTensorMetaInfo}{Gst\+Tensor\+Meta\+Info}} $\ast$meta, Gst\+Memory $\ast$mem)
\begin{DoxyCompactList}\small\item\em Append header to memory. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{nnstreamer__plugin__api_8h_ac4cf6313e3edfd681f9e8faf004283d1}{gst\+\_\+tensor\+\_\+caps\+\_\+update\+\_\+dimension}} (Gst\+Caps $\ast$caps, Gst\+Caps $\ast$filter)
\begin{DoxyCompactList}\small\item\em Update caps dimension for negotiation. \end{DoxyCompactList}\item 
gboolean \mbox{\hyperlink{nnstreamer__plugin__api_8h_aa7b91407076cfa7e2efb89132a6a7095}{gst\+\_\+tensor\+\_\+caps\+\_\+can\+\_\+intersect}} (Gst\+Caps $\ast$caps1, Gst\+Caps $\ast$caps2)
\begin{DoxyCompactList}\small\item\em Try intersecting @caps1 and @caps2 for tensor stream. \end{DoxyCompactList}\item 
Gst\+Memory $\ast$ \mbox{\hyperlink{nnstreamer__plugin__api_8h_a5f0f497aaa22224549933f551356a053}{gst\+\_\+tensor\+\_\+buffer\+\_\+get\+\_\+nth\+\_\+memory}} (Gst\+Buffer $\ast$buffer, const guint index)
\begin{DoxyCompactList}\small\item\em Get the nth Gst\+Memory from given {\itshape buffer}. \end{DoxyCompactList}\item 
gboolean \mbox{\hyperlink{nnstreamer__plugin__api_8h_aff0563ef38ca0af551a0774414566129}{gst\+\_\+tensor\+\_\+buffer\+\_\+append\+\_\+memory}} (Gst\+Buffer $\ast$buffer, Gst\+Memory $\ast$memory, const \mbox{\hyperlink{structGstTensorInfo}{Gst\+Tensor\+Info}} $\ast$info)
\begin{DoxyCompactList}\small\item\em Append {\itshape memory} to given {\itshape buffer}. \end{DoxyCompactList}\item 
guint \mbox{\hyperlink{nnstreamer__plugin__api_8h_a43da922a793d680d9c2b3c8fed4e2dac}{gst\+\_\+tensor\+\_\+buffer\+\_\+get\+\_\+count}} (Gst\+Buffer $\ast$buffer)
\begin{DoxyCompactList}\small\item\em Get the number of tensors in the buffer. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Optional/\+Additional N\+N\+Streamer A\+P\+Is for sub-\/plugin writers. (Need Gst devel) 

N\+N\+Streamer Common A\+PI Header for Plug-\/\+Ins Copyright (C) 2019 Myung\+Joo Ham \href{mailto:myungjoo.ham@samsung.com}{\texttt{ myungjoo.\+ham@samsung.\+com}} Copyright (C) 2019 Wook Song \href{mailto:wook16.song@samsung.com}{\texttt{ wook16.\+song@samsung.\+com}}

\begin{DoxyDate}{Date}
24 Jan 2019 
\end{DoxyDate}
\begin{DoxySeeAlso}{See also}
\href{https://github.com/nnstreamer/nnstreamer}{\texttt{ https\+://github.\+com/nnstreamer/nnstreamer}} 
\end{DoxySeeAlso}
\begin{DoxyAuthor}{Author}
Myung\+Joo Ham \href{mailto:myungjoo.ham@samsung.com}{\texttt{ myungjoo.\+ham@samsung.\+com}} and Wook Song \href{mailto:wook16.song@samsung.com}{\texttt{ wook16.\+song@samsung.\+com}} 
\end{DoxyAuthor}
\begin{DoxyRefDesc}{Bug}
\item[\mbox{\hyperlink{bug__bug000072}{Bug}}]No known bugs except for N\+YI items \end{DoxyRefDesc}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{nnstreamer__plugin__api_8h_a22e1832db83a77fc3e1261832b81eeab}\label{nnstreamer__plugin__api_8h_a22e1832db83a77fc3e1261832b81eeab}} 
\index{nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}!gst\_structure\_get\_media\_type@{gst\_structure\_get\_media\_type}}
\index{gst\_structure\_get\_media\_type@{gst\_structure\_get\_media\_type}!nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}}
\doxysubsubsection{\texorpdfstring{gst\_structure\_get\_media\_type()}{gst\_structure\_get\_media\_type()}}
{\footnotesize\ttfamily \mbox{\hyperlink{tensor__typedef_8h_a179b411a3defbc62047b1f892ff41f82}{media\+\_\+type}} gst\+\_\+structure\+\_\+get\+\_\+media\+\_\+type (\begin{DoxyParamCaption}\item[{const Gst\+Structure $\ast$}]{structure }\end{DoxyParamCaption})}



Get media type from structure. 


\begin{DoxyParams}{Parameters}
{\em structure} & structure to be interpreted \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
corresponding media type (returns \+\_\+\+N\+N\+S\+\_\+\+M\+E\+D\+I\+A\+\_\+\+I\+N\+V\+A\+L\+ID for unsupported type) 
\end{DoxyReturn}


Definition at line 1001 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+impl.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_a22e1832db83a77fc3e1261832b81eeab_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_a22e1832db83a77fc3e1261832b81eeab_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{nnstreamer__plugin__api_8h_a90b4f0334c0308264ec4c839a275effa}\label{nnstreamer__plugin__api_8h_a90b4f0334c0308264ec4c839a275effa}} 
\index{nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}!gst\_structure\_is\_tensor\_stream@{gst\_structure\_is\_tensor\_stream}}
\index{gst\_structure\_is\_tensor\_stream@{gst\_structure\_is\_tensor\_stream}!nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}}
\doxysubsubsection{\texorpdfstring{gst\_structure\_is\_tensor\_stream()}{gst\_structure\_is\_tensor\_stream()}}
{\footnotesize\ttfamily G\+\_\+\+B\+E\+G\+I\+N\+\_\+\+D\+E\+C\+LS gboolean gst\+\_\+structure\+\_\+is\+\_\+tensor\+\_\+stream (\begin{DoxyParamCaption}\item[{const Gst\+Structure $\ast$}]{structure }\end{DoxyParamCaption})}



Check given mimetype is tensor stream. 


\begin{DoxyParams}{Parameters}
{\em structure} & structure to be interpreted \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
T\+R\+UE if mimetype is tensor stream 
\end{DoxyReturn}


Definition at line 984 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+impl.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_a90b4f0334c0308264ec4c839a275effa_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{nnstreamer__plugin__api_8h_a25e4861db387a899ec1e1743c2cd9f52}\label{nnstreamer__plugin__api_8h_a25e4861db387a899ec1e1743c2cd9f52}} 
\index{nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}!gst\_tensor\_alloc\_init@{gst\_tensor\_alloc\_init}}
\index{gst\_tensor\_alloc\_init@{gst\_tensor\_alloc\_init}!nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_alloc\_init()}{gst\_tensor\_alloc\_init()}}
{\footnotesize\ttfamily void gst\+\_\+tensor\+\_\+alloc\+\_\+init (\begin{DoxyParamCaption}\item[{gsize}]{alignment }\end{DoxyParamCaption})}



set alignment that default allocator would align to 


\begin{DoxyParams}{Parameters}
{\em alignment} & bytes of alignment \\
\hline
\end{DoxyParams}


Definition at line 109 of file tensor\+\_\+allocator.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=349pt]{nnstreamer__plugin__api_8h_a25e4861db387a899ec1e1743c2cd9f52_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{nnstreamer__plugin__api_8h_aff0563ef38ca0af551a0774414566129}\label{nnstreamer__plugin__api_8h_aff0563ef38ca0af551a0774414566129}} 
\index{nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}!gst\_tensor\_buffer\_append\_memory@{gst\_tensor\_buffer\_append\_memory}}
\index{gst\_tensor\_buffer\_append\_memory@{gst\_tensor\_buffer\_append\_memory}!nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_buffer\_append\_memory()}{gst\_tensor\_buffer\_append\_memory()}}
{\footnotesize\ttfamily gboolean gst\+\_\+tensor\+\_\+buffer\+\_\+append\+\_\+memory (\begin{DoxyParamCaption}\item[{Gst\+Buffer $\ast$}]{buffer,  }\item[{Gst\+Memory $\ast$}]{memory,  }\item[{const \mbox{\hyperlink{structGstTensorInfo}{Gst\+Tensor\+Info}} $\ast$}]{info }\end{DoxyParamCaption})}



Append {\itshape memory} to given {\itshape buffer}. 


\begin{DoxyParams}[1]{Parameters}
 & {\em \mbox{[}in/out\mbox{]}} & buffer Gst\+Buffer to be appended. \\
\hline
\mbox{\texttt{ in}}  & {\em memory} & Gst\+Memory to append. This function takes ownership of this, even if it returns failure. \\
\hline
\mbox{\texttt{ in}}  & {\em info} & \mbox{\hyperlink{structGstTensorInfo}{Gst\+Tensor\+Info}} of given {\itshape memory}. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
T\+R\+UE if successfully appended, otherwise F\+A\+L\+SE. 
\end{DoxyReturn}
Free the name string, cause it does not freed by gstreamer. \begin{DoxyRefDesc}{Todo}
\item[\mbox{\hyperlink{todo__todo000050}{Todo}}]Make custom gst\+\_\+allocator later? \end{DoxyRefDesc}


Definition at line 1666 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+impl.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_aff0563ef38ca0af551a0774414566129_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_aff0563ef38ca0af551a0774414566129_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{nnstreamer__plugin__api_8h_a43da922a793d680d9c2b3c8fed4e2dac}\label{nnstreamer__plugin__api_8h_a43da922a793d680d9c2b3c8fed4e2dac}} 
\index{nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}!gst\_tensor\_buffer\_get\_count@{gst\_tensor\_buffer\_get\_count}}
\index{gst\_tensor\_buffer\_get\_count@{gst\_tensor\_buffer\_get\_count}!nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_buffer\_get\_count()}{gst\_tensor\_buffer\_get\_count()}}
{\footnotesize\ttfamily guint gst\+\_\+tensor\+\_\+buffer\+\_\+get\+\_\+count (\begin{DoxyParamCaption}\item[{Gst\+Buffer $\ast$}]{buffer }\end{DoxyParamCaption})}



Get the number of tensors in the buffer. 



Definition at line 1813 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+impl.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_a43da922a793d680d9c2b3c8fed4e2dac_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_a43da922a793d680d9c2b3c8fed4e2dac_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{nnstreamer__plugin__api_8h_a5f0f497aaa22224549933f551356a053}\label{nnstreamer__plugin__api_8h_a5f0f497aaa22224549933f551356a053}} 
\index{nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}!gst\_tensor\_buffer\_get\_nth\_memory@{gst\_tensor\_buffer\_get\_nth\_memory}}
\index{gst\_tensor\_buffer\_get\_nth\_memory@{gst\_tensor\_buffer\_get\_nth\_memory}!nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_buffer\_get\_nth\_memory()}{gst\_tensor\_buffer\_get\_nth\_memory()}}
{\footnotesize\ttfamily Gst\+Memory$\ast$ gst\+\_\+tensor\+\_\+buffer\+\_\+get\+\_\+nth\+\_\+memory (\begin{DoxyParamCaption}\item[{Gst\+Buffer $\ast$}]{buffer,  }\item[{const guint}]{index }\end{DoxyParamCaption})}



Get the nth Gst\+Memory from given {\itshape buffer}. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em buffer} & Gst\+Buffer to be parsed. \\
\hline
\mbox{\texttt{ in}}  & {\em index} & Index of Gst\+Memory to be returned. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Gst\+Memory if found, otherwise N\+U\+LL (Caller should free returned memory using gst\+\_\+memory\+\_\+unref()). 
\end{DoxyReturn}


Definition at line 1586 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+impl.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_a5f0f497aaa22224549933f551356a053_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_a5f0f497aaa22224549933f551356a053_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{nnstreamer__plugin__api_8h_aa7b91407076cfa7e2efb89132a6a7095}\label{nnstreamer__plugin__api_8h_aa7b91407076cfa7e2efb89132a6a7095}} 
\index{nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}!gst\_tensor\_caps\_can\_intersect@{gst\_tensor\_caps\_can\_intersect}}
\index{gst\_tensor\_caps\_can\_intersect@{gst\_tensor\_caps\_can\_intersect}!nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_caps\_can\_intersect()}{gst\_tensor\_caps\_can\_intersect()}}
{\footnotesize\ttfamily gboolean gst\+\_\+tensor\+\_\+caps\+\_\+can\+\_\+intersect (\begin{DoxyParamCaption}\item[{Gst\+Caps $\ast$}]{caps1,  }\item[{Gst\+Caps $\ast$}]{caps2 }\end{DoxyParamCaption})}



Try intersecting @caps1 and @caps2 for tensor stream. 


\begin{DoxyParams}{Parameters}
{\em caps1} & a Gst\+Caps to intersect \\
\hline
{\em caps2} & a Gst\+Caps to intersect \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
T\+R\+UE if intersection would be not empty. 
\end{DoxyReturn}


Definition at line 1142 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+impl.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_aa7b91407076cfa7e2efb89132a6a7095_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_aa7b91407076cfa7e2efb89132a6a7095_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{nnstreamer__plugin__api_8h_ac43fbf5a603c4a59a0415d0b92ca9f2a}\label{nnstreamer__plugin__api_8h_ac43fbf5a603c4a59a0415d0b92ca9f2a}} 
\index{nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}!gst\_tensor\_caps\_from\_config@{gst\_tensor\_caps\_from\_config}}
\index{gst\_tensor\_caps\_from\_config@{gst\_tensor\_caps\_from\_config}!nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_caps\_from\_config()}{gst\_tensor\_caps\_from\_config()}}
{\footnotesize\ttfamily Gst\+Caps$\ast$ gst\+\_\+tensor\+\_\+caps\+\_\+from\+\_\+config (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$}]{config }\end{DoxyParamCaption})}



Get tensor caps from tensors config (for other/tensor) 


\begin{DoxyParams}{Parameters}
{\em config} & tensors config info \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
caps for given config
\end{DoxyReturn}
Get tensor caps from tensors config (for other/tensor)


\begin{DoxyParams}{Parameters}
{\em config} & tensors config info \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
caps for given config 
\end{DoxyReturn}


Definition at line 1395 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+impl.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_ac43fbf5a603c4a59a0415d0b92ca9f2a_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_ac43fbf5a603c4a59a0415d0b92ca9f2a_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{nnstreamer__plugin__api_8h_ac4cf6313e3edfd681f9e8faf004283d1}\label{nnstreamer__plugin__api_8h_ac4cf6313e3edfd681f9e8faf004283d1}} 
\index{nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}!gst\_tensor\_caps\_update\_dimension@{gst\_tensor\_caps\_update\_dimension}}
\index{gst\_tensor\_caps\_update\_dimension@{gst\_tensor\_caps\_update\_dimension}!nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_caps\_update\_dimension()}{gst\_tensor\_caps\_update\_dimension()}}
{\footnotesize\ttfamily void gst\+\_\+tensor\+\_\+caps\+\_\+update\+\_\+dimension (\begin{DoxyParamCaption}\item[{Gst\+Caps $\ast$}]{caps,  }\item[{Gst\+Caps $\ast$}]{filter }\end{DoxyParamCaption})}



Update caps dimension for negotiation. 


\begin{DoxyParams}{Parameters}
{\em caps} & caps to compare and update \\
\hline
{\em filter} & caps to compare\\
\hline
\end{DoxyParams}
Update caps dimension for negotiation.


\begin{DoxyParams}{Parameters}
{\em caps} & caps to compare and update \\
\hline
{\em filter} & caps to compare \\
\hline
\end{DoxyParams}


Definition at line 1093 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+impl.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_ac4cf6313e3edfd681f9e8faf004283d1_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_ac4cf6313e3edfd681f9e8faf004283d1_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{nnstreamer__plugin__api_8h_ae43f2299e53ab20acea3be49146568db}\label{nnstreamer__plugin__api_8h_ae43f2299e53ab20acea3be49146568db}} 
\index{nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}!gst\_tensor\_meta\_info\_append\_header@{gst\_tensor\_meta\_info\_append\_header}}
\index{gst\_tensor\_meta\_info\_append\_header@{gst\_tensor\_meta\_info\_append\_header}!nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_meta\_info\_append\_header()}{gst\_tensor\_meta\_info\_append\_header()}}
{\footnotesize\ttfamily Gst\+Memory$\ast$ gst\+\_\+tensor\+\_\+meta\+\_\+info\+\_\+append\+\_\+header (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structGstTensorMetaInfo}{Gst\+Tensor\+Meta\+Info}} $\ast$}]{meta,  }\item[{Gst\+Memory $\ast$}]{mem }\end{DoxyParamCaption})}



Append header to memory. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em meta} & tensor meta structure \\
\hline
\mbox{\texttt{ in}}  & {\em mem} & pointer to Gst\+Memory \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Newly allocated Gst\+Memory (Caller should free returned memory using gst\+\_\+memory\+\_\+unref()) 
\end{DoxyReturn}


Definition at line 1544 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+impl.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_ae43f2299e53ab20acea3be49146568db_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_ae43f2299e53ab20acea3be49146568db_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{nnstreamer__plugin__api_8h_aef52ebe5b36b43902af4dd571c8261f9}\label{nnstreamer__plugin__api_8h_aef52ebe5b36b43902af4dd571c8261f9}} 
\index{nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}!gst\_tensor\_meta\_info\_parse\_memory@{gst\_tensor\_meta\_info\_parse\_memory}}
\index{gst\_tensor\_meta\_info\_parse\_memory@{gst\_tensor\_meta\_info\_parse\_memory}!nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_meta\_info\_parse\_memory()}{gst\_tensor\_meta\_info\_parse\_memory()}}
{\footnotesize\ttfamily gboolean gst\+\_\+tensor\+\_\+meta\+\_\+info\+\_\+parse\+\_\+memory (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structGstTensorMetaInfo}{Gst\+Tensor\+Meta\+Info}} $\ast$}]{meta,  }\item[{Gst\+Memory $\ast$}]{mem }\end{DoxyParamCaption})}



Parse memory and fill the tensor meta. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ out}}  & {\em meta} & tensor meta structure to be filled \\
\hline
\mbox{\texttt{ in}}  & {\em mem} & pointer to Gst\+Memory to be parsed \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
T\+R\+UE if successfully set the meta 
\end{DoxyReturn}


Definition at line 1509 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+impl.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_aef52ebe5b36b43902af4dd571c8261f9_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_aef52ebe5b36b43902af4dd571c8261f9_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{nnstreamer__plugin__api_8h_a9f23bbb17703a58381b57195414104bf}\label{nnstreamer__plugin__api_8h_a9f23bbb17703a58381b57195414104bf}} 
\index{nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}!gst\_tensors\_caps\_from\_config@{gst\_tensors\_caps\_from\_config}}
\index{gst\_tensors\_caps\_from\_config@{gst\_tensors\_caps\_from\_config}!nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensors\_caps\_from\_config()}{gst\_tensors\_caps\_from\_config()}}
{\footnotesize\ttfamily Gst\+Caps$\ast$ gst\+\_\+tensors\+\_\+caps\+\_\+from\+\_\+config (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$}]{config }\end{DoxyParamCaption})}



Get caps from tensors config (for other/tensors) 


\begin{DoxyParams}{Parameters}
{\em config} & tensors config info \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
caps for given config 
\end{DoxyReturn}


Definition at line 1372 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+impl.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_a9f23bbb17703a58381b57195414104bf_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_a9f23bbb17703a58381b57195414104bf_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{nnstreamer__plugin__api_8h_ab434de2dadd23fa441063535f59d67b3}\label{nnstreamer__plugin__api_8h_ab434de2dadd23fa441063535f59d67b3}} 
\index{nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}!gst\_tensors\_config\_from\_peer@{gst\_tensors\_config\_from\_peer}}
\index{gst\_tensors\_config\_from\_peer@{gst\_tensors\_config\_from\_peer}!nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensors\_config\_from\_peer()}{gst\_tensors\_config\_from\_peer()}}
{\footnotesize\ttfamily gboolean gst\+\_\+tensors\+\_\+config\+\_\+from\+\_\+peer (\begin{DoxyParamCaption}\item[{Gst\+Pad $\ast$}]{pad,  }\item[{\mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$}]{config,  }\item[{gboolean $\ast$}]{is\+\_\+fixed }\end{DoxyParamCaption})}



Parse caps from peer pad and set tensors config. 


\begin{DoxyParams}{Parameters}
{\em pad} & Gst\+Pad to get the capabilities \\
\hline
{\em config} & tensors config structure to be filled \\
\hline
{\em is\+\_\+fixed} & flag to be updated when peer caps is fixed (not mandatory, do nothing when the param is null) \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
T\+R\+UE if successfully configured from peer 
\end{DoxyReturn}


Definition at line 1041 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+impl.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_ab434de2dadd23fa441063535f59d67b3_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nnstreamer__plugin__api_8h_ab434de2dadd23fa441063535f59d67b3_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{nnstreamer__plugin__api_8h_a768ee5a05c44e256255f3f173619eb81}\label{nnstreamer__plugin__api_8h_a768ee5a05c44e256255f3f173619eb81}} 
\index{nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}!gst\_tensors\_config\_from\_structure@{gst\_tensors\_config\_from\_structure}}
\index{gst\_tensors\_config\_from\_structure@{gst\_tensors\_config\_from\_structure}!nnstreamer\_plugin\_api.h@{nnstreamer\_plugin\_api.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensors\_config\_from\_structure()}{gst\_tensors\_config\_from\_structure()}}
{\footnotesize\ttfamily gboolean gst\+\_\+tensors\+\_\+config\+\_\+from\+\_\+structure (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structGstTensorsConfig}{Gst\+Tensors\+Config}} $\ast$}]{config,  }\item[{const Gst\+Structure $\ast$}]{structure }\end{DoxyParamCaption})}



Parse structure and set tensors config (for other/tensors) 


\begin{DoxyParams}{Parameters}
{\em config} & tensors config structure to be filled \\
\hline
{\em structure} & structure to be interpreted \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
T\+R\+UE if no error 
\end{DoxyReturn}


Definition at line 1413 of file nnstreamer\+\_\+plugin\+\_\+api\+\_\+impl.\+c.

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