Doxygen Book
tensor_meta.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-only */
13 #ifndef __GST_TENSOR_META_H__
14 #define __GST_TENSOR_META_H__
15 
16 #include <gst/gst.h>
17 #include <tensor_typedef.h>
18 
19 G_BEGIN_DECLS
20 
21 typedef int64_t query_client_id_t;
22 
26 typedef struct
27 {
28  GstMeta meta;
29 
31 } GstMetaQuery;
32 
36 GType gst_meta_query_api_get_type (void);
37 #define GST_META_QUERY_API_TYPE (gst_meta_query_api_get_type())
38 
42 const GstMetaInfo * gst_meta_query_get_info (void);
43 #define GST_META_QUERY_INFO (gst_meta_query_get_info())
44 #define gst_buffer_get_meta_query(b) \
45  ((GstMetaQuery *) gst_buffer_get_meta ((b), GST_META_QUERY_API_TYPE))
46 #define gst_buffer_add_meta_query(b) \
47  ((GstMetaQuery *) gst_buffer_add_meta ((b), GST_META_QUERY_INFO, NULL))
48 
49 G_END_DECLS
50 
51 #endif /* __GST_TENSOR_META_H__ */
GstMetaQuery::meta
GstMeta meta
Definition: tensor_meta.h:28
GstMetaQuery::client_id
query_client_id_t client_id
Definition: tensor_meta.h:30
GstMetaQuery
GstMetaQuery meta structure.
Definition: tensor_meta.h:26
query_client_id_t
G_BEGIN_DECLS typedef int64_t query_client_id_t
Definition: tensor_meta.h:21
gst_meta_query_api_get_type
GType gst_meta_query_api_get_type(void)
Define meta_query type to register.
Definition: tensor_meta.c:24
tensor_typedef.h
Common header file for NNStreamer, the GStreamer plugin for neural networks.
gst_meta_query_get_info
const GstMetaInfo * gst_meta_query_get_info(void)
Get meta_query info.
Definition: tensor_meta.c:87