Debian Codegraph @

gst-libs/gst/analytics/gstanalyticstensormtd.h

raw symbols SCIP
1 /* GStreamer
2 * Copyright (C) 2024 Collabora Ltd
3 * @author: Daniel Morin <[email protected]>
4 *
5 * gstanalyticstensormtd.h
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
21 */
22
23 #ifndef __GST_ANALYTICS_TENSOR_MTD_H__
24 #define __GST_ANALYTICS_TENSOR_MTD_H__
25
26 #include <gst/gst.h>
27 #include <gst/analytics/analytics-meta-prelude.h>
28 #include <gst/analytics/gstanalyticsmeta.h>
29 #include <gst/analytics/gsttensor.h>
30
31 G_BEGIN_DECLS
32
33 /**
34 * GstAnalyticsTensorMtd:
35 * @id: Instance identifier
36 * @meta: Instance of #GstAnalyticsRelationMeta where the analytics-metadata
37 * identified by @id is stored
38 *
39 * Handle containing data required to use gst_analytics_tensor_mtd APIs.
40 * This type is generally expected to be allocated on stack.
41 *
42 * Since: 1.28
43 */
44 typedef struct _GstAnalyticsMtd GstAnalyticsTensorMtd;
45
46
47 GST_ANALYTICS_META_API
48 GstAnalyticsMtdType
49 gst_analytics_tensor_mtd_get_mtd_type (void);
50
51 GST_ANALYTICS_META_API
52 GstTensor *
53 gst_analytics_tensor_mtd_get_tensor (const GstAnalyticsTensorMtd * instance);
54
55 GST_ANALYTICS_META_API
56 gboolean
57 gst_analytics_relation_meta_add_tensor_mtd (GstAnalyticsRelationMeta *
58 instance, gsize num_dims, GstAnalyticsTensorMtd * tensor_mtd);
59
60 GST_ANALYTICS_META_API
61 gboolean
62 gst_analytics_relation_meta_add_tensor_mtd_simple (GstAnalyticsRelationMeta *
63 instance, GQuark id, GstTensorDataType data_type,
64 GstBuffer * data, GstTensorDimOrder dims_order, gsize num_dims,
65 gsize * dims, GstAnalyticsTensorMtd * tensor_mtd);
66
67 GST_ANALYTICS_META_API
68 gboolean
69 gst_analytics_relation_meta_get_tensor_mtd (GstAnalyticsRelationMeta * meta,
70 guint an_meta_id, GstAnalyticsTensorMtd * rlt);
71
72 G_END_DECLS
73 #endif /* __GST_ANALYTICS_TENSOR_MTD_H__ */