\hypertarget{gstdatareposrc_8c}{}\doxysection{datarepo/gstdatareposrc.c File Reference}
\label{gstdatareposrc_8c}\index{datarepo/gstdatareposrc.c@{datarepo/gstdatareposrc.c}}


G\+Streamer plugin to read file in M\+L\+Ops Data repository into buffers.  


{\ttfamily \#include $<$gst/gst.\+h$>$}\newline
{\ttfamily \#include $<$gst/video/video-\/info.\+h$>$}\newline
{\ttfamily \#include $<$gst/audio/audio-\/info.\+h$>$}\newline
{\ttfamily \#include $<$glib/gstdio.\+h$>$}\newline
{\ttfamily \#include $<$nnstreamer\+\_\+plugin\+\_\+api.\+h$>$}\newline
{\ttfamily \#include $<$nnstreamer\+\_\+util.\+h$>$}\newline
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$fcntl.\+h$>$}\newline
{\ttfamily \#include $<$unistd.\+h$>$}\newline
{\ttfamily \#include $<$errno.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$sys/types.\+h$>$}\newline
{\ttfamily \#include $<$sys/stat.\+h$>$}\newline
{\ttfamily \#include $<$inttypes.\+h$>$}\newline
{\ttfamily \#include \char`\"{}gstdatareposrc.\+h\char`\"{}}\newline
Include dependency graph for gstdatareposrc.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c__incl}
\end{center}
\end{figure}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{gstdatareposrc_8c_a1c6e64692c9b7c6e7dc70adb398b3115}{struct\+\_\+stat}}~struct stat
\item 
\#define \mbox{\hyperlink{gstdatareposrc_8c_aad0f32c2c182238f2ff71c83e6ab65a0}{S\+\_\+\+I\+S\+R\+EG}}(mode)~((mode)\&\+\_\+\+S\+\_\+\+I\+F\+R\+EG)
\item 
\#define \mbox{\hyperlink{gstdatareposrc_8c_a3746cdc5aac871e6f6504fbcbd29ef1d}{S\+\_\+\+I\+S\+D\+IR}}(mode)~((mode)\&\+\_\+\+S\+\_\+\+I\+F\+D\+IR)
\item 
\#define \mbox{\hyperlink{gstdatareposrc_8c_a9bd61ea828881a5b9555dc3abb5557ab}{S\+\_\+\+I\+S\+S\+O\+CK}}(x)~(0)
\item 
\#define \mbox{\hyperlink{gstdatareposrc_8c_a36fa9b2e726512bc17a7a6d3e39002be}{O\+\_\+\+B\+I\+N\+A\+RY}}~(0)
\item 
\#define \mbox{\hyperlink{gstdatareposrc_8c_adef911caed7c65a1643062817f4a59d7}{G\+S\+T\+\_\+\+C\+A\+T\+\_\+\+D\+E\+F\+A\+U\+LT}}~gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+debug
\item 
\#define \mbox{\hyperlink{gstdatareposrc_8c_aa82318edeaf1c294431689f17d3829c6}{D\+E\+F\+A\+U\+L\+T\+\_\+\+I\+N\+D\+EX}}~0
\item 
\#define \mbox{\hyperlink{gstdatareposrc_8c_afe9ba1f83b40076e0c93ad5a704adfb7}{D\+E\+F\+A\+U\+L\+T\+\_\+\+E\+P\+O\+C\+HS}}~1
\item 
\#define \mbox{\hyperlink{gstdatareposrc_8c_a9d349bbccf9a14c3c8c555456d374f66}{D\+E\+F\+A\+U\+L\+T\+\_\+\+I\+S\+\_\+\+S\+H\+U\+F\+F\+LE}}~\mbox{\hyperlink{gsttensor__if_8c_a834713a9a17ec303f21e3dc4ecbe9161}{T\+R\+UE}}
\item 
\#define \mbox{\hyperlink{gstdatareposrc_8c_a70de8f8a513e09180d5cc4d43234d810}{\+\_\+do\+\_\+init}}~G\+S\+T\+\_\+\+D\+E\+B\+U\+G\+\_\+\+C\+A\+T\+E\+G\+O\+R\+Y\+\_\+\+I\+N\+IT (gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+debug, \char`\"{}datareposrc\char`\"{}, 0, \char`\"{}datareposrc element\char`\"{});
\item 
\#define \mbox{\hyperlink{gstdatareposrc_8c_a660dd808c5cdc4870f173d1aa3feabe4}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+parent\+\_\+class}}~parent\+\_\+class
\end{DoxyCompactItemize}
\doxysubsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \{ \newline
\mbox{\hyperlink{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7ac37dda0da1a44e10c0504afeeb863f3c}{P\+R\+O\+P\+\_\+0}}, 
\mbox{\hyperlink{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a7da7698ebac1cf04e93c256dcca160e9}{P\+R\+O\+P\+\_\+\+L\+O\+C\+A\+T\+I\+ON}}, 
\mbox{\hyperlink{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7adaf55f925531da77c512db37656dcf8a}{P\+R\+O\+P\+\_\+\+J\+S\+ON}}, 
\mbox{\hyperlink{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a4c207b04e2f6aed97cad6a5fc53c19b6}{P\+R\+O\+P\+\_\+\+S\+T\+A\+R\+T\+\_\+\+S\+A\+M\+P\+L\+E\+\_\+\+I\+N\+D\+EX}}, 
\newline
\mbox{\hyperlink{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a25cda55b4657d2c1938bde4ee8d440ae}{P\+R\+O\+P\+\_\+\+S\+T\+O\+P\+\_\+\+S\+A\+M\+P\+L\+E\+\_\+\+I\+N\+D\+EX}}, 
\mbox{\hyperlink{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a0abe31fefb6d19c980cfe2ed715da934}{P\+R\+O\+P\+\_\+\+E\+P\+O\+C\+HS}}, 
\mbox{\hyperlink{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a8c2f2873f3b9d45d784c78f9bc77844a}{P\+R\+O\+P\+\_\+\+I\+S\+\_\+\+S\+H\+U\+F\+F\+LE}}, 
\mbox{\hyperlink{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a66e1392eea1cb4f2270ed29fd5364c29}{P\+R\+O\+P\+\_\+\+T\+E\+N\+S\+O\+R\+S\+\_\+\+S\+E\+Q\+U\+E\+N\+CE}}, 
\newline
\mbox{\hyperlink{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a31af5aaa9bf8f8cca8e29676cc90e993}{P\+R\+O\+P\+\_\+\+C\+A\+PS}}
 \}
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{gstdatareposrc_8c_aad6d68f1a05a3c7e1463d17082a780f3}{G\+S\+T\+\_\+\+D\+E\+B\+U\+G\+\_\+\+C\+A\+T\+E\+G\+O\+R\+Y\+\_\+\+S\+T\+A\+T\+IC}} (gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+debug)
\item 
static void \mbox{\hyperlink{gstdatareposrc_8c_ae2c98dab7452c69ff34f5d800fd32d26}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+finalize}} (G\+Object $\ast$object)
\begin{DoxyCompactList}\small\item\em Function to finalize instance. \end{DoxyCompactList}\item 
static Gst\+State\+Change\+Return \mbox{\hyperlink{gstdatareposrc_8c_a5ebfdec0fe86c9eb10bdde8858da73cf}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+change\+\_\+state}} (Gst\+Element $\ast$element, Gst\+State\+Change transition)
\begin{DoxyCompactList}\small\item\em Change state of datareposrc. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{gstdatareposrc_8c_abdb7f53ceb444bf8a59c5362dde1d4de}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+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 datareposrc properties. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{gstdatareposrc_8c_ae01c76a7ce2b9dc1d74af3976b08df0c}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+get\+\_\+property}} (G\+Object $\ast$object, guint prop\+\_\+id, G\+Value $\ast$value, G\+Param\+Spec $\ast$pspec)
\begin{DoxyCompactList}\small\item\em Getter datareposrc properties. \end{DoxyCompactList}\item 
static gboolean \mbox{\hyperlink{gstdatareposrc_8c_ab406406ac4253cf830eefdec3273135f}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+stop}} (Gst\+Base\+Src $\ast$basesrc)
\begin{DoxyCompactList}\small\item\em Stop datareposrc, unmap and close the file. \end{DoxyCompactList}\item 
static Gst\+Caps $\ast$ \mbox{\hyperlink{gstdatareposrc_8c_ae0b27ec072601a22012dcf5f86911c84}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+get\+\_\+caps}} (Gst\+Base\+Src $\ast$basesrc, Gst\+Caps $\ast$filter)
\begin{DoxyCompactList}\small\item\em Get caps for caps negotiation. \end{DoxyCompactList}\item 
static gboolean \mbox{\hyperlink{gstdatareposrc_8c_a005082179094ded9a37b88fe1a3a7b19}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+set\+\_\+caps}} (Gst\+Base\+Src $\ast$basesrc, Gst\+Caps $\ast$caps)
\begin{DoxyCompactList}\small\item\em caps after caps negotiation \end{DoxyCompactList}\item 
static Gst\+Flow\+Return \mbox{\hyperlink{gstdatareposrc_8c_ab617b32c7aaf615b16e94504f5d3ea9d}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+create}} (Gst\+Push\+Src $\ast$pushsrc, Gst\+Buffer $\ast$$\ast$buffer)
\begin{DoxyCompactList}\small\item\em Function to create a buffer. \end{DoxyCompactList}\item 
\mbox{\hyperlink{gstdatareposrc_8c_ae6c1e7795625102ab2c76d5bc1071ffe}{G\+\_\+\+D\+E\+F\+I\+N\+E\+\_\+\+T\+Y\+P\+E\+\_\+\+W\+I\+T\+H\+\_\+\+C\+O\+DE}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}}, gst\+\_\+data\+\_\+repo\+\_\+src, G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+P\+U\+S\+H\+\_\+\+S\+RC, \mbox{\hyperlink{gstdatareposrc_8c_a70de8f8a513e09180d5cc4d43234d810}{\+\_\+do\+\_\+init}})
\item 
static void \mbox{\hyperlink{gstdatareposrc_8c_acb2a1bcf64b92bbcc983a999e69a666c}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+class\+\_\+init}} (\mbox{\hyperlink{gstdatareposrc_8h_a0cd1aabd4919855c060a8500b4407de4}{Gst\+Data\+Repo\+Src\+Class}} $\ast$klass)
\begin{DoxyCompactList}\small\item\em initialize the datareposrc\textquotesingle{}s class \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{gstdatareposrc_8c_a8fc53a6e677192d2369bd0c1fbd4dad3}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+init}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src)
\begin{DoxyCompactList}\small\item\em Initialize datareposrc. \end{DoxyCompactList}\item 
static gboolean \mbox{\hyperlink{gstdatareposrc_8c_a7c9758b5f5601866bb289a35a417e5b2}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+parse\+\_\+caps}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src, Gst\+Caps $\ast$caps)
\begin{DoxyCompactList}\small\item\em Parse gst-\/caps to get media type and data size. \end{DoxyCompactList}\item 
static gboolean \mbox{\hyperlink{gstdatareposrc_8c_af1cffc4e99c84bbe412f5db93fe8a318}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+set\+\_\+file\+\_\+path}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src, const int \mbox{\hyperlink{gsttensor__srciio_8c_ad143acf0919ab4b62947be3f2f168a91}{prop}}, const gchar $\ast$file\+\_\+path, G\+Error $\ast$$\ast$err)
\begin{DoxyCompactList}\small\item\em Function to set file path. \end{DoxyCompactList}\item 
static gboolean \mbox{\hyperlink{gstdatareposrc_8c_a958a866e71fc5bedb4a7445e351a4d15}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+set\+\_\+tensors\+\_\+sequence}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src)
\begin{DoxyCompactList}\small\item\em Function to set tensors sequence. \end{DoxyCompactList}\item 
static guint64 \mbox{\hyperlink{gstdatareposrc_8c_a75fd84f51c948cd84147bfc511b980fa}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+get\+\_\+file\+\_\+offset}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src, guint sample\+\_\+index)
\begin{DoxyCompactList}\small\item\em Function to get file offset with sample index. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{gstdatareposrc_8c_ac36b100e56709e6b40170d0e5bab48ee}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+shuffle\+\_\+samples\+\_\+index}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src)
\begin{DoxyCompactList}\small\item\em Function to shuffle samples index. \end{DoxyCompactList}\item 
static gboolean \mbox{\hyperlink{gstdatareposrc_8c_ab06b7ff193aeb3985da8ae8a3746abb2}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+epoch\+\_\+is\+\_\+done}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src)
\begin{DoxyCompactList}\small\item\em Function to check epoch and E\+OS. \end{DoxyCompactList}\item 
static Gst\+Flow\+Return \mbox{\hyperlink{gstdatareposrc_8c_a868892324d9b65ff6299cbe974d3345f}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+read\+\_\+tensors}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src, Gst\+Buffer $\ast$$\ast$buffer)
\begin{DoxyCompactList}\small\item\em Function to read tensors. \end{DoxyCompactList}\item 
static guint \mbox{\hyperlink{gstdatareposrc_8c_a57b259c014c87737c6887bee4447ee84}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+get\+\_\+num\+\_\+tensors}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src, guint shuffled\+\_\+index)
\begin{DoxyCompactList}\small\item\em Function to get num\+\_\+tensors from tensor\+\_\+count\+\_\+array. \end{DoxyCompactList}\item 
static Gst\+Flow\+Return \mbox{\hyperlink{gstdatareposrc_8c_a7e35ed60bab52ec69126b7b088a7bdd2}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+read\+\_\+flexible\+\_\+or\+\_\+sparse\+\_\+tensors}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src, Gst\+Buffer $\ast$$\ast$buffer)
\begin{DoxyCompactList}\small\item\em Function to read flexible or sparse tensors. \end{DoxyCompactList}\item 
static gchar $\ast$ \mbox{\hyperlink{gstdatareposrc_8c_ab2058fca9ea27ea69e9ee10675de6e69}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+get\+\_\+image\+\_\+filename}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src)
\begin{DoxyCompactList}\small\item\em Get image filename. \end{DoxyCompactList}\item 
static Gst\+Flow\+Return \mbox{\hyperlink{gstdatareposrc_8c_a0304d3574367e0021865778bfaa44f32}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+read\+\_\+multi\+\_\+images}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src, Gst\+Buffer $\ast$$\ast$buffer)
\begin{DoxyCompactList}\small\item\em Function to read multi image files. \end{DoxyCompactList}\item 
static Gst\+Flow\+Return \mbox{\hyperlink{gstdatareposrc_8c_aabd9e90f63e9cfce87c84a13635f7ece}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+read\+\_\+others}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src, Gst\+Buffer $\ast$$\ast$buffer)
\begin{DoxyCompactList}\small\item\em Function to read others media type (video, audio, octet and text) \end{DoxyCompactList}\item 
static gboolean \mbox{\hyperlink{gstdatareposrc_8c_ab84e1fafc631f1a3c05d454120b014c1}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+start}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src)
\begin{DoxyCompactList}\small\item\em Start datareposrc, open the file. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{gstdatareposrc_8c_aeea370aa217108de1accb17c32f9823f}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+set\+\_\+timestamp}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src, Gst\+Buffer $\ast$buffer)
\begin{DoxyCompactList}\small\item\em Set timestamp. \end{DoxyCompactList}\item 
static gboolean \mbox{\hyperlink{gstdatareposrc_8c_abdee8d5c01b90711a251dd4ec3b8e012}{gst\+\_\+data\+\_\+repo\+\_\+get\+\_\+caps\+\_\+by\+\_\+tensors\+\_\+sequence}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src)
\begin{DoxyCompactList}\small\item\em Get caps with tensors\+\_\+sequence applied. \end{DoxyCompactList}\item 
static gboolean \mbox{\hyperlink{gstdatareposrc_8c_a0f6698a5beac06e115d49b226c0c9888}{gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+read\+\_\+json\+\_\+file}} (\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$src)
\begin{DoxyCompactList}\small\item\em Read J\+S\+ON file. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
static Gst\+Static\+Pad\+Template \mbox{\hyperlink{gstdatareposrc_8c_a10506682cfb763eb44b9296c93fb5954}{srctemplate}}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
G\+Streamer plugin to read file in M\+L\+Ops Data repository into buffers. 

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

\begin{DoxyDate}{Date}
31 January 2023 
\end{DoxyDate}
\begin{DoxySeeAlso}{See also}
\href{https://github.com/nnstreamer/nnstreamer}{\texttt{ https\+://github.\+com/nnstreamer/nnstreamer}} 
\end{DoxySeeAlso}
\begin{DoxyAuthor}{Author}
Hyunil Park \href{mailto:hyunil46.park@samsung.com}{\texttt{ hyunil46.\+park@samsung.\+com}} 
\end{DoxyAuthor}
\begin{DoxyRefDesc}{Bug}
\item[\mbox{\hyperlink{bug__bug000005}{Bug}}]No known bugs except for N\+YI items\end{DoxyRefDesc}


//! Example launch line $\vert$\mbox{[} gst-\/launch-\/1.\+0 datareposrc location=mnist.\+data json=mnist.\+json start-\/sample-\/index=3 stop-\/sample-\/index=202 epochs=5 ! \textbackslash{} ! tensor\+\_\+sink gst-\/launch-\/1.\+0 datareposrc location=image\+\_\+\%02ld.\+png json=image.\+json start-\/sample-\/index=3 stop-\/sample-\/index=9 epochs=2 ! fakesink gst-\/launch-\/1.\+0 datareposrc location=audiofile json=audio.\+json ! fakesink gst-\/launch-\/1.\+0 datareposrc location=videofile json=video.\+json ! fakesink $\vert$\mbox{]} $\vert$\mbox{[} Unknown sample file(has not J\+S\+O\+N) need to set caps and blocksize or set caps to tensors type without blocksize gst-\/launch-\/1.\+0 datareposrc blocksize=3176 location=unknown.\+data start-\/sample-\/index=3 stop-\/sample-\/index=202 epochs=5 \textbackslash{} caps =\char`\"{}application/octet-\/stream\char`\"{} ! tensor\+\_\+converter input-\/dim=1\+:1\+:784\+:1,1\+:1\+:10\+:1 input-\/type=float32,float32 ! fakesink $\vert$\mbox{]} or $\vert$\mbox{[} gst-\/launch-\/1.\+0 datareposrc location=unknown.\+data start-\/sample-\/index=3 stop-\/sample-\/index=202 epochs=5 \textbackslash{} caps =\char`\"{}other/tensors, format=(string)static, framerate=(fraction)0/1, num\+\_\+tensors=(int)2, dimensions=(string)1\+:1\+:784\+:1.\+1\+:1\+:10\+:1, types=(string)float32.\+float32\char`\"{} \textbackslash{} ! fakesink \mbox{]}$\vert$ 

\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{gstdatareposrc_8c_a70de8f8a513e09180d5cc4d43234d810}\label{gstdatareposrc_8c_a70de8f8a513e09180d5cc4d43234d810}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!\_do\_init@{\_do\_init}}
\index{\_do\_init@{\_do\_init}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{\_do\_init}{\_do\_init}}
{\footnotesize\ttfamily \#define \+\_\+do\+\_\+init~G\+S\+T\+\_\+\+D\+E\+B\+U\+G\+\_\+\+C\+A\+T\+E\+G\+O\+R\+Y\+\_\+\+I\+N\+IT (gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+debug, \char`\"{}datareposrc\char`\"{}, 0, \char`\"{}datareposrc element\char`\"{});}



Definition at line 108 of file gstdatareposrc.\+c.

\mbox{\Hypertarget{gstdatareposrc_8c_afe9ba1f83b40076e0c93ad5a704adfb7}\label{gstdatareposrc_8c_afe9ba1f83b40076e0c93ad5a704adfb7}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!DEFAULT\_EPOCHS@{DEFAULT\_EPOCHS}}
\index{DEFAULT\_EPOCHS@{DEFAULT\_EPOCHS}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{DEFAULT\_EPOCHS}{DEFAULT\_EPOCHS}}
{\footnotesize\ttfamily \#define D\+E\+F\+A\+U\+L\+T\+\_\+\+E\+P\+O\+C\+HS~1}



Definition at line 91 of file gstdatareposrc.\+c.

\mbox{\Hypertarget{gstdatareposrc_8c_aa82318edeaf1c294431689f17d3829c6}\label{gstdatareposrc_8c_aa82318edeaf1c294431689f17d3829c6}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!DEFAULT\_INDEX@{DEFAULT\_INDEX}}
\index{DEFAULT\_INDEX@{DEFAULT\_INDEX}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{DEFAULT\_INDEX}{DEFAULT\_INDEX}}
{\footnotesize\ttfamily \#define D\+E\+F\+A\+U\+L\+T\+\_\+\+I\+N\+D\+EX~0}



Definition at line 90 of file gstdatareposrc.\+c.

\mbox{\Hypertarget{gstdatareposrc_8c_a9d349bbccf9a14c3c8c555456d374f66}\label{gstdatareposrc_8c_a9d349bbccf9a14c3c8c555456d374f66}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!DEFAULT\_IS\_SHUFFLE@{DEFAULT\_IS\_SHUFFLE}}
\index{DEFAULT\_IS\_SHUFFLE@{DEFAULT\_IS\_SHUFFLE}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{DEFAULT\_IS\_SHUFFLE}{DEFAULT\_IS\_SHUFFLE}}
{\footnotesize\ttfamily \#define D\+E\+F\+A\+U\+L\+T\+\_\+\+I\+S\+\_\+\+S\+H\+U\+F\+F\+LE~\mbox{\hyperlink{gsttensor__if_8c_a834713a9a17ec303f21e3dc4ecbe9161}{T\+R\+UE}}}



Definition at line 92 of file gstdatareposrc.\+c.

\mbox{\Hypertarget{gstdatareposrc_8c_adef911caed7c65a1643062817f4a59d7}\label{gstdatareposrc_8c_adef911caed7c65a1643062817f4a59d7}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!GST\_CAT\_DEFAULT@{GST\_CAT\_DEFAULT}}
\index{GST\_CAT\_DEFAULT@{GST\_CAT\_DEFAULT}!gstdatareposrc.c@{gstdatareposrc.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\+\_\+data\+\_\+repo\+\_\+src\+\_\+debug}



Definition at line 74 of file gstdatareposrc.\+c.

\mbox{\Hypertarget{gstdatareposrc_8c_a660dd808c5cdc4870f173d1aa3feabe4}\label{gstdatareposrc_8c_a660dd808c5cdc4870f173d1aa3feabe4}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_parent\_class@{gst\_data\_repo\_src\_parent\_class}}
\index{gst\_data\_repo\_src\_parent\_class@{gst\_data\_repo\_src\_parent\_class}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_parent\_class}{gst\_data\_repo\_src\_parent\_class}}
{\footnotesize\ttfamily \#define gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+parent\+\_\+class~parent\+\_\+class}



Definition at line 111 of file gstdatareposrc.\+c.

\mbox{\Hypertarget{gstdatareposrc_8c_a36fa9b2e726512bc17a7a6d3e39002be}\label{gstdatareposrc_8c_a36fa9b2e726512bc17a7a6d3e39002be}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!O\_BINARY@{O\_BINARY}}
\index{O\_BINARY@{O\_BINARY}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{O\_BINARY}{O\_BINARY}}
{\footnotesize\ttfamily \#define O\+\_\+\+B\+I\+N\+A\+RY~(0)}



Definition at line 65 of file gstdatareposrc.\+c.

\mbox{\Hypertarget{gstdatareposrc_8c_a3746cdc5aac871e6f6504fbcbd29ef1d}\label{gstdatareposrc_8c_a3746cdc5aac871e6f6504fbcbd29ef1d}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!S\_ISDIR@{S\_ISDIR}}
\index{S\_ISDIR@{S\_ISDIR}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{S\_ISDIR}{S\_ISDIR}}
{\footnotesize\ttfamily \#define S\+\_\+\+I\+S\+D\+IR(\begin{DoxyParamCaption}\item[{}]{mode }\end{DoxyParamCaption})~((mode)\&\+\_\+\+S\+\_\+\+I\+F\+D\+IR)}



Definition at line 58 of file gstdatareposrc.\+c.

\mbox{\Hypertarget{gstdatareposrc_8c_aad0f32c2c182238f2ff71c83e6ab65a0}\label{gstdatareposrc_8c_aad0f32c2c182238f2ff71c83e6ab65a0}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!S\_ISREG@{S\_ISREG}}
\index{S\_ISREG@{S\_ISREG}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{S\_ISREG}{S\_ISREG}}
{\footnotesize\ttfamily \#define S\+\_\+\+I\+S\+R\+EG(\begin{DoxyParamCaption}\item[{}]{mode }\end{DoxyParamCaption})~((mode)\&\+\_\+\+S\+\_\+\+I\+F\+R\+EG)}



Definition at line 55 of file gstdatareposrc.\+c.

\mbox{\Hypertarget{gstdatareposrc_8c_a9bd61ea828881a5b9555dc3abb5557ab}\label{gstdatareposrc_8c_a9bd61ea828881a5b9555dc3abb5557ab}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!S\_ISSOCK@{S\_ISSOCK}}
\index{S\_ISSOCK@{S\_ISSOCK}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{S\_ISSOCK}{S\_ISSOCK}}
{\footnotesize\ttfamily \#define S\+\_\+\+I\+S\+S\+O\+CK(\begin{DoxyParamCaption}\item[{}]{x }\end{DoxyParamCaption})~(0)}



Definition at line 62 of file gstdatareposrc.\+c.

\mbox{\Hypertarget{gstdatareposrc_8c_a1c6e64692c9b7c6e7dc70adb398b3115}\label{gstdatareposrc_8c_a1c6e64692c9b7c6e7dc70adb398b3115}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!struct\_stat@{struct\_stat}}
\index{struct\_stat@{struct\_stat}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{struct\_stat}{struct\_stat}}
{\footnotesize\ttfamily \#define struct\+\_\+stat~struct stat}



Definition at line 52 of file gstdatareposrc.\+c.



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

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

\raisebox{\heightof{T}}[0pt][0pt]{\index{PROP\_LOCATION@{PROP\_LOCATION}!gstdatareposrc.c@{gstdatareposrc.c}}\index{gstdatareposrc.c@{gstdatareposrc.c}!PROP\_LOCATION@{PROP\_LOCATION}}}\mbox{\Hypertarget{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a7da7698ebac1cf04e93c256dcca160e9}\label{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a7da7698ebac1cf04e93c256dcca160e9}} 
P\+R\+O\+P\+\_\+\+L\+O\+C\+A\+T\+I\+ON&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{PROP\_JSON@{PROP\_JSON}!gstdatareposrc.c@{gstdatareposrc.c}}\index{gstdatareposrc.c@{gstdatareposrc.c}!PROP\_JSON@{PROP\_JSON}}}\mbox{\Hypertarget{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7adaf55f925531da77c512db37656dcf8a}\label{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7adaf55f925531da77c512db37656dcf8a}} 
P\+R\+O\+P\+\_\+\+J\+S\+ON&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{PROP\_START\_SAMPLE\_INDEX@{PROP\_START\_SAMPLE\_INDEX}!gstdatareposrc.c@{gstdatareposrc.c}}\index{gstdatareposrc.c@{gstdatareposrc.c}!PROP\_START\_SAMPLE\_INDEX@{PROP\_START\_SAMPLE\_INDEX}}}\mbox{\Hypertarget{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a4c207b04e2f6aed97cad6a5fc53c19b6}\label{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a4c207b04e2f6aed97cad6a5fc53c19b6}} 
P\+R\+O\+P\+\_\+\+S\+T\+A\+R\+T\+\_\+\+S\+A\+M\+P\+L\+E\+\_\+\+I\+N\+D\+EX&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{PROP\_STOP\_SAMPLE\_INDEX@{PROP\_STOP\_SAMPLE\_INDEX}!gstdatareposrc.c@{gstdatareposrc.c}}\index{gstdatareposrc.c@{gstdatareposrc.c}!PROP\_STOP\_SAMPLE\_INDEX@{PROP\_STOP\_SAMPLE\_INDEX}}}\mbox{\Hypertarget{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a25cda55b4657d2c1938bde4ee8d440ae}\label{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a25cda55b4657d2c1938bde4ee8d440ae}} 
P\+R\+O\+P\+\_\+\+S\+T\+O\+P\+\_\+\+S\+A\+M\+P\+L\+E\+\_\+\+I\+N\+D\+EX&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{PROP\_EPOCHS@{PROP\_EPOCHS}!gstdatareposrc.c@{gstdatareposrc.c}}\index{gstdatareposrc.c@{gstdatareposrc.c}!PROP\_EPOCHS@{PROP\_EPOCHS}}}\mbox{\Hypertarget{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a0abe31fefb6d19c980cfe2ed715da934}\label{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a0abe31fefb6d19c980cfe2ed715da934}} 
P\+R\+O\+P\+\_\+\+E\+P\+O\+C\+HS&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{PROP\_IS\_SHUFFLE@{PROP\_IS\_SHUFFLE}!gstdatareposrc.c@{gstdatareposrc.c}}\index{gstdatareposrc.c@{gstdatareposrc.c}!PROP\_IS\_SHUFFLE@{PROP\_IS\_SHUFFLE}}}\mbox{\Hypertarget{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a8c2f2873f3b9d45d784c78f9bc77844a}\label{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a8c2f2873f3b9d45d784c78f9bc77844a}} 
P\+R\+O\+P\+\_\+\+I\+S\+\_\+\+S\+H\+U\+F\+F\+LE&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{PROP\_TENSORS\_SEQUENCE@{PROP\_TENSORS\_SEQUENCE}!gstdatareposrc.c@{gstdatareposrc.c}}\index{gstdatareposrc.c@{gstdatareposrc.c}!PROP\_TENSORS\_SEQUENCE@{PROP\_TENSORS\_SEQUENCE}}}\mbox{\Hypertarget{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a66e1392eea1cb4f2270ed29fd5364c29}\label{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a66e1392eea1cb4f2270ed29fd5364c29}} 
P\+R\+O\+P\+\_\+\+T\+E\+N\+S\+O\+R\+S\+\_\+\+S\+E\+Q\+U\+E\+N\+CE&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{PROP\_CAPS@{PROP\_CAPS}!gstdatareposrc.c@{gstdatareposrc.c}}\index{gstdatareposrc.c@{gstdatareposrc.c}!PROP\_CAPS@{PROP\_CAPS}}}\mbox{\Hypertarget{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a31af5aaa9bf8f8cca8e29676cc90e993}\label{gstdatareposrc_8c_adf764cbdea00d65edcd07bb9953ad2b7a31af5aaa9bf8f8cca8e29676cc90e993}} 
P\+R\+O\+P\+\_\+\+C\+A\+PS&\\
\hline

\end{DoxyEnumFields}


Definition at line 77 of file gstdatareposrc.\+c.



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{gstdatareposrc_8c_ae6c1e7795625102ab2c76d5bc1071ffe}\label{gstdatareposrc_8c_ae6c1e7795625102ab2c76d5bc1071ffe}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!G\_DEFINE\_TYPE\_WITH\_CODE@{G\_DEFINE\_TYPE\_WITH\_CODE}}
\index{G\_DEFINE\_TYPE\_WITH\_CODE@{G\_DEFINE\_TYPE\_WITH\_CODE}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{G\_DEFINE\_TYPE\_WITH\_CODE()}{G\_DEFINE\_TYPE\_WITH\_CODE()}}
{\footnotesize\ttfamily G\+\_\+\+D\+E\+F\+I\+N\+E\+\_\+\+T\+Y\+P\+E\+\_\+\+W\+I\+T\+H\+\_\+\+C\+O\+DE (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}}}]{,  }\item[{gst\+\_\+data\+\_\+repo\+\_\+src}]{,  }\item[{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+P\+U\+S\+H\+\_\+\+S\+RC}]{,  }\item[{\mbox{\hyperlink{gstdatareposrc_8c_a70de8f8a513e09180d5cc4d43234d810}{\+\_\+do\+\_\+init}}}]{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{gstdatareposrc_8c_abdee8d5c01b90711a251dd4ec3b8e012}\label{gstdatareposrc_8c_abdee8d5c01b90711a251dd4ec3b8e012}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_get\_caps\_by\_tensors\_sequence@{gst\_data\_repo\_get\_caps\_by\_tensors\_sequence}}
\index{gst\_data\_repo\_get\_caps\_by\_tensors\_sequence@{gst\_data\_repo\_get\_caps\_by\_tensors\_sequence}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_get\_caps\_by\_tensors\_sequence()}{gst\_data\_repo\_get\_caps\_by\_tensors\_sequence()}}
{\footnotesize\ttfamily static gboolean gst\+\_\+data\+\_\+repo\+\_\+get\+\_\+caps\+\_\+by\+\_\+tensors\+\_\+sequence (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Get caps with tensors\+\_\+sequence applied. 



Definition at line 1326 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_abdee8d5c01b90711a251dd4ec3b8e012_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_abdee8d5c01b90711a251dd4ec3b8e012_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_a5ebfdec0fe86c9eb10bdde8858da73cf}\label{gstdatareposrc_8c_a5ebfdec0fe86c9eb10bdde8858da73cf}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_change\_state@{gst\_data\_repo\_src\_change\_state}}
\index{gst\_data\_repo\_src\_change\_state@{gst\_data\_repo\_src\_change\_state}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_change\_state()}{gst\_data\_repo\_src\_change\_state()}}
{\footnotesize\ttfamily static Gst\+State\+Change\+Return gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+change\+\_\+state (\begin{DoxyParamCaption}\item[{Gst\+Element $\ast$}]{element,  }\item[{Gst\+State\+Change}]{transition }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Change state of datareposrc. 

if data\+\_\+type is not G\+S\+T\+\_\+\+D\+A\+T\+A\+\_\+\+R\+E\+P\+O\+\_\+\+D\+A\+T\+A\+\_\+\+U\+N\+K\+N\+O\+WN and sample\+\_\+size is 0 then \textquotesingle{}caps\textquotesingle{} is set by property and sample size needs to be set by blocksize (in the case of otect and text)

A case of importing a sample format using \textquotesingle{}caps\textquotesingle{} property without J\+S\+ON.

Definition at line 1674 of file gstdatareposrc.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a5ebfdec0fe86c9eb10bdde8858da73cf_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_acb2a1bcf64b92bbcc983a999e69a666c}\label{gstdatareposrc_8c_acb2a1bcf64b92bbcc983a999e69a666c}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_class\_init@{gst\_data\_repo\_src\_class\_init}}
\index{gst\_data\_repo\_src\_class\_init@{gst\_data\_repo\_src\_class\_init}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_class\_init()}{gst\_data\_repo\_src\_class\_init()}}
{\footnotesize\ttfamily static void gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+class\+\_\+init (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_a0cd1aabd4919855c060a8500b4407de4}{Gst\+Data\+Repo\+Src\+Class}} $\ast$}]{klass }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



initialize the datareposrc\textquotesingle{}s class 



Definition at line 119 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_acb2a1bcf64b92bbcc983a999e69a666c_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_ab617b32c7aaf615b16e94504f5d3ea9d}\label{gstdatareposrc_8c_ab617b32c7aaf615b16e94504f5d3ea9d}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_create@{gst\_data\_repo\_src\_create}}
\index{gst\_data\_repo\_src\_create@{gst\_data\_repo\_src\_create}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_create()}{gst\_data\_repo\_src\_create()}}
{\footnotesize\ttfamily static Gst\+Flow\+Return gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+create (\begin{DoxyParamCaption}\item[{Gst\+Push\+Src $\ast$}]{pushsrc,  }\item[{Gst\+Buffer $\ast$$\ast$}]{buffer }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Function to create a buffer. 

set\+\_\+caps is completed after P\+A\+U\+S\+E\+D\+\_\+\+T\+O\+\_\+\+P\+L\+A\+Y\+I\+NG, so we cannot use change\+\_\+state. datareposrc can get type and size after set\+\_\+caps()

Definition at line 1263 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_ab617b32c7aaf615b16e94504f5d3ea9d_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_ab617b32c7aaf615b16e94504f5d3ea9d_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_ab06b7ff193aeb3985da8ae8a3746abb2}\label{gstdatareposrc_8c_ab06b7ff193aeb3985da8ae8a3746abb2}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_epoch\_is\_done@{gst\_data\_repo\_src\_epoch\_is\_done}}
\index{gst\_data\_repo\_src\_epoch\_is\_done@{gst\_data\_repo\_src\_epoch\_is\_done}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_epoch\_is\_done()}{gst\_data\_repo\_src\_epoch\_is\_done()}}
{\footnotesize\ttfamily static gboolean gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+epoch\+\_\+is\+\_\+done (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Function to check epoch and E\+OS. 



Definition at line 553 of file gstdatareposrc.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_ab06b7ff193aeb3985da8ae8a3746abb2_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_ae2c98dab7452c69ff34f5d800fd32d26}\label{gstdatareposrc_8c_ae2c98dab7452c69ff34f5d800fd32d26}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_finalize@{gst\_data\_repo\_src\_finalize}}
\index{gst\_data\_repo\_src\_finalize@{gst\_data\_repo\_src\_finalize}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_finalize()}{gst\_data\_repo\_src\_finalize()}}
{\footnotesize\ttfamily static void gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+finalize (\begin{DoxyParamCaption}\item[{G\+Object $\ast$}]{object }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Function to finalize instance. 



Definition at line 270 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_ae2c98dab7452c69ff34f5d800fd32d26_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_ae2c98dab7452c69ff34f5d800fd32d26_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_ae0b27ec072601a22012dcf5f86911c84}\label{gstdatareposrc_8c_ae0b27ec072601a22012dcf5f86911c84}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_get\_caps@{gst\_data\_repo\_src\_get\_caps}}
\index{gst\_data\_repo\_src\_get\_caps@{gst\_data\_repo\_src\_get\_caps}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_get\_caps()}{gst\_data\_repo\_src\_get\_caps()}}
{\footnotesize\ttfamily static Gst\+Caps $\ast$ gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+get\+\_\+caps (\begin{DoxyParamCaption}\item[{Gst\+Base\+Src $\ast$}]{basesrc,  }\item[{Gst\+Caps $\ast$}]{filter }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Get caps for caps negotiation. 



Definition at line 1371 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_ae0b27ec072601a22012dcf5f86911c84_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_ae0b27ec072601a22012dcf5f86911c84_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_a75fd84f51c948cd84147bfc511b980fa}\label{gstdatareposrc_8c_a75fd84f51c948cd84147bfc511b980fa}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_get\_file\_offset@{gst\_data\_repo\_src\_get\_file\_offset}}
\index{gst\_data\_repo\_src\_get\_file\_offset@{gst\_data\_repo\_src\_get\_file\_offset}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_get\_file\_offset()}{gst\_data\_repo\_src\_get\_file\_offset()}}
{\footnotesize\ttfamily static guint64 gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+get\+\_\+file\+\_\+offset (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src,  }\item[{guint}]{sample\+\_\+index }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Function to get file offset with sample index. 



Definition at line 504 of file gstdatareposrc.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a75fd84f51c948cd84147bfc511b980fa_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_ab2058fca9ea27ea69e9ee10675de6e69}\label{gstdatareposrc_8c_ab2058fca9ea27ea69e9ee10675de6e69}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_get\_image\_filename@{gst\_data\_repo\_src\_get\_image\_filename}}
\index{gst\_data\_repo\_src\_get\_image\_filename@{gst\_data\_repo\_src\_get\_image\_filename}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_get\_image\_filename()}{gst\_data\_repo\_src\_get\_image\_filename()}}
{\footnotesize\ttfamily static gchar$\ast$ gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+get\+\_\+image\+\_\+filename (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Get image filename. 



Definition at line 894 of file gstdatareposrc.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_ab2058fca9ea27ea69e9ee10675de6e69_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_a57b259c014c87737c6887bee4447ee84}\label{gstdatareposrc_8c_a57b259c014c87737c6887bee4447ee84}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_get\_num\_tensors@{gst\_data\_repo\_src\_get\_num\_tensors}}
\index{gst\_data\_repo\_src\_get\_num\_tensors@{gst\_data\_repo\_src\_get\_num\_tensors}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_get\_num\_tensors()}{gst\_data\_repo\_src\_get\_num\_tensors()}}
{\footnotesize\ttfamily static guint gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+get\+\_\+num\+\_\+tensors (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src,  }\item[{guint}]{shuffled\+\_\+index }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Function to get num\+\_\+tensors from tensor\+\_\+count\+\_\+array. 



Definition at line 708 of file gstdatareposrc.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a57b259c014c87737c6887bee4447ee84_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_ae01c76a7ce2b9dc1d74af3976b08df0c}\label{gstdatareposrc_8c_ae01c76a7ce2b9dc1d74af3976b08df0c}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_get\_property@{gst\_data\_repo\_src\_get\_property}}
\index{gst\_data\_repo\_src\_get\_property@{gst\_data\_repo\_src\_get\_property}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_get\_property()}{gst\_data\_repo\_src\_get\_property()}}
{\footnotesize\ttfamily static void gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+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 datareposrc properties. 



Definition at line 1630 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_ae01c76a7ce2b9dc1d74af3976b08df0c_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_ae01c76a7ce2b9dc1d74af3976b08df0c_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_a8fc53a6e677192d2369bd0c1fbd4dad3}\label{gstdatareposrc_8c_a8fc53a6e677192d2369bd0c1fbd4dad3}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_init@{gst\_data\_repo\_src\_init}}
\index{gst\_data\_repo\_src\_init@{gst\_data\_repo\_src\_init}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_init()}{gst\_data\_repo\_src\_init()}}
{\footnotesize\ttfamily static void gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+init (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Initialize datareposrc. 



Definition at line 223 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a8fc53a6e677192d2369bd0c1fbd4dad3_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_a7c9758b5f5601866bb289a35a417e5b2}\label{gstdatareposrc_8c_a7c9758b5f5601866bb289a35a417e5b2}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_parse\_caps@{gst\_data\_repo\_src\_parse\_caps}}
\index{gst\_data\_repo\_src\_parse\_caps@{gst\_data\_repo\_src\_parse\_caps}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_parse\_caps()}{gst\_data\_repo\_src\_parse\_caps()}}
{\footnotesize\ttfamily static gboolean gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+parse\+\_\+caps (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src,  }\item[{Gst\+Caps $\ast$}]{caps }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Parse gst-\/caps to get media type and data size. 

\begin{DoxyNote}{Note}
This function always takes the ownership of gst-\/caps. 
\end{DoxyNote}


Definition at line 303 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a7c9758b5f5601866bb289a35a417e5b2_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a7c9758b5f5601866bb289a35a417e5b2_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_a7e35ed60bab52ec69126b7b088a7bdd2}\label{gstdatareposrc_8c_a7e35ed60bab52ec69126b7b088a7bdd2}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_read\_flexible\_or\_sparse\_tensors@{gst\_data\_repo\_src\_read\_flexible\_or\_sparse\_tensors}}
\index{gst\_data\_repo\_src\_read\_flexible\_or\_sparse\_tensors@{gst\_data\_repo\_src\_read\_flexible\_or\_sparse\_tensors}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_read\_flexible\_or\_sparse\_tensors()}{gst\_data\_repo\_src\_read\_flexible\_or\_sparse\_tensors()}}
{\footnotesize\ttfamily static Gst\+Flow\+Return gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+read\+\_\+flexible\+\_\+or\+\_\+sparse\+\_\+tensors (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src,  }\item[{Gst\+Buffer $\ast$$\ast$}]{buffer }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Function to read flexible or sparse tensors. 



Definition at line 744 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a7e35ed60bab52ec69126b7b088a7bdd2_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a7e35ed60bab52ec69126b7b088a7bdd2_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_a0f6698a5beac06e115d49b226c0c9888}\label{gstdatareposrc_8c_a0f6698a5beac06e115d49b226c0c9888}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_read\_json\_file@{gst\_data\_repo\_src\_read\_json\_file}}
\index{gst\_data\_repo\_src\_read\_json\_file@{gst\_data\_repo\_src\_read\_json\_file}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_read\_json\_file()}{gst\_data\_repo\_src\_read\_json\_file()}}
{\footnotesize\ttfamily static gboolean gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+read\+\_\+json\+\_\+file (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Read J\+S\+ON file. 



Definition at line 1414 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a0f6698a5beac06e115d49b226c0c9888_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a0f6698a5beac06e115d49b226c0c9888_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_a0304d3574367e0021865778bfaa44f32}\label{gstdatareposrc_8c_a0304d3574367e0021865778bfaa44f32}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_read\_multi\_images@{gst\_data\_repo\_src\_read\_multi\_images}}
\index{gst\_data\_repo\_src\_read\_multi\_images@{gst\_data\_repo\_src\_read\_multi\_images}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_read\_multi\_images()}{gst\_data\_repo\_src\_read\_multi\_images()}}
{\footnotesize\ttfamily static Gst\+Flow\+Return gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+read\+\_\+multi\+\_\+images (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src,  }\item[{Gst\+Buffer $\ast$$\ast$}]{buffer }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Function to read multi image files. 



Definition at line 927 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a0304d3574367e0021865778bfaa44f32_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a0304d3574367e0021865778bfaa44f32_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_aabd9e90f63e9cfce87c84a13635f7ece}\label{gstdatareposrc_8c_aabd9e90f63e9cfce87c84a13635f7ece}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_read\_others@{gst\_data\_repo\_src\_read\_others}}
\index{gst\_data\_repo\_src\_read\_others@{gst\_data\_repo\_src\_read\_others}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_read\_others()}{gst\_data\_repo\_src\_read\_others()}}
{\footnotesize\ttfamily static Gst\+Flow\+Return gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+read\+\_\+others (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src,  }\item[{Gst\+Buffer $\ast$$\ast$}]{buffer }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Function to read others media type (video, audio, octet and text) 



Definition at line 1002 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_aabd9e90f63e9cfce87c84a13635f7ece_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_aabd9e90f63e9cfce87c84a13635f7ece_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_a868892324d9b65ff6299cbe974d3345f}\label{gstdatareposrc_8c_a868892324d9b65ff6299cbe974d3345f}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_read\_tensors@{gst\_data\_repo\_src\_read\_tensors}}
\index{gst\_data\_repo\_src\_read\_tensors@{gst\_data\_repo\_src\_read\_tensors}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_read\_tensors()}{gst\_data\_repo\_src\_read\_tensors()}}
{\footnotesize\ttfamily static Gst\+Flow\+Return gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+read\+\_\+tensors (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src,  }\item[{Gst\+Buffer $\ast$$\ast$}]{buffer }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Function to read tensors. 

offset and sample\+\_\+offset(byte size) are from 0. if the size of one sample is 6352 and num\+\_\+tensors is 4, dimensions are \textquotesingle{}1\+:1\+:784\+:1\textquotesingle{} , \textquotesingle{}1\+:1\+:10\+:1\textquotesingle{}, \textquotesingle{}1\+:1\+:784\+:1\textquotesingle{} and \textquotesingle{}1\+:1\+:10\+:1\textquotesingle{} with float32. \hypertarget{gstdatareposrc.c_autotoc_md0}{}\doxysubsubsection{the offset of the second sample is as follows.}\label{gstdatareposrc.c_autotoc_md0}
sample\+\_\+offset\+: 6352 tensors index\+: \mbox{[} 0 $\vert$ 1 $\vert$ 2 $\vert$ 3 \mbox{]} tensors\+\_\+size\+: \mbox{[} 3136 $\vert$ 40 $\vert$ 3136 $\vert$ 40 \mbox{]} tensors\+\_\+offset\+: \mbox{[} 0 $\vert$ 3136 $\vert$ 3176 $\vert$ 6312 \mbox{]} \hypertarget{gstdatareposrc.c_autotoc_md1}{}\doxysubsubsection{fd offset\+: \mbox{[} 6352 $\vert$ 9488 $\vert$ 9528 $\vert$ 12664 \mbox{]}}\label{gstdatareposrc.c_autotoc_md1}
if user sets \char`\"{}tensor-\/sequence=2,1\char`\"{}, datareposrc read offset 9528 then 9488.

Definition at line 570 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a868892324d9b65ff6299cbe974d3345f_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a868892324d9b65ff6299cbe974d3345f_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_a005082179094ded9a37b88fe1a3a7b19}\label{gstdatareposrc_8c_a005082179094ded9a37b88fe1a3a7b19}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_set\_caps@{gst\_data\_repo\_src\_set\_caps}}
\index{gst\_data\_repo\_src\_set\_caps@{gst\_data\_repo\_src\_set\_caps}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_set\_caps()}{gst\_data\_repo\_src\_set\_caps()}}
{\footnotesize\ttfamily static gboolean gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+set\+\_\+caps (\begin{DoxyParamCaption}\item[{Gst\+Base\+Src $\ast$}]{basesrc,  }\item[{Gst\+Caps $\ast$}]{caps }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



caps after caps negotiation 



Definition at line 1401 of file gstdatareposrc.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a005082179094ded9a37b88fe1a3a7b19_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_af1cffc4e99c84bbe412f5db93fe8a318}\label{gstdatareposrc_8c_af1cffc4e99c84bbe412f5db93fe8a318}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_set\_file\_path@{gst\_data\_repo\_src\_set\_file\_path}}
\index{gst\_data\_repo\_src\_set\_file\_path@{gst\_data\_repo\_src\_set\_file\_path}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_set\_file\_path()}{gst\_data\_repo\_src\_set\_file\_path()}}
{\footnotesize\ttfamily static gboolean gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+set\+\_\+file\+\_\+path (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src,  }\item[{const int}]{prop,  }\item[{const gchar $\ast$}]{file\+\_\+path,  }\item[{G\+Error $\ast$$\ast$}]{err }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Function to set file path. 



Definition at line 396 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=288pt]{gstdatareposrc_8c_af1cffc4e99c84bbe412f5db93fe8a318_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_af1cffc4e99c84bbe412f5db93fe8a318_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_abdb7f53ceb444bf8a59c5362dde1d4de}\label{gstdatareposrc_8c_abdb7f53ceb444bf8a59c5362dde1d4de}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_set\_property@{gst\_data\_repo\_src\_set\_property}}
\index{gst\_data\_repo\_src\_set\_property@{gst\_data\_repo\_src\_set\_property}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_set\_property()}{gst\_data\_repo\_src\_set\_property()}}
{\footnotesize\ttfamily static void gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+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 datareposrc properties. 

To get caps, read J\+S\+ON before Caps negotiation, to get information on sample data

let\textquotesingle{}s retry set tensors-\/sequence. if caps property is set later than tensors-\/sequence property, setting tensors-\/sequence fails because caps information is unknown.

Definition at line 1562 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_abdb7f53ceb444bf8a59c5362dde1d4de_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_abdb7f53ceb444bf8a59c5362dde1d4de_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_a958a866e71fc5bedb4a7445e351a4d15}\label{gstdatareposrc_8c_a958a866e71fc5bedb4a7445e351a4d15}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_set\_tensors\_sequence@{gst\_data\_repo\_src\_set\_tensors\_sequence}}
\index{gst\_data\_repo\_src\_set\_tensors\_sequence@{gst\_data\_repo\_src\_set\_tensors\_sequence}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_set\_tensors\_sequence()}{gst\_data\_repo\_src\_set\_tensors\_sequence()}}
{\footnotesize\ttfamily static gboolean gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+set\+\_\+tensors\+\_\+sequence (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Function to set tensors sequence. 



Definition at line 450 of file gstdatareposrc.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_a958a866e71fc5bedb4a7445e351a4d15_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_aeea370aa217108de1accb17c32f9823f}\label{gstdatareposrc_8c_aeea370aa217108de1accb17c32f9823f}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_set\_timestamp@{gst\_data\_repo\_src\_set\_timestamp}}
\index{gst\_data\_repo\_src\_set\_timestamp@{gst\_data\_repo\_src\_set\_timestamp}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_set\_timestamp()}{gst\_data\_repo\_src\_set\_timestamp()}}
{\footnotesize\ttfamily static void gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+set\+\_\+timestamp (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src,  }\item[{Gst\+Buffer $\ast$}]{buffer }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Set timestamp. 



Definition at line 1225 of file gstdatareposrc.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_aeea370aa217108de1accb17c32f9823f_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_ac36b100e56709e6b40170d0e5bab48ee}\label{gstdatareposrc_8c_ac36b100e56709e6b40170d0e5bab48ee}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_shuffle\_samples\_index@{gst\_data\_repo\_src\_shuffle\_samples\_index}}
\index{gst\_data\_repo\_src\_shuffle\_samples\_index@{gst\_data\_repo\_src\_shuffle\_samples\_index}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_shuffle\_samples\_index()}{gst\_data\_repo\_src\_shuffle\_samples\_index()}}
{\footnotesize\ttfamily static void gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+shuffle\+\_\+samples\+\_\+index (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Function to shuffle samples index. 



Definition at line 521 of file gstdatareposrc.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_ac36b100e56709e6b40170d0e5bab48ee_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_ab84e1fafc631f1a3c05d454120b014c1}\label{gstdatareposrc_8c_ab84e1fafc631f1a3c05d454120b014c1}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_start@{gst\_data\_repo\_src\_start}}
\index{gst\_data\_repo\_src\_start@{gst\_data\_repo\_src\_start}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_start()}{gst\_data\_repo\_src\_start()}}
{\footnotesize\ttfamily static gboolean gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+start (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{gstdatareposrc_8h_ae52cc6b9daf655bb72cc693cf146e0f5}{Gst\+Data\+Repo\+Src}} $\ast$}]{src }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Start datareposrc, open the file. 



Definition at line 1102 of file gstdatareposrc.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_ab84e1fafc631f1a3c05d454120b014c1_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_ab84e1fafc631f1a3c05d454120b014c1_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_ab406406ac4253cf830eefdec3273135f}\label{gstdatareposrc_8c_ab406406ac4253cf830eefdec3273135f}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!gst\_data\_repo\_src\_stop@{gst\_data\_repo\_src\_stop}}
\index{gst\_data\_repo\_src\_stop@{gst\_data\_repo\_src\_stop}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{gst\_data\_repo\_src\_stop()}{gst\_data\_repo\_src\_stop()}}
{\footnotesize\ttfamily static gboolean gst\+\_\+data\+\_\+repo\+\_\+src\+\_\+stop (\begin{DoxyParamCaption}\item[{Gst\+Base\+Src $\ast$}]{basesrc }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Stop datareposrc, unmap and close the file. 



Definition at line 1311 of file gstdatareposrc.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gstdatareposrc_8c_ab406406ac4253cf830eefdec3273135f_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gstdatareposrc_8c_aad6d68f1a05a3c7e1463d17082a780f3}\label{gstdatareposrc_8c_aad6d68f1a05a3c7e1463d17082a780f3}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!GST\_DEBUG\_CATEGORY\_STATIC@{GST\_DEBUG\_CATEGORY\_STATIC}}
\index{GST\_DEBUG\_CATEGORY\_STATIC@{GST\_DEBUG\_CATEGORY\_STATIC}!gstdatareposrc.c@{gstdatareposrc.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\+\_\+data\+\_\+repo\+\_\+src\+\_\+debug}]{ }\end{DoxyParamCaption})}



\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{gstdatareposrc_8c_a10506682cfb763eb44b9296c93fb5954}\label{gstdatareposrc_8c_a10506682cfb763eb44b9296c93fb5954}} 
\index{gstdatareposrc.c@{gstdatareposrc.c}!srctemplate@{srctemplate}}
\index{srctemplate@{srctemplate}!gstdatareposrc.c@{gstdatareposrc.c}}
\doxysubsubsection{\texorpdfstring{srctemplate}{srctemplate}}
{\footnotesize\ttfamily Gst\+Static\+Pad\+Template srctemplate\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\_ANY)}

\end{DoxyCode}


Definition at line 68 of file gstdatareposrc.\+c.

