Doxygen Book
gstdatareposink.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-only */
13 #ifndef __GST_DATA_REPO_SINK_H__
14 #define __GST_DATA_REPO_SINK_H__
15 
16 #include <gst/gst.h>
17 #include <gst/base/gstbasesink.h>
18 #include <json-glib/json-glib.h>
19 #include "gstdatarepo.h"
20 
21 G_BEGIN_DECLS
22 #define GST_TYPE_DATA_REPO_SINK \
23  (gst_data_repo_sink_get_type())
24 #define GST_DATA_REPO_SINK(obj) \
25  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DATA_REPO_SINK,GstDataRepoSink))
26 #define GST_DATA_REPO_SINK_CLASS(klass) \
27  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DATA_REPO_SINK,GstDataRepoSinkClass))
28 #define GST_IS_DATA_REPO_SINK(obj) \
29  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DATA_REPO_SINK))
30 #define GST_IS_DATA_REPO_SINK_CLASS(klass) \
31  (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DATA_REPO_SINK))
32 #define GST_DATA_REPO_SINK_CAST(obj) ((GstDataRepoSink *)obj)
33 
36 
41 {
42  GstBaseSink element;
43 
44  GstCaps *fixed_caps;
45  JsonObject *json_object;
46  JsonArray *sample_offset_array;
47  JsonArray *tensor_size_array;
48  JsonArray *tensor_count_array;
52  gint fd;
55  guint64 fd_offset;
56  gsize sample_size;
58  /* property */
59  gchar *filename;
60  gchar *json_filename;
61 };
62 
67 {
68  GstBaseSinkClass parent_class;
69 };
70 
71 GType gst_data_repo_sink_get_type (void);
72 
73 G_END_DECLS
74 #endif /* __GST_DATA_REPO_SINK_H__ */
_GstDataRepoSink::json_filename
gchar * json_filename
Definition: gstdatareposink.h:60
_GstDataRepoSink::is_static_tensors
gboolean is_static_tensors
Definition: gstdatareposink.h:51
_GstDataRepoSinkClass
GstDataRepoSinkClass data structure.
Definition: gstdatareposink.h:66
_GstDataRepoSink::element
GstBaseSink element
Definition: gstdatareposink.h:42
_GstDataRepoSink
GstDataRepoSink data structure.
Definition: gstdatareposink.h:40
_GstDataRepoSink::cumulative_tensors
guint cumulative_tensors
Definition: gstdatareposink.h:49
_GstDataRepoSink::json_object
JsonObject * json_object
Definition: gstdatareposink.h:45
_GstDataRepoSink::total_samples
gint total_samples
Definition: gstdatareposink.h:54
GstDataRepoDataType
GstDataRepoDataType
Data type of incoming buffer.
Definition: gstdatarepo.h:23
_GstDataRepoSink::sample_offset_array
JsonArray * sample_offset_array
Definition: gstdatareposink.h:46
gstdatarepo.h
GStreamer plugin to read file in MLOps Data repository into buffers.
_GstDataRepoSink::tensor_count_array
JsonArray * tensor_count_array
Definition: gstdatareposink.h:48
_GstDataRepoSink::tensor_size_array
JsonArray * tensor_size_array
Definition: gstdatareposink.h:47
_GstDataRepoSink::data_type
GstDataRepoDataType data_type
Definition: gstdatareposink.h:53
_GstDataRepoSink::filename
gchar * filename
Definition: gstdatareposink.h:59
_GstDataRepoSink::fd_offset
guint64 fd_offset
Definition: gstdatareposink.h:55
_GstDataRepoSink::fixed_caps
GstCaps * fixed_caps
Definition: gstdatareposink.h:44
_GstDataRepoSink::sample_size
gsize sample_size
Definition: gstdatareposink.h:56
gst_data_repo_sink_get_type
GType gst_data_repo_sink_get_type(void)
_GstDataRepoSinkClass::parent_class
GstBaseSinkClass parent_class
Definition: gstdatareposink.h:68
_GstDataRepoSink::fd
gint fd
Definition: gstdatareposink.h:52