Go to the documentation of this file.
15 #ifndef __NNS_PLUGIN_API_H__
16 #define __NNS_PLUGIN_API_H__
21 #include <nnstreamer_version.h>
50 const GstStructure *structure);
Internal data structure for tensor info.
gboolean gst_tensors_config_from_peer(GstPad *pad, GstTensorsConfig *config, gboolean *is_fixed)
Parse caps from peer pad and set tensors config.
void gst_tensor_caps_update_dimension(GstCaps *caps, GstCaps *filter)
Update caps dimension for negotiation.
Optional/Additional NNStreamer APIs for sub-plugin writers. (No GStreamer dependency)
GstMemory * gst_tensor_meta_info_append_header(GstTensorMetaInfo *meta, GstMemory *mem)
Append header to memory.
media_type gst_structure_get_media_type(const GstStructure *structure)
Get media type from structure.
GstCaps * gst_tensor_caps_from_config(const GstTensorsConfig *config)
Get tensor caps from tensors config (for other/tensor)
Internal data structure for configured tensors info (for other/tensors).
G_BEGIN_DECLS gboolean gst_structure_is_tensor_stream(const GstStructure *structure)
Check given mimetype is tensor stream.
Common header file for NNStreamer, the GStreamer plugin for neural networks.
gboolean gst_tensor_caps_can_intersect(GstCaps *caps1, GstCaps *caps2)
Try intersecting @caps1 and @caps2 for tensor stream.
enum _nns_media_type media_type
Float16 compiler extension support.
GstCaps * gst_tensors_caps_from_config(const GstTensorsConfig *config)
Get caps from tensors config (for other/tensors)
GstMemory * gst_tensor_buffer_get_nth_memory(GstBuffer *buffer, const guint index)
Get the nth GstMemory from given buffer.
guint gst_tensor_buffer_get_count(GstBuffer *buffer)
Get the number of tensors in the buffer.
gboolean gst_tensor_meta_info_parse_memory(GstTensorMetaInfo *meta, GstMemory *mem)
Parse memory and fill the tensor meta.
void gst_tensor_alloc_init(gsize alignment)
set alignment that default allocator would align to
gboolean gst_tensors_config_from_structure(GstTensorsConfig *config, const GstStructure *structure)
Parse structure and set tensors config (for other/tensors)
gboolean gst_tensor_buffer_append_memory(GstBuffer *buffer, GstMemory *memory, const GstTensorInfo *info)
Append memory to given buffer.